AgentMessageApiChartDeps
Interface: AgentMessageApiChartDeps
Defined in: src/core/agent/buildAgentMessageApiChart.ts:75
Properties
getRunId?
readonlyoptionalgetRunId?: () =>string|undefined
Defined in: src/core/agent/buildAgentMessageApiChart.ts:103
The id of the run this chart is about to make (9.91.0) — supply it and
Call-LLM mints a receipt on every turn of the loop, the fingerprint of
what the model was handed, committed at each call for receiptAt and
servedAt to read. The twin of MessageApiChartDeps.getRunId, and for
the same reason: this is a chart BUILDER handed to an executor the caller
owns, so the salt has to come from whoever starts the run.
OMIT IT AND NO RECEIPT IS MINTED — never an unsalted one. The rule and its
reason live in messageApiReceipt.ts; servedAt declares the absence and
rebuilds the view as it always did.
Returns
string | undefined
Example
(internal — `buildAgentMessageApiChart` is not on the package's
public surface; the type is, so a caller composing this chart inside the library reads the contract here)
const runId = `run-${Date.now()}`;
const chart = buildAgentMessageApiChart({ ...deps, getRunId: () => runId });
await new FlowChartExecutor(chart).run({ input: { message: 'hi' } });maxIterations?
readonlyoptionalmaxIterations?:number
Defined in: src/core/agent/buildAgentMessageApiChart.ts:80
model
readonlymodel:string
Defined in: src/core/agent/buildAgentMessageApiChart.ts:77
provider
readonlyprovider:LLMProvider
Defined in: src/core/agent/buildAgentMessageApiChart.ts:76
structureRecorders?
readonlyoptionalstructureRecorders?: readonlyStructureRecorder[]
Defined in: src/core/agent/buildAgentMessageApiChart.ts:81
systemPrompt
readonlysystemPrompt:string
Defined in: src/core/agent/buildAgentMessageApiChart.ts:78
tools
readonlytools: readonlyLLMToolSchema[]
Defined in: src/core/agent/buildAgentMessageApiChart.ts:79
