Anthropic adapter for eager tool calling — wraps the Messages stream to emit SealEvents.
Project description
eager-tools-anthropic
Anthropic adapter for eager tool calling — wraps anthropic.AsyncMessageStream and dispatches each tool the instant its block seals, overlapping tool execution with ongoing LLM generation.
For the mechanism and runtime contract, see the top-level
METHOD.md.
Status
Alpha / scaffold. Public API shape is locked; implementation bodies arrive in Move 3 (CloudThinker port). See NEXT.md.
Install (once published)
pip install eager-tools-anthropic
Usage
import anthropic
from eager_tools_anthropic import AnthropicEagerStream
client = anthropic.AsyncAnthropic()
async with client.messages.stream(
model="claude-opus-4-6",
tools=[...],
messages=[...],
) as source:
runner = AnthropicEagerStream(source, tools=my_tools)
async for event in runner.events():
print(event.kind, event.tool_call)
async for call, result in runner.results():
print(call.name, "→", result)
Supported SDK versions
anthropic>=0.39(Messages streaming API).
License
MIT. See top-level LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eager_tools_anthropic-0.3.0.tar.gz.
File metadata
- Download URL: eager_tools_anthropic-0.3.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a87e0bb7acbf1287570b1e6924d29c1a3a3557c3f4cda8b261f81d807f70f141
|
|
| MD5 |
76d42ecdcb5f5196207705d8e0440f5e
|
|
| BLAKE2b-256 |
45dca7602f71cb795b6caaeaea34fdff9b33835b3434701d95c7ca9e5bb9567d
|
File details
Details for the file eager_tools_anthropic-0.3.0-py3-none-any.whl.
File metadata
- Download URL: eager_tools_anthropic-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f0b65c2ee4bbf641dd43e5f91f5ed5b6320fa4f6d2eed8cf35e0fc669353a47
|
|
| MD5 |
022a4b671edec2561f79054bda5d151e
|
|
| BLAKE2b-256 |
ee31c91570b55b4bf74586e680e8195a9d0a17427ce8aeb9dc8be702fd715ecd
|