Expand description
Streaming response channels for text, thought, and tool-call events. Streaming response bridge for the Antigravity SDK.
Bridges the SDK’s ChatResponse (Python async iterator) to tokio channels
so Rust consumers can stream text tokens, thinking tokens, and tool call
events independently.
Structs§
- Chat
Response Handle - Handle to a streaming chat response.
- Chat
Response Writer - The sending side of a
ChatResponseHandle, held by the Python bridge thread that drives the SDK’s async iterator. - Chat
Result - The result of draining a chat response via [
ChatResponseHandle::text()]. - Stream
Error - Error sent over the error channel when the Python stream fails.
- Tool
Call Event - A tool call event received during streaming.
- Writer
Error - Error returned when sending to a
ChatResponseWriterchannel fails.
Enums§
- Response
Event - An ordered event from a response timeline, produced by [
ChatResponseHandle::resolve]. - Stream
Chunk - A chunk from the streaming response, combining text, thought, and tool call events.
Functions§
- channel
- Create a paired
(ChatResponseWriter, ChatResponseHandle).