OutputStrategies
Namespace: Vercel.AI.GenerateText
public static class OutputStrategiesArray output schema wrapping. Maps to the array branch of getOutputStrategy.
Inheritance: object
Methods
Section titled “Methods”WrapArrayOutputSchema(JsonElement)
Section titled “WrapArrayOutputSchema(JsonElement)”public static JsonElement WrapArrayOutputSchema(JsonElement elementSchema)Wraps an element schema in { elements: array } and lifts root definitions or $defs
so root-relative references stay valid.
Parameters
| Name | Type | Description |
|---|---|---|
elementSchema |
JsonElement |
Returns: JsonElement
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product