Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tambo-ai/tambo/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Core types exported by@tambo-ai/client for thread management, messages, streaming, and tool execution.
Installation
Thread Types
TamboThread
Represents a conversation with the AI.Unique thread identifier
Thread name (optional)
Messages in the thread
Current run status:
"idle", "waiting", or "streaming"Thread metadata (optional)
ISO timestamp when thread was created
ISO timestamp when thread was last updated
Whether the last run was cancelled (resets to false when a new run starts)
RunStatus
Run status indicates the current state of the thread’s run lifecycle."idle"- No active run"waiting"- Run is waiting (e.g., for tool execution)"streaming"- Run is actively streaming
StreamingState
Tracks the progress of an active run (used internally by TamboClient).Message Types
TamboThreadMessage
A message in a thread.Unique message identifier
Message role:
"user", "assistant", or "system"Content blocks in the message (text, tool calls, components, etc.)
ISO timestamp when message was created (optional for historical messages)
Message metadata (optional)
ID of the parent message, if this was created during generation of another message (e.g., MCP sampling)
Reasoning content from the model (transient - only during streaming, not persisted)
Duration of the reasoning phase in milliseconds
MessageRole
Content
Union type of all content block types.TextContent
Text content block.TamboToolUseContent
Tool call content block with computed state properties.Content type discriminator
Unique tool call identifier
Tool name
Tool input parameters (internal
_tambo_* properties removed)Whether this tool call has completed (computed by useTambo)
The status message to display (computed by useTambo)
Extracted Tambo display properties (computed by useTambo)
TamboToolDisplayProps
Special display properties that can be included in tool input.ToolResultContent
Tool result content block.TamboComponentContent
Component content block with streaming state.Content type discriminator
Unique component identifier
Component name
Component props
Component state (optional)
Current streaming state:
"started", "streaming", or "done"ComponentStreamingState
ResourceContent
Resource content block (e.g., images, files).InputMessage
Message format for sending to the API.Event Types
StreamEvent
Event yielded by TamboStream’s async iterator.The raw AG-UI event
A snapshot of the thread state after this event was processed
Custom Events
Tambo emits custom events during streaming:RunAwaitingInputEvent
MessageParentEvent
ComponentStartEvent
Tool Types
TamboTool
Represents a tool that can be called by the AI.Tool name
Tool description
Input schema (JSON Schema or supported schema library like Zod)
Tool execution function
ToolChoice
Controls how the model selects tools.{ type: "auto" }- Model decides whether to use tools{ type: "any" }- Model must use at least one tool{ type: "tool", name: string }- Model must use the specified tool
Auth Types
TamboAuthState
Auth state computed from client configuration.MCP Types
McpServerInfo
Configuration for an MCP server.MCP server URL
Transport type:
"sse" or "stdio"Custom HTTP headers for SSE transport