Versions in this module Expand all Collapse all v0 v0.1.0 Sep 1, 2026 Changes in this version + const ContinuationTokenType + func AgentRunResponseUpdatesEqual(expected, actual []*agent.ResponseUpdate) error + func CreateSession(options ...agent.Option) *agent.Session + func EncodeContinuationToken(t testing.TB, token ContinuationToken) string + func MessagesEqual(expected, actual []*message.Message) error + func New(responses []Turn) *agent.Agent + func NewContinuationToken(t testing.TB, innerToken string) string + func ResponseUpdateEqual(got, want *agent.ResponseUpdate) error + func ResponseUpdatesEqual(got, want []*agent.ResponseUpdate) error + type ContinuationToken struct + InnerToken string + InputMessages []*message.Message + ResponseUpdates []*agent.ResponseUpdate + Type string + func DecodeContinuationToken(t testing.TB, token string) ContinuationToken + type Middleware struct + PostResponses []Turn + PreResponses []Turn + func (m *Middleware) Called() bool + func (m *Middleware) Run(next agent.RunFunc, ctx context.Context, messages []*message.Message, ...) iter.Seq2[*agent.ResponseUpdate, error] + type Response struct + Error error + Response *agent.ResponseUpdate + type ResponseBuilder struct + func NewResponseBuilder(...) *ResponseBuilder + func (rb *ResponseBuilder) Add(resp *agent.ResponseUpdate) *ResponseBuilder + func (rb *ResponseBuilder) AddError(err error) *ResponseBuilder + func (rb *ResponseBuilder) AddFunctionCall(callID, name string, arguments string) *ResponseBuilder + func (rb *ResponseBuilder) AddText(text string) *ResponseBuilder + func (rb *ResponseBuilder) Build() []Turn + func (rb *ResponseBuilder) NewTurn(...) *ResponseBuilder + type Runner struct + Responses []Turn + func (r *Runner) Run(ctx context.Context, messages []*message.Message, opts ...agent.Option) iter.Seq2[*agent.ResponseUpdate, error] + type Tool struct + func NewTool(name, description string) *Tool + func (t *Tool) Description() string + func (t *Tool) Name() string + type Turn struct + Callbacks []func(context.Context, []*message.Message, ...agent.Option) + Responses []Response