C# Класс rosette_api.TextEmbeddingResponse

Наследование: RosetteResponse
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Описание методов

Equals() публичный Метод

Equals override
public Equals ( object obj ) : bool
obj object The object to compare
Результат bool

GetHashCode() публичный Метод

Hashcode override
public GetHashCode ( ) : int
Результат int

TextEmbeddingResponse() публичный Метод

Creates a TextEmbeddingResponse from the API's raw output
public TextEmbeddingResponse ( HttpResponseMessage apiResult ) : System
apiResult System.Net.Http.HttpResponseMessage The API's output
Результат System

TextEmbeddingResponse() публичный Метод

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
Результат System