LanguageModelV4ResponseFormat
Namespace: E2E.Decision.Sdk
public sealed record LanguageModelV4ResponseFormat : IEquatable<LanguageModelV4ResponseFormat>The responseFormat of LanguageModelV4CallOptions: text, or JSON with an optional schema.
Inheritance: object
Implements: IEquatable<LanguageModelV4ResponseFormat>
Properties
Section titled “Properties”Description
Section titled “Description”public string? Description { get; init; }Description of the output that should be generated, used by some providers for additional guidance (json only).
Value: string
public string? Name { get; init; }Name of the output that should be generated, used by some providers for additional guidance (json only).
Value: string
Schema
Section titled “Schema”public JsonElement? Schema { get; init; }JSON schema that the generated output should conform to (json only).
Value: JsonElement?
public static LanguageModelV4ResponseFormat Text { get; }Plain text output.
Value: LanguageModelV4ResponseFormat
public required string Type { get; init; }The format type: text or json.
Value: string
Methods
Section titled “Methods”Json(JsonElement?, string?, string?)
Section titled “Json(JsonElement?, string?, string?)”public static LanguageModelV4ResponseFormat Json(JsonElement? schema = null, string? name = null, string? description = null)JSON output, optionally guided by a schema.
Parameters
| Name | Type | Description |
|---|---|---|
schema |
JsonElement? | |
name |
string | |
description |
string |
Returns: LanguageModelV4ResponseFormat