AxAgentRuntimeExecutionContext Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAgentRuntimeExecutionContext.md type AxAgentRuntimeExecutionContext

AxAgentRuntimeExecutionContext

TypeScript
type AxAgentRuntimeExecutionContext = object;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L138

Properties

applyBootstrapRuntimeContext()

TypeScript
applyBootstrapRuntimeContext: () => Promise<string | undefined>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L141

Returns

Promise<string | undefined>


bootstrapContextSummary?

TypeScript
optional bootstrapContextSummary: string;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L140


captureRuntimeStateSummary()

TypeScript
captureRuntimeStateSummary: () => Promise<string | undefined>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L142

Returns

Promise<string | undefined>


close()

TypeScript
close: () => void;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L167

Returns

void


consumeDiscoveryTurnArtifacts()

TypeScript
consumeDiscoveryTurnArtifacts: () => object;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L143

Returns

object

NameType
summary?string
textsstring[]

effectiveContextConfig

TypeScript
effectiveContextConfig: AxResolvedContextPolicy;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L139


executeActorCode()

TypeScript
executeActorCode: (code: string) => Promise<{
  isError: boolean;
  output: string;
  result: unknown;
}>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L156

Parameters

ParameterType
codestring

Returns

Promise<{ isError: boolean; output: string; result: unknown; }>


executeTestCode()

TypeScript
executeTestCode: (code: string) => Promise<AxAgentTestResult>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L159

Parameters

ParameterType
codestring

Returns

Promise<AxAgentTestResult>


exportRuntimeState()

TypeScript
exportRuntimeState: (options?: Readonly<{
  includeBindings?: boolean;
}>) => Promise<AxAgentState>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L148

Parameters

ParameterType
options?Readonly<{ includeBindings?: boolean; }>

Returns

Promise<AxAgentState>


getActorModelMatchedNamespaces()

TypeScript
getActorModelMatchedNamespaces: () => readonly string[];

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L147

Returns

readonly string[]


prepareSharedSession()?

TypeScript
optional prepareSharedSession: () => Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L166

Present only when the run participates in a pipeline-owned shared runtime session. The actor loop awaits it before the first turn: the distiller phase adopts the fresh session, the executor phase patches its bindings over the inherited one and runs the phase-boundary snippet.

Returns

Promise<void>


restoreRuntimeState()

TypeScript
restoreRuntimeState: (state: Readonly<AxAgentState>, options?: Readonly<{
  skipBindings?: boolean;
}>) => Promise<AxPreparedRestoredState>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L151

Parameters

ParameterType
stateReadonly<AxAgentState>
options?Readonly<{ skipBindings?: boolean; }>

Returns

Promise<AxPreparedRestoredState>


syncRuntimeInputsToSession()

TypeScript
syncRuntimeInputsToSession: () => Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/agentInternalTypes.ts#L155

Returns

Promise<void>

Docs