Claude Agent SDK adapter for AgentMark - integrate AgentMark prompts with Claude Agent SDK
Project description
AgentMark Claude Agent SDK Adapter
Python adapter for integrating AgentMark prompts with Claude Agent SDK.
Installation
pip install agentmark-claude-agent-sdk
Usage
from agentmark_claude_agent_sdk import (
create_claude_agent_client,
ClaudeAgentModelRegistry,
ClaudeAgentAdapterOptions,
)
# Create a client with default settings
client = create_claude_agent_client()
# Or with custom configuration
client = create_claude_agent_client(
model_registry=ClaudeAgentModelRegistry.create_default(),
adapter_options=ClaudeAgentAdapterOptions(
permission_mode="bypassPermissions",
max_turns=10,
),
)
# Load and format a prompt
prompt = await client.load_text_prompt(ast)
adapted = await prompt.format(props={"task": "Help me write code"})
# Execute with Claude Agent SDK
from claude_agent_sdk import query
async for message in query(prompt=adapted.query.prompt, options=...):
print(message)
Features
- Full integration with AgentMark prompt framework
- Model registry for custom model configurations
- Tool registry for custom tool definitions
- MCP server bridging for tool execution
- OpenTelemetry tracing support
- Webhook handler for HTTP-based prompt execution
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentmark_claude_agent_sdk-0.1.0.tar.gz.
File metadata
- Download URL: agentmark_claude_agent_sdk-0.1.0.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
472cf2bcb86c451090f3cad2443f6047cc9c6a33bd6b6a2af3ced2153fd1689f
|
|
| MD5 |
b848b1957b49461e30f2c2367f49bc40
|
|
| BLAKE2b-256 |
7bdd1d74d38cd23993c77ca6019090428406e65ab17d50cae3d880225f1a2265
|
File details
Details for the file agentmark_claude_agent_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentmark_claude_agent_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c44f548684260ff4315969b00be324ced34e0bdea963285949a669499f27ba00
|
|
| MD5 |
f83d1cbd4e751a001a758eee4ea723ea
|
|
| BLAKE2b-256 |
bab9506de780f46fbb68542c7c331ed4310b426fd9ddfb415aa553eed8063add
|