C# Class rosette_api.TextEmbeddingResponse

Inheritance: RosetteResponse
Exibir arquivo Open project: rosette-api/csharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

Equals override
public Equals ( object obj ) : bool
obj object The object to compare
return bool

GetHashCode() public method

Hashcode override
public GetHashCode ( ) : int
return int

TextEmbeddingResponse() public method

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

TextEmbeddingResponse() public method

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
return System