Documentation
¶
Index ¶
- type Engine
- func (e *Engine) ChatStreamCompletion(input string) error
- func (e *Engine) Clear() *Engine
- func (e *Engine) ExecCompletion(input string) (*EngineExecOutput, error)
- func (e *Engine) GetChannel() chan EngineChatStreamOutput
- func (e *Engine) GetMode() EngineMode
- func (e *Engine) Interrupt() *Engine
- func (e *Engine) Reset() *Engine
- func (e *Engine) SetMode(mode EngineMode) *Engine
- func (e *Engine) SetPipe(pipe string) *Engine
- type EngineChatStreamOutput
- type EngineExecOutput
- type EngineMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) ChatStreamCompletion ¶
func (*Engine) ExecCompletion ¶
func (e *Engine) ExecCompletion(input string) (*EngineExecOutput, error)
func (*Engine) GetChannel ¶
func (e *Engine) GetChannel() chan EngineChatStreamOutput
func (*Engine) GetMode ¶
func (e *Engine) GetMode() EngineMode
func (*Engine) SetMode ¶
func (e *Engine) SetMode(mode EngineMode) *Engine
type EngineChatStreamOutput ¶
type EngineChatStreamOutput struct {
// contains filtered or unexported fields
}
func (EngineChatStreamOutput) GetContent ¶
func (co EngineChatStreamOutput) GetContent() string
func (EngineChatStreamOutput) IsExecutable ¶
func (co EngineChatStreamOutput) IsExecutable() bool
func (EngineChatStreamOutput) IsInterrupt ¶
func (co EngineChatStreamOutput) IsInterrupt() bool
func (EngineChatStreamOutput) IsLast ¶
func (co EngineChatStreamOutput) IsLast() bool
type EngineExecOutput ¶
type EngineExecOutput struct { Command string `json:"cmd"` Explanation string `json:"exp"` Executable bool `json:"exec"` }
func (EngineExecOutput) GetCommand ¶
func (eo EngineExecOutput) GetCommand() string
func (EngineExecOutput) GetExplanation ¶
func (eo EngineExecOutput) GetExplanation() string
func (EngineExecOutput) IsExecutable ¶
func (eo EngineExecOutput) IsExecutable() bool
type EngineMode ¶
type EngineMode int
const ( ExecEngineMode EngineMode = iota ChatEngineMode )
func (EngineMode) String ¶
func (m EngineMode) String() string
Click to show internal directories.
Click to hide internal directories.