Documentation ¶ Index ¶ type Assistant func New(llm LLM) *Assistant func (a *Assistant) Run(ctx context.Context) error func (a *Assistant) RunWithThread(ctx context.Context, thread *thread.Thread) error func (a *Assistant) Thread() *thread.Thread func (a *Assistant) WithRAG(rag RAG) *Assistant func (a *Assistant) WithThread(thread *thread.Thread) *Assistant type LLM type RAG Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Assistant ¶ type Assistant struct { // contains filtered or unexported fields } func New ¶ func New(llm LLM) *Assistant func (*Assistant) Run ¶ func (a *Assistant) Run(ctx context.Context) error func (*Assistant) RunWithThread ¶ func (a *Assistant) RunWithThread(ctx context.Context, thread *thread.Thread) error func (*Assistant) Thread ¶ func (a *Assistant) Thread() *thread.Thread func (*Assistant) WithRAG ¶ func (a *Assistant) WithRAG(rag RAG) *Assistant func (*Assistant) WithThread ¶ func (a *Assistant) WithThread(thread *thread.Thread) *Assistant type LLM ¶ type LLM interface { Generate(context.Context, *thread.Thread) error } type RAG ¶ type RAG interface { Retrieve(ctx context.Context, query string) ([]string, error) } Source Files ¶ View all Source files assistant.goprompt.go Click to show internal directories. Click to hide internal directories.