Versions in this module Expand all Collapse all v1 v1.1.0 Mar 17, 2026 Changes in this version type Agent + func (a *Agent) Send(ctx context.Context, parts ...ContentPart) error + type ContentPart = schema.MessageInputPart + func AudioBase64(data, mimeType string) ContentPart + func AudioURL(url string) ContentPart + func FileBase64(data, mimeType string, name ...string) ContentPart + func FileURL(url string) ContentPart + func ImageBase64(data, mimeType string, detail ...ImageURLDetail) ContentPart + func ImageURL(url string, detail ...ImageURLDetail) ContentPart + func Text(s string) ContentPart + func VideoBase64(data, mimeType string) ContentPart + func VideoURL(url string) ContentPart + type ImageURLDetail = schema.ImageURLDetail + const ImageDetailAuto + const ImageDetailHigh + const ImageDetailLow v1.0.0 Mar 17, 2026 Changes in this version + func EmitToolUpdate(ctx context.Context, content string) + func GetInterruptState[T any](ctx context.Context) (wasInterrupted bool, hasState bool, state T) + func GetResumeContext[T any](ctx context.Context) (isResumeTarget bool, hasData bool, data T) + func Interrupt(ctx context.Context, info any) error + func StatefulInterrupt(ctx context.Context, info any, state any) error + type Agent struct + func New(ctx context.Context, cfg *Config) (*Agent, error) + func (a *Agent) Abort() + func (a *Agent) ClearAllQueues() + func (a *Agent) ClearFollowUpQueue() + func (a *Agent) ClearSteeringQueue() + func (a *Agent) Close() error + func (a *Agent) Continue(ctx context.Context) error + func (a *Agent) FollowUp(content string) + func (a *Agent) History() []*schema.Message + func (a *Agent) Name() string + func (a *Agent) Prompt(ctx context.Context, input string) error + func (a *Agent) Reset() + func (a *Agent) Resume(ctx context.Context, targets map[string]any) error + func (a *Agent) SetFollowUpMode(mode QueueMode) + func (a *Agent) SetSteeringMode(mode QueueMode) + func (a *Agent) State() *State + func (a *Agent) Steer(content string) + func (a *Agent) Subscribe(fn Subscriber) func() + type ChatModel = model.BaseChatModel + type Config struct + CheckPointStore compose.CheckPointStore + Description string + MaxIterations int + Middlewares []adk.AgentMiddleware + Model ChatModel + ModelMiddlewares []adk.ChatModelAgentMiddleware + Name string + SystemPrompt string + Tools []Tool + type Event struct + Agent string + Content string + Delta string + Error error + Interrupt []InterruptPoint + ReasoningContent string + ResponseMeta *ResponseMeta + ToolCalls []ToolCall + Type EventType + type EventType string + const EventAgentEnd + const EventAgentStart + const EventError + const EventInterrupted + const EventMessageDelta + const EventMessageEnd + const EventMessageStart + const EventReasoningDelta + const EventToolEnd + const EventToolStart + const EventToolUpdate + const EventTransfer + const EventTurnEnd + const EventTurnStart + type InterruptPoint struct + ID string + Info any + type Message struct + Agent string + Content string + ReasoningContent string + Role RoleType + type QueueMode string + const QueueModeAll + const QueueModeOneAtATime + type ResponseMeta = schema.ResponseMeta + type RoleType string + const RoleAssistant + const RoleTool + const RoleUser + type State struct + func (s *State) AddMessage(msg Message) + func (s *State) Clear() + func (s *State) IsStreaming() bool + func (s *State) Messages() []Message + type Subscriber func(Event) + type TokenUsage = schema.TokenUsage + type Tool = tool.BaseTool + type ToolCall = schema.ToolCall