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.BaseModel

Signals the beginning of text generation in a chat response.

Parameters:

data (Any)

class roboto.ai.chat.event.ChatTextDeltaEvent(/, **data)#

Bases: pydantic.BaseModel

Contains 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.BaseModel

Signals the completion of text generation in a chat response.

Parameters:

data (Any)

class roboto.ai.chat.event.ChatToolResultEvent(/, **data)#

Bases: pydantic.BaseModel

Contains 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.ChatToolUseEvent(/, **data)#

Bases: pydantic.BaseModel

Signals 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.