Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/agent / / PrepareStepHook
Type Alias: PrepareStepHook<TDeps>
ts
type PrepareStepHook<TDeps> = (ctx) =>
| Promise<PrepareStepOverrides<TDeps>>
| PrepareStepOverrides<TDeps>;Defined in: packages/agent/src/types.ts:69
Per-step override hook. Receives the current RunContext and may return overrides applied to the next provider call only.
Type Parameters
| Type Parameter | Default type |
|---|---|
TDeps | unknown |
Parameters
| Parameter | Type |
|---|---|
ctx | RunContext<TDeps> |
Returns
| Promise<PrepareStepOverrides<TDeps>> | PrepareStepOverrides<TDeps>