Versions in this module Expand all Collapse all v0 v0.1.2 Jul 14, 2024 Changes in this version + type Engine struct + func NewDefaultEngine(mode EngineMode, config *options.Config) (*Engine, error) + func (e *Engine) ChatStreamCompletion(input string) error + func (e *Engine) Clear() + func (e *Engine) ExecCompletion(input string) (*EngineExecOutput, error) + func (e *Engine) GetChannel() chan EngineChatStreamOutput + func (e *Engine) GetMode() EngineMode + func (e *Engine) Interrupt() + func (e *Engine) Reset() + func (e *Engine) SetMode(m EngineMode) + func (e *Engine) SetPipe(pipe string) + type EngineChatStreamOutput struct + func (co EngineChatStreamOutput) GetContent() string + func (co EngineChatStreamOutput) IsExecutable() bool + func (co EngineChatStreamOutput) IsInterrupt() bool + func (co EngineChatStreamOutput) IsLast() bool + type EngineExecOutput struct + Command string + Executable bool + Explanation string + func (eo EngineExecOutput) GetCommand() string + func (eo EngineExecOutput) GetExplanation() string + func (eo EngineExecOutput) IsExecutable() bool + type EngineLoggingCallbackOutput struct + func (ec EngineLoggingCallbackOutput) GetContent() string + type EngineMode int + const ChatEngineMode + const ExecEngineMode + func (m EngineMode) String() string + type LogHandler struct + func (l LogHandler) HandleChainEnd(_ context.Context, outputs map[string]any) + func (l LogHandler) HandleChainError(_ context.Context, err error) + func (l LogHandler) HandleChainStart(_ context.Context, inputs map[string]any) + func (l LogHandler) HandleLLMError(_ context.Context, err error) + func (l LogHandler) HandleLLMGenerateContentEnd(_ context.Context, res *llms.ContentResponse) + func (l LogHandler) HandleLLMGenerateContentStart(_ context.Context, ms []llms.MessageContent) + func (l LogHandler) HandleLLMStart(_ context.Context, prompts []string) + func (l LogHandler) HandleStreamingFunc(_ context.Context, chunk []byte) + func (l LogHandler) HandleText(_ context.Context, text string) + func (l LogHandler) HandleToolEnd(_ context.Context, output string) + func (l LogHandler) HandleToolError(_ context.Context, err error) + func (l LogHandler) HandleToolStart(_ context.Context, input string) v0.1.1 Jul 7, 2024