Documentation Index
Fetch the complete documentation index at: https://docs.cline.bot/llms.txt
Use this file to discover all available pages before exploring further.
Agent is an alias for AgentRuntime from @cline/agents.
Constructor
AgentRuntimeConfig accepts either:
- a prebuilt
model: AgentModel, or providerId,modelId, and optional provider credentials (apiKey,baseUrl,headers).
| Field | Type | Required | Description |
|---|---|---|---|
providerId | string | Yes, unless model supplied | Provider ID |
modelId | string | Yes, unless model supplied | Model ID |
apiKey | string | No | Provider API key |
baseUrl | string | No | Custom provider base URL |
systemPrompt | string | No | System instructions |
tools | AgentTool[] | No | Tools available to the runtime |
initialMessages | AgentMessage[] | No | Preloaded conversation |
toolPolicies | Record<string, ToolPolicy> | No | Per-tool enablement/approval |
hooks | AgentRuntimeHooks | No | Runtime lifecycle hooks |
Methods
run(input)
continue(input?)
abort(reason?)
subscribe(listener)
AgentRuntimeEvent events.
restore(messages)
snapshot()
AgentRuntimeStateSnapshot.

