Skip to content

Class: AgentInstanceClient

Prefactor TypeScript SDK


Prefactor TypeScript SDK / @prefactor/core / AgentInstanceClient

Defined in: packages/core/src/transport/http/agent-instance-client.ts:46

new AgentInstanceClient(httpClient): AgentInstanceClient

Defined in: packages/core/src/transport/http/agent-instance-client.ts:47

HttpRequester

AgentInstanceClient

register(payload): Promise<AgentInstanceResponse>

Defined in: packages/core/src/transport/http/agent-instance-client.ts:49

AgentInstanceRegisterPayload

Promise<AgentInstanceResponse>


start(agentInstanceId, options?): Promise<AgentInstanceResponse>

Defined in: packages/core/src/transport/http/agent-instance-client.ts:56

string

AgentInstanceStartOptions

Promise<AgentInstanceResponse>


finish(agentInstanceId, options?): Promise<AgentInstanceResponse>

Defined in: packages/core/src/transport/http/agent-instance-client.ts:67

string

AgentInstanceFinishOptions

Promise<AgentInstanceResponse>


recordQuality(agentInstanceId, payload): Promise<AgentInstanceResponse>

Defined in: packages/core/src/transport/http/agent-instance-client.ts:88

Records a named quality payload on an agent instance.

A null payload removes the recorded value for that name. Other names are left unchanged. An idempotency key is auto-generated when omitted.

string

Backend agent instance ID.

AgentInstanceRecordQualityPayload

Quality schema name and payload (or null to remove).

Promise<AgentInstanceResponse>

The API response containing the updated instance details.