Skip to content
1 min read · 62 words

Type Alias: StandingInstructionsRefreshFn

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

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.