C# 클래스 rosette_api.TextEmbeddingResponse

상속: RosetteResponse
파일 보기 프로젝트 열기: rosette-api/csharp 1 사용 예제들

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