Sigil Python Provider Helper: Anthropic
sigil-sdk-anthropic provides strict Anthropic Messages wrappers and mappers for Sigil.
Embeddings support
This helper currently supports Anthropic Messages APIs only. Native Anthropic embeddings endpoints are not available in the official SDK/API surface used in this repository.
Installation
pip install sigil-sdk sigil-sdk-anthropic anthropic
Wrapper Mode (Sync)
from anthropic.types.message_create_params import MessageCreateParams
from sigil_sdk import Client, ClientConfig
from sigil_sdk_anthropic import AnthropicOptions, messages
client = Client(ClientConfig())
request: MessageCreateParams = {
"model": "claude-sonnet-4-5",
"max_tokens": 256,
"messages": [{"role": "user", "content": "Hello"}],
}
def provider_call(req: MessageCreateParams):
return anthropic_client.messages.create(**req)
response = messages.create(
client,
request,
provider_call,
AnthropicOptions(conversation_id="conv-1", agent_name="assistant", agent_version="1.0.0"),
)
Wrapper Mode (Stream)
from sigil_sdk_anthropic import AnthropicStreamSummary, messages
summary = messages.stream(
client,
request,
lambda req: AnthropicStreamSummary(
output_text="streamed text",
events=[{"type": "content_block_delta", "delta": {"type": "text_delta", "text": "streamed text"}}],
),
)
Mapper Mode
generation = messages.from_request_response(request, response)
stream_generation = messages.from_stream(request, summary)
Raw Provider Artifacts (Opt-In)
options = AnthropicOptions(raw_artifacts=True)
Raw artifacts are default OFF and should only be enabled for diagnostics.
Provider metadata mapping
In addition to normalized usage fields, Anthropic server-tool counters are mapped into Sigil metadata when present:
sigil.gen_ai.usage.server_tool_use.web_search_requestssigil.gen_ai.usage.server_tool_use.web_fetch_requestssigil.gen_ai.usage.server_tool_use.total_requests
Metadata
Release files for sigil-sdk-anthropic 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sigil_sdk_anthropic-0.9.3.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sigil_sdk_anthropic-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / sigil_sdk_anthropic-0.9.3.tar.gz
| Download URL | sigil_sdk_anthropic-0.9.3.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4d759d888d249148ff809ff928f7954a56cfed1977517a73d30bab7f6f33495
|
|
BLAKE2b-256 checksum How to use checksums |
c8dd662884b6ccf9743cad0f342a59efc00c11c298044bd2ee8a4a9bab6ebf80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logRelease files / sigil_sdk_anthropic-0.9.3-py3-none-any.whl
| Download URL | sigil_sdk_anthropic-0.9.3-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d2513565594b6ae68d3f5e9ce83a9b48d35cdec85a777e46b93375d6b7b8549
|
|
BLAKE2b-256 checksum How to use checksums |
2922651bc23dd5ffa153d76b8b079e0490473625cb07b2b5f13c414a0a3b2090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency log