Skip to main content

Context System

The context system controls how data flows between actions. It refers to upstream outputs, it controls what the LLM can see, and it passes fields to downstream actions.

Core Concepts​

ConceptPurposeSyntax
Field ReferencesGets the outputs of upstream actions{{ action_name.field }}
Context ScopeControls which data an action can see and how data flowscontext_scope: {observe, drop, passthrough, seed, retrieve}
Seed DataLoads static reference dataseed: {name: $file:path}
RetrieveSearches a knowledge base, or the records of an earlier action, for each record and gives the prompt the matchesretrieve: {name: {from: base, query: [source.text]}}

Learn More​