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 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.1.1.tar.gz (41.1 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.1.1-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.1.1.tar.gz
Algorithm Hash digest
SHA256 08d790cb24a9f895ea43393441c04c6d2a0456f1bdf71809641dfd76467c5ec9
MD5 c8eba96a7b31faf5a7fb79eae6dc19b0
BLAKE2b-256 c2a44b913ee439e223f5c16bf19d16c4331562e6e00a4534c34e8e7a8f0903e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84b6c67636b4482eeab80059facff48e11945a835c98e93a465e07148e5ca74d
MD5 cf86e0b868abb31f2a9b0098d569da33
BLAKE2b-256 e69e752560bc4c95d26791385edad2a1047d2d41b7f8c27bf477edd652486c50

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