OpenAIChatCompletionContent

OpenAI content type that serializes as either a plain string or a JSON array.

Uses OpenAIChatCompletionContentSerializer for polymorphic serialization:

  • Text serializes as a JSON string (e.g. "hello").

  • Parts serializes as a JSON array (e.g. [{"type":"text","text":"hello"}]).

Inheritors

Types

Link copied to clipboard

Multi-part content (e.g. text + images).

Link copied to clipboard

Plain text content.

Functions

Link copied to clipboard

Converts this to a core Content.Request.

Link copied to clipboard

Converts this to a core Content.Response.