Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatExecutionResultForLLM ¶
func FormatExecutionResultForLLM(results []ExecutionResult) string
Types ¶
type BashExecutor ¶
type BashExecutor struct{}
func (*BashExecutor) Execute ¶
func (be *BashExecutor) Execute(code string) ExecutionResult
type CodeBlock ¶
func ParseCodeBlocks ¶
type ExecutionResult ¶
func ExecuteCodeBlock ¶
func ExecuteCodeBlock(block CodeBlock) ExecutionResult
func InterpretCodeBlocks ¶
func InterpretCodeBlocks(input string) []ExecutionResult
type Executor ¶
type Executor interface {
Execute(code string) ExecutionResult
}
type OsascriptExecutor ¶
type OsascriptExecutor struct{}
func (*OsascriptExecutor) Execute ¶
func (oe *OsascriptExecutor) Execute(code string) ExecutionResult
type PowerShellExecutor ¶
type PowerShellExecutor struct{}
func (*PowerShellExecutor) Execute ¶
func (pe *PowerShellExecutor) Execute(code string) ExecutionResult
type PythonExecutor ¶
type PythonExecutor struct{}
func (*PythonExecutor) Execute ¶
func (pe *PythonExecutor) Execute(code string) ExecutionResult
type Repository ¶
type Repository interface {
SaveCodeBlock(block CodeBlock) error
LoadCodeBlock(id string) (CodeBlock, error)
LoadCodeBlocks() ([]CodeBlock, error)
Close() error
}
func NewSQLiteRepository ¶
func NewSQLiteRepository(dbPath string) (Repository, error)
Click to show internal directories.
Click to hide internal directories.