roboto.ai.chat.event#
Module Contents#
- type roboto.ai.chat.event.ChatEvent = Union[ChatStartTextEvent, ChatTextDeltaEvent, ChatTextEndEvent, ChatToolUseEvent, ChatToolResultEvent]#
- class roboto.ai.chat.event.ChatStartTextEvent(/, **data)#
Bases:
pydantic.BaseModelSignals the beginning of text generation in a chat response.
- Parameters:
data (Any)
- class roboto.ai.chat.event.ChatTextDeltaEvent(/, **data)#
Bases:
pydantic.BaseModelContains incremental text content as the AI generates its response.
- Parameters:
data (Any)
- text: str#
Text fragment from the streaming response.
- class roboto.ai.chat.event.ChatTextEndEvent(/, **data)#
Bases:
pydantic.BaseModelSignals the completion of text generation in a chat response.
- Parameters:
data (Any)
- class roboto.ai.chat.event.ChatToolResultEvent(/, **data)#
Bases:
pydantic.BaseModelContains the result of a tool invocation.
- Parameters:
data (Any)
- name: str#
Name of the tool that was invoked.
- success: bool#
Whether the tool invocation succeeded.
- tool_use_id: str#
Unique identifier for this tool invocation.