Skip to content
1 min read · 65 words

Type Alias: StandingInstructionsRefreshFn

ts
type StandingInstructionsRefreshFn = (
  ctx: TurnContext,
) => (string | Tokenizable)[] | Promise<(string | Tokenizable)[]>;

Defined in: lib/contracts/turn_runner_context.ts:152

A function that refreshes and returns the standing instructions for the current turn.

Parameters

ParameterType
ctxTurnContext

Returns

| (string | Tokenizable)[] | Promise<(string | Tokenizable)[]>

Remarks

Called to re-derive standing instructions mid-turn when they may have changed. May be synchronous or asynchronous.