opentyphoon library

Classes

Choice
Represents a single generated choice/completion in the response.
Content
A utility class for creating message content structures.
GenerateContentResponse
A class representing the response from a content generation API.
GenerativeModel
A class for generating content using OpenTyphoon's generative AI models.
Message
Represents a message in the response.
OpenTyphoon
A class representing the OpenTyphoon service interface.
Usage
Represents usage statistics for the API request.

Functions

generateContentResponseFromJson(String str) GenerateContentResponse
Converts a JSON string to a GenerateContentResponse object.
generateContentResponseToJson(GenerateContentResponse data) String
Converts a GenerateContentResponse object to a JSON string.