Skip to content

Documentation / @agentick/shared / ResponseFormat

Type Alias: ResponseFormat ​

ResponseFormat = { type: "text"; } | { type: "json"; } | { name?: string; schema: Record<string, unknown>; type: "json_schema"; }

Defined in: models.ts:27

Normalized response format across providers.

  • text: Free-form text (default behavior, no constraint).
  • json: JSON output (provider ensures valid JSON).
  • json_schema: Structured output conforming to a JSON Schema. Users call zodToJsonSchema() themselves if using Zod.

Released under the ISC License.