Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/agent / / OutputSpec

Interface: OutputSpec<TOutput>

Defined in: packages/agent/src/types.ts:58

Output type specification.

Stable

Type Parameters

Type Parameter
TOutput

Properties

PropertyModifierTypeDescriptionDefined in
description?readonlystringOptional description shown to the model alongside the schema.packages/agent/src/types.ts:63
kindreadonly"text" | "structured"-packages/agent/src/types.ts:59
schema?readonly{ parse: TOutput; }Optional Zod schema for structured output validation.packages/agent/src/types.ts:61
schema.parsepublicTOutput-packages/agent/src/types.ts:61