The AgentMark client is configured inDocumentation Index
Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt
Use this file to discover all available pages before exploring further.
agentmark_client.py. It connects your prompts to AI models, tools, and prompt loading. This file is auto-generated by npm create agentmark@latest when you select Python.
Installation
Package vs import names:
agentmark-prompt-core→from agentmark.prompt_core import ApiLoader, FileLoaderagentmark-pydantic-ai-v0→from agentmark_pydantic_ai_v0 import ...
ApiLoader ships with agentmark-prompt-core — there’s no separate agentmark-loader-api PyPI package.Configuration
The Python adapter does not ship a default registry — register providers explicitly. The"<provider>:<model>" string format tells Pydantic AI which provider to use at runtime:
agentmark_client.py
Model registry
PydanticAIModelRegistry.register_models(pattern, creator) accepts an exact string, a re.Pattern, or a list of strings. The creator returns either a "<provider>:<model>" string or a Pydantic AI Model instance. Use set_default(creator) for a fallback:
model_name in your prompt frontmatter.
Prompt loading
The loader determines how prompts are fetched at runtime:Running prompts
Dev server
Start the Python dev server for local development:Evals
You can register evaluation functions to score prompt outputs during experiments. Pass anevals dictionary of plain functions:
agentmark_client.py
agentmark.json and synced to AgentMark Cloud. Eval functions are connected to scores by name.
See Evaluations for the full guide on writing eval functions and configuring score schemas.
Full reference
For all configuration options (including tools, MCP, and the Claude Agent SDK Python adapter), see Client config.Have Questions?
We’re here to help! Choose the best way to reach us:
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions