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.4.0.tar.gz (62.9 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.4.0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f14ba7c5f5f82ebddaaae3bcee7e703df0d569f8f7669243f913aa1e57e6b50e
MD5 f165cea0aac46e25e0a94e0c5b4a0e54
BLAKE2b-256 1c313966f7dec8a01063b6d474abea3aa01e5481a6797aa9ec93ebb110ccff60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 160fd780b0a35ccd6f6d70fdde72e169b8bc4686fef7fcce55c8c847d4ad57e2
MD5 000a342b1982b280b357c0910c8d9abd
BLAKE2b-256 3fd8d843f0d85366e31dbb25bee097ab08b4a824698e77032c4976ea01f99fd9

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