C# Class rosette_api.TextEmbeddingResponse

Inheritance: RosetteResponse
Afficher le fichier Open project: rosette-api/csharp Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool

Equals override

GetHashCode ( ) : int

Hashcode override

TextEmbeddingResponse ( HttpResponseMessage apiResult ) : System

Creates a TextEmbeddingResponse from the API's raw output

TextEmbeddingResponse ( IEnumerable textEmbedding, string>.Dictionary responseHeaders, object>.Dictionary content = null, String contentAsJson = null ) : System

Constructs a TextEmbedding Response from a text embedding, a collection of response headers, and content in a dictionary or content as JSON

Method Details

Equals() public méthode

Equals override
public Equals ( object obj ) : bool
obj object The object to compare
Résultat bool

GetHashCode() public méthode

Hashcode override
public GetHashCode ( ) : int
Résultat int

TextEmbeddingResponse() public méthode

Creates a TextEmbeddingResponse from the API's raw output
public TextEmbeddingResponse ( HttpResponseMessage apiResult ) : System
apiResult System.Net.Http.HttpResponseMessage The API's output
Résultat System

TextEmbeddingResponse() public méthode

Constructs a TextEmbedding Response from a text embedding, a collection of response headers, and content in a dictionary or content as JSON
public TextEmbeddingResponse ( IEnumerable textEmbedding, string>.Dictionary responseHeaders, object>.Dictionary content = null, String contentAsJson = null ) : System
textEmbedding IEnumerable The averaged text vector (text embedding)
responseHeaders string>.Dictionary The response headers from the API
content object>.Dictionary The content of the response (i.e. the textEmbedding list)
contentAsJson String The content as a JSON string
Résultat System