gmi() and agent({ runtime: 'gmi' }) do not read an agent's responseSchema
What happened
agent({ runtime: 'gmi', responseSchema }) and gmi({ responseSchema }) take the option and never read it. generate() returns the model's reply unchecked: no validation, no retry and no result.parsed. On the legacy runtime, agent({ responseSchema }) validates generate()'s reply against the schema and sets result.parsed (agent.ts); the GMI path's generate() builds its turn without it (gmi.ts), and no construction warning names it.
Expected: generate() on the GMI runtime validates against the agent's responseSchema and sets parsed, as the legacy runtime does, or the GMI runtime refuses the option at construction, naming it, as it refuses voice, avatar and channels. souledAgent() refuses it on the GMI runtime from #900, so this covers agent() and gmi().
Steps to reproduce
import { z } from 'zod';
import { agent } from '@framers/agentos';
const a = agent({ runtime: 'gmi', provider: 'openai', model: 'gpt-4o', responseSchema: z.object({ count: z.number() }) });
const r = await a.generate('How many?'); // the model answers "three"
console.log(r.parsed); // undefined, and no error
A session's send(input, { responseSchema }) validates on both runtimes; only the agent-level option is unread.
Package and version
@framers/agentos 0.20.0 (master d85502981a22018e2125a535aea7d945ecdbcb8c).
Environment
Any.
Logs
None: nothing is logged.