Interface: PrefactorOptions\<TMiddleware\>
Prefactor TypeScript SDK / @prefactor/core / PrefactorOptions
Interface: PrefactorOptions<TMiddleware>
Section titled “Interface: PrefactorOptions<TMiddleware>”Defined in: packages/core/src/client.ts:153
Options for initializing the global Prefactor client.
Type Parameters
Section titled “Type Parameters”TMiddleware
Section titled “TMiddleware”TMiddleware = MiddlewareLike
Properties
Section titled “Properties”provider
Section titled “provider”provider:
PrefactorProvider<TMiddleware>
Defined in: packages/core/src/client.ts:155
Provider integration used to create middleware and defaults.
httpConfig?
Section titled “httpConfig?”
optionalhttpConfig:object
Defined in: packages/core/src/client.ts:157
Optional HTTP configuration overrides for the runtime config.
apiUrl
Section titled “apiUrl”apiUrl:
string
apiToken
Section titled “apiToken”apiToken:
string
agentId?
Section titled “agentId?”
optionalagentId:string
agentIdentifier?
Section titled “agentIdentifier?”
optionalagentIdentifier:string
agentName?
Section titled “agentName?”
optionalagentName:string
agentDescription?
Section titled “agentDescription?”
optionalagentDescription:string
agentSchema?
Section titled “agentSchema?”
optionalagentSchema:Record<string,unknown>
requestTimeout?
Section titled “requestTimeout?”
optionalrequestTimeout:number
maxRetries?
Section titled “maxRetries?”
optionalmaxRetries:number
initialRetryDelay?
Section titled “initialRetryDelay?”
optionalinitialRetryDelay:number
maxRetryDelay?
Section titled “maxRetryDelay?”
optionalmaxRetryDelay:number
retryMultiplier?
Section titled “retryMultiplier?”
optionalretryMultiplier:number
retryOnStatusCodes?
Section titled “retryOnStatusCodes?”
optionalretryOnStatusCodes:number[]
failureHandling?
Section titled “failureHandling?”
optionalfailureHandling:object
Defined in: packages/core/src/client.ts:159
Optional failure handling callbacks for transport errors.
onFatalError()?
Section titled “onFatalError()?”
optionalonFatalError: (error) =>void
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void