Skip to main content

Module types

Module types 

Source
Expand description

Core types for controller communication. Core types for controller communication and message handling.

Structs§

AssistantMessage
A message from the assistant
ControllerInputPayload
Payload for input to the controller
ErrorInfo
Error information for failed operations
FromLLMPayload
Payload for responses from the LLM
LLMRequestOptions
Per-request LLM options that override session defaults
TextBlock
A text content block
ToLLMPayload
Payload for requests sent to the LLM
ToolResultBlock
A tool result block
ToolResultInfo
Information about a tool result to send back to the LLM
ToolUseBlock
A tool use request block
ToolUseInfo
Information about a tool use request
TurnCounter
Thread-safe counter for generating turn numbers
TurnId
Identifies a turn in the conversation (e.g., “u1”, “a1”, “u2”, “a2”)
UserMessage
A message from the user

Enums§

ContentBlock
A content block within a message
ContentBlockType
Type of content block in a message
ControlCmd
Control commands for the controller
ControllerEvent
Event emitted by the controller
InputType
Type of input to the controller
LLMRequestType
Type of request being sent to the LLM
LLMResponseType
Type of response from the LLM
Message
A message in the conversation
MessageRole
Role of a message in the conversation

Constants§

OWNER_ASSISTANT
Owner identifier for assistant turns.
OWNER_USER
Owner identifier for user turns.