AI SDK
The AI SDK gives you programmatic access to Collate’s AI Studio — create personas and agents,
invoke them via the API, and stream responses in real time. Available across Python,
TypeScript, Java, and a standalone CLI.
Available SDKs
Prerequisites
You need:- A OpenMetadata instance with AI Studio Agents enabled
- A Bot JWT token for API authentication
Configuration
Set the following environment variables:Client Initialization
Manage Personas
A persona defines the behavioral instructions and personality of an AI Studio Agent. Each persona contains a system prompt that shapes how the agent responds. Multiple agents can share the same persona.Create a Persona
List Personas
Get a Persona by Name
Manage Agents
An agent combines a persona’s behavioral instructions with OpenMetadata’s MCP tools to form a purpose-built AI assistant. Agents must be API-enabled to be invoked via the SDK.Create an Agent
Available abilities:
search_metadata, get_entity_details, get_entity_lineage,
create_glossary, create_glossary_term, create_lineage, patch_entity
List Agents
Invoke an Agent
Send a message to an API-enabled agent and receive a response.Single Invocation
Streaming
Use streaming to receive real-time output as the agent generates its response.Multi-Turn Conversations
TheConversation class automatically manages context across messages.
Async Support (Python)
All sync methods have async counterparts with thea prefix:
Error Handling
CLI
MCP Tools
OpenMetadata exposes an MCP server that turns your metadata into a set of tools any LLM can use. Unlike generic MCP connectors that only read raw database schemas, OpenMetadata’s MCP tools give your AI access to the full context of your data platform — descriptions, owners, lineage, glossary terms, tags, and data quality results. The MCP endpoint is available atPOST /mcp using the JSON-RPC 2.0 protocol.