Versions in this module Expand all Collapse all v1 v1.84.0 Jun 20, 2026 v1.83.0 Jun 19, 2026 Changes in this version + var ErrAgentSourceRequired = errors.New("embeddedchat: agent source is required") + var ErrClosed = errors.New("embeddedchat: session is closed") + var ErrNotInitialized = errors.New("embeddedchat: session is not initialized") + var ErrRunActive = errors.New("embeddedchat: a run is already active") + type Config struct + AgentSource dagentcfg.Source + EventBuffer int + RuntimeConfig *dagentcfg.RuntimeConfig + RuntimeOptions []dagentruntime.Opt + SessionOptions []session.Opt + ToolsetRegistry teamloader.ToolsetRegistry + type Event struct + Done bool + Err error + RuntimeEvent dagentruntime.Event + Text string + Tool *ToolActivity + func TranslateRuntimeEvent(event dagentruntime.Event) (Event, bool) + type Session struct + func New(ctx context.Context, cfg Config) (*Session, error) + func (s *Session) Close() error + func (s *Session) Confirm(ctx context.Context, req dagentruntime.ResumeRequest) error + func (s *Session) Conversation() *session.Session + func (s *Session) Restart() error + func (s *Session) Runtime() dagentruntime.Runtime + func (s *Session) Send(ctx context.Context, prompt string) (<-chan Event, error) + func (s *Session) WelcomeMessage() string + type ToolActivity struct + Call tools.ToolCall + Def tools.Tool + Finished bool + IsError bool + NeedsConfirmation bool