axBuildDistillerDefinition Generated TypeScript API reference. typescript api api/reference build/apidocs/Function.axBuildDistillerDefinition.md function axBuildDistillerDefinition

axBuildDistillerDefinition

TypeScript
function axBuildDistillerDefinition(
   baseDefinition: undefined | string, 
   contextFields: readonly AxIField[], 
   options: Readonly<{
  contextMapText?: string;
  hasCompressedActionReplay?: boolean;
  hasInspectRuntime?: boolean;
  hasLiveRuntimeState?: boolean;
  isJavaScriptRuntime?: boolean;
  memoriesMode?: boolean;
  memoryUsageMode?: boolean;
  primitiveOverrides?: ReadonlyMap<string, readonly string[]>;
  promptLevel?: "default" | "detailed";
  runtimeCodeFenceLanguage?: string;
  runtimeCodeFieldTitle?: string;
  runtimeLanguageName?: string;
  runtimeUsageInstructions?: string;
  templateOverride?: string;
  usageTrackingMode?: boolean;
}>): string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/agent/rlm.ts#L508

Builds the context-understanding actor system prompt (the distiller). The distiller explores and distills long-context inputs into a concise evidence payload for the executor stage; it has no tools.

Parameters

ParameterType
baseDefinitionundefined | string
contextFieldsreadonly AxIField[]
optionsReadonly<{ contextMapText?: string; hasCompressedActionReplay?: boolean; hasInspectRuntime?: boolean; hasLiveRuntimeState?: boolean; isJavaScriptRuntime?: boolean; memoriesMode?: boolean; memoryUsageMode?: boolean; primitiveOverrides?: ReadonlyMap<string, readonly string[]>; promptLevel?: "default" | "detailed"; runtimeCodeFenceLanguage?: string; runtimeCodeFieldTitle?: string; runtimeLanguageName?: string; runtimeUsageInstructions?: string; templateOverride?: string; usageTrackingMode?: boolean; }>

Returns

string

Docs