Source: factory.ai/package.mcp/ObjAiMcpBase.py
Base class for Multi-Cloud Provider (MCP) AI models.
| Method | Signature | Description |
|---|---|---|
| prompt | prompt(role: str = '', prompt: str = '', image_base64: str = '') -> str |
Sends a prompt to the AI model and returns the response. |
| embed | embed(text: str = '') -> list |
Generates an embedding for the given text. |
| capture | capture(url: str, width: int = 1280, height: int = 1200) -> str |
Capture an image from url and return base64-encoded PNG. |