Skip to main content

Interface: IContextInput

Defined in: internal/context-assembler/types.ts:108

Everything one call needs, gathered by the gateway.

Properties​

context?​

optional context?: string

Defined in: internal/context-assembler/types.ts:154

Text of the {context} slot, from IGatewayAskInput.context.

What the user is looking at, rendered under a "data, not instructions" label after {instructions}.

Example​

"Invoice 4711, status OVERDUE, due 2026-09-30" - the record open on screen

Default​

""

inlineFiles​

inlineFiles: IInlineFilePart[]

Defined in: internal/context-assembler/types.ts:120

Files of the current user turn, already loaded as bytes.


instructions?​

optional instructions?: string

Defined in: internal/context-assembler/types.ts:144

Text of the {instructions} slot, from IGatewayAskInput.instructions.

The app's rule for this call only, rendered as is after {addendum}.

Example​

"Summarise the invoice in three bullet points." - sent by the "Summarise" button of the invoice screen

Default​

""

model​

model: IModelInfo

Defined in: internal/context-assembler/types.ts:112

The resolved model: its provider, its window and its caps decide the trim and the files.


outputFormat?​

optional outputFormat?: EOutputFormat

Defined in: internal/context-assembler/types.ts:158

Format of a text answer. Default MARKDOWN; no format instruction when outputSchema is given.


outputSchema?​

optional outputSchema?: ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

Defined in: internal/context-assembler/types.ts:156

Optional structured output.


profile​

profile: IAIProfile

Defined in: internal/context-assembler/types.ts:110

The profile of the call: its addendum, its output limit, its memory strategy.


retrieval​

retrieval: IRetrievalResult

Defined in: internal/context-assembler/types.ts:122

The knowledge-base search of the call: whether it ran and what it found, for the {kb} slot.


skills?​

optional skills?: ISkill[]

Defined in: internal/context-assembler/types.ts:134

The skills of the call, for the {skills} slot (D124).

The resolved list: the profile's skills, then the call's (SkillRegistry.resolve).

Listed by name and description when tools holds dyna_aigw_load_skill, written out in full otherwise.

Default​

[] - no skills, the slot renders to nothing

temperature?​

optional temperature?: number

Defined in: internal/context-assembler/types.ts:160

Sampling temperature of the request; omit for the provider default.


threadId​

threadId: string

Defined in: internal/context-assembler/types.ts:118

Thread the request is for; the working memory is asked for its window with it.


tools​

tools: IToolDef<unknown, unknown>[]

Defined in: internal/context-assembler/types.ts:124

The tools of the call; read only to see whether dyna_aigw_load_skill is offered (the skills are then listed, not inlined).


userContext​

userContext: IUserContext

Defined in: internal/context-assembler/types.ts:114

Who is asking: tenant, locale, timezone and "now" for the {today} slot.


userFacts​

userFacts: IUserMemoryFact[]

Defined in: internal/context-assembler/types.ts:116

What is known about the user, rendered into {memory} before the thread's notes.