Skip to content

feat(ai-core): schema-constrained structured output seam (generateObject) #501

Description

@rickylabs

Neither NetScript nor eis-chat does provider-native constrained output today (eis-chat uses app-specific fenced-JSON blocks, routes/api/chat.ts:165-227). Roadmap: a generateObject-shaped seam — Standard Schema in, provider response_format / tool-forcing under the hood — so consumers stop prompt-begging for JSON.

Acceptance criteria

  • Works on Anthropic + OpenAI-compatible adapters.
  • Validation failure surfaces a typed error; never silent malformed output.

Found by the beta.5 eis-chat validation gate (charter Step 3). Refs #219.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions