AgentMessageApiChartDeps

Interface: AgentMessageApiChartDeps

Defined in: src/core/agent/buildAgentMessageApiChart.ts:75

Properties

getRunId?

readonly optional getRunId?: () => 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?

readonly optional maxIterations?: number

Defined in: src/core/agent/buildAgentMessageApiChart.ts:80


model

readonly model: string

Defined in: src/core/agent/buildAgentMessageApiChart.ts:77


provider

readonly provider: LLMProvider

Defined in: src/core/agent/buildAgentMessageApiChart.ts:76


structureRecorders?

readonly optional structureRecorders?: readonly StructureRecorder[]

Defined in: src/core/agent/buildAgentMessageApiChart.ts:81


systemPrompt

readonly systemPrompt: string

Defined in: src/core/agent/buildAgentMessageApiChart.ts:78


tools

readonly tools: readonly LLMToolSchema[]

Defined in: src/core/agent/buildAgentMessageApiChart.ts:79

On this page