Skip to main content

AssembledPrompt

@forge/monorepo


@forge/monorepo / backend/src / AssembledPrompt

Type Alias: AssembledPrompt

AssembledPrompt = object

Defined in: backend/src/context/assembler.ts:39

Properties

modelContextTokens

readonly modelContextTokens: number

Defined in: backend/src/context/assembler.ts:52

The model's hard input limit this prompt was assembled against — #168.

Echoed back rather than left to the caller to remember. It is the denominator of every useful question about a prompt — how full is the window, how much is left, is this turn near the edge — and a caller holding the numerator while the limit lives somewhere else is a caller computing utilization against the wrong model the first time a policy resolves a different one.


preview

readonly preview: PromptPreview

Defined in: backend/src/context/assembler.ts:42


pruned

readonly pruned: readonly object[]

Defined in: backend/src/context/assembler.ts:54

Sections dropped, with why — for observability and the context inspector.


sections

readonly sections: readonly ContextSection[]

Defined in: backend/src/context/assembler.ts:41

Included sections, highest priority first within each bucket.


totalTokens

readonly totalTokens: number

Defined in: backend/src/context/assembler.ts:43