Versions in this module Expand all Collapse all v0 v0.0.1 Aug 9, 2024 Changes in this version + type AgentAction struct + Log string + Tool string + ToolID string + ToolInput string + type AgentFinish struct + Log string + ReturnValues map[string]any + type AgentStep struct + Action AgentAction + Observation string + type ChatMessageHistory interface + AddAIMessage func(ctx context.Context, message string) error + AddMessage func(ctx context.Context, message llms.ChatMessage) error + AddUserMessage func(ctx context.Context, message string) error + Clear func(ctx context.Context) error + Messages func(ctx context.Context) ([]llms.ChatMessage, error) + SetMessages func(ctx context.Context, messages []llms.ChatMessage) error + type Document struct + Metadata map[string]any + PageContent string + Score float32 + type Memory interface + Clear func(ctx context.Context) error + GetMemoryKey func(ctx context.Context) string + LoadMemoryVariables func(ctx context.Context, inputs map[string]any) (map[string]any, error) + MemoryVariables func(ctx context.Context) []string + SaveContext func(ctx context.Context, inputs map[string]any, outputs map[string]any) error + type OutputParser interface + GetFormatInstructions func() string + Parse func(text string) (T, error) + ParseWithPrompt func(text string, prompt llms.PromptValue) (T, error) + Type func() string + type Retriever interface + GetRelevantDocuments func(ctx context.Context, query string) ([]Document, error)