import { AgentEventStream, MCPAgent, LLMRequestHookPayload, LLMResponseHookPayload, ConsoleLogger, LoopTerminationCheckResult } from '@tarko/mcp-agent'; import { AgentTARSOptions } from './types'; import { BrowserManager } from './environments/local/browser'; import { AgentWebUIImplementation } from '@agent-tars/interface'; /** * AgentTARS - A multimodal AI agent with browser, filesystem, and search capabilities * * This class provides a comprehensive AI agent built on the Tarko framework, * offering seamless integration with browsers, file systems, and search providers. */ export declare class AgentTARS extends MCPAgent { static label: string; /** * Default Agent UI Configuration for Agent TARS */ static webuiConfig: AgentWebUIImplementation; private readonly workspace; private readonly tarsOptions; private readonly toolLogger; private readonly environment; private browserState; private messageHistoryDumper?; constructor(options: T); /** * Initialize the agent and all its components */ initialize(): Promise; /** * Handle tool call preprocessing - delegate to environment */ onBeforeToolCall(id: string, toolCall: { toolCallId: string; name: string; }, args: any): Promise; /** * Handle agent loop start - delegate to environment */ onEachAgentLoopStart(sessionId: string): Promise; /** * Handle post-tool call processing - delegate to environment */ onAfterToolCall(id: string, toolCall: { toolCallId: string; name: string; }, result: any): Promise; /** * Handle loop termination */ onBeforeLoopTermination(id: string, finalEvent: AgentEventStream.AssistantMessageEvent): Promise; /** * Handle session disposal - delegate to environment */ onDispose(): Promise; /** * Clean up all resources */ cleanup(): Promise; /** * Get browser control information */ getBrowserControlInfo(): { mode: string; tools: string[]; }; /** * Get the current working directory */ getWorkingDirectory(): string; /** * Get the logger instance */ getLogger(): ConsoleLogger; /** * Get the current abort signal */ getAbortSignal(): AbortSignal | undefined; /** * Get the browser manager instance */ getBrowserManager(): BrowserManager | undefined; onLLMRequest(id: string, payload: LLMRequestHookPayload): void; onLLMResponse(id: string, payload: LLMResponseHookPayload): void; /** * Build system instructions */ private static buildInstructions; /** * Initialize optional features */ private initializeOptionalFeatures; /** * Setup event stream handlers */ private setupEventHandlers; } //# sourceMappingURL=agent-tars.d.ts.map