Versions in this module Expand all Collapse all v0 v0.1.9 May 27, 2026 Changes in this version + func ContentMessageKey(messageID string) string v0.1.8 May 11, 2026 Changes in this version + func ResolveTextImports(ctx context.Context, fs afs.Service, text, baseURI string) (string, error) type Binding + Skills []skillproto.Metadata + SkillsPrompt string v0.1.7 Apr 16, 2026 Changes in this version + func MakeContentKey(content string) string + func NormalizeContent(s string) string + func ToolResultLLMMessages(msg *Message) []llm.Message + type Attachment struct + Content string + Data []byte + Mime string + Name string + StagingFolder string + URI string + func (a *Attachment) MIMEType() string + func (a *Attachment) Type() string + type Binding struct + Context map[string]interface{} + Documents Documents + Elicitation Elicitation + Flags Flags + History History + Meta Meta + Model string + Persona Persona + SystemDocuments Documents + Task Task + Tools Tools + func (b *Binding) ContextJSON() string + func (b *Binding) Data() map[string]interface{} + func (b *Binding) SystemBinding() *Binding + type Document struct + Metadata map[string]string + MimeType string + PageContent string + Score float64 + SourceURI string + Title string + type Documents struct + Items []*Document + type Elicitation struct + Message string + Missing []string + Required bool + Schema map[string]interface{} + SchemaJSON string + type Flags struct + CanStream bool + CanUseTool bool + HasMessageOverflow bool + IsMultimodal bool + IsSystem bool + MaxOverflowBytes int + type History struct + Current *Turn + CurrentTurnID string + LastResponse *Trace + Messages []*Message + Past []*Turn + ToolExposure string + Traces map[string]*Trace + func (h *History) LLMMessages() []llm.Message + type Kind string + const KindContent + const KindResponse + const KindToolCall + func (k Kind) IsContent() bool + func (k Kind) IsResponse() bool + func (k Kind) IsToolCall() bool + func (k Kind) Key(raw string) string + type Message struct + Attachment []*Attachment + Content string + CreatedAt time.Time + ID string + Kind MessageKind + MimeType string + Role string + ToolArgs map[string]interface{} + ToolName string + ToolOpID string + ToolTraceID string + func (m *Message) ToLLM() llm.Message + type MessageKind string + const MessageKindChatAssistant + const MessageKindChatUser + const MessageKindElicitAnswer + const MessageKindElicitPrompt + const MessageKindToolResult + type Meta struct + Model string + type Persona struct + Actor string + Role string + Summary string + type Prompt struct + Engine string + Text string + URI string + func (a *Prompt) Generate(ctx context.Context, binding *Binding) (string, error) + func (a *Prompt) Init(ctx context.Context) error + type Task struct + Attachments []*Attachment + Prompt string + type Tools struct + Signatures []*llm.ToolDefinition + type Trace struct + At time.Time + ID string + Kind Kind + func (t *Trace) IsValid() bool + type Turn struct + ID string + Messages []*Message + StartedAt time.Time