Skip to content

Interface: AgentConfig

Prefactor TypeScript SDK


Prefactor TypeScript SDK / @prefactor/openclaw-prefactor-plugin / AgentConfig

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:124

Configuration for the Prefactor Agent HTTP client.

apiUrl: string

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:125

Base URL of the Prefactor API.


apiToken: string

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:126

Bearer token used to authenticate API requests.


agentId: string

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:127

Unique identifier for this agent in the Prefactor backend.


optional maxRetries: number

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:128

Maximum number of retry attempts for failed HTTP requests. Defaults to 3.


optional initialRetryDelay: number

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:129

Initial delay in milliseconds before the first retry, doubled on each subsequent attempt. Defaults to 1000.


optional requestTimeout: number

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:130

HTTP request timeout in milliseconds. Defaults to 30000.


optional openclawVersion: string

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:131

Version string of the OpenClaw runtime (used in the agent version identifier).


optional pluginVersion: string

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:132

Version string of the Prefactor plugin (used in the agent and schema version identifiers).


optional userAgentVersion: string

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:133

Caller-supplied version tag appended to the agent version identifier.


optional userAgentName: string

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:134

Human-readable name for this agent shown in the Prefactor UI. Defaults to "OpenClaw Agent".


optional spanTypeRiskConfigs: Record<string, DataRisk>

Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:135