Skip to main content



Sinapsis Anthropic

Sinapsis templates for Anthropic Claude text, multimodal, and MCP workflows.

🐍 Installation • 🚀 Features • 📚 Usage example • 📙 Documentation • 🔍 License

The sinapsis-anthropic package provides packet-native templates for running Claude models with LLMConversationPacket, including standard text generation, multimodal inputs, and MCP tool flows.

🐍 Installation

Install using your preferred package manager. We strongly recommend using uv.

Install the base package:

uv pip install sinapsis-anthropic --extra-index-url https://pypi.sinapsis.tech

Or with raw pip:

pip install sinapsis-anthropic --extra-index-url https://pypi.sinapsis.tech

[!IMPORTANT] Anthropic templates require an API key. Set it before running your agent:

export ANTHROPIC_API_KEY="your-api-key"

[!IMPORTANT] AnthropicMultiModal requires the optional multimodal extra:

uv pip install sinapsis-anthropic[multimodal] --extra-index-url https://pypi.sinapsis.tech

Or install all optional dependencies:

uv pip install sinapsis-anthropic[all] --extra-index-url https://pypi.sinapsis.tech

🚀 Features

Templates Supported

  • AnthropicTextGeneration: Standard Claude text generation on top of LLMConversationPacket.
  • AnthropicMultiModal: Multimodal completion that reads image packets from container.images.
  • AnthropicWithMCP: Packet-native MCP orchestration using LLMConversationPacket.tools, tool_calls, and tool_results.
🧩 Common Attributes
  • init_args (LLMInitArgs, required): Anthropic model selection arguments.
    • llm_model_name (str, required): Claude model identifier.
  • completion_args (AnthropicCompletionArgs, required): Request-time generation parameters such as max_tokens, temperature, top_p, top_k, service_tier, and stop_sequences.
  • extended_thinking (AnthropicThinkingArgs, optional): Extended-thinking configuration.
  • web_search (bool, optional): Enables Anthropic's built-in web search tool for supported models.
  • cleanup_response (bool, optional): Whether to clean leaked transport or template markers from the final response.
  • reasoning_start_tag / reasoning_end_tag (str | None, optional): Optional tags used to extract reasoning into the packet reasoning field and keep the final answer in response.

[!TIP] Use sinapsis info --all-template-names to inspect the templates installed in your environment.

📚 Usage example

The following configuration runs one Claude text-generation step from an LLMConversationPacket.

Config
agent:
  name: my_claude_agent
  description: Agent with support for text-to-text conversational chat using Anthropic Claude models

templates:
  - template_name: InputTemplate
    class_name: InputTemplate
    attributes: {}

  - template_name: LLMConversationInput
    class_name: LLMConversationInput
    template_input: InputTemplate
    attributes:
      prompt: "Give three short tips for staying organized during a busy week."
      system_prompt: "You are a helpful assistant."

  - template_name: AnthropicTextGeneration
    class_name: AnthropicTextGeneration
    template_input: LLMConversationInput
    attributes:
      init_args:
        llm_model_name: "claude-sonnet-4-6"
      completion_args:
        max_tokens: 1024
        temperature: 0.7
        service_tier: standard_only
      extended_thinking:
        type: disabled
      web_search: false

To run a config:

sinapsis run path_to_config.yaml

📙 Documentation

Documentation for this and other sinapsis packages is available on the sinapsis website

Tutorials for different projects within sinapsis are available at sinapsis tutorials page

🔍 License

This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.

For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.

Metadata

Release files for sinapsis-anthropic 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sinapsis-anthropic 0.2.1
File Size Uploaded
sinapsis_anthropic-0.2.1.tar.gz 27.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sinapsis-anthropic 0.2.1
File Interpreter ABI Platform
sinapsis_anthropic-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 56.2 kB

Release files / sinapsis_anthropic-0.2.1.tar.gz

Download URL sinapsis_anthropic-0.2.1.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e300605e7cd5799910a69a28e16132b5fb9d4769a44eda7d714c84bf0fc376f2
BLAKE2b-256 checksum
How to use checksums
ebd4011439cf0052af32ebfdde05bd402b6ff8537e02f2393c6374a015e30b1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.16

Release files / sinapsis_anthropic-0.2.1-py3-none-any.whl

Download URL sinapsis_anthropic-0.2.1-py3-none-any.whl
Size 29.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94175751e6dd22aa22d5a6a0c4ea5931546afbea8b56a482b20e903082cb6f57
BLAKE2b-256 checksum
How to use checksums
c2ed64ef87db87b923265d97de208c1526b217555a57579277f72e8e5a5371d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.16

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page