roboto.ai.chat.event#
Module Contents#
- type roboto.ai.chat.event.AgentEvent = Union[AgentStartTextEvent, AgentTextDeltaEvent, AgentTextEndEvent, AgentToolUseEvent, AgentToolResultEvent]#
- class roboto.ai.chat.event.AgentStartTextEvent(/, **data)#
Bases:
pydantic.BaseModelSignals the beginning of text generation in a chat response.
- Parameters:
data (Any)
- class roboto.ai.chat.event.AgentTextDeltaEvent(/, **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.AgentTextEndEvent(/, **data)#
Bases:
pydantic.BaseModelSignals the completion of text generation in a chat response.
- Parameters:
data (Any)
- class roboto.ai.chat.event.AgentToolResultEvent(/, **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.
- class roboto.ai.chat.event.AgentToolUseEvent(/, **data)#
Bases:
pydantic.BaseModelSignals that the AI is invoking a tool to gather information.
- Parameters:
data (Any)
- name: str#
Name of the tool being invoked.
- tool_use_id: str#
Unique identifier for this tool invocation.
- roboto.ai.chat.event.ChatEvent#
- roboto.ai.chat.event.ChatStartTextEvent#
- roboto.ai.chat.event.ChatTextDeltaEvent#
- roboto.ai.chat.event.ChatTextEndEvent#
- roboto.ai.chat.event.ChatToolResultEvent#
- roboto.ai.chat.event.ChatToolUseEvent#