Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Instructions, Context, and Token Limits

A model’s context contains the instructions and data it can use for one request. Instructions, conversation history, retrieved passages, and tool results compete for that context.

A short walkthrough of instructions, context, and token limits.

Before you begin

A model selected for the node and access to its prompt and context settings.

Context and tokens

Term
Definition

Context window

The amount of information a model can consider for a request. Instructions, history, source passages, and tool results compete for this capacity.

Token

A unit used by a model to process text or other supported input and output. Token counts do not map to a fixed number of words across content and models.

Tool result

The returned data or error from a tool operation. The agent should base its report on this result rather than assuming the call succeeded.

Configuration options

Option
Purpose
Behavior

Instructions

Directions that define the task, constraints, and expected response.

Keep them distinct from source text or tool results used as evidence.

Output limit

A cap on generated response length.

Reaching it can truncate the response; it does not increase available input context.

Prepare instructions and context

  1. Write a clear task instruction and define the required response.

  2. Map only the source material needed for the request.

  3. Inspect long conversations and large tool results when the model omits details or reaches a limit.

Answer format and limits controls in StackAI
Max Output Length limits the generated response. It is separate from the model’s context window, which must accommodate the input and other context. Increasing the output limit does not make an oversized input fit. Check the selected model’s supported limits before changing either setting.

The model receives the required task and evidence within its supported context.

Behavior and limitations

Context limits and output limits are different. Increasing the output limit does not create more room for input. Older conversation content can be omitted when the request reaches the model’s context limit. Stored history can therefore contain messages that the model does not receive for every answer.

Model Settings and Supported Capabilities

Was this helpful?