Terminal-based AI coding agent with interactive TUI for autonomous code generation.
Features: - Interactive TUI with React/Ink - Autonomous agent with tool calls (bash, read, write, edit, glob, grep) - Permission system with pattern-based rules - Session management with auto-compaction - Dual providers: GitHub Copilot and Ollama - MCP server integration - Todo panel and theme system - Streaming responses - GitHub-compatible project context
This commit is contained in:
22
src/interfaces/AgentOptions.ts
Normal file
22
src/interfaces/AgentOptions.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Agent Options Interface
|
||||
*/
|
||||
|
||||
import type { ProviderName } from "@/types/providers";
|
||||
import type { ToolCall, ToolResult } from "@tools/index";
|
||||
|
||||
export interface AgentOptions {
|
||||
provider: ProviderName;
|
||||
model?: string;
|
||||
maxIterations?: number;
|
||||
onToolCall?: (call: ToolCall) => void;
|
||||
onToolResult?: (callId: string, result: ToolResult) => void;
|
||||
onText?: (text: string) => void;
|
||||
onThinking?: (text: string) => void;
|
||||
onError?: (error: string) => void;
|
||||
onWarning?: (warning: string) => void;
|
||||
verbose?: boolean;
|
||||
autoApprove?: boolean;
|
||||
/** Chat mode - only read-only tools, no file modifications */
|
||||
chatMode?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user