mirascope.llm.stream
This module contains the Stream class that inherits from BaseStream.
Class Stream
A non-pydantic class that inherits from BaseStream.
Bases:
BaseStream[BaseCallResponse, BaseCallResponseChunk, BaseMessageParam, BaseMessageParam, BaseMessageParam, BaseMessageParam, BaseTool, Any, BaseDynamicConfig, BaseCallParams, FinishReason]Function construct_call_response
Parameters
| Name | Type | Description |
|---|---|---|
| self | Any | - |
Returns
| Type | Description |
|---|---|
| CallResponse | - |
Function tool_message_params
Returns the tool message parameters for tool call results.
Parameters
| Name | Type | Description |
|---|---|---|
| cls | Any | - |
| tools_and_outputs | list[tuple[Tool, JsonableType]] | The list of tools and their outputs from which the tool message parameters should be constructed. |
Returns
| Type | Description |
|---|---|
| list[BaseMessageParam] | - |