Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/agent / / OutputSpec
Interface: OutputSpec<TOutput>
Defined in: packages/agent/src/types.ts:55
Output type specification.
Stable
Type Parameters
| Type Parameter |
|---|
TOutput |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
description? | readonly | string | Optional description shown to the model alongside the schema. | packages/agent/src/types.ts:60 |
kind | readonly | "text" | "structured" | - | packages/agent/src/types.ts:56 |
schema? | readonly | { parse: TOutput; } | Optional Zod schema for structured output validation. | packages/agent/src/types.ts:58 |
schema.parse | public | TOutput | - | packages/agent/src/types.ts:58 |