[KongchangAI]
ConceptprepareStep hook

prepareStep

A hook function in AI SDK Agent workflows that allows developers to dynamically adjust the configuration of each step before it executes, including model parameters, tool sets, and runtime context.

Timeline (last 90 days)

Nov 17

After the fix f3d7a10, WorkflowAgent passes the runtimeContext returned by prepareStep to that step's approval policy, instead of continuing to use the context from when the call started.

Unverified50%
Nov 17

prepareStep is a hook for Agent workflows in the AI SDK that allows developers to dynamically adjust a step's configuration before each step executes, including model parameters, tool sets, and runtimeContext.

Unverified50%
Nov 13

The semantics of WorkflowAgent's prepareStep return value have been aligned: the returned instructions (or the deprecated system) replace the current step's instructions and propagate onward, providerOptions are merged with the agent options, and headers override the call's own headers.

Unverified50%

All Facts (3)

Source Articles