Documentation ¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewCommentsCreateRequest(server string, body CommentsCreateJSONRequestBody) (*http.Request, error)
- func NewCommentsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCommentsGetByIdRequest(server string, commentId string) (*http.Request, error)
- func NewCommentsGetRequest(server string, params *CommentsGetParams) (*http.Request, error)
- func NewDatasetItemsCreateRequest(server string, body DatasetItemsCreateJSONRequestBody) (*http.Request, error)
- func NewDatasetItemsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDatasetItemsGetRequest(server string, id string) (*http.Request, error)
- func NewDatasetItemsListRequest(server string, params *DatasetItemsListParams) (*http.Request, error)
- func NewDatasetRunItemsCreateRequest(server string, body DatasetRunItemsCreateJSONRequestBody) (*http.Request, error)
- func NewDatasetRunItemsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDatasetsCreateRequest(server string, body DatasetsCreateJSONRequestBody) (*http.Request, error)
- func NewDatasetsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDatasetsGetRequest(server string, datasetName string) (*http.Request, error)
- func NewDatasetsGetRunRequest(server string, datasetName string, runName string) (*http.Request, error)
- func NewDatasetsGetRunsRequest(server string, datasetName string, params *DatasetsGetRunsParams) (*http.Request, error)
- func NewDatasetsListRequest(server string, params *DatasetsListParams) (*http.Request, error)
- func NewHealthHealthRequest(server string) (*http.Request, error)
- func NewIngestionBatchRequest(server string, body IngestionBatchJSONRequestBody) (*http.Request, error)
- func NewIngestionBatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMediaGetRequest(server string, mediaId string) (*http.Request, error)
- func NewMediaGetUploadUrlRequest(server string, body MediaGetUploadUrlJSONRequestBody) (*http.Request, error)
- func NewMediaGetUploadUrlRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMediaPatchRequest(server string, mediaId string, body MediaPatchJSONRequestBody) (*http.Request, error)
- func NewMediaPatchRequestWithBody(server string, mediaId string, contentType string, body io.Reader) (*http.Request, error)
- func NewMetricsDailyRequest(server string, params *MetricsDailyParams) (*http.Request, error)
- func NewModelsCreateRequest(server string, body ModelsCreateJSONRequestBody) (*http.Request, error)
- func NewModelsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewModelsDeleteRequest(server string, id string) (*http.Request, error)
- func NewModelsGetRequest(server string, id string) (*http.Request, error)
- func NewModelsListRequest(server string, params *ModelsListParams) (*http.Request, error)
- func NewObservationsGetManyRequest(server string, params *ObservationsGetManyParams) (*http.Request, error)
- func NewObservationsGetRequest(server string, observationId string) (*http.Request, error)
- func NewProjectsGetRequest(server string) (*http.Request, error)
- func NewPromptsCreateRequest(server string, body PromptsCreateJSONRequestBody) (*http.Request, error)
- func NewPromptsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPromptsGetRequest(server string, promptName string, params *PromptsGetParams) (*http.Request, error)
- func NewPromptsListRequest(server string, params *PromptsListParams) (*http.Request, error)
- func NewScoreConfigsCreateRequest(server string, body ScoreConfigsCreateJSONRequestBody) (*http.Request, error)
- func NewScoreConfigsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewScoreConfigsGetByIdRequest(server string, configId string) (*http.Request, error)
- func NewScoreConfigsGetRequest(server string, params *ScoreConfigsGetParams) (*http.Request, error)
- func NewScoreCreateRequest(server string, body ScoreCreateJSONRequestBody) (*http.Request, error)
- func NewScoreCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewScoreDeleteRequest(server string, scoreId string) (*http.Request, error)
- func NewScoreGetByIdRequest(server string, scoreId string) (*http.Request, error)
- func NewScoreGetRequest(server string, params *ScoreGetParams) (*http.Request, error)
- func NewSessionsGetRequest(server string, sessionId string) (*http.Request, error)
- func NewSessionsListRequest(server string, params *SessionsListParams) (*http.Request, error)
- func NewTraceGetRequest(server string, traceId string) (*http.Request, error)
- func NewTraceListRequest(server string, params *TraceListParams) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type BaseEvent
- type BasePrompt
- type BaseScore
- type BooleanScore
- type CategoricalScore
- type ChatMessage
- type ChatPrompt
- type Client
- func (c *Client) CommentsCreate(ctx context.Context, body CommentsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CommentsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CommentsGet(ctx context.Context, params *CommentsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CommentsGetById(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DatasetItemsCreate(ctx context.Context, body DatasetItemsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DatasetItemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DatasetItemsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DatasetItemsList(ctx context.Context, params *DatasetItemsListParams, ...) (*http.Response, error)
- func (c *Client) DatasetRunItemsCreate(ctx context.Context, body DatasetRunItemsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DatasetRunItemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DatasetsCreate(ctx context.Context, body DatasetsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DatasetsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DatasetsGet(ctx context.Context, datasetName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DatasetsGetRun(ctx context.Context, datasetName string, runName string, ...) (*http.Response, error)
- func (c *Client) DatasetsGetRuns(ctx context.Context, datasetName string, params *DatasetsGetRunsParams, ...) (*http.Response, error)
- func (c *Client) DatasetsList(ctx context.Context, params *DatasetsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HealthHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IngestionBatch(ctx context.Context, body IngestionBatchJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) IngestionBatchWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MediaGet(ctx context.Context, mediaId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MediaGetUploadUrl(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MediaGetUploadUrlWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MediaPatch(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MediaPatchWithBody(ctx context.Context, mediaId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MetricsDaily(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ModelsCreate(ctx context.Context, body ModelsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ModelsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ModelsDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ModelsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ModelsList(ctx context.Context, params *ModelsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ObservationsGet(ctx context.Context, observationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ObservationsGetMany(ctx context.Context, params *ObservationsGetManyParams, ...) (*http.Response, error)
- func (c *Client) ProjectsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PromptsCreate(ctx context.Context, body PromptsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PromptsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PromptsGet(ctx context.Context, promptName string, params *PromptsGetParams, ...) (*http.Response, error)
- func (c *Client) PromptsList(ctx context.Context, params *PromptsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScoreConfigsCreate(ctx context.Context, body ScoreConfigsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ScoreConfigsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ScoreConfigsGet(ctx context.Context, params *ScoreConfigsGetParams, ...) (*http.Response, error)
- func (c *Client) ScoreConfigsGetById(ctx context.Context, configId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScoreCreate(ctx context.Context, body ScoreCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ScoreCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ScoreDelete(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScoreGet(ctx context.Context, params *ScoreGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScoreGetById(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SessionsGet(ctx context.Context, sessionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SessionsList(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TraceGet(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TraceList(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CommentsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CommentsCreateResponse, error)
- func (c *ClientWithResponses) CommentsCreateWithResponse(ctx context.Context, body CommentsCreateJSONRequestBody, ...) (*CommentsCreateResponse, error)
- func (c *ClientWithResponses) CommentsGetByIdWithResponse(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*CommentsGetByIdResponse, error)
- func (c *ClientWithResponses) CommentsGetWithResponse(ctx context.Context, params *CommentsGetParams, reqEditors ...RequestEditorFn) (*CommentsGetResponse, error)
- func (c *ClientWithResponses) DatasetItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DatasetItemsCreateResponse, error)
- func (c *ClientWithResponses) DatasetItemsCreateWithResponse(ctx context.Context, body DatasetItemsCreateJSONRequestBody, ...) (*DatasetItemsCreateResponse, error)
- func (c *ClientWithResponses) DatasetItemsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DatasetItemsGetResponse, error)
- func (c *ClientWithResponses) DatasetItemsListWithResponse(ctx context.Context, params *DatasetItemsListParams, ...) (*DatasetItemsListResponse, error)
- func (c *ClientWithResponses) DatasetRunItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DatasetRunItemsCreateResponse, error)
- func (c *ClientWithResponses) DatasetRunItemsCreateWithResponse(ctx context.Context, body DatasetRunItemsCreateJSONRequestBody, ...) (*DatasetRunItemsCreateResponse, error)
- func (c *ClientWithResponses) DatasetsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DatasetsCreateResponse, error)
- func (c *ClientWithResponses) DatasetsCreateWithResponse(ctx context.Context, body DatasetsCreateJSONRequestBody, ...) (*DatasetsCreateResponse, error)
- func (c *ClientWithResponses) DatasetsGetRunWithResponse(ctx context.Context, datasetName string, runName string, ...) (*DatasetsGetRunResponse, error)
- func (c *ClientWithResponses) DatasetsGetRunsWithResponse(ctx context.Context, datasetName string, params *DatasetsGetRunsParams, ...) (*DatasetsGetRunsResponse, error)
- func (c *ClientWithResponses) DatasetsGetWithResponse(ctx context.Context, datasetName string, reqEditors ...RequestEditorFn) (*DatasetsGetResponse, error)
- func (c *ClientWithResponses) DatasetsListWithResponse(ctx context.Context, params *DatasetsListParams, reqEditors ...RequestEditorFn) (*DatasetsListResponse, error)
- func (c *ClientWithResponses) HealthHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthHealthResponse, error)
- func (c *ClientWithResponses) IngestionBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IngestionBatchResponse, error)
- func (c *ClientWithResponses) IngestionBatchWithResponse(ctx context.Context, body IngestionBatchJSONRequestBody, ...) (*IngestionBatchResponse, error)
- func (c *ClientWithResponses) MediaGetUploadUrlWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MediaGetUploadUrlResponse, error)
- func (c *ClientWithResponses) MediaGetUploadUrlWithResponse(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, ...) (*MediaGetUploadUrlResponse, error)
- func (c *ClientWithResponses) MediaGetWithResponse(ctx context.Context, mediaId string, reqEditors ...RequestEditorFn) (*MediaGetResponse, error)
- func (c *ClientWithResponses) MediaPatchWithBodyWithResponse(ctx context.Context, mediaId string, contentType string, body io.Reader, ...) (*MediaPatchResponse, error)
- func (c *ClientWithResponses) MediaPatchWithResponse(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, ...) (*MediaPatchResponse, error)
- func (c *ClientWithResponses) MetricsDailyWithResponse(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*MetricsDailyResponse, error)
- func (c *ClientWithResponses) ModelsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ModelsCreateResponse, error)
- func (c *ClientWithResponses) ModelsCreateWithResponse(ctx context.Context, body ModelsCreateJSONRequestBody, ...) (*ModelsCreateResponse, error)
- func (c *ClientWithResponses) ModelsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ModelsDeleteResponse, error)
- func (c *ClientWithResponses) ModelsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ModelsGetResponse, error)
- func (c *ClientWithResponses) ModelsListWithResponse(ctx context.Context, params *ModelsListParams, reqEditors ...RequestEditorFn) (*ModelsListResponse, error)
- func (c *ClientWithResponses) ObservationsGetManyWithResponse(ctx context.Context, params *ObservationsGetManyParams, ...) (*ObservationsGetManyResponse, error)
- func (c *ClientWithResponses) ObservationsGetWithResponse(ctx context.Context, observationId string, reqEditors ...RequestEditorFn) (*ObservationsGetResponse, error)
- func (c *ClientWithResponses) ProjectsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProjectsGetResponse, error)
- func (c *ClientWithResponses) PromptsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PromptsCreateResponse, error)
- func (c *ClientWithResponses) PromptsCreateWithResponse(ctx context.Context, body PromptsCreateJSONRequestBody, ...) (*PromptsCreateResponse, error)
- func (c *ClientWithResponses) PromptsGetWithResponse(ctx context.Context, promptName string, params *PromptsGetParams, ...) (*PromptsGetResponse, error)
- func (c *ClientWithResponses) PromptsListWithResponse(ctx context.Context, params *PromptsListParams, reqEditors ...RequestEditorFn) (*PromptsListResponse, error)
- func (c *ClientWithResponses) ScoreConfigsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ScoreConfigsCreateResponse, error)
- func (c *ClientWithResponses) ScoreConfigsCreateWithResponse(ctx context.Context, body ScoreConfigsCreateJSONRequestBody, ...) (*ScoreConfigsCreateResponse, error)
- func (c *ClientWithResponses) ScoreConfigsGetByIdWithResponse(ctx context.Context, configId string, reqEditors ...RequestEditorFn) (*ScoreConfigsGetByIdResponse, error)
- func (c *ClientWithResponses) ScoreConfigsGetWithResponse(ctx context.Context, params *ScoreConfigsGetParams, ...) (*ScoreConfigsGetResponse, error)
- func (c *ClientWithResponses) ScoreCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ScoreCreateResponse, error)
- func (c *ClientWithResponses) ScoreCreateWithResponse(ctx context.Context, body ScoreCreateJSONRequestBody, ...) (*ScoreCreateResponse, error)
- func (c *ClientWithResponses) ScoreDeleteWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreDeleteResponse, error)
- func (c *ClientWithResponses) ScoreGetByIdWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreGetByIdResponse, error)
- func (c *ClientWithResponses) ScoreGetWithResponse(ctx context.Context, params *ScoreGetParams, reqEditors ...RequestEditorFn) (*ScoreGetResponse, error)
- func (c *ClientWithResponses) SessionsGetWithResponse(ctx context.Context, sessionId string, reqEditors ...RequestEditorFn) (*SessionsGetResponse, error)
- func (c *ClientWithResponses) SessionsListWithResponse(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*SessionsListResponse, error)
- func (c *ClientWithResponses) TraceGetWithResponse(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*TraceGetResponse, error)
- func (c *ClientWithResponses) TraceListWithResponse(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*TraceListResponse, error)
- type ClientWithResponsesInterface
- type Comment
- type CommentObjectType
- type CommentsCreateJSONRequestBody
- type CommentsCreateResponse
- type CommentsGetByIdResponse
- type CommentsGetParams
- type CommentsGetResponse
- type ConfigCategory
- type CreateChatPromptRequest
- type CreateCommentRequest
- type CreateCommentResponse
- type CreateDatasetItemRequest
- type CreateDatasetRequest
- type CreateDatasetRunItemRequest
- type CreateEventBody
- type CreateEventEvent
- type CreateGenerationBody
- type CreateGenerationEvent
- type CreateModelRequest
- type CreateObservationEvent
- type CreatePromptRequest
- func (t CreatePromptRequest) AsCreatePromptRequest0() (CreatePromptRequest0, error)
- func (t CreatePromptRequest) AsCreatePromptRequest1() (CreatePromptRequest1, error)
- func (t *CreatePromptRequest) FromCreatePromptRequest0(v CreatePromptRequest0) error
- func (t *CreatePromptRequest) FromCreatePromptRequest1(v CreatePromptRequest1) error
- func (t CreatePromptRequest) MarshalJSON() ([]byte, error)
- func (t *CreatePromptRequest) MergeCreatePromptRequest0(v CreatePromptRequest0) error
- func (t *CreatePromptRequest) MergeCreatePromptRequest1(v CreatePromptRequest1) error
- func (t *CreatePromptRequest) UnmarshalJSON(b []byte) error
- type CreatePromptRequest0
- type CreatePromptRequest0Type
- type CreatePromptRequest1
- type CreatePromptRequest1Type
- type CreateScoreConfigRequest
- type CreateScoreRequest
- type CreateScoreResponse
- type CreateScoreValue
- func (t CreateScoreValue) AsCreateScoreValue0() (CreateScoreValue0, error)
- func (t CreateScoreValue) AsCreateScoreValue1() (CreateScoreValue1, error)
- func (t *CreateScoreValue) FromCreateScoreValue0(v CreateScoreValue0) error
- func (t *CreateScoreValue) FromCreateScoreValue1(v CreateScoreValue1) error
- func (t CreateScoreValue) MarshalJSON() ([]byte, error)
- func (t *CreateScoreValue) MergeCreateScoreValue0(v CreateScoreValue0) error
- func (t *CreateScoreValue) MergeCreateScoreValue1(v CreateScoreValue1) error
- func (t *CreateScoreValue) UnmarshalJSON(b []byte) error
- type CreateScoreValue0
- type CreateScoreValue1
- type CreateSpanBody
- type CreateSpanEvent
- type CreateTextPromptRequest
- type DailyMetrics
- type DailyMetricsDetails
- type Dataset
- type DatasetItem
- type DatasetItemsCreateJSONRequestBody
- type DatasetItemsCreateResponse
- type DatasetItemsGetResponse
- type DatasetItemsListParams
- type DatasetItemsListResponse
- type DatasetRun
- type DatasetRunItem
- type DatasetRunItemsCreateJSONRequestBody
- type DatasetRunItemsCreateResponse
- type DatasetRunWithItems
- type DatasetStatus
- type DatasetsCreateJSONRequestBody
- type DatasetsCreateResponse
- type DatasetsGetResponse
- type DatasetsGetRunResponse
- type DatasetsGetRunsParams
- type DatasetsGetRunsResponse
- type DatasetsListParams
- type DatasetsListResponse
- type GetCommentsResponse
- type GetMediaResponse
- type GetMediaUploadUrlRequest
- type GetMediaUploadUrlResponse
- type GetScoresResponse
- type GetScoresResponseData
- func (t GetScoresResponseData) AsGetScoresResponseData0() (GetScoresResponseData0, error)
- func (t GetScoresResponseData) AsGetScoresResponseData1() (GetScoresResponseData1, error)
- func (t GetScoresResponseData) AsGetScoresResponseData2() (GetScoresResponseData2, error)
- func (t *GetScoresResponseData) FromGetScoresResponseData0(v GetScoresResponseData0) error
- func (t *GetScoresResponseData) FromGetScoresResponseData1(v GetScoresResponseData1) error
- func (t *GetScoresResponseData) FromGetScoresResponseData2(v GetScoresResponseData2) error
- func (t GetScoresResponseData) MarshalJSON() ([]byte, error)
- func (t *GetScoresResponseData) MergeGetScoresResponseData0(v GetScoresResponseData0) error
- func (t *GetScoresResponseData) MergeGetScoresResponseData1(v GetScoresResponseData1) error
- func (t *GetScoresResponseData) MergeGetScoresResponseData2(v GetScoresResponseData2) error
- func (t *GetScoresResponseData) UnmarshalJSON(b []byte) error
- type GetScoresResponseData0
- type GetScoresResponseData0DataType
- type GetScoresResponseData1
- type GetScoresResponseData1DataType
- type GetScoresResponseData2
- type GetScoresResponseData2DataType
- type GetScoresResponseDataBoolean
- type GetScoresResponseDataCategorical
- type GetScoresResponseDataNumeric
- type GetScoresResponseTraceData
- type HealthHealthResponse
- type HealthResponse
- type HttpRequestDoer
- type IngestionBatchJSONBody
- type IngestionBatchJSONRequestBody
- type IngestionBatchResponse
- type IngestionError
- type IngestionEvent
- func (t IngestionEvent) AsIngestionEvent0() (IngestionEvent0, error)
- func (t IngestionEvent) AsIngestionEvent1() (IngestionEvent1, error)
- func (t IngestionEvent) AsIngestionEvent2() (IngestionEvent2, error)
- func (t IngestionEvent) AsIngestionEvent3() (IngestionEvent3, error)
- func (t IngestionEvent) AsIngestionEvent4() (IngestionEvent4, error)
- func (t IngestionEvent) AsIngestionEvent5() (IngestionEvent5, error)
- func (t IngestionEvent) AsIngestionEvent6() (IngestionEvent6, error)
- func (t IngestionEvent) AsIngestionEvent7() (IngestionEvent7, error)
- func (t IngestionEvent) AsIngestionEvent8() (IngestionEvent8, error)
- func (t IngestionEvent) AsIngestionEvent9() (IngestionEvent9, error)
- func (t *IngestionEvent) FromIngestionEvent0(v IngestionEvent0) error
- func (t *IngestionEvent) FromIngestionEvent1(v IngestionEvent1) error
- func (t *IngestionEvent) FromIngestionEvent2(v IngestionEvent2) error
- func (t *IngestionEvent) FromIngestionEvent3(v IngestionEvent3) error
- func (t *IngestionEvent) FromIngestionEvent4(v IngestionEvent4) error
- func (t *IngestionEvent) FromIngestionEvent5(v IngestionEvent5) error
- func (t *IngestionEvent) FromIngestionEvent6(v IngestionEvent6) error
- func (t *IngestionEvent) FromIngestionEvent7(v IngestionEvent7) error
- func (t *IngestionEvent) FromIngestionEvent8(v IngestionEvent8) error
- func (t *IngestionEvent) FromIngestionEvent9(v IngestionEvent9) error
- func (t IngestionEvent) MarshalJSON() ([]byte, error)
- func (t *IngestionEvent) MergeIngestionEvent0(v IngestionEvent0) error
- func (t *IngestionEvent) MergeIngestionEvent1(v IngestionEvent1) error
- func (t *IngestionEvent) MergeIngestionEvent2(v IngestionEvent2) error
- func (t *IngestionEvent) MergeIngestionEvent3(v IngestionEvent3) error
- func (t *IngestionEvent) MergeIngestionEvent4(v IngestionEvent4) error
- func (t *IngestionEvent) MergeIngestionEvent5(v IngestionEvent5) error
- func (t *IngestionEvent) MergeIngestionEvent6(v IngestionEvent6) error
- func (t *IngestionEvent) MergeIngestionEvent7(v IngestionEvent7) error
- func (t *IngestionEvent) MergeIngestionEvent8(v IngestionEvent8) error
- func (t *IngestionEvent) MergeIngestionEvent9(v IngestionEvent9) error
- func (t *IngestionEvent) UnmarshalJSON(b []byte) error
- type IngestionEvent0
- type IngestionEvent0Type
- type IngestionEvent1
- type IngestionEvent1Type
- type IngestionEvent2
- type IngestionEvent2Type
- type IngestionEvent3
- type IngestionEvent3Type
- type IngestionEvent4
- type IngestionEvent4Type
- type IngestionEvent5
- type IngestionEvent5Type
- type IngestionEvent6
- type IngestionEvent6Type
- type IngestionEvent7
- type IngestionEvent7Type
- type IngestionEvent8
- type IngestionEvent8Type
- type IngestionEvent9
- type IngestionEvent9Type
- type IngestionResponse
- type IngestionSuccess
- type IngestionUsage
- func (t IngestionUsage) AsOpenAIUsage() (OpenAIUsage, error)
- func (t IngestionUsage) AsUsage() (Usage, error)
- func (t *IngestionUsage) FromOpenAIUsage(v OpenAIUsage) error
- func (t *IngestionUsage) FromUsage(v Usage) error
- func (t IngestionUsage) MarshalJSON() ([]byte, error)
- func (t *IngestionUsage) MergeOpenAIUsage(v OpenAIUsage) error
- func (t *IngestionUsage) MergeUsage(v Usage) error
- func (t *IngestionUsage) UnmarshalJSON(b []byte) error
- type MapValue
- func (t MapValue) AsMapValue0() (MapValue0, error)
- func (t MapValue) AsMapValue1() (MapValue1, error)
- func (t MapValue) AsMapValue2() (MapValue2, error)
- func (t MapValue) AsMapValue3() (MapValue3, error)
- func (t *MapValue) FromMapValue0(v MapValue0) error
- func (t *MapValue) FromMapValue1(v MapValue1) error
- func (t *MapValue) FromMapValue2(v MapValue2) error
- func (t *MapValue) FromMapValue3(v MapValue3) error
- func (t MapValue) MarshalJSON() ([]byte, error)
- func (t *MapValue) MergeMapValue0(v MapValue0) error
- func (t *MapValue) MergeMapValue1(v MapValue1) error
- func (t *MapValue) MergeMapValue2(v MapValue2) error
- func (t *MapValue) MergeMapValue3(v MapValue3) error
- func (t *MapValue) UnmarshalJSON(b []byte) error
- type MapValue0
- type MapValue1
- type MapValue2
- type MapValue3
- type MediaContentType
- type MediaGetResponse
- type MediaGetUploadUrlJSONRequestBody
- type MediaGetUploadUrlResponse
- type MediaPatchJSONRequestBody
- type MediaPatchResponse
- type MetricsDailyParams
- type MetricsDailyResponse
- type Model
- type ModelUsageUnit
- type ModelsCreateJSONRequestBody
- type ModelsCreateResponse
- type ModelsDeleteResponse
- type ModelsGetResponse
- type ModelsListParams
- type ModelsListResponse
- type NumericScore
- type Observation
- type ObservationBody
- type ObservationLevel
- type ObservationType
- type ObservationsGetManyParams
- type ObservationsGetManyResponse
- type ObservationsGetResponse
- type ObservationsView
- type ObservationsViews
- type OpenAIUsage
- type OptionalObservationBody
- type PaginatedDatasetItems
- type PaginatedDatasetRuns
- type PaginatedDatasets
- type PaginatedModels
- type PaginatedSessions
- type PatchMediaBody
- type Project
- type Projects
- type ProjectsGetResponse
- type Prompt
- func (t Prompt) AsPrompt0() (Prompt0, error)
- func (t Prompt) AsPrompt1() (Prompt1, error)
- func (t *Prompt) FromPrompt0(v Prompt0) error
- func (t *Prompt) FromPrompt1(v Prompt1) error
- func (t Prompt) MarshalJSON() ([]byte, error)
- func (t *Prompt) MergePrompt0(v Prompt0) error
- func (t *Prompt) MergePrompt1(v Prompt1) error
- func (t *Prompt) UnmarshalJSON(b []byte) error
- type Prompt0
- type Prompt0Type
- type Prompt1
- type Prompt1Type
- type PromptMeta
- type PromptMetaListResponse
- type PromptsCreateJSONRequestBody
- type PromptsCreateResponse
- type PromptsGetParams
- type PromptsGetResponse
- type PromptsListParams
- type PromptsListResponse
- type RequestEditorFn
- type SDKLogBody
- type SDKLogEvent
- type Score
- func (t Score) AsScore0() (Score0, error)
- func (t Score) AsScore1() (Score1, error)
- func (t Score) AsScore2() (Score2, error)
- func (t *Score) FromScore0(v Score0) error
- func (t *Score) FromScore1(v Score1) error
- func (t *Score) FromScore2(v Score2) error
- func (t Score) MarshalJSON() ([]byte, error)
- func (t *Score) MergeScore0(v Score0) error
- func (t *Score) MergeScore1(v Score1) error
- func (t *Score) MergeScore2(v Score2) error
- func (t *Score) UnmarshalJSON(b []byte) error
- type Score0
- type Score0DataType
- type Score1
- type Score1DataType
- type Score2
- type Score2DataType
- type ScoreBody
- type ScoreConfig
- type ScoreConfigs
- type ScoreConfigsCreateJSONRequestBody
- type ScoreConfigsCreateResponse
- type ScoreConfigsGetByIdResponse
- type ScoreConfigsGetParams
- type ScoreConfigsGetResponse
- type ScoreCreateJSONRequestBody
- type ScoreCreateResponse
- type ScoreDataType
- type ScoreDeleteResponse
- type ScoreEvent
- type ScoreGetByIdResponse
- type ScoreGetParams
- type ScoreGetResponse
- type ScoreSource
- type Session
- type SessionWithTraces
- type SessionsGetResponse
- type SessionsListParams
- type SessionsListResponse
- type TextPrompt
- type Trace
- type TraceBody
- type TraceEvent
- type TraceGetResponse
- type TraceListParams
- type TraceListResponse
- type TraceWithDetails
- type TraceWithFullDetails
- type Traces
- type UpdateEventBody
- type UpdateGenerationBody
- type UpdateGenerationEvent
- type UpdateObservationEvent
- type UpdateSpanBody
- type UpdateSpanEvent
- type Usage
- type UsageByModel
- type UtilsMetaResponse
Constants ¶
const (
BasicAuthScopes = "BasicAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewCommentsCreateRequest ¶ added in v0.2.0
func NewCommentsCreateRequest(server string, body CommentsCreateJSONRequestBody) (*http.Request, error)
NewCommentsCreateRequest calls the generic CommentsCreate builder with application/json body
func NewCommentsCreateRequestWithBody ¶ added in v0.2.0
func NewCommentsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCommentsCreateRequestWithBody generates requests for CommentsCreate with any type of body
func NewCommentsGetByIdRequest ¶ added in v0.2.0
NewCommentsGetByIdRequest generates requests for CommentsGetById
func NewCommentsGetRequest ¶ added in v0.2.0
func NewCommentsGetRequest(server string, params *CommentsGetParams) (*http.Request, error)
NewCommentsGetRequest generates requests for CommentsGet
func NewDatasetItemsCreateRequest ¶
func NewDatasetItemsCreateRequest(server string, body DatasetItemsCreateJSONRequestBody) (*http.Request, error)
NewDatasetItemsCreateRequest calls the generic DatasetItemsCreate builder with application/json body
func NewDatasetItemsCreateRequestWithBody ¶
func NewDatasetItemsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDatasetItemsCreateRequestWithBody generates requests for DatasetItemsCreate with any type of body
func NewDatasetItemsGetRequest ¶
NewDatasetItemsGetRequest generates requests for DatasetItemsGet
func NewDatasetItemsListRequest ¶
func NewDatasetItemsListRequest(server string, params *DatasetItemsListParams) (*http.Request, error)
NewDatasetItemsListRequest generates requests for DatasetItemsList
func NewDatasetRunItemsCreateRequest ¶
func NewDatasetRunItemsCreateRequest(server string, body DatasetRunItemsCreateJSONRequestBody) (*http.Request, error)
NewDatasetRunItemsCreateRequest calls the generic DatasetRunItemsCreate builder with application/json body
func NewDatasetRunItemsCreateRequestWithBody ¶
func NewDatasetRunItemsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDatasetRunItemsCreateRequestWithBody generates requests for DatasetRunItemsCreate with any type of body
func NewDatasetsCreateRequest ¶
func NewDatasetsCreateRequest(server string, body DatasetsCreateJSONRequestBody) (*http.Request, error)
NewDatasetsCreateRequest calls the generic DatasetsCreate builder with application/json body
func NewDatasetsCreateRequestWithBody ¶
func NewDatasetsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDatasetsCreateRequestWithBody generates requests for DatasetsCreate with any type of body
func NewDatasetsGetRequest ¶
NewDatasetsGetRequest generates requests for DatasetsGet
func NewDatasetsGetRunRequest ¶
func NewDatasetsGetRunRequest(server string, datasetName string, runName string) (*http.Request, error)
NewDatasetsGetRunRequest generates requests for DatasetsGetRun
func NewDatasetsGetRunsRequest ¶
func NewDatasetsGetRunsRequest(server string, datasetName string, params *DatasetsGetRunsParams) (*http.Request, error)
NewDatasetsGetRunsRequest generates requests for DatasetsGetRuns
func NewDatasetsListRequest ¶
func NewDatasetsListRequest(server string, params *DatasetsListParams) (*http.Request, error)
NewDatasetsListRequest generates requests for DatasetsList
func NewHealthHealthRequest ¶
NewHealthHealthRequest generates requests for HealthHealth
func NewIngestionBatchRequest ¶
func NewIngestionBatchRequest(server string, body IngestionBatchJSONRequestBody) (*http.Request, error)
NewIngestionBatchRequest calls the generic IngestionBatch builder with application/json body
func NewIngestionBatchRequestWithBody ¶
func NewIngestionBatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIngestionBatchRequestWithBody generates requests for IngestionBatch with any type of body
func NewMediaGetRequest ¶ added in v0.2.0
NewMediaGetRequest generates requests for MediaGet
func NewMediaGetUploadUrlRequest ¶ added in v0.2.0
func NewMediaGetUploadUrlRequest(server string, body MediaGetUploadUrlJSONRequestBody) (*http.Request, error)
NewMediaGetUploadUrlRequest calls the generic MediaGetUploadUrl builder with application/json body
func NewMediaGetUploadUrlRequestWithBody ¶ added in v0.2.0
func NewMediaGetUploadUrlRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMediaGetUploadUrlRequestWithBody generates requests for MediaGetUploadUrl with any type of body
func NewMediaPatchRequest ¶ added in v0.2.0
func NewMediaPatchRequest(server string, mediaId string, body MediaPatchJSONRequestBody) (*http.Request, error)
NewMediaPatchRequest calls the generic MediaPatch builder with application/json body
func NewMediaPatchRequestWithBody ¶ added in v0.2.0
func NewMediaPatchRequestWithBody(server string, mediaId string, contentType string, body io.Reader) (*http.Request, error)
NewMediaPatchRequestWithBody generates requests for MediaPatch with any type of body
func NewMetricsDailyRequest ¶
func NewMetricsDailyRequest(server string, params *MetricsDailyParams) (*http.Request, error)
NewMetricsDailyRequest generates requests for MetricsDaily
func NewModelsCreateRequest ¶
func NewModelsCreateRequest(server string, body ModelsCreateJSONRequestBody) (*http.Request, error)
NewModelsCreateRequest calls the generic ModelsCreate builder with application/json body
func NewModelsCreateRequestWithBody ¶
func NewModelsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewModelsCreateRequestWithBody generates requests for ModelsCreate with any type of body
func NewModelsDeleteRequest ¶
NewModelsDeleteRequest generates requests for ModelsDelete
func NewModelsGetRequest ¶
NewModelsGetRequest generates requests for ModelsGet
func NewModelsListRequest ¶
func NewModelsListRequest(server string, params *ModelsListParams) (*http.Request, error)
NewModelsListRequest generates requests for ModelsList
func NewObservationsGetManyRequest ¶
func NewObservationsGetManyRequest(server string, params *ObservationsGetManyParams) (*http.Request, error)
NewObservationsGetManyRequest generates requests for ObservationsGetMany
func NewObservationsGetRequest ¶
NewObservationsGetRequest generates requests for ObservationsGet
func NewProjectsGetRequest ¶
NewProjectsGetRequest generates requests for ProjectsGet
func NewPromptsCreateRequest ¶
func NewPromptsCreateRequest(server string, body PromptsCreateJSONRequestBody) (*http.Request, error)
NewPromptsCreateRequest calls the generic PromptsCreate builder with application/json body
func NewPromptsCreateRequestWithBody ¶
func NewPromptsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPromptsCreateRequestWithBody generates requests for PromptsCreate with any type of body
func NewPromptsGetRequest ¶
func NewPromptsGetRequest(server string, promptName string, params *PromptsGetParams) (*http.Request, error)
NewPromptsGetRequest generates requests for PromptsGet
func NewPromptsListRequest ¶
func NewPromptsListRequest(server string, params *PromptsListParams) (*http.Request, error)
NewPromptsListRequest generates requests for PromptsList
func NewScoreConfigsCreateRequest ¶
func NewScoreConfigsCreateRequest(server string, body ScoreConfigsCreateJSONRequestBody) (*http.Request, error)
NewScoreConfigsCreateRequest calls the generic ScoreConfigsCreate builder with application/json body
func NewScoreConfigsCreateRequestWithBody ¶
func NewScoreConfigsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewScoreConfigsCreateRequestWithBody generates requests for ScoreConfigsCreate with any type of body
func NewScoreConfigsGetByIdRequest ¶
NewScoreConfigsGetByIdRequest generates requests for ScoreConfigsGetById
func NewScoreConfigsGetRequest ¶
func NewScoreConfigsGetRequest(server string, params *ScoreConfigsGetParams) (*http.Request, error)
NewScoreConfigsGetRequest generates requests for ScoreConfigsGet
func NewScoreCreateRequest ¶
func NewScoreCreateRequest(server string, body ScoreCreateJSONRequestBody) (*http.Request, error)
NewScoreCreateRequest calls the generic ScoreCreate builder with application/json body
func NewScoreCreateRequestWithBody ¶
func NewScoreCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewScoreCreateRequestWithBody generates requests for ScoreCreate with any type of body
func NewScoreDeleteRequest ¶
NewScoreDeleteRequest generates requests for ScoreDelete
func NewScoreGetByIdRequest ¶
NewScoreGetByIdRequest generates requests for ScoreGetById
func NewScoreGetRequest ¶
func NewScoreGetRequest(server string, params *ScoreGetParams) (*http.Request, error)
NewScoreGetRequest generates requests for ScoreGet
func NewSessionsGetRequest ¶
NewSessionsGetRequest generates requests for SessionsGet
func NewSessionsListRequest ¶
func NewSessionsListRequest(server string, params *SessionsListParams) (*http.Request, error)
NewSessionsListRequest generates requests for SessionsList
func NewTraceGetRequest ¶
NewTraceGetRequest generates requests for TraceGet
func NewTraceListRequest ¶
func NewTraceListRequest(server string, params *TraceListParams) (*http.Request, error)
NewTraceListRequest generates requests for TraceList
Types ¶
type BaseEvent ¶
type BaseEvent struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` }
BaseEvent defines model for BaseEvent.
type BasePrompt ¶
type BasePrompt struct { Config interface{} `json:"config"` // Labels List of deployment labels of this prompt version. Labels []string `json:"labels"` Name string `json:"name"` // Tags List of tags. Used to filter via UI and API. The same across versions of a prompt. Tags []string `json:"tags"` Version int `json:"version"` }
BasePrompt defines model for BasePrompt.
type BaseScore ¶
type BaseScore struct { AuthorUserId *string `json:"authorUserId"` Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range ConfigId *string `json:"configId"` CreatedAt time.Time `json:"createdAt"` Id string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` // QueueId Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue. QueueId *string `json:"queueId"` Source ScoreSource `json:"source"` Timestamp time.Time `json:"timestamp"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
BaseScore defines model for BaseScore.
type CategoricalScore ¶
type CategoricalScore = BaseScore
CategoricalScore defines model for CategoricalScore.
type ChatMessage ¶
ChatMessage defines model for ChatMessage.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CommentsCreate ¶ added in v0.2.0
func (c *Client) CommentsCreate(ctx context.Context, body CommentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CommentsCreateWithBody ¶ added in v0.2.0
func (*Client) CommentsGet ¶ added in v0.2.0
func (c *Client) CommentsGet(ctx context.Context, params *CommentsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CommentsGetById ¶ added in v0.2.0
func (*Client) DatasetItemsCreate ¶
func (c *Client) DatasetItemsCreate(ctx context.Context, body DatasetItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetItemsCreateWithBody ¶
func (*Client) DatasetItemsGet ¶
func (*Client) DatasetItemsList ¶
func (c *Client) DatasetItemsList(ctx context.Context, params *DatasetItemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetRunItemsCreate ¶
func (c *Client) DatasetRunItemsCreate(ctx context.Context, body DatasetRunItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetRunItemsCreateWithBody ¶
func (*Client) DatasetsCreate ¶
func (c *Client) DatasetsCreate(ctx context.Context, body DatasetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetsCreateWithBody ¶
func (*Client) DatasetsGet ¶
func (*Client) DatasetsGetRun ¶
func (*Client) DatasetsGetRuns ¶
func (c *Client) DatasetsGetRuns(ctx context.Context, datasetName string, params *DatasetsGetRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetsList ¶
func (c *Client) DatasetsList(ctx context.Context, params *DatasetsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HealthHealth ¶
func (*Client) IngestionBatch ¶
func (c *Client) IngestionBatch(ctx context.Context, body IngestionBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestionBatchWithBody ¶
func (*Client) MediaGetUploadUrl ¶ added in v0.2.0
func (c *Client) MediaGetUploadUrl(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MediaGetUploadUrlWithBody ¶ added in v0.2.0
func (*Client) MediaPatch ¶ added in v0.2.0
func (c *Client) MediaPatch(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MediaPatchWithBody ¶ added in v0.2.0
func (*Client) MetricsDaily ¶
func (c *Client) MetricsDaily(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModelsCreate ¶
func (c *Client) ModelsCreate(ctx context.Context, body ModelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModelsCreateWithBody ¶
func (*Client) ModelsDelete ¶
func (*Client) ModelsList ¶
func (c *Client) ModelsList(ctx context.Context, params *ModelsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ObservationsGet ¶
func (*Client) ObservationsGetMany ¶
func (c *Client) ObservationsGetMany(ctx context.Context, params *ObservationsGetManyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ProjectsGet ¶
func (*Client) PromptsCreate ¶
func (c *Client) PromptsCreate(ctx context.Context, body PromptsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PromptsCreateWithBody ¶
func (*Client) PromptsGet ¶
func (c *Client) PromptsGet(ctx context.Context, promptName string, params *PromptsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PromptsList ¶
func (c *Client) PromptsList(ctx context.Context, params *PromptsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScoreConfigsCreate ¶
func (c *Client) ScoreConfigsCreate(ctx context.Context, body ScoreConfigsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScoreConfigsCreateWithBody ¶
func (*Client) ScoreConfigsGet ¶
func (c *Client) ScoreConfigsGet(ctx context.Context, params *ScoreConfigsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScoreConfigsGetById ¶
func (*Client) ScoreCreate ¶
func (c *Client) ScoreCreate(ctx context.Context, body ScoreCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScoreCreateWithBody ¶
func (*Client) ScoreDelete ¶
func (*Client) ScoreGet ¶
func (c *Client) ScoreGet(ctx context.Context, params *ScoreGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScoreGetById ¶
func (*Client) SessionsGet ¶
func (*Client) SessionsList ¶
func (c *Client) SessionsList(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TraceList ¶
func (c *Client) TraceList(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // CommentsGet request CommentsGet(ctx context.Context, params *CommentsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CommentsCreateWithBody request with any body CommentsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CommentsCreate(ctx context.Context, body CommentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CommentsGetById request CommentsGetById(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetItemsList request DatasetItemsList(ctx context.Context, params *DatasetItemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetItemsCreateWithBody request with any body DatasetItemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) DatasetItemsCreate(ctx context.Context, body DatasetItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetItemsGet request DatasetItemsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetRunItemsCreateWithBody request with any body DatasetRunItemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) DatasetRunItemsCreate(ctx context.Context, body DatasetRunItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetsGetRuns request DatasetsGetRuns(ctx context.Context, datasetName string, params *DatasetsGetRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetsGetRun request DatasetsGetRun(ctx context.Context, datasetName string, runName string, reqEditors ...RequestEditorFn) (*http.Response, error) // HealthHealth request HealthHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // IngestionBatchWithBody request with any body IngestionBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) IngestionBatch(ctx context.Context, body IngestionBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // MediaGetUploadUrlWithBody request with any body MediaGetUploadUrlWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) MediaGetUploadUrl(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // MediaGet request MediaGet(ctx context.Context, mediaId string, reqEditors ...RequestEditorFn) (*http.Response, error) // MediaPatchWithBody request with any body MediaPatchWithBody(ctx context.Context, mediaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) MediaPatch(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // MetricsDaily request MetricsDaily(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ModelsList request ModelsList(ctx context.Context, params *ModelsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ModelsCreateWithBody request with any body ModelsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ModelsCreate(ctx context.Context, body ModelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ModelsDelete request ModelsDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // ModelsGet request ModelsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // ObservationsGetMany request ObservationsGetMany(ctx context.Context, params *ObservationsGetManyParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ObservationsGet request ObservationsGet(ctx context.Context, observationId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ProjectsGet request ProjectsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // ScoreConfigsGet request ScoreConfigsGet(ctx context.Context, params *ScoreConfigsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ScoreConfigsCreateWithBody request with any body ScoreConfigsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ScoreConfigsCreate(ctx context.Context, body ScoreConfigsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ScoreConfigsGetById request ScoreConfigsGetById(ctx context.Context, configId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ScoreGet request ScoreGet(ctx context.Context, params *ScoreGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ScoreCreateWithBody request with any body ScoreCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ScoreCreate(ctx context.Context, body ScoreCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ScoreDelete request ScoreDelete(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ScoreGetById request ScoreGetById(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*http.Response, error) // SessionsList request SessionsList(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) // SessionsGet request SessionsGet(ctx context.Context, sessionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // TraceList request TraceList(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) // TraceGet request TraceGet(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetsList request DatasetsList(ctx context.Context, params *DatasetsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetsCreateWithBody request with any body DatasetsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) DatasetsCreate(ctx context.Context, body DatasetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DatasetsGet request DatasetsGet(ctx context.Context, datasetName string, reqEditors ...RequestEditorFn) (*http.Response, error) // PromptsList request PromptsList(ctx context.Context, params *PromptsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PromptsCreateWithBody request with any body PromptsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PromptsCreate(ctx context.Context, body PromptsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PromptsGet request PromptsGet(ctx context.Context, promptName string, params *PromptsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CommentsCreateWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CommentsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CommentsCreateResponse, error)
CommentsCreateWithBodyWithResponse request with arbitrary body returning *CommentsCreateResponse
func (*ClientWithResponses) CommentsCreateWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CommentsCreateWithResponse(ctx context.Context, body CommentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CommentsCreateResponse, error)
func (*ClientWithResponses) CommentsGetByIdWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CommentsGetByIdWithResponse(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*CommentsGetByIdResponse, error)
CommentsGetByIdWithResponse request returning *CommentsGetByIdResponse
func (*ClientWithResponses) CommentsGetWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CommentsGetWithResponse(ctx context.Context, params *CommentsGetParams, reqEditors ...RequestEditorFn) (*CommentsGetResponse, error)
CommentsGetWithResponse request returning *CommentsGetResponse
func (*ClientWithResponses) DatasetItemsCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) DatasetItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DatasetItemsCreateResponse, error)
DatasetItemsCreateWithBodyWithResponse request with arbitrary body returning *DatasetItemsCreateResponse
func (*ClientWithResponses) DatasetItemsCreateWithResponse ¶
func (c *ClientWithResponses) DatasetItemsCreateWithResponse(ctx context.Context, body DatasetItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatasetItemsCreateResponse, error)
func (*ClientWithResponses) DatasetItemsGetWithResponse ¶
func (c *ClientWithResponses) DatasetItemsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DatasetItemsGetResponse, error)
DatasetItemsGetWithResponse request returning *DatasetItemsGetResponse
func (*ClientWithResponses) DatasetItemsListWithResponse ¶
func (c *ClientWithResponses) DatasetItemsListWithResponse(ctx context.Context, params *DatasetItemsListParams, reqEditors ...RequestEditorFn) (*DatasetItemsListResponse, error)
DatasetItemsListWithResponse request returning *DatasetItemsListResponse
func (*ClientWithResponses) DatasetRunItemsCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) DatasetRunItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DatasetRunItemsCreateResponse, error)
DatasetRunItemsCreateWithBodyWithResponse request with arbitrary body returning *DatasetRunItemsCreateResponse
func (*ClientWithResponses) DatasetRunItemsCreateWithResponse ¶
func (c *ClientWithResponses) DatasetRunItemsCreateWithResponse(ctx context.Context, body DatasetRunItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatasetRunItemsCreateResponse, error)
func (*ClientWithResponses) DatasetsCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) DatasetsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DatasetsCreateResponse, error)
DatasetsCreateWithBodyWithResponse request with arbitrary body returning *DatasetsCreateResponse
func (*ClientWithResponses) DatasetsCreateWithResponse ¶
func (c *ClientWithResponses) DatasetsCreateWithResponse(ctx context.Context, body DatasetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatasetsCreateResponse, error)
func (*ClientWithResponses) DatasetsGetRunWithResponse ¶
func (c *ClientWithResponses) DatasetsGetRunWithResponse(ctx context.Context, datasetName string, runName string, reqEditors ...RequestEditorFn) (*DatasetsGetRunResponse, error)
DatasetsGetRunWithResponse request returning *DatasetsGetRunResponse
func (*ClientWithResponses) DatasetsGetRunsWithResponse ¶
func (c *ClientWithResponses) DatasetsGetRunsWithResponse(ctx context.Context, datasetName string, params *DatasetsGetRunsParams, reqEditors ...RequestEditorFn) (*DatasetsGetRunsResponse, error)
DatasetsGetRunsWithResponse request returning *DatasetsGetRunsResponse
func (*ClientWithResponses) DatasetsGetWithResponse ¶
func (c *ClientWithResponses) DatasetsGetWithResponse(ctx context.Context, datasetName string, reqEditors ...RequestEditorFn) (*DatasetsGetResponse, error)
DatasetsGetWithResponse request returning *DatasetsGetResponse
func (*ClientWithResponses) DatasetsListWithResponse ¶
func (c *ClientWithResponses) DatasetsListWithResponse(ctx context.Context, params *DatasetsListParams, reqEditors ...RequestEditorFn) (*DatasetsListResponse, error)
DatasetsListWithResponse request returning *DatasetsListResponse
func (*ClientWithResponses) HealthHealthWithResponse ¶
func (c *ClientWithResponses) HealthHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthHealthResponse, error)
HealthHealthWithResponse request returning *HealthHealthResponse
func (*ClientWithResponses) IngestionBatchWithBodyWithResponse ¶
func (c *ClientWithResponses) IngestionBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestionBatchResponse, error)
IngestionBatchWithBodyWithResponse request with arbitrary body returning *IngestionBatchResponse
func (*ClientWithResponses) IngestionBatchWithResponse ¶
func (c *ClientWithResponses) IngestionBatchWithResponse(ctx context.Context, body IngestionBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestionBatchResponse, error)
func (*ClientWithResponses) MediaGetUploadUrlWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) MediaGetUploadUrlWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MediaGetUploadUrlResponse, error)
MediaGetUploadUrlWithBodyWithResponse request with arbitrary body returning *MediaGetUploadUrlResponse
func (*ClientWithResponses) MediaGetUploadUrlWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) MediaGetUploadUrlWithResponse(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*MediaGetUploadUrlResponse, error)
func (*ClientWithResponses) MediaGetWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) MediaGetWithResponse(ctx context.Context, mediaId string, reqEditors ...RequestEditorFn) (*MediaGetResponse, error)
MediaGetWithResponse request returning *MediaGetResponse
func (*ClientWithResponses) MediaPatchWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) MediaPatchWithBodyWithResponse(ctx context.Context, mediaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MediaPatchResponse, error)
MediaPatchWithBodyWithResponse request with arbitrary body returning *MediaPatchResponse
func (*ClientWithResponses) MediaPatchWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) MediaPatchWithResponse(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*MediaPatchResponse, error)
func (*ClientWithResponses) MetricsDailyWithResponse ¶
func (c *ClientWithResponses) MetricsDailyWithResponse(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*MetricsDailyResponse, error)
MetricsDailyWithResponse request returning *MetricsDailyResponse
func (*ClientWithResponses) ModelsCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) ModelsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModelsCreateResponse, error)
ModelsCreateWithBodyWithResponse request with arbitrary body returning *ModelsCreateResponse
func (*ClientWithResponses) ModelsCreateWithResponse ¶
func (c *ClientWithResponses) ModelsCreateWithResponse(ctx context.Context, body ModelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ModelsCreateResponse, error)
func (*ClientWithResponses) ModelsDeleteWithResponse ¶
func (c *ClientWithResponses) ModelsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ModelsDeleteResponse, error)
ModelsDeleteWithResponse request returning *ModelsDeleteResponse
func (*ClientWithResponses) ModelsGetWithResponse ¶
func (c *ClientWithResponses) ModelsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ModelsGetResponse, error)
ModelsGetWithResponse request returning *ModelsGetResponse
func (*ClientWithResponses) ModelsListWithResponse ¶
func (c *ClientWithResponses) ModelsListWithResponse(ctx context.Context, params *ModelsListParams, reqEditors ...RequestEditorFn) (*ModelsListResponse, error)
ModelsListWithResponse request returning *ModelsListResponse
func (*ClientWithResponses) ObservationsGetManyWithResponse ¶
func (c *ClientWithResponses) ObservationsGetManyWithResponse(ctx context.Context, params *ObservationsGetManyParams, reqEditors ...RequestEditorFn) (*ObservationsGetManyResponse, error)
ObservationsGetManyWithResponse request returning *ObservationsGetManyResponse
func (*ClientWithResponses) ObservationsGetWithResponse ¶
func (c *ClientWithResponses) ObservationsGetWithResponse(ctx context.Context, observationId string, reqEditors ...RequestEditorFn) (*ObservationsGetResponse, error)
ObservationsGetWithResponse request returning *ObservationsGetResponse
func (*ClientWithResponses) ProjectsGetWithResponse ¶
func (c *ClientWithResponses) ProjectsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProjectsGetResponse, error)
ProjectsGetWithResponse request returning *ProjectsGetResponse
func (*ClientWithResponses) PromptsCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) PromptsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromptsCreateResponse, error)
PromptsCreateWithBodyWithResponse request with arbitrary body returning *PromptsCreateResponse
func (*ClientWithResponses) PromptsCreateWithResponse ¶
func (c *ClientWithResponses) PromptsCreateWithResponse(ctx context.Context, body PromptsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PromptsCreateResponse, error)
func (*ClientWithResponses) PromptsGetWithResponse ¶
func (c *ClientWithResponses) PromptsGetWithResponse(ctx context.Context, promptName string, params *PromptsGetParams, reqEditors ...RequestEditorFn) (*PromptsGetResponse, error)
PromptsGetWithResponse request returning *PromptsGetResponse
func (*ClientWithResponses) PromptsListWithResponse ¶
func (c *ClientWithResponses) PromptsListWithResponse(ctx context.Context, params *PromptsListParams, reqEditors ...RequestEditorFn) (*PromptsListResponse, error)
PromptsListWithResponse request returning *PromptsListResponse
func (*ClientWithResponses) ScoreConfigsCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) ScoreConfigsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScoreConfigsCreateResponse, error)
ScoreConfigsCreateWithBodyWithResponse request with arbitrary body returning *ScoreConfigsCreateResponse
func (*ClientWithResponses) ScoreConfigsCreateWithResponse ¶
func (c *ClientWithResponses) ScoreConfigsCreateWithResponse(ctx context.Context, body ScoreConfigsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ScoreConfigsCreateResponse, error)
func (*ClientWithResponses) ScoreConfigsGetByIdWithResponse ¶
func (c *ClientWithResponses) ScoreConfigsGetByIdWithResponse(ctx context.Context, configId string, reqEditors ...RequestEditorFn) (*ScoreConfigsGetByIdResponse, error)
ScoreConfigsGetByIdWithResponse request returning *ScoreConfigsGetByIdResponse
func (*ClientWithResponses) ScoreConfigsGetWithResponse ¶
func (c *ClientWithResponses) ScoreConfigsGetWithResponse(ctx context.Context, params *ScoreConfigsGetParams, reqEditors ...RequestEditorFn) (*ScoreConfigsGetResponse, error)
ScoreConfigsGetWithResponse request returning *ScoreConfigsGetResponse
func (*ClientWithResponses) ScoreCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) ScoreCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScoreCreateResponse, error)
ScoreCreateWithBodyWithResponse request with arbitrary body returning *ScoreCreateResponse
func (*ClientWithResponses) ScoreCreateWithResponse ¶
func (c *ClientWithResponses) ScoreCreateWithResponse(ctx context.Context, body ScoreCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ScoreCreateResponse, error)
func (*ClientWithResponses) ScoreDeleteWithResponse ¶
func (c *ClientWithResponses) ScoreDeleteWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreDeleteResponse, error)
ScoreDeleteWithResponse request returning *ScoreDeleteResponse
func (*ClientWithResponses) ScoreGetByIdWithResponse ¶
func (c *ClientWithResponses) ScoreGetByIdWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreGetByIdResponse, error)
ScoreGetByIdWithResponse request returning *ScoreGetByIdResponse
func (*ClientWithResponses) ScoreGetWithResponse ¶
func (c *ClientWithResponses) ScoreGetWithResponse(ctx context.Context, params *ScoreGetParams, reqEditors ...RequestEditorFn) (*ScoreGetResponse, error)
ScoreGetWithResponse request returning *ScoreGetResponse
func (*ClientWithResponses) SessionsGetWithResponse ¶
func (c *ClientWithResponses) SessionsGetWithResponse(ctx context.Context, sessionId string, reqEditors ...RequestEditorFn) (*SessionsGetResponse, error)
SessionsGetWithResponse request returning *SessionsGetResponse
func (*ClientWithResponses) SessionsListWithResponse ¶
func (c *ClientWithResponses) SessionsListWithResponse(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*SessionsListResponse, error)
SessionsListWithResponse request returning *SessionsListResponse
func (*ClientWithResponses) TraceGetWithResponse ¶
func (c *ClientWithResponses) TraceGetWithResponse(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*TraceGetResponse, error)
TraceGetWithResponse request returning *TraceGetResponse
func (*ClientWithResponses) TraceListWithResponse ¶
func (c *ClientWithResponses) TraceListWithResponse(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*TraceListResponse, error)
TraceListWithResponse request returning *TraceListResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // CommentsGetWithResponse request CommentsGetWithResponse(ctx context.Context, params *CommentsGetParams, reqEditors ...RequestEditorFn) (*CommentsGetResponse, error) // CommentsCreateWithBodyWithResponse request with any body CommentsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CommentsCreateResponse, error) CommentsCreateWithResponse(ctx context.Context, body CommentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CommentsCreateResponse, error) // CommentsGetByIdWithResponse request CommentsGetByIdWithResponse(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*CommentsGetByIdResponse, error) // DatasetItemsListWithResponse request DatasetItemsListWithResponse(ctx context.Context, params *DatasetItemsListParams, reqEditors ...RequestEditorFn) (*DatasetItemsListResponse, error) // DatasetItemsCreateWithBodyWithResponse request with any body DatasetItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DatasetItemsCreateResponse, error) DatasetItemsCreateWithResponse(ctx context.Context, body DatasetItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatasetItemsCreateResponse, error) // DatasetItemsGetWithResponse request DatasetItemsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DatasetItemsGetResponse, error) // DatasetRunItemsCreateWithBodyWithResponse request with any body DatasetRunItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DatasetRunItemsCreateResponse, error) DatasetRunItemsCreateWithResponse(ctx context.Context, body DatasetRunItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatasetRunItemsCreateResponse, error) // DatasetsGetRunsWithResponse request DatasetsGetRunsWithResponse(ctx context.Context, datasetName string, params *DatasetsGetRunsParams, reqEditors ...RequestEditorFn) (*DatasetsGetRunsResponse, error) // DatasetsGetRunWithResponse request DatasetsGetRunWithResponse(ctx context.Context, datasetName string, runName string, reqEditors ...RequestEditorFn) (*DatasetsGetRunResponse, error) // HealthHealthWithResponse request HealthHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthHealthResponse, error) // IngestionBatchWithBodyWithResponse request with any body IngestionBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestionBatchResponse, error) IngestionBatchWithResponse(ctx context.Context, body IngestionBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestionBatchResponse, error) // MediaGetUploadUrlWithBodyWithResponse request with any body MediaGetUploadUrlWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MediaGetUploadUrlResponse, error) MediaGetUploadUrlWithResponse(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*MediaGetUploadUrlResponse, error) // MediaGetWithResponse request MediaGetWithResponse(ctx context.Context, mediaId string, reqEditors ...RequestEditorFn) (*MediaGetResponse, error) // MediaPatchWithBodyWithResponse request with any body MediaPatchWithBodyWithResponse(ctx context.Context, mediaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MediaPatchResponse, error) MediaPatchWithResponse(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*MediaPatchResponse, error) // MetricsDailyWithResponse request MetricsDailyWithResponse(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*MetricsDailyResponse, error) // ModelsListWithResponse request ModelsListWithResponse(ctx context.Context, params *ModelsListParams, reqEditors ...RequestEditorFn) (*ModelsListResponse, error) // ModelsCreateWithBodyWithResponse request with any body ModelsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModelsCreateResponse, error) ModelsCreateWithResponse(ctx context.Context, body ModelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ModelsCreateResponse, error) // ModelsDeleteWithResponse request ModelsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ModelsDeleteResponse, error) // ModelsGetWithResponse request ModelsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ModelsGetResponse, error) // ObservationsGetManyWithResponse request ObservationsGetManyWithResponse(ctx context.Context, params *ObservationsGetManyParams, reqEditors ...RequestEditorFn) (*ObservationsGetManyResponse, error) // ObservationsGetWithResponse request ObservationsGetWithResponse(ctx context.Context, observationId string, reqEditors ...RequestEditorFn) (*ObservationsGetResponse, error) // ProjectsGetWithResponse request ProjectsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProjectsGetResponse, error) // ScoreConfigsGetWithResponse request ScoreConfigsGetWithResponse(ctx context.Context, params *ScoreConfigsGetParams, reqEditors ...RequestEditorFn) (*ScoreConfigsGetResponse, error) // ScoreConfigsCreateWithBodyWithResponse request with any body ScoreConfigsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScoreConfigsCreateResponse, error) ScoreConfigsCreateWithResponse(ctx context.Context, body ScoreConfigsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ScoreConfigsCreateResponse, error) // ScoreConfigsGetByIdWithResponse request ScoreConfigsGetByIdWithResponse(ctx context.Context, configId string, reqEditors ...RequestEditorFn) (*ScoreConfigsGetByIdResponse, error) // ScoreGetWithResponse request ScoreGetWithResponse(ctx context.Context, params *ScoreGetParams, reqEditors ...RequestEditorFn) (*ScoreGetResponse, error) // ScoreCreateWithBodyWithResponse request with any body ScoreCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScoreCreateResponse, error) ScoreCreateWithResponse(ctx context.Context, body ScoreCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ScoreCreateResponse, error) // ScoreDeleteWithResponse request ScoreDeleteWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreDeleteResponse, error) // ScoreGetByIdWithResponse request ScoreGetByIdWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreGetByIdResponse, error) // SessionsListWithResponse request SessionsListWithResponse(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*SessionsListResponse, error) // SessionsGetWithResponse request SessionsGetWithResponse(ctx context.Context, sessionId string, reqEditors ...RequestEditorFn) (*SessionsGetResponse, error) // TraceListWithResponse request TraceListWithResponse(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*TraceListResponse, error) // TraceGetWithResponse request TraceGetWithResponse(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*TraceGetResponse, error) // DatasetsListWithResponse request DatasetsListWithResponse(ctx context.Context, params *DatasetsListParams, reqEditors ...RequestEditorFn) (*DatasetsListResponse, error) // DatasetsCreateWithBodyWithResponse request with any body DatasetsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DatasetsCreateResponse, error) DatasetsCreateWithResponse(ctx context.Context, body DatasetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatasetsCreateResponse, error) // DatasetsGetWithResponse request DatasetsGetWithResponse(ctx context.Context, datasetName string, reqEditors ...RequestEditorFn) (*DatasetsGetResponse, error) // PromptsListWithResponse request PromptsListWithResponse(ctx context.Context, params *PromptsListParams, reqEditors ...RequestEditorFn) (*PromptsListResponse, error) // PromptsCreateWithBodyWithResponse request with any body PromptsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromptsCreateResponse, error) PromptsCreateWithResponse(ctx context.Context, body PromptsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PromptsCreateResponse, error) // PromptsGetWithResponse request PromptsGetWithResponse(ctx context.Context, promptName string, params *PromptsGetParams, reqEditors ...RequestEditorFn) (*PromptsGetResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Comment ¶ added in v0.2.0
type Comment struct { AuthorUserId *string `json:"authorUserId"` Content string `json:"content"` CreatedAt time.Time `json:"createdAt"` Id string `json:"id"` ObjectId string `json:"objectId"` ObjectType CommentObjectType `json:"objectType"` ProjectId string `json:"projectId"` UpdatedAt time.Time `json:"updatedAt"` }
Comment defines model for Comment.
type CommentObjectType ¶ added in v0.2.0
type CommentObjectType string
CommentObjectType defines model for CommentObjectType.
const ( OBSERVATION CommentObjectType = "OBSERVATION" PROMPT CommentObjectType = "PROMPT" SESSION CommentObjectType = "SESSION" TRACE CommentObjectType = "TRACE" )
Defines values for CommentObjectType.
type CommentsCreateJSONRequestBody ¶ added in v0.2.0
type CommentsCreateJSONRequestBody = CreateCommentRequest
CommentsCreateJSONRequestBody defines body for CommentsCreate for application/json ContentType.
type CommentsCreateResponse ¶ added in v0.2.0
type CommentsCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateCommentResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseCommentsCreateResponse ¶ added in v0.2.0
func ParseCommentsCreateResponse(rsp *http.Response) (*CommentsCreateResponse, error)
ParseCommentsCreateResponse parses an HTTP response from a CommentsCreateWithResponse call
func (CommentsCreateResponse) Status ¶ added in v0.2.0
func (r CommentsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (CommentsCreateResponse) StatusCode ¶ added in v0.2.0
func (r CommentsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CommentsGetByIdResponse ¶ added in v0.2.0
type CommentsGetByIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Comment JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseCommentsGetByIdResponse ¶ added in v0.2.0
func ParseCommentsGetByIdResponse(rsp *http.Response) (*CommentsGetByIdResponse, error)
ParseCommentsGetByIdResponse parses an HTTP response from a CommentsGetByIdWithResponse call
func (CommentsGetByIdResponse) Status ¶ added in v0.2.0
func (r CommentsGetByIdResponse) Status() string
Status returns HTTPResponse.Status
func (CommentsGetByIdResponse) StatusCode ¶ added in v0.2.0
func (r CommentsGetByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CommentsGetParams ¶ added in v0.2.0
type CommentsGetParams struct { // Page Page number, starts at 1. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // ObjectType Filter comments by object type (trace, observation, session, prompt). ObjectType *string `form:"objectType,omitempty" json:"objectType,omitempty"` // ObjectId Filter comments by object id. If objectType is not provided, an error will be thrown. ObjectId *string `form:"objectId,omitempty" json:"objectId,omitempty"` // AuthorUserId Filter comments by author user id. AuthorUserId *string `form:"authorUserId,omitempty" json:"authorUserId,omitempty"` }
CommentsGetParams defines parameters for CommentsGet.
type CommentsGetResponse ¶ added in v0.2.0
type CommentsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetCommentsResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseCommentsGetResponse ¶ added in v0.2.0
func ParseCommentsGetResponse(rsp *http.Response) (*CommentsGetResponse, error)
ParseCommentsGetResponse parses an HTTP response from a CommentsGetWithResponse call
func (CommentsGetResponse) Status ¶ added in v0.2.0
func (r CommentsGetResponse) Status() string
Status returns HTTPResponse.Status
func (CommentsGetResponse) StatusCode ¶ added in v0.2.0
func (r CommentsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfigCategory ¶
ConfigCategory defines model for ConfigCategory.
type CreateChatPromptRequest ¶
type CreateChatPromptRequest struct { Config *interface{} `json:"config"` // Labels List of deployment labels of this prompt version. Labels *[]string `json:"labels"` Name string `json:"name"` Prompt []ChatMessage `json:"prompt"` // Tags List of tags to apply to all versions of this prompt. Tags *[]string `json:"tags"` }
CreateChatPromptRequest defines model for CreateChatPromptRequest.
type CreateCommentRequest ¶ added in v0.2.0
type CreateCommentRequest struct { // AuthorUserId The id of the user who created the comment. AuthorUserId *string `json:"authorUserId"` // Content The content of the comment. May include markdown. Currently limited to 3000 characters. Content string `json:"content"` // ObjectId The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown. ObjectId string `json:"objectId"` // ObjectType The type of the object to attach the comment to (trace, observation, session, prompt). ObjectType string `json:"objectType"` // ProjectId The id of the project to attach the comment to. ProjectId string `json:"projectId"` }
CreateCommentRequest defines model for CreateCommentRequest.
type CreateCommentResponse ¶ added in v0.2.0
type CreateCommentResponse struct { // Id The id of the created object in Langfuse Id string `json:"id"` }
CreateCommentResponse defines model for CreateCommentResponse.
type CreateDatasetItemRequest ¶
type CreateDatasetItemRequest struct { DatasetName string `json:"datasetName"` ExpectedOutput *interface{} `json:"expectedOutput"` // Id Dataset items are upserted on their id. Id needs to be unique (project-level) and cannot be reused across datasets. Id *string `json:"id"` Input *interface{} `json:"input"` Metadata *interface{} `json:"metadata"` SourceObservationId *string `json:"sourceObservationId"` SourceTraceId *string `json:"sourceTraceId"` Status *DatasetStatus `json:"status,omitempty"` }
CreateDatasetItemRequest defines model for CreateDatasetItemRequest.
type CreateDatasetRequest ¶
type CreateDatasetRequest struct { Description *string `json:"description"` Metadata *interface{} `json:"metadata"` Name string `json:"name"` }
CreateDatasetRequest defines model for CreateDatasetRequest.
type CreateDatasetRunItemRequest ¶
type CreateDatasetRunItemRequest struct { DatasetItemId string `json:"datasetItemId"` // Metadata Metadata of the dataset run, updates run if run already exists Metadata *interface{} `json:"metadata"` ObservationId *string `json:"observationId"` // RunDescription Description of the run. If run exists, description will be updated. RunDescription *string `json:"runDescription"` RunName string `json:"runName"` // TraceId traceId should always be provided. For compatibility with older SDK versions it can also be inferred from the provided observationId. TraceId *string `json:"traceId"` }
CreateDatasetRunItemRequest defines model for CreateDatasetRunItemRequest.
type CreateEventBody ¶
type CreateEventBody = OptionalObservationBody
CreateEventBody defines model for CreateEventBody.
type CreateEventEvent ¶
type CreateEventEvent = BaseEvent
CreateEventEvent defines model for CreateEventEvent.
type CreateGenerationBody ¶
type CreateGenerationBody = CreateSpanBody
CreateGenerationBody defines model for CreateGenerationBody.
type CreateGenerationEvent ¶
type CreateGenerationEvent = BaseEvent
CreateGenerationEvent defines model for CreateGenerationEvent.
type CreateModelRequest ¶
type CreateModelRequest struct { // InputPrice Price (USD) per input unit InputPrice *float64 `json:"inputPrice"` // MatchPattern Regex pattern which matches this model definition to generation.model. Useful in case of fine-tuned models. If you want to exact match, use `(?i)^modelname$` MatchPattern string `json:"matchPattern"` // ModelName Name of the model definition. If multiple with the same name exist, they are applied in the following order: (1) custom over built-in, (2) newest according to startTime where model.startTime<observation.startTime ModelName string `json:"modelName"` // OutputPrice Price (USD) per output unit OutputPrice *float64 `json:"outputPrice"` // StartDate Apply only to generations which are newer than this ISO date. StartDate *time.Time `json:"startDate"` // TokenizerConfig Optional. Configuration for the selected tokenizer. Needs to be JSON. See docs for more details. TokenizerConfig *interface{} `json:"tokenizerConfig"` // TokenizerId Optional. Tokenizer to be applied to observations which match to this model. See docs for more details. TokenizerId *string `json:"tokenizerId"` // TotalPrice Price (USD) per total units. Cannot be set if input or output price is set. TotalPrice *float64 `json:"totalPrice"` // Unit Unit of usage in Langfuse Unit ModelUsageUnit `json:"unit"` }
CreateModelRequest defines model for CreateModelRequest.
type CreateObservationEvent ¶
type CreateObservationEvent = BaseEvent
CreateObservationEvent defines model for CreateObservationEvent.
type CreatePromptRequest ¶
type CreatePromptRequest struct {
// contains filtered or unexported fields
}
CreatePromptRequest defines model for CreatePromptRequest.
func (CreatePromptRequest) AsCreatePromptRequest0 ¶
func (t CreatePromptRequest) AsCreatePromptRequest0() (CreatePromptRequest0, error)
AsCreatePromptRequest0 returns the union data inside the CreatePromptRequest as a CreatePromptRequest0
func (CreatePromptRequest) AsCreatePromptRequest1 ¶
func (t CreatePromptRequest) AsCreatePromptRequest1() (CreatePromptRequest1, error)
AsCreatePromptRequest1 returns the union data inside the CreatePromptRequest as a CreatePromptRequest1
func (*CreatePromptRequest) FromCreatePromptRequest0 ¶
func (t *CreatePromptRequest) FromCreatePromptRequest0(v CreatePromptRequest0) error
FromCreatePromptRequest0 overwrites any union data inside the CreatePromptRequest as the provided CreatePromptRequest0
func (*CreatePromptRequest) FromCreatePromptRequest1 ¶
func (t *CreatePromptRequest) FromCreatePromptRequest1(v CreatePromptRequest1) error
FromCreatePromptRequest1 overwrites any union data inside the CreatePromptRequest as the provided CreatePromptRequest1
func (CreatePromptRequest) MarshalJSON ¶
func (t CreatePromptRequest) MarshalJSON() ([]byte, error)
func (*CreatePromptRequest) MergeCreatePromptRequest0 ¶
func (t *CreatePromptRequest) MergeCreatePromptRequest0(v CreatePromptRequest0) error
MergeCreatePromptRequest0 performs a merge with any union data inside the CreatePromptRequest, using the provided CreatePromptRequest0
func (*CreatePromptRequest) MergeCreatePromptRequest1 ¶
func (t *CreatePromptRequest) MergeCreatePromptRequest1(v CreatePromptRequest1) error
MergeCreatePromptRequest1 performs a merge with any union data inside the CreatePromptRequest, using the provided CreatePromptRequest1
func (*CreatePromptRequest) UnmarshalJSON ¶
func (t *CreatePromptRequest) UnmarshalJSON(b []byte) error
type CreatePromptRequest0 ¶
type CreatePromptRequest0 struct { Config *interface{} `json:"config"` // Labels List of deployment labels of this prompt version. Labels *[]string `json:"labels"` Name string `json:"name"` Prompt []ChatMessage `json:"prompt"` // Tags List of tags to apply to all versions of this prompt. Tags *[]string `json:"tags"` Type *CreatePromptRequest0Type `json:"type,omitempty"` }
CreatePromptRequest0 defines model for .
type CreatePromptRequest0Type ¶
type CreatePromptRequest0Type string
CreatePromptRequest0Type defines model for CreatePromptRequest.0.Type.
const (
CreatePromptRequest0TypeChat CreatePromptRequest0Type = "chat"
)
Defines values for CreatePromptRequest0Type.
type CreatePromptRequest1 ¶
type CreatePromptRequest1 struct { Config *interface{} `json:"config"` // Labels List of deployment labels of this prompt version. Labels *[]string `json:"labels"` Name string `json:"name"` Prompt string `json:"prompt"` // Tags List of tags to apply to all versions of this prompt. Tags *[]string `json:"tags"` Type *CreatePromptRequest1Type `json:"type,omitempty"` }
CreatePromptRequest1 defines model for .
type CreatePromptRequest1Type ¶
type CreatePromptRequest1Type string
CreatePromptRequest1Type defines model for CreatePromptRequest.1.Type.
const (
CreatePromptRequest1TypeText CreatePromptRequest1Type = "text"
)
Defines values for CreatePromptRequest1Type.
type CreateScoreConfigRequest ¶
type CreateScoreConfigRequest struct { // Categories Configure custom categories for categorical scores. Pass a list of objects with `label` and `value` properties. Categories are autogenerated for boolean configs and cannot be passed Categories *[]ConfigCategory `json:"categories"` DataType ScoreDataType `json:"dataType"` // Description Description is shown across the Langfuse UI and can be used to e.g. explain the config categories in detail, why a numeric range was set, or provide additional context on config name or usage Description *string `json:"description"` // MaxValue Configure a maximum value for numerical scores. If not set, the maximum value defaults to +∞ MaxValue *float64 `json:"maxValue"` // MinValue Configure a minimum value for numerical scores. If not set, the minimum value defaults to -∞ MinValue *float64 `json:"minValue"` Name string `json:"name"` }
CreateScoreConfigRequest defines model for CreateScoreConfigRequest.
type CreateScoreRequest ¶
type CreateScoreRequest struct { Comment *string `json:"comment"` // ConfigId Reference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated. ConfigId *string `json:"configId"` DataType *ScoreDataType `json:"dataType,omitempty"` Id *string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` TraceId string `json:"traceId"` // Value The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores Value CreateScoreValue `json:"value"` }
CreateScoreRequest defines model for CreateScoreRequest.
type CreateScoreResponse ¶
type CreateScoreResponse struct { // Id The id of the created object in Langfuse Id string `json:"id"` }
CreateScoreResponse defines model for CreateScoreResponse.
type CreateScoreValue ¶
type CreateScoreValue struct {
// contains filtered or unexported fields
}
CreateScoreValue The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores
func (CreateScoreValue) AsCreateScoreValue0 ¶
func (t CreateScoreValue) AsCreateScoreValue0() (CreateScoreValue0, error)
AsCreateScoreValue0 returns the union data inside the CreateScoreValue as a CreateScoreValue0
func (CreateScoreValue) AsCreateScoreValue1 ¶
func (t CreateScoreValue) AsCreateScoreValue1() (CreateScoreValue1, error)
AsCreateScoreValue1 returns the union data inside the CreateScoreValue as a CreateScoreValue1
func (*CreateScoreValue) FromCreateScoreValue0 ¶
func (t *CreateScoreValue) FromCreateScoreValue0(v CreateScoreValue0) error
FromCreateScoreValue0 overwrites any union data inside the CreateScoreValue as the provided CreateScoreValue0
func (*CreateScoreValue) FromCreateScoreValue1 ¶
func (t *CreateScoreValue) FromCreateScoreValue1(v CreateScoreValue1) error
FromCreateScoreValue1 overwrites any union data inside the CreateScoreValue as the provided CreateScoreValue1
func (CreateScoreValue) MarshalJSON ¶
func (t CreateScoreValue) MarshalJSON() ([]byte, error)
func (*CreateScoreValue) MergeCreateScoreValue0 ¶
func (t *CreateScoreValue) MergeCreateScoreValue0(v CreateScoreValue0) error
MergeCreateScoreValue0 performs a merge with any union data inside the CreateScoreValue, using the provided CreateScoreValue0
func (*CreateScoreValue) MergeCreateScoreValue1 ¶
func (t *CreateScoreValue) MergeCreateScoreValue1(v CreateScoreValue1) error
MergeCreateScoreValue1 performs a merge with any union data inside the CreateScoreValue, using the provided CreateScoreValue1
func (*CreateScoreValue) UnmarshalJSON ¶
func (t *CreateScoreValue) UnmarshalJSON(b []byte) error
type CreateSpanBody ¶
type CreateSpanBody = CreateEventBody
CreateSpanBody defines model for CreateSpanBody.
type CreateSpanEvent ¶
type CreateSpanEvent = BaseEvent
CreateSpanEvent defines model for CreateSpanEvent.
type CreateTextPromptRequest ¶
type CreateTextPromptRequest struct { Config *interface{} `json:"config"` // Labels List of deployment labels of this prompt version. Labels *[]string `json:"labels"` Name string `json:"name"` Prompt string `json:"prompt"` // Tags List of tags to apply to all versions of this prompt. Tags *[]string `json:"tags"` }
CreateTextPromptRequest defines model for CreateTextPromptRequest.
type DailyMetrics ¶
type DailyMetrics struct { // Data A list of daily metrics, only days with ingested data are included. Data []DailyMetricsDetails `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
DailyMetrics defines model for DailyMetrics.
type DailyMetricsDetails ¶
type DailyMetricsDetails struct { CountObservations int `json:"countObservations"` CountTraces int `json:"countTraces"` Date openapi_types.Date `json:"date"` // TotalCost Total model cost in USD TotalCost float64 `json:"totalCost"` Usage []UsageByModel `json:"usage"` }
DailyMetricsDetails defines model for DailyMetricsDetails.
type Dataset ¶
type Dataset struct { CreatedAt time.Time `json:"createdAt"` Description *string `json:"description"` Id string `json:"id"` Metadata *interface{} `json:"metadata"` Name string `json:"name"` ProjectId string `json:"projectId"` UpdatedAt time.Time `json:"updatedAt"` }
Dataset defines model for Dataset.
type DatasetItem ¶
type DatasetItem struct { CreatedAt time.Time `json:"createdAt"` DatasetId string `json:"datasetId"` DatasetName string `json:"datasetName"` ExpectedOutput *interface{} `json:"expectedOutput"` Id string `json:"id"` Input *interface{} `json:"input"` Metadata *interface{} `json:"metadata"` SourceObservationId *string `json:"sourceObservationId"` SourceTraceId *string `json:"sourceTraceId"` Status DatasetStatus `json:"status"` UpdatedAt time.Time `json:"updatedAt"` }
DatasetItem defines model for DatasetItem.
type DatasetItemsCreateJSONRequestBody ¶
type DatasetItemsCreateJSONRequestBody = CreateDatasetItemRequest
DatasetItemsCreateJSONRequestBody defines body for DatasetItemsCreate for application/json ContentType.
type DatasetItemsCreateResponse ¶
type DatasetItemsCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DatasetItem JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetItemsCreateResponse ¶
func ParseDatasetItemsCreateResponse(rsp *http.Response) (*DatasetItemsCreateResponse, error)
ParseDatasetItemsCreateResponse parses an HTTP response from a DatasetItemsCreateWithResponse call
func (DatasetItemsCreateResponse) Status ¶
func (r DatasetItemsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetItemsCreateResponse) StatusCode ¶
func (r DatasetItemsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetItemsGetResponse ¶
type DatasetItemsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DatasetItem JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetItemsGetResponse ¶
func ParseDatasetItemsGetResponse(rsp *http.Response) (*DatasetItemsGetResponse, error)
ParseDatasetItemsGetResponse parses an HTTP response from a DatasetItemsGetWithResponse call
func (DatasetItemsGetResponse) Status ¶
func (r DatasetItemsGetResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetItemsGetResponse) StatusCode ¶
func (r DatasetItemsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetItemsListParams ¶
type DatasetItemsListParams struct { DatasetName *string `form:"datasetName,omitempty" json:"datasetName,omitempty"` SourceTraceId *string `form:"sourceTraceId,omitempty" json:"sourceTraceId,omitempty"` SourceObservationId *string `form:"sourceObservationId,omitempty" json:"sourceObservationId,omitempty"` // Page page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit limit of items per page Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
DatasetItemsListParams defines parameters for DatasetItemsList.
type DatasetItemsListResponse ¶
type DatasetItemsListResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedDatasetItems JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetItemsListResponse ¶
func ParseDatasetItemsListResponse(rsp *http.Response) (*DatasetItemsListResponse, error)
ParseDatasetItemsListResponse parses an HTTP response from a DatasetItemsListWithResponse call
func (DatasetItemsListResponse) Status ¶
func (r DatasetItemsListResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetItemsListResponse) StatusCode ¶
func (r DatasetItemsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetRun ¶
type DatasetRun struct { // CreatedAt The date and time when the dataset run was created CreatedAt time.Time `json:"createdAt"` // DatasetId Id of the associated dataset DatasetId string `json:"datasetId"` // DatasetName Name of the associated dataset DatasetName string `json:"datasetName"` // Description Description of the run Description *string `json:"description"` // Id Unique identifier of the dataset run Id string `json:"id"` // Metadata Metadata of the dataset run Metadata *interface{} `json:"metadata"` // Name Name of the dataset run Name string `json:"name"` // UpdatedAt The date and time when the dataset run was last updated UpdatedAt time.Time `json:"updatedAt"` }
DatasetRun defines model for DatasetRun.
type DatasetRunItem ¶
type DatasetRunItem struct { CreatedAt time.Time `json:"createdAt"` DatasetItemId string `json:"datasetItemId"` DatasetRunId string `json:"datasetRunId"` DatasetRunName string `json:"datasetRunName"` Id string `json:"id"` ObservationId *string `json:"observationId"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
DatasetRunItem defines model for DatasetRunItem.
type DatasetRunItemsCreateJSONRequestBody ¶
type DatasetRunItemsCreateJSONRequestBody = CreateDatasetRunItemRequest
DatasetRunItemsCreateJSONRequestBody defines body for DatasetRunItemsCreate for application/json ContentType.
type DatasetRunItemsCreateResponse ¶
type DatasetRunItemsCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DatasetRunItem JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetRunItemsCreateResponse ¶
func ParseDatasetRunItemsCreateResponse(rsp *http.Response) (*DatasetRunItemsCreateResponse, error)
ParseDatasetRunItemsCreateResponse parses an HTTP response from a DatasetRunItemsCreateWithResponse call
func (DatasetRunItemsCreateResponse) Status ¶
func (r DatasetRunItemsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetRunItemsCreateResponse) StatusCode ¶
func (r DatasetRunItemsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetRunWithItems ¶
type DatasetRunWithItems = DatasetRun
DatasetRunWithItems defines model for DatasetRunWithItems.
type DatasetStatus ¶
type DatasetStatus string
DatasetStatus defines model for DatasetStatus.
const ( ACTIVE DatasetStatus = "ACTIVE" ARCHIVED DatasetStatus = "ARCHIVED" )
Defines values for DatasetStatus.
type DatasetsCreateJSONRequestBody ¶
type DatasetsCreateJSONRequestBody = CreateDatasetRequest
DatasetsCreateJSONRequestBody defines body for DatasetsCreate for application/json ContentType.
type DatasetsCreateResponse ¶
type DatasetsCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Dataset JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetsCreateResponse ¶
func ParseDatasetsCreateResponse(rsp *http.Response) (*DatasetsCreateResponse, error)
ParseDatasetsCreateResponse parses an HTTP response from a DatasetsCreateWithResponse call
func (DatasetsCreateResponse) Status ¶
func (r DatasetsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetsCreateResponse) StatusCode ¶
func (r DatasetsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetsGetResponse ¶
type DatasetsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Dataset JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetsGetResponse ¶
func ParseDatasetsGetResponse(rsp *http.Response) (*DatasetsGetResponse, error)
ParseDatasetsGetResponse parses an HTTP response from a DatasetsGetWithResponse call
func (DatasetsGetResponse) Status ¶
func (r DatasetsGetResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetsGetResponse) StatusCode ¶
func (r DatasetsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetsGetRunResponse ¶
type DatasetsGetRunResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DatasetRunWithItems JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetsGetRunResponse ¶
func ParseDatasetsGetRunResponse(rsp *http.Response) (*DatasetsGetRunResponse, error)
ParseDatasetsGetRunResponse parses an HTTP response from a DatasetsGetRunWithResponse call
func (DatasetsGetRunResponse) Status ¶
func (r DatasetsGetRunResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetsGetRunResponse) StatusCode ¶
func (r DatasetsGetRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetsGetRunsParams ¶
type DatasetsGetRunsParams struct { // Page page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit limit of items per page Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
DatasetsGetRunsParams defines parameters for DatasetsGetRuns.
type DatasetsGetRunsResponse ¶
type DatasetsGetRunsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedDatasetRuns JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetsGetRunsResponse ¶
func ParseDatasetsGetRunsResponse(rsp *http.Response) (*DatasetsGetRunsResponse, error)
ParseDatasetsGetRunsResponse parses an HTTP response from a DatasetsGetRunsWithResponse call
func (DatasetsGetRunsResponse) Status ¶
func (r DatasetsGetRunsResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetsGetRunsResponse) StatusCode ¶
func (r DatasetsGetRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DatasetsListParams ¶
type DatasetsListParams struct { // Page page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit limit of items per page Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
DatasetsListParams defines parameters for DatasetsList.
type DatasetsListResponse ¶
type DatasetsListResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedDatasets JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseDatasetsListResponse ¶
func ParseDatasetsListResponse(rsp *http.Response) (*DatasetsListResponse, error)
ParseDatasetsListResponse parses an HTTP response from a DatasetsListWithResponse call
func (DatasetsListResponse) Status ¶
func (r DatasetsListResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetsListResponse) StatusCode ¶
func (r DatasetsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommentsResponse ¶ added in v0.2.0
type GetCommentsResponse struct { Data []Comment `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
GetCommentsResponse defines model for GetCommentsResponse.
type GetMediaResponse ¶ added in v0.2.0
type GetMediaResponse struct { // ContentLength The size of the media record in bytes ContentLength int `json:"contentLength"` // ContentType The MIME type of the media record ContentType string `json:"contentType"` // MediaId The unique langfuse identifier of a media record MediaId string `json:"mediaId"` // UploadedAt The date and time when the media record was uploaded UploadedAt time.Time `json:"uploadedAt"` // Url The download URL of the media record Url string `json:"url"` // UrlExpiry The expiry date and time of the media record download URL UrlExpiry string `json:"urlExpiry"` }
GetMediaResponse defines model for GetMediaResponse.
type GetMediaUploadUrlRequest ¶ added in v0.2.0
type GetMediaUploadUrlRequest struct { // ContentLength The size of the media record in bytes ContentLength int `json:"contentLength"` // ContentType The MIME type of the media record ContentType MediaContentType `json:"contentType"` // Field The trace / observation field the media record is associated with. This can be one of `input`, `output`, `metadata` Field string `json:"field"` // ObservationId The observation ID associated with the media record. If the media record is associated directly with a trace, this will be null. ObservationId *string `json:"observationId"` // Sha256Hash The SHA-256 hash of the media record Sha256Hash string `json:"sha256Hash"` // TraceId The trace ID associated with the media record TraceId string `json:"traceId"` }
GetMediaUploadUrlRequest defines model for GetMediaUploadUrlRequest.
type GetMediaUploadUrlResponse ¶ added in v0.2.0
type GetMediaUploadUrlResponse struct { // MediaId The unique langfuse identifier of a media record MediaId string `json:"mediaId"` // UploadUrl The presigned upload URL. If the asset is already uploaded, this will be null UploadUrl *string `json:"uploadUrl"` }
GetMediaUploadUrlResponse defines model for GetMediaUploadUrlResponse.
type GetScoresResponse ¶ added in v0.2.0
type GetScoresResponse struct { Data []GetScoresResponseData `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
GetScoresResponse defines model for GetScoresResponse.
type GetScoresResponseData ¶ added in v0.2.0
type GetScoresResponseData struct {
// contains filtered or unexported fields
}
GetScoresResponseData defines model for GetScoresResponseData.
func (GetScoresResponseData) AsGetScoresResponseData0 ¶ added in v0.2.0
func (t GetScoresResponseData) AsGetScoresResponseData0() (GetScoresResponseData0, error)
AsGetScoresResponseData0 returns the union data inside the GetScoresResponseData as a GetScoresResponseData0
func (GetScoresResponseData) AsGetScoresResponseData1 ¶ added in v0.2.0
func (t GetScoresResponseData) AsGetScoresResponseData1() (GetScoresResponseData1, error)
AsGetScoresResponseData1 returns the union data inside the GetScoresResponseData as a GetScoresResponseData1
func (GetScoresResponseData) AsGetScoresResponseData2 ¶ added in v0.2.0
func (t GetScoresResponseData) AsGetScoresResponseData2() (GetScoresResponseData2, error)
AsGetScoresResponseData2 returns the union data inside the GetScoresResponseData as a GetScoresResponseData2
func (*GetScoresResponseData) FromGetScoresResponseData0 ¶ added in v0.2.0
func (t *GetScoresResponseData) FromGetScoresResponseData0(v GetScoresResponseData0) error
FromGetScoresResponseData0 overwrites any union data inside the GetScoresResponseData as the provided GetScoresResponseData0
func (*GetScoresResponseData) FromGetScoresResponseData1 ¶ added in v0.2.0
func (t *GetScoresResponseData) FromGetScoresResponseData1(v GetScoresResponseData1) error
FromGetScoresResponseData1 overwrites any union data inside the GetScoresResponseData as the provided GetScoresResponseData1
func (*GetScoresResponseData) FromGetScoresResponseData2 ¶ added in v0.2.0
func (t *GetScoresResponseData) FromGetScoresResponseData2(v GetScoresResponseData2) error
FromGetScoresResponseData2 overwrites any union data inside the GetScoresResponseData as the provided GetScoresResponseData2
func (GetScoresResponseData) MarshalJSON ¶ added in v0.2.0
func (t GetScoresResponseData) MarshalJSON() ([]byte, error)
func (*GetScoresResponseData) MergeGetScoresResponseData0 ¶ added in v0.2.0
func (t *GetScoresResponseData) MergeGetScoresResponseData0(v GetScoresResponseData0) error
MergeGetScoresResponseData0 performs a merge with any union data inside the GetScoresResponseData, using the provided GetScoresResponseData0
func (*GetScoresResponseData) MergeGetScoresResponseData1 ¶ added in v0.2.0
func (t *GetScoresResponseData) MergeGetScoresResponseData1(v GetScoresResponseData1) error
MergeGetScoresResponseData1 performs a merge with any union data inside the GetScoresResponseData, using the provided GetScoresResponseData1
func (*GetScoresResponseData) MergeGetScoresResponseData2 ¶ added in v0.2.0
func (t *GetScoresResponseData) MergeGetScoresResponseData2(v GetScoresResponseData2) error
MergeGetScoresResponseData2 performs a merge with any union data inside the GetScoresResponseData, using the provided GetScoresResponseData2
func (*GetScoresResponseData) UnmarshalJSON ¶ added in v0.2.0
func (t *GetScoresResponseData) UnmarshalJSON(b []byte) error
type GetScoresResponseData0 ¶ added in v0.2.0
type GetScoresResponseData0 struct { AuthorUserId *string `json:"authorUserId"` Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range ConfigId *string `json:"configId"` CreatedAt time.Time `json:"createdAt"` DataType *GetScoresResponseData0DataType `json:"dataType,omitempty"` Id string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` // QueueId Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue. QueueId *string `json:"queueId"` Source ScoreSource `json:"source"` Timestamp time.Time `json:"timestamp"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
GetScoresResponseData0 defines model for .
type GetScoresResponseData0DataType ¶ added in v0.2.0
type GetScoresResponseData0DataType string
GetScoresResponseData0DataType defines model for GetScoresResponseData.0.DataType.
const (
GetScoresResponseData0DataTypeNUMERIC GetScoresResponseData0DataType = "NUMERIC"
)
Defines values for GetScoresResponseData0DataType.
type GetScoresResponseData1 ¶ added in v0.2.0
type GetScoresResponseData1 struct { AuthorUserId *string `json:"authorUserId"` Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range ConfigId *string `json:"configId"` CreatedAt time.Time `json:"createdAt"` DataType *GetScoresResponseData1DataType `json:"dataType,omitempty"` Id string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` // QueueId Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue. QueueId *string `json:"queueId"` Source ScoreSource `json:"source"` Timestamp time.Time `json:"timestamp"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
GetScoresResponseData1 defines model for .
type GetScoresResponseData1DataType ¶ added in v0.2.0
type GetScoresResponseData1DataType string
GetScoresResponseData1DataType defines model for GetScoresResponseData.1.DataType.
const (
GetScoresResponseData1DataTypeCATEGORICAL GetScoresResponseData1DataType = "CATEGORICAL"
)
Defines values for GetScoresResponseData1DataType.
type GetScoresResponseData2 ¶ added in v0.2.0
type GetScoresResponseData2 struct { AuthorUserId *string `json:"authorUserId"` Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range ConfigId *string `json:"configId"` CreatedAt time.Time `json:"createdAt"` DataType *GetScoresResponseData2DataType `json:"dataType,omitempty"` Id string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` // QueueId Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue. QueueId *string `json:"queueId"` Source ScoreSource `json:"source"` Timestamp time.Time `json:"timestamp"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
GetScoresResponseData2 defines model for .
type GetScoresResponseData2DataType ¶ added in v0.2.0
type GetScoresResponseData2DataType string
GetScoresResponseData2DataType defines model for GetScoresResponseData.2.DataType.
const (
GetScoresResponseData2DataTypeBOOLEAN GetScoresResponseData2DataType = "BOOLEAN"
)
Defines values for GetScoresResponseData2DataType.
type GetScoresResponseDataBoolean ¶ added in v0.2.0
type GetScoresResponseDataBoolean = BooleanScore
GetScoresResponseDataBoolean defines model for GetScoresResponseDataBoolean.
type GetScoresResponseDataCategorical ¶ added in v0.2.0
type GetScoresResponseDataCategorical = CategoricalScore
GetScoresResponseDataCategorical defines model for GetScoresResponseDataCategorical.
type GetScoresResponseDataNumeric ¶ added in v0.2.0
type GetScoresResponseDataNumeric = NumericScore
GetScoresResponseDataNumeric defines model for GetScoresResponseDataNumeric.
type GetScoresResponseTraceData ¶ added in v0.2.0
type GetScoresResponseTraceData struct { // Tags A list of tags associated with the trace referenced by score Tags *[]string `json:"tags"` // UserId The user ID associated with the trace referenced by score UserId *string `json:"userId"` }
GetScoresResponseTraceData defines model for GetScoresResponseTraceData.
type HealthHealthResponse ¶
type HealthHealthResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HealthResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseHealthHealthResponse ¶
func ParseHealthHealthResponse(rsp *http.Response) (*HealthHealthResponse, error)
ParseHealthHealthResponse parses an HTTP response from a HealthHealthWithResponse call
func (HealthHealthResponse) Status ¶
func (r HealthHealthResponse) Status() string
Status returns HTTPResponse.Status
func (HealthHealthResponse) StatusCode ¶
func (r HealthHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthResponse ¶
type HealthResponse struct { Status string `json:"status"` // Version Langfuse server version Version string `json:"version"` }
HealthResponse defines model for HealthResponse.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IngestionBatchJSONBody ¶
type IngestionBatchJSONBody struct { // Batch Batch of tracing events to be ingested. Discriminated by attribute `type`. Batch []IngestionEvent `json:"batch"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` }
IngestionBatchJSONBody defines parameters for IngestionBatch.
type IngestionBatchJSONRequestBody ¶
type IngestionBatchJSONRequestBody IngestionBatchJSONBody
IngestionBatchJSONRequestBody defines body for IngestionBatch for application/json ContentType.
type IngestionBatchResponse ¶
type IngestionBatchResponse struct { Body []byte HTTPResponse *http.Response JSON200 *IngestionResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseIngestionBatchResponse ¶
func ParseIngestionBatchResponse(rsp *http.Response) (*IngestionBatchResponse, error)
ParseIngestionBatchResponse parses an HTTP response from a IngestionBatchWithResponse call
func (IngestionBatchResponse) Status ¶
func (r IngestionBatchResponse) Status() string
Status returns HTTPResponse.Status
func (IngestionBatchResponse) StatusCode ¶
func (r IngestionBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IngestionError ¶
type IngestionError struct { Error *interface{} `json:"error"` Id string `json:"id"` Message *string `json:"message"` Status int `json:"status"` }
IngestionError defines model for IngestionError.
type IngestionEvent ¶
type IngestionEvent struct {
// contains filtered or unexported fields
}
IngestionEvent defines model for IngestionEvent.
func (IngestionEvent) AsIngestionEvent0 ¶
func (t IngestionEvent) AsIngestionEvent0() (IngestionEvent0, error)
AsIngestionEvent0 returns the union data inside the IngestionEvent as a IngestionEvent0
func (IngestionEvent) AsIngestionEvent1 ¶
func (t IngestionEvent) AsIngestionEvent1() (IngestionEvent1, error)
AsIngestionEvent1 returns the union data inside the IngestionEvent as a IngestionEvent1
func (IngestionEvent) AsIngestionEvent2 ¶
func (t IngestionEvent) AsIngestionEvent2() (IngestionEvent2, error)
AsIngestionEvent2 returns the union data inside the IngestionEvent as a IngestionEvent2
func (IngestionEvent) AsIngestionEvent3 ¶
func (t IngestionEvent) AsIngestionEvent3() (IngestionEvent3, error)
AsIngestionEvent3 returns the union data inside the IngestionEvent as a IngestionEvent3
func (IngestionEvent) AsIngestionEvent4 ¶
func (t IngestionEvent) AsIngestionEvent4() (IngestionEvent4, error)
AsIngestionEvent4 returns the union data inside the IngestionEvent as a IngestionEvent4
func (IngestionEvent) AsIngestionEvent5 ¶
func (t IngestionEvent) AsIngestionEvent5() (IngestionEvent5, error)
AsIngestionEvent5 returns the union data inside the IngestionEvent as a IngestionEvent5
func (IngestionEvent) AsIngestionEvent6 ¶
func (t IngestionEvent) AsIngestionEvent6() (IngestionEvent6, error)
AsIngestionEvent6 returns the union data inside the IngestionEvent as a IngestionEvent6
func (IngestionEvent) AsIngestionEvent7 ¶
func (t IngestionEvent) AsIngestionEvent7() (IngestionEvent7, error)
AsIngestionEvent7 returns the union data inside the IngestionEvent as a IngestionEvent7
func (IngestionEvent) AsIngestionEvent8 ¶
func (t IngestionEvent) AsIngestionEvent8() (IngestionEvent8, error)
AsIngestionEvent8 returns the union data inside the IngestionEvent as a IngestionEvent8
func (IngestionEvent) AsIngestionEvent9 ¶
func (t IngestionEvent) AsIngestionEvent9() (IngestionEvent9, error)
AsIngestionEvent9 returns the union data inside the IngestionEvent as a IngestionEvent9
func (*IngestionEvent) FromIngestionEvent0 ¶
func (t *IngestionEvent) FromIngestionEvent0(v IngestionEvent0) error
FromIngestionEvent0 overwrites any union data inside the IngestionEvent as the provided IngestionEvent0
func (*IngestionEvent) FromIngestionEvent1 ¶
func (t *IngestionEvent) FromIngestionEvent1(v IngestionEvent1) error
FromIngestionEvent1 overwrites any union data inside the IngestionEvent as the provided IngestionEvent1
func (*IngestionEvent) FromIngestionEvent2 ¶
func (t *IngestionEvent) FromIngestionEvent2(v IngestionEvent2) error
FromIngestionEvent2 overwrites any union data inside the IngestionEvent as the provided IngestionEvent2
func (*IngestionEvent) FromIngestionEvent3 ¶
func (t *IngestionEvent) FromIngestionEvent3(v IngestionEvent3) error
FromIngestionEvent3 overwrites any union data inside the IngestionEvent as the provided IngestionEvent3
func (*IngestionEvent) FromIngestionEvent4 ¶
func (t *IngestionEvent) FromIngestionEvent4(v IngestionEvent4) error
FromIngestionEvent4 overwrites any union data inside the IngestionEvent as the provided IngestionEvent4
func (*IngestionEvent) FromIngestionEvent5 ¶
func (t *IngestionEvent) FromIngestionEvent5(v IngestionEvent5) error
FromIngestionEvent5 overwrites any union data inside the IngestionEvent as the provided IngestionEvent5
func (*IngestionEvent) FromIngestionEvent6 ¶
func (t *IngestionEvent) FromIngestionEvent6(v IngestionEvent6) error
FromIngestionEvent6 overwrites any union data inside the IngestionEvent as the provided IngestionEvent6
func (*IngestionEvent) FromIngestionEvent7 ¶
func (t *IngestionEvent) FromIngestionEvent7(v IngestionEvent7) error
FromIngestionEvent7 overwrites any union data inside the IngestionEvent as the provided IngestionEvent7
func (*IngestionEvent) FromIngestionEvent8 ¶
func (t *IngestionEvent) FromIngestionEvent8(v IngestionEvent8) error
FromIngestionEvent8 overwrites any union data inside the IngestionEvent as the provided IngestionEvent8
func (*IngestionEvent) FromIngestionEvent9 ¶
func (t *IngestionEvent) FromIngestionEvent9(v IngestionEvent9) error
FromIngestionEvent9 overwrites any union data inside the IngestionEvent as the provided IngestionEvent9
func (IngestionEvent) MarshalJSON ¶
func (t IngestionEvent) MarshalJSON() ([]byte, error)
func (*IngestionEvent) MergeIngestionEvent0 ¶
func (t *IngestionEvent) MergeIngestionEvent0(v IngestionEvent0) error
MergeIngestionEvent0 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent0
func (*IngestionEvent) MergeIngestionEvent1 ¶
func (t *IngestionEvent) MergeIngestionEvent1(v IngestionEvent1) error
MergeIngestionEvent1 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent1
func (*IngestionEvent) MergeIngestionEvent2 ¶
func (t *IngestionEvent) MergeIngestionEvent2(v IngestionEvent2) error
MergeIngestionEvent2 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent2
func (*IngestionEvent) MergeIngestionEvent3 ¶
func (t *IngestionEvent) MergeIngestionEvent3(v IngestionEvent3) error
MergeIngestionEvent3 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent3
func (*IngestionEvent) MergeIngestionEvent4 ¶
func (t *IngestionEvent) MergeIngestionEvent4(v IngestionEvent4) error
MergeIngestionEvent4 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent4
func (*IngestionEvent) MergeIngestionEvent5 ¶
func (t *IngestionEvent) MergeIngestionEvent5(v IngestionEvent5) error
MergeIngestionEvent5 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent5
func (*IngestionEvent) MergeIngestionEvent6 ¶
func (t *IngestionEvent) MergeIngestionEvent6(v IngestionEvent6) error
MergeIngestionEvent6 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent6
func (*IngestionEvent) MergeIngestionEvent7 ¶
func (t *IngestionEvent) MergeIngestionEvent7(v IngestionEvent7) error
MergeIngestionEvent7 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent7
func (*IngestionEvent) MergeIngestionEvent8 ¶
func (t *IngestionEvent) MergeIngestionEvent8(v IngestionEvent8) error
MergeIngestionEvent8 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent8
func (*IngestionEvent) MergeIngestionEvent9 ¶
func (t *IngestionEvent) MergeIngestionEvent9(v IngestionEvent9) error
MergeIngestionEvent9 performs a merge with any union data inside the IngestionEvent, using the provided IngestionEvent9
func (*IngestionEvent) UnmarshalJSON ¶
func (t *IngestionEvent) UnmarshalJSON(b []byte) error
type IngestionEvent0 ¶
type IngestionEvent0 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent0Type `json:"type,omitempty"` }
IngestionEvent0 defines model for .
type IngestionEvent0Type ¶
type IngestionEvent0Type string
IngestionEvent0Type defines model for IngestionEvent.0.Type.
const (
TraceCreate IngestionEvent0Type = "trace-create"
)
Defines values for IngestionEvent0Type.
type IngestionEvent1 ¶
type IngestionEvent1 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent1Type `json:"type,omitempty"` }
IngestionEvent1 defines model for .
type IngestionEvent1Type ¶
type IngestionEvent1Type string
IngestionEvent1Type defines model for IngestionEvent.1.Type.
const (
ScoreCreate IngestionEvent1Type = "score-create"
)
Defines values for IngestionEvent1Type.
type IngestionEvent2 ¶
type IngestionEvent2 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent2Type `json:"type,omitempty"` }
IngestionEvent2 defines model for .
type IngestionEvent2Type ¶
type IngestionEvent2Type string
IngestionEvent2Type defines model for IngestionEvent.2.Type.
const (
SpanCreate IngestionEvent2Type = "span-create"
)
Defines values for IngestionEvent2Type.
type IngestionEvent3 ¶
type IngestionEvent3 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent3Type `json:"type,omitempty"` }
IngestionEvent3 defines model for .
type IngestionEvent3Type ¶
type IngestionEvent3Type string
IngestionEvent3Type defines model for IngestionEvent.3.Type.
const (
SpanUpdate IngestionEvent3Type = "span-update"
)
Defines values for IngestionEvent3Type.
type IngestionEvent4 ¶
type IngestionEvent4 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent4Type `json:"type,omitempty"` }
IngestionEvent4 defines model for .
type IngestionEvent4Type ¶
type IngestionEvent4Type string
IngestionEvent4Type defines model for IngestionEvent.4.Type.
const (
GenerationCreate IngestionEvent4Type = "generation-create"
)
Defines values for IngestionEvent4Type.
type IngestionEvent5 ¶
type IngestionEvent5 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent5Type `json:"type,omitempty"` }
IngestionEvent5 defines model for .
type IngestionEvent5Type ¶
type IngestionEvent5Type string
IngestionEvent5Type defines model for IngestionEvent.5.Type.
const (
GenerationUpdate IngestionEvent5Type = "generation-update"
)
Defines values for IngestionEvent5Type.
type IngestionEvent6 ¶
type IngestionEvent6 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent6Type `json:"type,omitempty"` }
IngestionEvent6 defines model for .
type IngestionEvent6Type ¶
type IngestionEvent6Type string
IngestionEvent6Type defines model for IngestionEvent.6.Type.
const (
EventCreate IngestionEvent6Type = "event-create"
)
Defines values for IngestionEvent6Type.
type IngestionEvent7 ¶
type IngestionEvent7 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent7Type `json:"type,omitempty"` }
IngestionEvent7 defines model for .
type IngestionEvent7Type ¶
type IngestionEvent7Type string
IngestionEvent7Type defines model for IngestionEvent.7.Type.
const (
SdkLog IngestionEvent7Type = "sdk-log"
)
Defines values for IngestionEvent7Type.
type IngestionEvent8 ¶
type IngestionEvent8 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent8Type `json:"type,omitempty"` }
IngestionEvent8 defines model for .
type IngestionEvent8Type ¶
type IngestionEvent8Type string
IngestionEvent8Type defines model for IngestionEvent.8.Type.
const (
ObservationCreate IngestionEvent8Type = "observation-create"
)
Defines values for IngestionEvent8Type.
type IngestionEvent9 ¶
type IngestionEvent9 struct { // Id UUID v4 that identifies the event Id string `json:"id"` // Metadata Optional. Metadata field used by the Langfuse SDKs for debugging. Metadata *interface{} `json:"metadata"` // Timestamp Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). Timestamp string `json:"timestamp"` Type *IngestionEvent9Type `json:"type,omitempty"` }
IngestionEvent9 defines model for .
type IngestionEvent9Type ¶
type IngestionEvent9Type string
IngestionEvent9Type defines model for IngestionEvent.9.Type.
const (
ObservationUpdate IngestionEvent9Type = "observation-update"
)
Defines values for IngestionEvent9Type.
type IngestionResponse ¶
type IngestionResponse struct { Errors []IngestionError `json:"errors"` Successes []IngestionSuccess `json:"successes"` }
IngestionResponse defines model for IngestionResponse.
type IngestionSuccess ¶
IngestionSuccess defines model for IngestionSuccess.
type IngestionUsage ¶
type IngestionUsage struct {
// contains filtered or unexported fields
}
IngestionUsage defines model for IngestionUsage.
func (IngestionUsage) AsOpenAIUsage ¶
func (t IngestionUsage) AsOpenAIUsage() (OpenAIUsage, error)
AsOpenAIUsage returns the union data inside the IngestionUsage as a OpenAIUsage
func (IngestionUsage) AsUsage ¶
func (t IngestionUsage) AsUsage() (Usage, error)
AsUsage returns the union data inside the IngestionUsage as a Usage
func (*IngestionUsage) FromOpenAIUsage ¶
func (t *IngestionUsage) FromOpenAIUsage(v OpenAIUsage) error
FromOpenAIUsage overwrites any union data inside the IngestionUsage as the provided OpenAIUsage
func (*IngestionUsage) FromUsage ¶
func (t *IngestionUsage) FromUsage(v Usage) error
FromUsage overwrites any union data inside the IngestionUsage as the provided Usage
func (IngestionUsage) MarshalJSON ¶
func (t IngestionUsage) MarshalJSON() ([]byte, error)
func (*IngestionUsage) MergeOpenAIUsage ¶
func (t *IngestionUsage) MergeOpenAIUsage(v OpenAIUsage) error
MergeOpenAIUsage performs a merge with any union data inside the IngestionUsage, using the provided OpenAIUsage
func (*IngestionUsage) MergeUsage ¶
func (t *IngestionUsage) MergeUsage(v Usage) error
MergeUsage performs a merge with any union data inside the IngestionUsage, using the provided Usage
func (*IngestionUsage) UnmarshalJSON ¶
func (t *IngestionUsage) UnmarshalJSON(b []byte) error
type MapValue ¶
type MapValue struct {
// contains filtered or unexported fields
}
MapValue defines model for MapValue.
func (MapValue) AsMapValue0 ¶
AsMapValue0 returns the union data inside the MapValue as a MapValue0
func (MapValue) AsMapValue1 ¶
AsMapValue1 returns the union data inside the MapValue as a MapValue1
func (MapValue) AsMapValue2 ¶
AsMapValue2 returns the union data inside the MapValue as a MapValue2
func (MapValue) AsMapValue3 ¶
AsMapValue3 returns the union data inside the MapValue as a MapValue3
func (*MapValue) FromMapValue0 ¶
FromMapValue0 overwrites any union data inside the MapValue as the provided MapValue0
func (*MapValue) FromMapValue1 ¶
FromMapValue1 overwrites any union data inside the MapValue as the provided MapValue1
func (*MapValue) FromMapValue2 ¶
FromMapValue2 overwrites any union data inside the MapValue as the provided MapValue2
func (*MapValue) FromMapValue3 ¶
FromMapValue3 overwrites any union data inside the MapValue as the provided MapValue3
func (MapValue) MarshalJSON ¶
func (*MapValue) MergeMapValue0 ¶
MergeMapValue0 performs a merge with any union data inside the MapValue, using the provided MapValue0
func (*MapValue) MergeMapValue1 ¶
MergeMapValue1 performs a merge with any union data inside the MapValue, using the provided MapValue1
func (*MapValue) MergeMapValue2 ¶
MergeMapValue2 performs a merge with any union data inside the MapValue, using the provided MapValue2
func (*MapValue) MergeMapValue3 ¶
MergeMapValue3 performs a merge with any union data inside the MapValue, using the provided MapValue3
func (*MapValue) UnmarshalJSON ¶
type MediaContentType ¶ added in v0.2.0
type MediaContentType string
MediaContentType The MIME type of the media record
const ( Applicationjson MediaContentType = "application/json" Applicationmsword MediaContentType = "application/msword" ApplicationoctetStream MediaContentType = "application/octet-stream" Applicationpdf MediaContentType = "application/pdf" ApplicationvndMsExcel MediaContentType = "application/vnd.ms-excel" Applicationxml MediaContentType = "application/xml" Applicationzip MediaContentType = "application/zip" Audioaac MediaContentType = "audio/aac" Audioflac MediaContentType = "audio/flac" Audiomp3 MediaContentType = "audio/mp3" Audiomp4 MediaContentType = "audio/mp4" Audiompeg MediaContentType = "audio/mpeg" Audiooga MediaContentType = "audio/oga" Audioogg MediaContentType = "audio/ogg" Audiowav MediaContentType = "audio/wav" Imagebmp MediaContentType = "image/bmp" Imagegif MediaContentType = "image/gif" Imagejpeg MediaContentType = "image/jpeg" Imagejpg MediaContentType = "image/jpg" Imagepng MediaContentType = "image/png" ImagesvgXml MediaContentType = "image/svg+xml" Imagetiff MediaContentType = "image/tiff" Imagewebp MediaContentType = "image/webp" Textcss MediaContentType = "text/css" Textcsv MediaContentType = "text/csv" Texthtml MediaContentType = "text/html" Textplain MediaContentType = "text/plain" Videomp4 MediaContentType = "video/mp4" Videowebm MediaContentType = "video/webm" )
Defines values for MediaContentType.
type MediaGetResponse ¶ added in v0.2.0
type MediaGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetMediaResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseMediaGetResponse ¶ added in v0.2.0
func ParseMediaGetResponse(rsp *http.Response) (*MediaGetResponse, error)
ParseMediaGetResponse parses an HTTP response from a MediaGetWithResponse call
func (MediaGetResponse) Status ¶ added in v0.2.0
func (r MediaGetResponse) Status() string
Status returns HTTPResponse.Status
func (MediaGetResponse) StatusCode ¶ added in v0.2.0
func (r MediaGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MediaGetUploadUrlJSONRequestBody ¶ added in v0.2.0
type MediaGetUploadUrlJSONRequestBody = GetMediaUploadUrlRequest
MediaGetUploadUrlJSONRequestBody defines body for MediaGetUploadUrl for application/json ContentType.
type MediaGetUploadUrlResponse ¶ added in v0.2.0
type MediaGetUploadUrlResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetMediaUploadUrlResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseMediaGetUploadUrlResponse ¶ added in v0.2.0
func ParseMediaGetUploadUrlResponse(rsp *http.Response) (*MediaGetUploadUrlResponse, error)
ParseMediaGetUploadUrlResponse parses an HTTP response from a MediaGetUploadUrlWithResponse call
func (MediaGetUploadUrlResponse) Status ¶ added in v0.2.0
func (r MediaGetUploadUrlResponse) Status() string
Status returns HTTPResponse.Status
func (MediaGetUploadUrlResponse) StatusCode ¶ added in v0.2.0
func (r MediaGetUploadUrlResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MediaPatchJSONRequestBody ¶ added in v0.2.0
type MediaPatchJSONRequestBody = PatchMediaBody
MediaPatchJSONRequestBody defines body for MediaPatch for application/json ContentType.
type MediaPatchResponse ¶ added in v0.2.0
type MediaPatchResponse struct { Body []byte HTTPResponse *http.Response JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseMediaPatchResponse ¶ added in v0.2.0
func ParseMediaPatchResponse(rsp *http.Response) (*MediaPatchResponse, error)
ParseMediaPatchResponse parses an HTTP response from a MediaPatchWithResponse call
func (MediaPatchResponse) Status ¶ added in v0.2.0
func (r MediaPatchResponse) Status() string
Status returns HTTPResponse.Status
func (MediaPatchResponse) StatusCode ¶ added in v0.2.0
func (r MediaPatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MetricsDailyParams ¶
type MetricsDailyParams struct { // Page page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit limit of items per page Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // TraceName Optional filter by the name of the trace TraceName *string `form:"traceName,omitempty" json:"traceName,omitempty"` // UserId Optional filter by the userId associated with the trace UserId *string `form:"userId,omitempty" json:"userId,omitempty"` // Tags Optional filter for metrics where traces include all of these tags Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"` // FromTimestamp Optional filter to only include traces and observations on or after a certain datetime (ISO 8601) FromTimestamp *time.Time `form:"fromTimestamp,omitempty" json:"fromTimestamp,omitempty"` // ToTimestamp Optional filter to only include traces and observations before a certain datetime (ISO 8601) ToTimestamp *time.Time `form:"toTimestamp,omitempty" json:"toTimestamp,omitempty"` }
MetricsDailyParams defines parameters for MetricsDaily.
type MetricsDailyResponse ¶
type MetricsDailyResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DailyMetrics JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseMetricsDailyResponse ¶
func ParseMetricsDailyResponse(rsp *http.Response) (*MetricsDailyResponse, error)
ParseMetricsDailyResponse parses an HTTP response from a MetricsDailyWithResponse call
func (MetricsDailyResponse) Status ¶
func (r MetricsDailyResponse) Status() string
Status returns HTTPResponse.Status
func (MetricsDailyResponse) StatusCode ¶
func (r MetricsDailyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Model ¶
type Model struct { Id string `json:"id"` // InputPrice Price (USD) per input unit InputPrice *float64 `json:"inputPrice"` IsLangfuseManaged bool `json:"isLangfuseManaged"` // MatchPattern Regex pattern which matches this model definition to generation.model. Useful in case of fine-tuned models. If you want to exact match, use `(?i)^modelname$` MatchPattern string `json:"matchPattern"` // ModelName Name of the model definition. If multiple with the same name exist, they are applied in the following order: (1) custom over built-in, (2) newest according to startTime where model.startTime<observation.startTime ModelName string `json:"modelName"` // OutputPrice Price (USD) per output unit OutputPrice *float64 `json:"outputPrice"` // StartDate Apply only to generations which are newer than this ISO date. StartDate *openapi_types.Date `json:"startDate"` // TokenizerConfig Optional. Configuration for the selected tokenizer. Needs to be JSON. See docs for more details. TokenizerConfig *interface{} `json:"tokenizerConfig"` // TokenizerId Optional. Tokenizer to be applied to observations which match to this model. See docs for more details. TokenizerId *string `json:"tokenizerId"` // TotalPrice Price (USD) per total unit. Cannot be set if input or output price is set. TotalPrice *float64 `json:"totalPrice"` // Unit Unit of usage in Langfuse Unit ModelUsageUnit `json:"unit"` }
Model Model definition used for transforming usage into USD cost and/or tokenization.
type ModelUsageUnit ¶
type ModelUsageUnit string
ModelUsageUnit Unit of usage in Langfuse
const ( CHARACTERS ModelUsageUnit = "CHARACTERS" IMAGES ModelUsageUnit = "IMAGES" MILLISECONDS ModelUsageUnit = "MILLISECONDS" REQUESTS ModelUsageUnit = "REQUESTS" SECONDS ModelUsageUnit = "SECONDS" TOKENS ModelUsageUnit = "TOKENS" )
Defines values for ModelUsageUnit.
type ModelsCreateJSONRequestBody ¶
type ModelsCreateJSONRequestBody = CreateModelRequest
ModelsCreateJSONRequestBody defines body for ModelsCreate for application/json ContentType.
type ModelsCreateResponse ¶
type ModelsCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Model JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseModelsCreateResponse ¶
func ParseModelsCreateResponse(rsp *http.Response) (*ModelsCreateResponse, error)
ParseModelsCreateResponse parses an HTTP response from a ModelsCreateWithResponse call
func (ModelsCreateResponse) Status ¶
func (r ModelsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (ModelsCreateResponse) StatusCode ¶
func (r ModelsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModelsDeleteResponse ¶
type ModelsDeleteResponse struct { Body []byte HTTPResponse *http.Response JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseModelsDeleteResponse ¶
func ParseModelsDeleteResponse(rsp *http.Response) (*ModelsDeleteResponse, error)
ParseModelsDeleteResponse parses an HTTP response from a ModelsDeleteWithResponse call
func (ModelsDeleteResponse) Status ¶
func (r ModelsDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (ModelsDeleteResponse) StatusCode ¶
func (r ModelsDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModelsGetResponse ¶
type ModelsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Model JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseModelsGetResponse ¶
func ParseModelsGetResponse(rsp *http.Response) (*ModelsGetResponse, error)
ParseModelsGetResponse parses an HTTP response from a ModelsGetWithResponse call
func (ModelsGetResponse) Status ¶
func (r ModelsGetResponse) Status() string
Status returns HTTPResponse.Status
func (ModelsGetResponse) StatusCode ¶
func (r ModelsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModelsListParams ¶
type ModelsListParams struct { // Page page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit limit of items per page Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
ModelsListParams defines parameters for ModelsList.
type ModelsListResponse ¶
type ModelsListResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedModels JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseModelsListResponse ¶
func ParseModelsListResponse(rsp *http.Response) (*ModelsListResponse, error)
ParseModelsListResponse parses an HTTP response from a ModelsListWithResponse call
func (ModelsListResponse) Status ¶
func (r ModelsListResponse) Status() string
Status returns HTTPResponse.Status
func (ModelsListResponse) StatusCode ¶
func (r ModelsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Observation ¶
type Observation struct { // CompletionStartTime The completion start time of the observation CompletionStartTime *time.Time `json:"completionStartTime"` // EndTime The end time of the observation. EndTime *time.Time `json:"endTime"` // Id The unique identifier of the observation Id string `json:"id"` // Input The input data of the observation Input *interface{} `json:"input"` Level ObservationLevel `json:"level"` // Metadata Additional metadata of the observation Metadata *interface{} `json:"metadata"` // Model The model used for the observation Model *string `json:"model"` // ModelParameters The parameters of the model used for the observation ModelParameters *map[string]MapValue `json:"modelParameters"` // Name The name of the observation Name *string `json:"name"` // Output The output data of the observation Output *interface{} `json:"output"` // ParentObservationId The parent observation ID ParentObservationId *string `json:"parentObservationId"` // PromptId The prompt ID associated with the observation PromptId *string `json:"promptId"` // StartTime The start time of the observation StartTime time.Time `json:"startTime"` // StatusMessage The status message of the observation StatusMessage *string `json:"statusMessage"` // TraceId The trace ID associated with the observation TraceId *string `json:"traceId"` // Type The type of the observation Type string `json:"type"` // Usage Standard interface for usage and cost Usage *Usage `json:"usage,omitempty"` // Version The version of the observation Version *string `json:"version"` }
Observation defines model for Observation.
type ObservationBody ¶
type ObservationBody struct { CompletionStartTime *time.Time `json:"completionStartTime"` EndTime *time.Time `json:"endTime"` Id *string `json:"id"` Input *interface{} `json:"input"` Level *ObservationLevel `json:"level,omitempty"` Metadata *interface{} `json:"metadata"` Model *string `json:"model"` ModelParameters *map[string]MapValue `json:"modelParameters"` Name *string `json:"name"` Output *interface{} `json:"output"` ParentObservationId *string `json:"parentObservationId"` StartTime *time.Time `json:"startTime"` StatusMessage *string `json:"statusMessage"` TraceId *string `json:"traceId"` Type ObservationType `json:"type"` // Usage Standard interface for usage and cost Usage *Usage `json:"usage,omitempty"` Version *string `json:"version"` }
ObservationBody defines model for ObservationBody.
type ObservationLevel ¶
type ObservationLevel string
ObservationLevel defines model for ObservationLevel.
const ( DEBUG ObservationLevel = "DEBUG" DEFAULT ObservationLevel = "DEFAULT" ERROR ObservationLevel = "ERROR" WARNING ObservationLevel = "WARNING" )
Defines values for ObservationLevel.
type ObservationType ¶
type ObservationType string
ObservationType defines model for ObservationType.
const ( EVENT ObservationType = "EVENT" GENERATION ObservationType = "GENERATION" SPAN ObservationType = "SPAN" )
Defines values for ObservationType.
type ObservationsGetManyParams ¶
type ObservationsGetManyParams struct { // Page Page number, starts at 1. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` Name *string `form:"name,omitempty" json:"name,omitempty"` UserId *string `form:"userId,omitempty" json:"userId,omitempty"` Type *string `form:"type,omitempty" json:"type,omitempty"` TraceId *string `form:"traceId,omitempty" json:"traceId,omitempty"` ParentObservationId *string `form:"parentObservationId,omitempty" json:"parentObservationId,omitempty"` // FromStartTime Retrieve only observations with a start_time or or after this datetime (ISO 8601). FromStartTime *time.Time `form:"fromStartTime,omitempty" json:"fromStartTime,omitempty"` // ToStartTime Retrieve only observations with a start_time before this datetime (ISO 8601). ToStartTime *time.Time `form:"toStartTime,omitempty" json:"toStartTime,omitempty"` // Version Optional filter to only include observations with a certain version. Version *string `form:"version,omitempty" json:"version,omitempty"` }
ObservationsGetManyParams defines parameters for ObservationsGetMany.
type ObservationsGetManyResponse ¶
type ObservationsGetManyResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ObservationsViews JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseObservationsGetManyResponse ¶
func ParseObservationsGetManyResponse(rsp *http.Response) (*ObservationsGetManyResponse, error)
ParseObservationsGetManyResponse parses an HTTP response from a ObservationsGetManyWithResponse call
func (ObservationsGetManyResponse) Status ¶
func (r ObservationsGetManyResponse) Status() string
Status returns HTTPResponse.Status
func (ObservationsGetManyResponse) StatusCode ¶
func (r ObservationsGetManyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ObservationsGetResponse ¶
type ObservationsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ObservationsView JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseObservationsGetResponse ¶
func ParseObservationsGetResponse(rsp *http.Response) (*ObservationsGetResponse, error)
ParseObservationsGetResponse parses an HTTP response from a ObservationsGetWithResponse call
func (ObservationsGetResponse) Status ¶
func (r ObservationsGetResponse) Status() string
Status returns HTTPResponse.Status
func (ObservationsGetResponse) StatusCode ¶
func (r ObservationsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ObservationsView ¶
type ObservationsView = Observation
ObservationsView defines model for ObservationsView.
type ObservationsViews ¶
type ObservationsViews struct { Data []ObservationsView `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
ObservationsViews defines model for ObservationsViews.
type OpenAIUsage ¶
type OpenAIUsage struct { CompletionTokens *int `json:"completionTokens"` PromptTokens *int `json:"promptTokens"` TotalTokens *int `json:"totalTokens"` }
OpenAIUsage Usage interface of OpenAI for improved compatibility.
type OptionalObservationBody ¶
type OptionalObservationBody struct { Input *interface{} `json:"input"` Level *ObservationLevel `json:"level,omitempty"` Metadata *interface{} `json:"metadata"` Name *string `json:"name"` Output *interface{} `json:"output"` ParentObservationId *string `json:"parentObservationId"` StartTime *time.Time `json:"startTime"` StatusMessage *string `json:"statusMessage"` TraceId *string `json:"traceId"` Version *string `json:"version"` }
OptionalObservationBody defines model for OptionalObservationBody.
type PaginatedDatasetItems ¶
type PaginatedDatasetItems struct { Data []DatasetItem `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
PaginatedDatasetItems defines model for PaginatedDatasetItems.
type PaginatedDatasetRuns ¶
type PaginatedDatasetRuns struct { Data []DatasetRun `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
PaginatedDatasetRuns defines model for PaginatedDatasetRuns.
type PaginatedDatasets ¶
type PaginatedDatasets struct { Data []Dataset `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
PaginatedDatasets defines model for PaginatedDatasets.
type PaginatedModels ¶
type PaginatedModels struct { Data []Model `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
PaginatedModels defines model for PaginatedModels.
type PaginatedSessions ¶
type PaginatedSessions struct { Data []Session `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
PaginatedSessions defines model for PaginatedSessions.
type PatchMediaBody ¶ added in v0.2.0
type PatchMediaBody struct { // UploadHttpError The HTTP error message of the upload UploadHttpError *string `json:"uploadHttpError"` // UploadHttpStatus The HTTP status code of the upload UploadHttpStatus int `json:"uploadHttpStatus"` // UploadTimeMs The time in milliseconds it took to upload the media record UploadTimeMs *int `json:"uploadTimeMs"` // UploadedAt The date and time when the media record was uploaded UploadedAt time.Time `json:"uploadedAt"` }
PatchMediaBody defines model for PatchMediaBody.
type Projects ¶
type Projects struct {
Data []Project `json:"data"`
}
Projects defines model for Projects.
type ProjectsGetResponse ¶
type ProjectsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Projects JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseProjectsGetResponse ¶
func ParseProjectsGetResponse(rsp *http.Response) (*ProjectsGetResponse, error)
ParseProjectsGetResponse parses an HTTP response from a ProjectsGetWithResponse call
func (ProjectsGetResponse) Status ¶
func (r ProjectsGetResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsGetResponse) StatusCode ¶
func (r ProjectsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Prompt ¶
type Prompt struct {
// contains filtered or unexported fields
}
Prompt defines model for Prompt.
func (*Prompt) FromPrompt0 ¶
FromPrompt0 overwrites any union data inside the Prompt as the provided Prompt0
func (*Prompt) FromPrompt1 ¶
FromPrompt1 overwrites any union data inside the Prompt as the provided Prompt1
func (Prompt) MarshalJSON ¶
func (*Prompt) MergePrompt0 ¶
MergePrompt0 performs a merge with any union data inside the Prompt, using the provided Prompt0
func (*Prompt) MergePrompt1 ¶
MergePrompt1 performs a merge with any union data inside the Prompt, using the provided Prompt1
func (*Prompt) UnmarshalJSON ¶
type Prompt0 ¶
type Prompt0 struct { Config interface{} `json:"config"` // Labels List of deployment labels of this prompt version. Labels []string `json:"labels"` Name string `json:"name"` // Tags List of tags. Used to filter via UI and API. The same across versions of a prompt. Tags []string `json:"tags"` Type *Prompt0Type `json:"type,omitempty"` Version int `json:"version"` }
Prompt0 defines model for .
type Prompt0Type ¶
type Prompt0Type string
Prompt0Type defines model for Prompt.0.Type.
const (
Prompt0TypeChat Prompt0Type = "chat"
)
Defines values for Prompt0Type.
type Prompt1 ¶
type Prompt1 struct { Config interface{} `json:"config"` // Labels List of deployment labels of this prompt version. Labels []string `json:"labels"` Name string `json:"name"` // Tags List of tags. Used to filter via UI and API. The same across versions of a prompt. Tags []string `json:"tags"` Type *Prompt1Type `json:"type,omitempty"` Version int `json:"version"` }
Prompt1 defines model for .
type Prompt1Type ¶
type Prompt1Type string
Prompt1Type defines model for Prompt.1.Type.
const (
Prompt1TypeText Prompt1Type = "text"
)
Defines values for Prompt1Type.
type PromptMeta ¶
type PromptMeta struct { Labels []string `json:"labels"` // LastConfig Config object of the most recent prompt version that matches the filters (if any are provided) LastConfig interface{} `json:"lastConfig"` LastUpdatedAt time.Time `json:"lastUpdatedAt"` Name string `json:"name"` Tags []string `json:"tags"` Versions []int `json:"versions"` }
PromptMeta defines model for PromptMeta.
type PromptMetaListResponse ¶
type PromptMetaListResponse struct { Data []PromptMeta `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
PromptMetaListResponse defines model for PromptMetaListResponse.
type PromptsCreateJSONRequestBody ¶
type PromptsCreateJSONRequestBody = CreatePromptRequest
PromptsCreateJSONRequestBody defines body for PromptsCreate for application/json ContentType.
type PromptsCreateResponse ¶
type PromptsCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Prompt JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParsePromptsCreateResponse ¶
func ParsePromptsCreateResponse(rsp *http.Response) (*PromptsCreateResponse, error)
ParsePromptsCreateResponse parses an HTTP response from a PromptsCreateWithResponse call
func (PromptsCreateResponse) Status ¶
func (r PromptsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (PromptsCreateResponse) StatusCode ¶
func (r PromptsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PromptsGetParams ¶
type PromptsGetParams struct { // Version Version of the prompt to be retrieved. Version *int `form:"version,omitempty" json:"version,omitempty"` // Label Label of the prompt to be retrieved. Defaults to "production" if no label or version is set. Label *string `form:"label,omitempty" json:"label,omitempty"` }
PromptsGetParams defines parameters for PromptsGet.
type PromptsGetResponse ¶
type PromptsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Prompt JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParsePromptsGetResponse ¶
func ParsePromptsGetResponse(rsp *http.Response) (*PromptsGetResponse, error)
ParsePromptsGetResponse parses an HTTP response from a PromptsGetWithResponse call
func (PromptsGetResponse) Status ¶
func (r PromptsGetResponse) Status() string
Status returns HTTPResponse.Status
func (PromptsGetResponse) StatusCode ¶
func (r PromptsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PromptsListParams ¶
type PromptsListParams struct { Name *string `form:"name,omitempty" json:"name,omitempty"` Label *string `form:"label,omitempty" json:"label,omitempty"` Tag *string `form:"tag,omitempty" json:"tag,omitempty"` // Page page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit limit of items per page Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // FromUpdatedAt Optional filter to only include prompt versions created/updated on or after a certain datetime (ISO 8601) FromUpdatedAt *time.Time `form:"fromUpdatedAt,omitempty" json:"fromUpdatedAt,omitempty"` // ToUpdatedAt Optional filter to only include prompt versions created/updated before a certain datetime (ISO 8601) ToUpdatedAt *time.Time `form:"toUpdatedAt,omitempty" json:"toUpdatedAt,omitempty"` }
PromptsListParams defines parameters for PromptsList.
type PromptsListResponse ¶
type PromptsListResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PromptMetaListResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParsePromptsListResponse ¶
func ParsePromptsListResponse(rsp *http.Response) (*PromptsListResponse, error)
ParsePromptsListResponse parses an HTTP response from a PromptsListWithResponse call
func (PromptsListResponse) Status ¶
func (r PromptsListResponse) Status() string
Status returns HTTPResponse.Status
func (PromptsListResponse) StatusCode ¶
func (r PromptsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SDKLogBody ¶
type SDKLogBody struct {
Log interface{} `json:"log"`
}
SDKLogBody defines model for SDKLogBody.
type Score ¶
type Score struct {
// contains filtered or unexported fields
}
Score defines model for Score.
func (*Score) FromScore0 ¶
FromScore0 overwrites any union data inside the Score as the provided Score0
func (*Score) FromScore1 ¶
FromScore1 overwrites any union data inside the Score as the provided Score1
func (*Score) FromScore2 ¶
FromScore2 overwrites any union data inside the Score as the provided Score2
func (Score) MarshalJSON ¶
func (*Score) MergeScore0 ¶
MergeScore0 performs a merge with any union data inside the Score, using the provided Score0
func (*Score) MergeScore1 ¶
MergeScore1 performs a merge with any union data inside the Score, using the provided Score1
func (*Score) MergeScore2 ¶
MergeScore2 performs a merge with any union data inside the Score, using the provided Score2
func (*Score) UnmarshalJSON ¶
type Score0 ¶
type Score0 struct { AuthorUserId *string `json:"authorUserId"` Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range ConfigId *string `json:"configId"` CreatedAt time.Time `json:"createdAt"` DataType *Score0DataType `json:"dataType,omitempty"` Id string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` // QueueId Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue. QueueId *string `json:"queueId"` Source ScoreSource `json:"source"` Timestamp time.Time `json:"timestamp"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
Score0 defines model for .
type Score0DataType ¶
type Score0DataType string
Score0DataType defines model for Score.0.DataType.
const (
Score0DataTypeNUMERIC Score0DataType = "NUMERIC"
)
Defines values for Score0DataType.
type Score1 ¶
type Score1 struct { AuthorUserId *string `json:"authorUserId"` Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range ConfigId *string `json:"configId"` CreatedAt time.Time `json:"createdAt"` DataType *Score1DataType `json:"dataType,omitempty"` Id string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` // QueueId Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue. QueueId *string `json:"queueId"` Source ScoreSource `json:"source"` Timestamp time.Time `json:"timestamp"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
Score1 defines model for .
type Score1DataType ¶
type Score1DataType string
Score1DataType defines model for Score.1.DataType.
const (
Score1DataTypeCATEGORICAL Score1DataType = "CATEGORICAL"
)
Defines values for Score1DataType.
type Score2 ¶
type Score2 struct { AuthorUserId *string `json:"authorUserId"` Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range ConfigId *string `json:"configId"` CreatedAt time.Time `json:"createdAt"` DataType *Score2DataType `json:"dataType,omitempty"` Id string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` // QueueId Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue. QueueId *string `json:"queueId"` Source ScoreSource `json:"source"` Timestamp time.Time `json:"timestamp"` TraceId string `json:"traceId"` UpdatedAt time.Time `json:"updatedAt"` }
Score2 defines model for .
type Score2DataType ¶
type Score2DataType string
Score2DataType defines model for Score.2.DataType.
const (
Score2DataTypeBOOLEAN Score2DataType = "BOOLEAN"
)
Defines values for Score2DataType.
type ScoreBody ¶
type ScoreBody struct { Comment *string `json:"comment"` // ConfigId Reference a score config on a score. When set, the score name must equal the config name and scores must comply with the config's range and data type. For categorical scores, the value must map to a config category. Numeric scores might be constrained by the score config's max and min values ConfigId *string `json:"configId"` DataType *ScoreDataType `json:"dataType,omitempty"` Id *string `json:"id"` Name string `json:"name"` ObservationId *string `json:"observationId"` TraceId string `json:"traceId"` // Value The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores Value CreateScoreValue `json:"value"` }
ScoreBody defines model for ScoreBody.
type ScoreConfig ¶
type ScoreConfig struct { // Categories Configures custom categories for categorical scores Categories *[]ConfigCategory `json:"categories"` CreatedAt time.Time `json:"createdAt"` DataType ScoreDataType `json:"dataType"` Description *string `json:"description"` Id string `json:"id"` // IsArchived Whether the score config is archived. Defaults to false IsArchived bool `json:"isArchived"` // MaxValue Sets maximum value for numerical scores. If not set, the maximum value defaults to +∞ MaxValue *float64 `json:"maxValue"` // MinValue Sets minimum value for numerical scores. If not set, the minimum value defaults to -∞ MinValue *float64 `json:"minValue"` Name string `json:"name"` ProjectId string `json:"projectId"` UpdatedAt time.Time `json:"updatedAt"` }
ScoreConfig Configuration for a score
type ScoreConfigs ¶
type ScoreConfigs struct { Data []ScoreConfig `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
ScoreConfigs defines model for ScoreConfigs.
type ScoreConfigsCreateJSONRequestBody ¶
type ScoreConfigsCreateJSONRequestBody = CreateScoreConfigRequest
ScoreConfigsCreateJSONRequestBody defines body for ScoreConfigsCreate for application/json ContentType.
type ScoreConfigsCreateResponse ¶
type ScoreConfigsCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ScoreConfig JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseScoreConfigsCreateResponse ¶
func ParseScoreConfigsCreateResponse(rsp *http.Response) (*ScoreConfigsCreateResponse, error)
ParseScoreConfigsCreateResponse parses an HTTP response from a ScoreConfigsCreateWithResponse call
func (ScoreConfigsCreateResponse) Status ¶
func (r ScoreConfigsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreConfigsCreateResponse) StatusCode ¶
func (r ScoreConfigsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreConfigsGetByIdResponse ¶
type ScoreConfigsGetByIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ScoreConfig JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseScoreConfigsGetByIdResponse ¶
func ParseScoreConfigsGetByIdResponse(rsp *http.Response) (*ScoreConfigsGetByIdResponse, error)
ParseScoreConfigsGetByIdResponse parses an HTTP response from a ScoreConfigsGetByIdWithResponse call
func (ScoreConfigsGetByIdResponse) Status ¶
func (r ScoreConfigsGetByIdResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreConfigsGetByIdResponse) StatusCode ¶
func (r ScoreConfigsGetByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreConfigsGetParams ¶
type ScoreConfigsGetParams struct { // Page Page number, starts at 1. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
ScoreConfigsGetParams defines parameters for ScoreConfigsGet.
type ScoreConfigsGetResponse ¶
type ScoreConfigsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ScoreConfigs JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseScoreConfigsGetResponse ¶
func ParseScoreConfigsGetResponse(rsp *http.Response) (*ScoreConfigsGetResponse, error)
ParseScoreConfigsGetResponse parses an HTTP response from a ScoreConfigsGetWithResponse call
func (ScoreConfigsGetResponse) Status ¶
func (r ScoreConfigsGetResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreConfigsGetResponse) StatusCode ¶
func (r ScoreConfigsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreCreateJSONRequestBody ¶
type ScoreCreateJSONRequestBody = CreateScoreRequest
ScoreCreateJSONRequestBody defines body for ScoreCreate for application/json ContentType.
type ScoreCreateResponse ¶
type ScoreCreateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateScoreResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseScoreCreateResponse ¶
func ParseScoreCreateResponse(rsp *http.Response) (*ScoreCreateResponse, error)
ParseScoreCreateResponse parses an HTTP response from a ScoreCreateWithResponse call
func (ScoreCreateResponse) Status ¶
func (r ScoreCreateResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreCreateResponse) StatusCode ¶
func (r ScoreCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreDataType ¶
type ScoreDataType string
ScoreDataType defines model for ScoreDataType.
const ( BOOLEAN ScoreDataType = "BOOLEAN" CATEGORICAL ScoreDataType = "CATEGORICAL" NUMERIC ScoreDataType = "NUMERIC" )
Defines values for ScoreDataType.
type ScoreDeleteResponse ¶
type ScoreDeleteResponse struct { Body []byte HTTPResponse *http.Response JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseScoreDeleteResponse ¶
func ParseScoreDeleteResponse(rsp *http.Response) (*ScoreDeleteResponse, error)
ParseScoreDeleteResponse parses an HTTP response from a ScoreDeleteWithResponse call
func (ScoreDeleteResponse) Status ¶
func (r ScoreDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreDeleteResponse) StatusCode ¶
func (r ScoreDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreGetByIdResponse ¶
type ScoreGetByIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Score JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseScoreGetByIdResponse ¶
func ParseScoreGetByIdResponse(rsp *http.Response) (*ScoreGetByIdResponse, error)
ParseScoreGetByIdResponse parses an HTTP response from a ScoreGetByIdWithResponse call
func (ScoreGetByIdResponse) Status ¶
func (r ScoreGetByIdResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreGetByIdResponse) StatusCode ¶
func (r ScoreGetByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreGetParams ¶
type ScoreGetParams struct { // Page Page number, starts at 1. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // UserId Retrieve only scores with this userId associated to the trace. UserId *string `form:"userId,omitempty" json:"userId,omitempty"` // Name Retrieve only scores with this name. Name *string `form:"name,omitempty" json:"name,omitempty"` // FromTimestamp Optional filter to only include scores created on or after a certain datetime (ISO 8601) FromTimestamp *time.Time `form:"fromTimestamp,omitempty" json:"fromTimestamp,omitempty"` // ToTimestamp Optional filter to only include scores created before a certain datetime (ISO 8601) ToTimestamp *time.Time `form:"toTimestamp,omitempty" json:"toTimestamp,omitempty"` // Source Retrieve only scores from a specific source. Source *ScoreSource `form:"source,omitempty" json:"source,omitempty"` // Operator Retrieve only scores with <operator> value. Operator *string `form:"operator,omitempty" json:"operator,omitempty"` // Value Retrieve only scores with <operator> value. Value *float64 `form:"value,omitempty" json:"value,omitempty"` // ScoreIds Comma-separated list of score IDs to limit the results to. ScoreIds *string `form:"scoreIds,omitempty" json:"scoreIds,omitempty"` // ConfigId Retrieve only scores with a specific configId. ConfigId *string `form:"configId,omitempty" json:"configId,omitempty"` // QueueId Retrieve only scores with a specific annotation queueId. QueueId *string `form:"queueId,omitempty" json:"queueId,omitempty"` // DataType Retrieve only scores with a specific dataType. DataType *ScoreDataType `form:"dataType,omitempty" json:"dataType,omitempty"` // TraceTags Only scores linked to traces that include all of these tags will be returned. TraceTags *[]string `form:"traceTags,omitempty" json:"traceTags,omitempty"` }
ScoreGetParams defines parameters for ScoreGet.
type ScoreGetResponse ¶
type ScoreGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetScoresResponse JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseScoreGetResponse ¶
func ParseScoreGetResponse(rsp *http.Response) (*ScoreGetResponse, error)
ParseScoreGetResponse parses an HTTP response from a ScoreGetWithResponse call
func (ScoreGetResponse) Status ¶
func (r ScoreGetResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreGetResponse) StatusCode ¶
func (r ScoreGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreSource ¶
type ScoreSource string
ScoreSource defines model for ScoreSource.
const ( ANNOTATION ScoreSource = "ANNOTATION" API ScoreSource = "API" EVAL ScoreSource = "EVAL" )
Defines values for ScoreSource.
type Session ¶
type Session struct { CreatedAt time.Time `json:"createdAt"` Id string `json:"id"` ProjectId string `json:"projectId"` }
Session defines model for Session.
type SessionWithTraces ¶
type SessionWithTraces = Session
SessionWithTraces defines model for SessionWithTraces.
type SessionsGetResponse ¶
type SessionsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SessionWithTraces JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseSessionsGetResponse ¶
func ParseSessionsGetResponse(rsp *http.Response) (*SessionsGetResponse, error)
ParseSessionsGetResponse parses an HTTP response from a SessionsGetWithResponse call
func (SessionsGetResponse) Status ¶
func (r SessionsGetResponse) Status() string
Status returns HTTPResponse.Status
func (SessionsGetResponse) StatusCode ¶
func (r SessionsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SessionsListParams ¶
type SessionsListParams struct { // Page Page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // FromTimestamp Optional filter to only include sessions created on or after a certain datetime (ISO 8601) FromTimestamp *time.Time `form:"fromTimestamp,omitempty" json:"fromTimestamp,omitempty"` // ToTimestamp Optional filter to only include sessions created before a certain datetime (ISO 8601) ToTimestamp *time.Time `form:"toTimestamp,omitempty" json:"toTimestamp,omitempty"` }
SessionsListParams defines parameters for SessionsList.
type SessionsListResponse ¶
type SessionsListResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedSessions JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseSessionsListResponse ¶
func ParseSessionsListResponse(rsp *http.Response) (*SessionsListResponse, error)
ParseSessionsListResponse parses an HTTP response from a SessionsListWithResponse call
func (SessionsListResponse) Status ¶
func (r SessionsListResponse) Status() string
Status returns HTTPResponse.Status
func (SessionsListResponse) StatusCode ¶
func (r SessionsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Trace ¶
type Trace struct { // Id The unique identifier of a trace Id string `json:"id"` // Input The input data of the trace. Can be any JSON. Input *interface{} `json:"input"` // Metadata The metadata associated with the trace. Can be any JSON. Metadata *interface{} `json:"metadata"` // Name The name of the trace Name *string `json:"name"` // Output The output data of the trace. Can be any JSON. Output *interface{} `json:"output"` // Public Public traces are accessible via url without login Public *bool `json:"public"` // Release The release version of the application when the trace was created Release *string `json:"release"` // SessionId The session identifier associated with the trace SessionId *string `json:"sessionId"` // Tags The tags associated with the trace. Can be an array of strings or null. Tags *[]string `json:"tags"` // Timestamp The timestamp when the trace was created Timestamp time.Time `json:"timestamp"` // UserId The user identifier associated with the trace UserId *string `json:"userId"` // Version The version of the trace Version *string `json:"version"` }
Trace defines model for Trace.
type TraceBody ¶
type TraceBody struct { Id *string `json:"id"` Input *interface{} `json:"input"` Metadata *interface{} `json:"metadata"` Name *string `json:"name"` Output *interface{} `json:"output"` // Public Make trace publicly accessible via url Public *bool `json:"public"` Release *string `json:"release"` SessionId *string `json:"sessionId"` Tags *[]string `json:"tags"` Timestamp *time.Time `json:"timestamp"` UserId *string `json:"userId"` Version *string `json:"version"` }
TraceBody defines model for TraceBody.
type TraceGetResponse ¶
type TraceGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TraceWithFullDetails JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseTraceGetResponse ¶
func ParseTraceGetResponse(rsp *http.Response) (*TraceGetResponse, error)
ParseTraceGetResponse parses an HTTP response from a TraceGetWithResponse call
func (TraceGetResponse) Status ¶
func (r TraceGetResponse) Status() string
Status returns HTTPResponse.Status
func (TraceGetResponse) StatusCode ¶
func (r TraceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TraceListParams ¶
type TraceListParams struct { // Page Page number, starts at 1 Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` UserId *string `form:"userId,omitempty" json:"userId,omitempty"` Name *string `form:"name,omitempty" json:"name,omitempty"` SessionId *string `form:"sessionId,omitempty" json:"sessionId,omitempty"` // FromTimestamp Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601) FromTimestamp *time.Time `form:"fromTimestamp,omitempty" json:"fromTimestamp,omitempty"` // ToTimestamp Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601) ToTimestamp *time.Time `form:"toTimestamp,omitempty" json:"toTimestamp,omitempty"` // OrderBy Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Example: timestamp.asc OrderBy *string `form:"orderBy,omitempty" json:"orderBy,omitempty"` // Tags Only traces that include all of these tags will be returned. Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"` // Version Optional filter to only include traces with a certain version. Version *string `form:"version,omitempty" json:"version,omitempty"` // Release Optional filter to only include traces with a certain release. Release *string `form:"release,omitempty" json:"release,omitempty"` }
TraceListParams defines parameters for TraceList.
type TraceListResponse ¶
type TraceListResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Traces JSON400 *interface{} JSON401 *interface{} JSON403 *interface{} JSON404 *interface{} JSON405 *interface{} }
func ParseTraceListResponse ¶
func ParseTraceListResponse(rsp *http.Response) (*TraceListResponse, error)
ParseTraceListResponse parses an HTTP response from a TraceListWithResponse call
func (TraceListResponse) Status ¶
func (r TraceListResponse) Status() string
Status returns HTTPResponse.Status
func (TraceListResponse) StatusCode ¶
func (r TraceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TraceWithDetails ¶
type TraceWithDetails = Trace
TraceWithDetails defines model for TraceWithDetails.
type TraceWithFullDetails ¶
type TraceWithFullDetails = Trace
TraceWithFullDetails defines model for TraceWithFullDetails.
type Traces ¶
type Traces struct { Data []TraceWithDetails `json:"data"` Meta UtilsMetaResponse `json:"meta"` }
Traces defines model for Traces.
type UpdateEventBody ¶
type UpdateEventBody = OptionalObservationBody
UpdateEventBody defines model for UpdateEventBody.
type UpdateGenerationBody ¶
type UpdateGenerationBody = UpdateSpanBody
UpdateGenerationBody defines model for UpdateGenerationBody.
type UpdateGenerationEvent ¶
type UpdateGenerationEvent = BaseEvent
UpdateGenerationEvent defines model for UpdateGenerationEvent.
type UpdateObservationEvent ¶
type UpdateObservationEvent = BaseEvent
UpdateObservationEvent defines model for UpdateObservationEvent.
type UpdateSpanBody ¶
type UpdateSpanBody = UpdateEventBody
UpdateSpanBody defines model for UpdateSpanBody.
type UpdateSpanEvent ¶
type UpdateSpanEvent = BaseEvent
UpdateSpanEvent defines model for UpdateSpanEvent.
type Usage ¶
type Usage struct { // Input Number of input units (e.g. tokens) Input *int `json:"input"` // InputCost USD input cost InputCost *float64 `json:"inputCost"` // Output Number of output units (e.g. tokens) Output *int `json:"output"` // OutputCost USD output cost OutputCost *float64 `json:"outputCost"` // Total Defaults to input+output if not set Total *int `json:"total"` // TotalCost USD total cost, defaults to input+output TotalCost *float64 `json:"totalCost"` // Unit Unit of usage in Langfuse Unit *ModelUsageUnit `json:"unit,omitempty"` }
Usage Standard interface for usage and cost
type UsageByModel ¶
type UsageByModel struct { CountObservations int `json:"countObservations"` CountTraces int `json:"countTraces"` // InputUsage Total number of generation input units (e.g. tokens) InputUsage int `json:"inputUsage"` Model *string `json:"model"` // OutputUsage Total number of generation output units (e.g. tokens) OutputUsage int `json:"outputUsage"` // TotalCost Total model cost in USD TotalCost float64 `json:"totalCost"` // TotalUsage Total number of generation total units (e.g. tokens) TotalUsage int `json:"totalUsage"` }
UsageByModel Daily usage of a given model. Usage corresponds to the unit set for the specific model (e.g. tokens).
type UtilsMetaResponse ¶
type UtilsMetaResponse struct { // Limit number of items per page Limit int `json:"limit"` // Page current page number Page int `json:"page"` // TotalItems number of total items given the current filters/selection (if any) TotalItems int `json:"totalItems"` // TotalPages number of total pages given the current limit TotalPages int `json:"totalPages"` }
UtilsMetaResponse defines model for utilsMetaResponse.