Class ModelResponse
Base class for all responses from AI models.
Inheritance
object
ModelResponse
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public abstract class ModelResponse
Properties
CreatedAt
The Unix timestamp (in seconds) of when this object was created.
Declaration
public UnixTime? CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
UnixTime? |
Id
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
Metadata
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
Declaration
public Dictionary<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Model
ID of the model.
Declaration
public string Model { get; set; }
Property Value
Type | Description |
---|---|
string |
Object
The object type
Declaration
public string Object { get; set; }
Property Value
Type | Description |
---|---|
string |
Usage
How much tokens were used for the request.
Declaration
public Usage Usage { get; set; }
Property Value
Type | Description |
---|---|
Usage |