Skip to main content

Module types

Module types 

Source
Expand description

AG-UI Protocol Types

This module defines core protocol types including:

  • Message types (user, assistant, system, tool)
  • Role definitions
  • ID types (MessageId, RunId, ThreadId, ToolCallId)
  • Context and input types
  • Content types (text, binary) for multimodal messages

Structs§

ActivityMessage
An activity message for tracking agent activities.
AgentId
AgentId: A newtype used to prevent mixing it with other ID values.
AssistantMessage
An assistant message (from the AI model).
BaseMessage
A basic message with optional string content.
BinaryInputContent
Binary input content for multimodal messages.
ContentValidationError
Error type for content validation failures.
Context
Context information provided to an agent.
DeveloperMessage
A developer message, typically for debugging purposes. Not to be confused with system messages.
FunctionCall
A generated function call from a model.
MessageId
MessageId: A newtype used to prevent mixing it with other ID values.
RunAgentInput
Input for running an agent.
RunId
RunId: A newtype used to prevent mixing it with other ID values.
SystemMessage
A system message, usually containing the system prompt.
TextInputContent
Text input content for messages.
ThreadId
ThreadId: A newtype used to prevent mixing it with other ID values.
Tool
A tool definition describing a function the model can call.
ToolCall
A tool call made by an assistant.
ToolCallId
A tool call ID.
ToolMessage
A tool message containing the result of a tool/function call.
UserMessage
A user message from the human user.

Enums§

InputContent
Input content union type for multimodal messages.
Message
Represents the different types of messages in a conversation.
Role
Message role indicating the sender type.