AgentFlowConfig
Defined in: types.ts:139
Configuration for AgentFlow.
Example
const builder = createGraphBuilder({
agentId: 'portfolio-recon',
trigger: 'user-request',
});
Properties
adapters?
readonlyoptionaladapters?: readonlyAdapter[]
Defined in: types.ts:149
Framework adapters to install.
agentId?
readonlyoptionalagentId?:string
Defined in: types.ts:141
Identifier for the agent whose execution is being traced.
idGenerator?
readonlyoptionalidGenerator?: () =>string
Defined in: types.ts:151
Override the default counter-based ID generator.
Returns
string
logger?
readonlyoptionallogger?: (message) =>void
Defined in: types.ts:159
Custom logger (defaults to console.warn).
Parameters
| Parameter | Type |
|---|---|
message | string |
Returns
void
name?
readonlyoptionalname?:string
Defined in: types.ts:145
Display name for the execution graph.
onError?
readonlyoptionalonError?: (error) =>void
Defined in: types.ts:161
Error callback for internal failures.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
void
parentSpanId?
readonlyoptionalparentSpanId?:string
Defined in: types.ts:165
Parent span ID for linking to an upstream graph.
timeout?
readonlyoptionaltimeout?: {agent?:number;default?:number;tool?:number; }
Defined in: types.ts:153
Timeout configuration in milliseconds.
agent?
readonlyoptionalagent?:number
default?
readonlyoptionaldefault?:number
tool?
readonlyoptionaltool?:number
traceId?
readonlyoptionaltraceId?:string
Defined in: types.ts:163
Distributed trace ID to join an existing trace.
trigger?
readonlyoptionaltrigger?:string
Defined in: types.ts:143
What initiated this execution (e.g. "user-request", "cron-job").
writer?
readonlyoptionalwriter?:Writer
Defined in: types.ts:147
Output writer for completed graphs.