Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Common SDK type surfaces.
@cline/shared
import type { AgentMessage, AgentMessagePart, AgentRunResult, AgentRuntimeEvent, AgentRuntimeStateSnapshot, AgentUsage, } from "@cline/sdk"
AgentRunResult
AgentRuntime
Agent
interface AgentRunResult { agentId: string agentRole?: string runId: string status: "completed" | "aborted" | "failed" iterations: number outputText: string messages: readonly AgentMessage[] usage: AgentUsage error?: Error }
import type { AgentConfig, AgentEvent, AgentResult, AgentPlugin, AgentTool, AgentToolContext, ToolPolicy, } from "@cline/sdk"
AgentResult
interface AgentResult { text: string usage: LegacyAgentUsage messages: MessageWithMetadata[] toolCalls: ToolCallRecord[] iterations: number finishReason: "completed" | "max_iterations" | "aborted" | "mistake_limit" | "error" model: { id: string; provider: string; info?: ModelInfo } startedAt: Date endedAt: Date durationMs: number }
import type { ClineCoreOptions, ClineCoreStartInput, CoreSessionConfig, SessionRecord, } from "@cline/sdk"
interface ToolPolicy { enabled?: boolean autoApprove?: boolean }
Was this page helpful?