Commit Graph

1 Commits

Author SHA1 Message Date
JackChen 73d15a2d07 feat: add optional outputSchema (Zod) for structured agent output
When `outputSchema` is set on AgentConfig, the agent's final text output
is parsed as JSON, validated against the Zod schema, and exposed via
`result.structured`. On validation failure a single retry with error
feedback is attempted automatically.

Closes #29
2026-04-03 13:43:51 +08:00