GeneratedContent
A type that represents structured, generated content.
Declaration
struct GeneratedContentMentioned in
Overview
Generated content may contain a single value, an array, or key-value pairs with unique keys.
Topics
Creating generated content
Creating content from properties
Creating content from JSON
Creating content from kind
Accessing instance properties
Getting the debug description
Reads a value from the concrete type
Retrieving the schema and content
Getting the unique generation id
See Also
Streaming a response
streamResponse(to:options:)streamResponse(to:generating:includeSchemaInPrompt:options:)streamResponse(to:schema:includeSchemaInPrompt:options:)streamResponse(options:prompt:)streamResponse(generating:includeSchemaInPrompt:options:prompt:)streamResponse(schema:includeSchemaInPrompt:options:prompt:)LanguageModelSession.ResponseStreamConvertibleFromGeneratedContentConvertibleToGeneratedContent