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.1.3.tar.gz (46.6 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.3-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8394e0d0ae72cd7cf7dcb5a99298756816823e6515d2528931c6e6d9c8cb16cb
MD5 0a984ee596801cb9d89db6e227eeef95
BLAKE2b-256 f795d69b2d5cad08a8e7b1990cdfc5625ddc6c267e75097ffe97eab06d4e3c41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmark_claude_agent_sdk_v0-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3918071b672aed9078a9c8fafe433f56d20e85e4f3c21f1a4c2981cea2626c8
MD5 934fd71d992a2861d881abcd001a5cb3
BLAKE2b-256 f0f878c6a48cd866a11a4e4fcdb594db459b15bc6135a0c36388ce64bfa9d82a

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