Repository navigation
feat: capture the Responses API, and any framework through a capturing HTTP transport - #14
Merged
Merged
Conversation
…g HTTP transport wrap() now also captures client.responses.create (streamed or not, sync or async); those calls always go to the model. agentcompile.http_client()/async_http_client()/transport() capture the model calls of frameworks whose client you don't hold (LangChain, LiteLLM, CrewAI, Pydantic AI, the OpenAI Agents SDK), over httpx or httpx2. A stream counts as whole when it reached its own end marker, since SDKs stop reading there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…alls Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on 3.9) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wrap()now also capturesclient.responses.create(streamed or not, sync or async). Those calls always go to the model: compiled answers come in Chat Completions' and Anthropic's shapes. The trail saysunsupported: responses api.agentcompile.http_client()/async_http_client()/transport(): capture from frameworks whose client you don't hold (LangChain, LiteLLM, CrewAI, Pydantic AI, the OpenAI Agents SDK), overhttpxorhttpx2(neweranthropictakes onlyhttpx2). Capture only.[DONE]/message_stopbefore the transport stream runs out. A gzip body cut short decodes as far as it goes.model,input,instructions,tools,previous_response_idand OpenAI's server-sideconversation.Tested: 103 tests (25 new), ruff clean. End to end with a real model in kbhatnagar1506/agent-compiler's capture-everywhere PR (
scripts/proofs/capture_everywhere.py): Gemini conversations throughwrapand throughhttp_client()stored whole on the server.🤖 Generated with Claude Code