AgentMark works with multiple AI SDKs through adapters. Choose the adapter that fits your tech stack, or build your own.Documentation Index
Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt
Use this file to discover all available pages before exploring further.
What are adapters?
Adapters connect AgentMark prompts to AI SDKs. They translate AgentMark’s prompt format into the format your AI SDK expects. The pattern is always the same:- Load prompt:
client.loadTextPrompt()/loadObjectPrompt() - Format with props:
await prompt.format({ props: {...} }) - Pass the result to your AI SDK’s generation function
Available adapters
AI SDK
The Vercel AI SDK adapter for Next.js and Node.js applications. Supports text, object, image, and speech generation with streaming.Claude Agent SDK
Run AgentMark prompts as agentic tasks with Anthropic’s Claude Agent SDK. Supports tool use, budget controls, and tracing.Mastra
Built for agentic workflows and multi-step LLM applications with Mastra’s framework.Pydantic AI
The recommended adapter for Python applications. Supports text, object generation, streaming, and type-safe outputs via Pydantic models.Default (fallback)
Returns raw prompt configuration without SDK-specific formatting. Useful for mapping to any provider directly.Custom adapter
Build your own adapter for any AI SDK by implementing theAdapter<D> interface.
Learn more →
How to choose
| Adapter | Best for | Language | Streaming | Image / speech |
|---|---|---|---|---|
| AI SDK | Next.js, Node.js apps with broad model support | TypeScript | Yes | Yes |
| Claude Agent SDK | Agentic tasks with Claude (tool use, budget controls) | TypeScript + Python | Yes (async message stream) | No |
| Mastra | Complex agentic workflows and orchestration | TypeScript | Yes | No |
| Pydantic AI | Python applications with type-safe outputs | Python | Yes | No |
| Default | Direct provider mapping or unsupported SDKs | TypeScript | N/A | N/A |
| Custom | Any SDK with specific requirements | TypeScript | You decide | You decide |
For Python developers
Pydantic AI — covers the common case: type-safe outputs via Pydantic models, streaming, sync and async tool functions, and all major LLM providers (OpenAI, Anthropic, Google). Claude Agent SDK — use when you need agentic capabilities with Claude (multi-turn tool use, budget controls, permission management).Image and speech generation are not available in Python adapters. If you need these features, consider using the AI SDK adapter via a Node.js service, or use provider SDKs directly.
Switching adapters
Switch between adapters without changing your prompts. Only your client configuration changes:- TypeScript
- Python
Package versioning
Adapter packages use a-v0 suffix (e.g., agentmark-pydantic-ai-v0, @agentmark-ai/mastra-v0-adapter). This indicates the adapter API version, not stability:
v0= current stable API- Future breaking changes would be released as
v1,v2, etc.
Next steps
AI SDK
Next.js and Node.js apps
Claude Agent SDK
Agentic tasks with Claude
Mastra
Agentic workflows
Pydantic AI
Python type-safe integration
Claude Agent SDK (Python)
Agentic Claude tasks in Python
Default adapter
Raw config pass-through
Custom adapter
Build your own