Skip to main content

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-v0

Usage

from agentmark_claude_agent_sdk_v0 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentmark_claude_agent_sdk_v0-0.3.0.tar.gz (56.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentmark_claude_agent_sdk_v0-0.3.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file agentmark_claude_agent_sdk_v0-0.3.0.tar.gz.

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1a0a13303e8c59a942fa64bf47cd5ecf8098571dfff073c5c3138a31e05bd6b1
MD5 4034086bac659a702a9241722c201d14
BLAKE2b-256 d7e4efdc8b1033fbb7b40de4189bcd8fbf12561ca492ec89a38df6e69cd8cbb4

See more details on using hashes here.

File details

Details for the file agentmark_claude_agent_sdk_v0-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f5f4db96214c2022f6bd30c49e7320df495af16e4e58447a6b51255f3b051c1
MD5 a2f62924928effcb538b65b56fff7f4e
BLAKE2b-256 c00acc8296b0d63e8c387d1ab9a8fc6ad9d76c39f20869cadb74104f77683b1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page