roboto.ai.core.event#

Module Contents#

type roboto.ai.core.event.AgentEvent = Union[AgentStartTextEvent, AgentTextDeltaEvent, AgentTextEndEvent, AgentToolUseEvent, AgentToolResultEvent]#
class roboto.ai.core.event.AgentStartTextEvent(/, **data)#

Bases: pydantic.BaseModel

Signals the beginning of text generation in a chat response.

Parameters:

data (Any)

class roboto.ai.core.event.AgentTextDeltaEvent(/, **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.core.event.AgentTextEndEvent(/, **data)#

Bases: pydantic.BaseModel

Signals the completion of text generation in a chat response.

Parameters:

data (Any)

class roboto.ai.core.event.AgentToolResultEvent(/, **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.core.event.AgentToolUseEvent(/, **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.

roboto.ai.core.event.ChatEvent#
roboto.ai.core.event.ChatStartTextEvent#
roboto.ai.core.event.ChatTextDeltaEvent#
roboto.ai.core.event.ChatTextEndEvent#
roboto.ai.core.event.ChatToolResultEvent#
roboto.ai.core.event.ChatToolUseEvent#