feat(workflow): generic AgentFn<I> + adaptAgent utility #329

Closed
xiaoju wants to merge 1 commits from feat/327-generic-agentfn into main

1 Commits

Author SHA1 Message Date
xiaoju 611de496da feat(workflow): generic AgentFn<I> + adaptAgent utility
AgentFn is now AgentFn<I = string> — preserving backward compatibility
while allowing specialized input types for non-LLM agents (e.g. Cursor).

Added adaptAgent<I>(schema, agent) in workflow-utils: bridges any
AgentFn<I> to AgentFn<string> via Zod schema parsing.

Refs #327, Phase 1 of #328
2026-05-14 07:50:50 +00:00