chatStreamWithAdvancedTools abstract method
Stream<ChatStreamEvent>
chatStreamWithAdvancedTools(
- List<
ChatMessage> messages, { - List<
Tool> ? tools, - ToolChoice? toolChoice,
- StructuredOutputFormat? structuredOutput,
Sends a streaming chat request with advanced tool and output configuration
messages
- The conversation history as a list of chat messages
tools
- Optional list of tools to use in the chat
toolChoice
- Optional tool choice strategy (auto, required, specific, none)
structuredOutput
- Optional structured output format for typed responses
Returns a stream of chat events
Implementation
Stream<ChatStreamEvent> chatStreamWithAdvancedTools(
List<ChatMessage> messages, {
List<Tool>? tools,
ToolChoice? toolChoice,
StructuredOutputFormat? structuredOutput,
});