Skip to main content

eager-tools-openai

OpenAI adapter for eager tool calling — wraps chat.completions.create(stream=True) 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-openai

Usage

from openai import AsyncOpenAI
from eager_tools_openai import OpenAIEagerStream

client = AsyncOpenAI()

source = await client.chat.completions.create(
    model="gpt-4.1",
    tools=[...],
    messages=[...],
    stream=True,
)
runner = OpenAIEagerStream(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 surfaces

  • chat.completions.create(stream=True) with tools=[...] — v0.1 target.
  • Responses API (responses.stream(...)) — deferred; contributions welcome.

Supported SDK versions

  • openai>=1.50.

License

MIT. See top-level LICENSE.

Metadata

Release files for eager-tools-openai 0.3.0

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

Source distribution (sdist)

Source distribution for eager-tools-openai 0.3.0
File Size Uploaded
eager_tools_openai-0.3.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eager-tools-openai 0.3.0
File Interpreter ABI Platform
eager_tools_openai-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / eager_tools_openai-0.3.0.tar.gz

Download URL eager_tools_openai-0.3.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a373bb8990a73033b1bf7e85f7a672e044825cbf66cb0bdcf57f86432462ef13
BLAKE2b-256 checksum
How to use checksums
05979b71f85bdecfab11da89c490679fbbf3ce2e6539e60ec833102336ca7599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.17

Release files / eager_tools_openai-0.3.0-py3-none-any.whl

Download URL eager_tools_openai-0.3.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97e978211ebfd1b66f4f24ea7305b546d6f526af64b43489e525a934be810b58
BLAKE2b-256 checksum
How to use checksums
326f1dac2b85d57cb8860a5cba8584a673f6ee573a81e46bc07898c19f74cc5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.17

Release history Release notifications | RSS feed

This release

0.3.0 This release

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