Interface: AgentConfig
Prefactor TypeScript SDK / @prefactor/openclaw-prefactor-plugin / AgentConfig
Interface: AgentConfig
Section titled “Interface: AgentConfig”Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:124
Configuration for the Prefactor Agent HTTP client.
Properties
Section titled “Properties”apiUrl
Section titled “apiUrl”apiUrl:
string
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:125
Base URL of the Prefactor API.
apiToken
Section titled “apiToken”apiToken:
string
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:126
Bearer token used to authenticate API requests.
agentId
Section titled “agentId”agentId:
string
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:127
Unique identifier for this agent in the Prefactor backend.
maxRetries?
Section titled “maxRetries?”
optionalmaxRetries:number
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:128
Maximum number of retry attempts for failed HTTP requests. Defaults to 3.
initialRetryDelay?
Section titled “initialRetryDelay?”
optionalinitialRetryDelay: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.
requestTimeout?
Section titled “requestTimeout?”
optionalrequestTimeout:number
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:130
HTTP request timeout in milliseconds. Defaults to 30000.
openclawVersion?
Section titled “openclawVersion?”
optionalopenclawVersion:string
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:131
Version string of the OpenClaw runtime (used in the agent version identifier).
pluginVersion?
Section titled “pluginVersion?”
optionalpluginVersion: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).
userAgentVersion?
Section titled “userAgentVersion?”
optionaluserAgentVersion:string
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:133
Caller-supplied version tag appended to the agent version identifier.
userAgentName?
Section titled “userAgentName?”
optionaluserAgentName: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".
spanTypeRiskConfigs?
Section titled “spanTypeRiskConfigs?”
optionalspanTypeRiskConfigs:Record<string,DataRisk>
Defined in: packages/openclaw-prefactor-plugin/src/agent.ts:135