- Normalize stream done event to always yield AgentRunResult
- Move transitionTo('completed') after afterRun to fix state ordering
- Strip hook functions from BeforeRunHookContext.agent to avoid self-references
- Pass originalPrompt to applyHookContext to avoid redundant message scan
- Clarify afterRun JSDoc: not called when the run throws
- Add tests: error-path skip, outputSchema+afterRun, ctx.agent shape, multi-turn hooks
|
||
|---|---|---|
| .. | ||
| agent | ||
| llm | ||
| memory | ||
| orchestrator | ||
| task | ||
| team | ||
| tool | ||
| utils | ||
| index.ts | ||
| types.ts | ||