Repository navigation
feat: capture streamed answers whole; customer ids; outcome() - #11
Merged
Merged
Conversation
- Streams: each chunk reaches the agent untouched; a copy is kept and, when the stream ends, assembled into the answer a non-streamed call would have (OpenAI chunks, Anthropic events, sync and async, compiled or forwarded). A stream the agent stops reading is kept and marked stream_complete: false. - Customers: conversation(id, customer=...) or customer_id= on a call; captured as end_user, scrubbed like everything else. - outcome(conversation_id, label): resolved, escalated, unresolved, abandoned, reopened or complaint, sent in the background to /v1/outcome. 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.
What
stream_complete: false.conversation(...)with a customer, or per call. Captured asend_user, scrubbed like everything else.outcome(conversation_id, label): resolved, escalated, unresolved, abandoned, reopened or complaint, sent in the background to/v1/outcome. AgentCompile then learns only from conversations that went well.Proven live: Gemini 2.5 Flash on Vertex through the Python SDK and a real server. 12/12 calls captured, 3/3 conversations whole, outcomes stored, fail-open works (kbhatnagar1506/agent-compiler
docs/results/2026-10-01-live-gemini-run.md).Pairs with kbhatnagar1506/agent-compiler branch
capture-complete(the/v1/outcomeendpoint). Merge that first.🤖 Generated with Claude Code