Documentation
¶
Overview ¶
Package api 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 NewAnnotationQueuesCreateQueueItemRequest(server string, queueId string, ...) (*http.Request, error)
- func NewAnnotationQueuesCreateQueueItemRequestWithBody(server string, queueId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAnnotationQueuesDeleteQueueItemRequest(server string, queueId string, itemId string) (*http.Request, error)
- func NewAnnotationQueuesGetQueueItemRequest(server string, queueId string, itemId string) (*http.Request, error)
- func NewAnnotationQueuesGetQueueRequest(server string, queueId string) (*http.Request, error)
- func NewAnnotationQueuesListQueueItemsRequest(server string, queueId string, params *AnnotationQueuesListQueueItemsParams) (*http.Request, error)
- func NewAnnotationQueuesListQueuesRequest(server string, params *AnnotationQueuesListQueuesParams) (*http.Request, error)
- func NewAnnotationQueuesUpdateQueueItemRequest(server string, queueId string, itemId string, ...) (*http.Request, error)
- func NewAnnotationQueuesUpdateQueueItemRequestWithBody(server string, queueId string, itemId string, contentType string, ...) (*http.Request, 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 NewDatasetItemsDeleteRequest(server string, id string) (*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 NewDatasetRunItemsListRequest(server string, params *DatasetRunItemsListParams) (*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 NewDatasetsDeleteRunRequest(server string, datasetName string, runName string) (*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 NewMembershipsGetOrganizationMembershipsRequest(server string) (*http.Request, error)
- func NewMembershipsGetProjectMembershipsRequest(server string, projectId string) (*http.Request, error)
- func NewMembershipsUpdateOrganizationMembershipRequest(server string, body MembershipsUpdateOrganizationMembershipJSONRequestBody) (*http.Request, error)
- func NewMembershipsUpdateOrganizationMembershipRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMembershipsUpdateProjectMembershipRequest(server string, projectId string, ...) (*http.Request, error)
- func NewMembershipsUpdateProjectMembershipRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
- func NewMetricsDailyRequest(server string, params *MetricsDailyParams) (*http.Request, error)
- func NewMetricsMetricsRequest(server string, params *MetricsMetricsParams) (*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 NewProjectsCreateApiKeyRequest(server string, projectId string, body ProjectsCreateApiKeyJSONRequestBody) (*http.Request, error)
- func NewProjectsCreateApiKeyRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
- func NewProjectsCreateRequest(server string, body ProjectsCreateJSONRequestBody) (*http.Request, error)
- func NewProjectsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewProjectsDeleteApiKeyRequest(server string, projectId string, apiKeyId string) (*http.Request, error)
- func NewProjectsDeleteRequest(server string, projectId string) (*http.Request, error)
- func NewProjectsGetApiKeysRequest(server string, projectId string) (*http.Request, error)
- func NewProjectsGetRequest(server string) (*http.Request, error)
- func NewProjectsUpdateRequest(server string, projectId string, body ProjectsUpdateJSONRequestBody) (*http.Request, error)
- func NewProjectsUpdateRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPromptVersionUpdateRequest(server string, name string, version int, ...) (*http.Request, error)
- func NewPromptVersionUpdateRequestWithBody(server string, name string, version int, contentType string, body io.Reader) (*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 NewScimCreateUserRequest(server string, body ScimCreateUserJSONRequestBody) (*http.Request, error)
- func NewScimCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewScimDeleteUserRequest(server string, userId string) (*http.Request, error)
- func NewScimGetResourceTypesRequest(server string) (*http.Request, error)
- func NewScimGetSchemasRequest(server string) (*http.Request, error)
- func NewScimGetServiceProviderConfigRequest(server string) (*http.Request, error)
- func NewScimGetUserRequest(server string, userId string) (*http.Request, error)
- func NewScimListUsersRequest(server string, params *ScimListUsersParams) (*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 NewScoreV2GetByIdRequest(server string, scoreId string) (*http.Request, error)
- func NewScoreV2GetRequest(server string, params *ScoreV2GetParams) (*http.Request, error)
- func NewSessionsGetRequest(server string, sessionId string) (*http.Request, error)
- func NewSessionsListRequest(server string, params *SessionsListParams) (*http.Request, error)
- func NewTraceDeleteMultipleRequest(server string, body TraceDeleteMultipleJSONRequestBody) (*http.Request, error)
- func NewTraceDeleteMultipleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTraceDeleteRequest(server string, traceId string) (*http.Request, error)
- func NewTraceGetRequest(server string, traceId string) (*http.Request, error)
- func NewTraceListRequest(server string, params *TraceListParams) (*http.Request, error)
- type AnnotationQueue
- type AnnotationQueueItem
- type AnnotationQueueObjectType
- type AnnotationQueueStatus
- type AnnotationQueuesCreateQueueItemJSONRequestBody
- type AnnotationQueuesCreateQueueItemResponse
- type AnnotationQueuesDeleteQueueItemResponse
- type AnnotationQueuesGetQueueItemResponse
- type AnnotationQueuesGetQueueResponse
- type AnnotationQueuesListQueueItemsParams
- type AnnotationQueuesListQueueItemsResponse
- type AnnotationQueuesListQueuesParams
- type AnnotationQueuesListQueuesResponse
- type AnnotationQueuesUpdateQueueItemJSONRequestBody
- type AnnotationQueuesUpdateQueueItemResponse
- type ApiKeyDeletionResponse
- type ApiKeyList
- type ApiKeyResponse
- type ApiKeySummary
- type AuthenticationScheme
- type BaseEvent
- type BasePrompt
- type BaseScore
- type BaseScoreV1
- type BooleanScore
- type BooleanScoreV1
- type BulkConfig
- type CategoricalScore
- type CategoricalScoreV1
- type ChatMessage
- type ChatPrompt
- type Client
- func (c *Client) AnnotationQueuesCreateQueueItem(ctx context.Context, queueId string, ...) (*http.Response, error)
- func (c *Client) AnnotationQueuesCreateQueueItemWithBody(ctx context.Context, queueId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AnnotationQueuesDeleteQueueItem(ctx context.Context, queueId string, itemId string, ...) (*http.Response, error)
- func (c *Client) AnnotationQueuesGetQueue(ctx context.Context, queueId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AnnotationQueuesGetQueueItem(ctx context.Context, queueId string, itemId string, ...) (*http.Response, error)
- func (c *Client) AnnotationQueuesListQueueItems(ctx context.Context, queueId string, ...) (*http.Response, error)
- func (c *Client) AnnotationQueuesListQueues(ctx context.Context, params *AnnotationQueuesListQueuesParams, ...) (*http.Response, error)
- func (c *Client) AnnotationQueuesUpdateQueueItem(ctx context.Context, queueId string, itemId string, ...) (*http.Response, error)
- func (c *Client) AnnotationQueuesUpdateQueueItemWithBody(ctx context.Context, queueId string, itemId string, contentType string, ...) (*http.Response, error)
- 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) DatasetItemsDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*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) DatasetRunItemsList(ctx context.Context, params *DatasetRunItemsListParams, ...) (*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) DatasetsDeleteRun(ctx context.Context, datasetName string, runName string, ...) (*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) MembershipsGetOrganizationMemberships(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MembershipsGetProjectMemberships(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MembershipsUpdateOrganizationMembership(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) MembershipsUpdateOrganizationMembershipWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MembershipsUpdateProjectMembership(ctx context.Context, projectId string, ...) (*http.Response, error)
- func (c *Client) MembershipsUpdateProjectMembershipWithBody(ctx context.Context, projectId 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) MetricsMetrics(ctx context.Context, params *MetricsMetricsParams, ...) (*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) ProjectsCreate(ctx context.Context, body ProjectsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ProjectsCreateApiKey(ctx context.Context, projectId string, ...) (*http.Response, error)
- func (c *Client) ProjectsCreateApiKeyWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ProjectsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ProjectsDelete(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProjectsDeleteApiKey(ctx context.Context, projectId string, apiKeyId string, ...) (*http.Response, error)
- func (c *Client) ProjectsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProjectsGetApiKeys(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProjectsUpdate(ctx context.Context, projectId string, body ProjectsUpdateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ProjectsUpdateWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PromptVersionUpdate(ctx context.Context, name string, version int, ...) (*http.Response, error)
- func (c *Client) PromptVersionUpdateWithBody(ctx context.Context, name string, version int, contentType string, ...) (*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) ScimCreateUser(ctx context.Context, body ScimCreateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ScimCreateUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ScimDeleteUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScimGetResourceTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScimGetSchemas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScimGetServiceProviderConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScimGetUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScimListUsers(ctx context.Context, params *ScimListUsersParams, ...) (*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) ScoreV2Get(ctx context.Context, params *ScoreV2GetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScoreV2GetById(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) TraceDelete(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TraceDeleteMultiple(ctx context.Context, body TraceDeleteMultipleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TraceDeleteMultipleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*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) AnnotationQueuesCreateQueueItemWithBodyWithResponse(ctx context.Context, queueId string, contentType string, body io.Reader, ...) (*AnnotationQueuesCreateQueueItemResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesCreateQueueItemWithResponse(ctx context.Context, queueId string, ...) (*AnnotationQueuesCreateQueueItemResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesDeleteQueueItemWithResponse(ctx context.Context, queueId string, itemId string, ...) (*AnnotationQueuesDeleteQueueItemResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesGetQueueItemWithResponse(ctx context.Context, queueId string, itemId string, ...) (*AnnotationQueuesGetQueueItemResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesGetQueueWithResponse(ctx context.Context, queueId string, reqEditors ...RequestEditorFn) (*AnnotationQueuesGetQueueResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesListQueueItemsWithResponse(ctx context.Context, queueId string, ...) (*AnnotationQueuesListQueueItemsResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesListQueuesWithResponse(ctx context.Context, params *AnnotationQueuesListQueuesParams, ...) (*AnnotationQueuesListQueuesResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesUpdateQueueItemWithBodyWithResponse(ctx context.Context, queueId string, itemId string, contentType string, ...) (*AnnotationQueuesUpdateQueueItemResponse, error)
- func (c *ClientWithResponses) AnnotationQueuesUpdateQueueItemWithResponse(ctx context.Context, queueId string, itemId string, ...) (*AnnotationQueuesUpdateQueueItemResponse, error)
- 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) DatasetItemsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DatasetItemsDeleteResponse, 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) DatasetRunItemsListWithResponse(ctx context.Context, params *DatasetRunItemsListParams, ...) (*DatasetRunItemsListResponse, 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) DatasetsDeleteRunWithResponse(ctx context.Context, datasetName string, runName string, ...) (*DatasetsDeleteRunResponse, 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) MembershipsGetOrganizationMembershipsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MembershipsGetOrganizationMembershipsResponse, error)
- func (c *ClientWithResponses) MembershipsGetProjectMembershipsWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*MembershipsGetProjectMembershipsResponse, error)
- func (c *ClientWithResponses) MembershipsUpdateOrganizationMembershipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MembershipsUpdateOrganizationMembershipResponse, error)
- func (c *ClientWithResponses) MembershipsUpdateOrganizationMembershipWithResponse(ctx context.Context, ...) (*MembershipsUpdateOrganizationMembershipResponse, error)
- func (c *ClientWithResponses) MembershipsUpdateProjectMembershipWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, ...) (*MembershipsUpdateProjectMembershipResponse, error)
- func (c *ClientWithResponses) MembershipsUpdateProjectMembershipWithResponse(ctx context.Context, projectId string, ...) (*MembershipsUpdateProjectMembershipResponse, error)
- func (c *ClientWithResponses) MetricsDailyWithResponse(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*MetricsDailyResponse, error)
- func (c *ClientWithResponses) MetricsMetricsWithResponse(ctx context.Context, params *MetricsMetricsParams, ...) (*MetricsMetricsResponse, 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) ProjectsCreateApiKeyWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, ...) (*ProjectsCreateApiKeyResponse, error)
- func (c *ClientWithResponses) ProjectsCreateApiKeyWithResponse(ctx context.Context, projectId string, ...) (*ProjectsCreateApiKeyResponse, error)
- func (c *ClientWithResponses) ProjectsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ProjectsCreateResponse, error)
- func (c *ClientWithResponses) ProjectsCreateWithResponse(ctx context.Context, body ProjectsCreateJSONRequestBody, ...) (*ProjectsCreateResponse, error)
- func (c *ClientWithResponses) ProjectsDeleteApiKeyWithResponse(ctx context.Context, projectId string, apiKeyId string, ...) (*ProjectsDeleteApiKeyResponse, error)
- func (c *ClientWithResponses) ProjectsDeleteWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ProjectsDeleteResponse, error)
- func (c *ClientWithResponses) ProjectsGetApiKeysWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ProjectsGetApiKeysResponse, error)
- func (c *ClientWithResponses) ProjectsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProjectsGetResponse, error)
- func (c *ClientWithResponses) ProjectsUpdateWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, ...) (*ProjectsUpdateResponse, error)
- func (c *ClientWithResponses) ProjectsUpdateWithResponse(ctx context.Context, projectId string, body ProjectsUpdateJSONRequestBody, ...) (*ProjectsUpdateResponse, error)
- func (c *ClientWithResponses) PromptVersionUpdateWithBodyWithResponse(ctx context.Context, name string, version int, contentType string, ...) (*PromptVersionUpdateResponse, error)
- func (c *ClientWithResponses) PromptVersionUpdateWithResponse(ctx context.Context, name string, version int, ...) (*PromptVersionUpdateResponse, 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) ScimCreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ScimCreateUserResponse, error)
- func (c *ClientWithResponses) ScimCreateUserWithResponse(ctx context.Context, body ScimCreateUserJSONRequestBody, ...) (*ScimCreateUserResponse, error)
- func (c *ClientWithResponses) ScimDeleteUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ScimDeleteUserResponse, error)
- func (c *ClientWithResponses) ScimGetResourceTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetResourceTypesResponse, error)
- func (c *ClientWithResponses) ScimGetSchemasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetSchemasResponse, error)
- func (c *ClientWithResponses) ScimGetServiceProviderConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetServiceProviderConfigResponse, error)
- func (c *ClientWithResponses) ScimGetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ScimGetUserResponse, error)
- func (c *ClientWithResponses) ScimListUsersWithResponse(ctx context.Context, params *ScimListUsersParams, ...) (*ScimListUsersResponse, 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) ScoreV2GetByIdWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreV2GetByIdResponse, error)
- func (c *ClientWithResponses) ScoreV2GetWithResponse(ctx context.Context, params *ScoreV2GetParams, reqEditors ...RequestEditorFn) (*ScoreV2GetResponse, 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) TraceDeleteMultipleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TraceDeleteMultipleResponse, error)
- func (c *ClientWithResponses) TraceDeleteMultipleWithResponse(ctx context.Context, body TraceDeleteMultipleJSONRequestBody, ...) (*TraceDeleteMultipleResponse, error)
- func (c *ClientWithResponses) TraceDeleteWithResponse(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*TraceDeleteResponse, 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 CreateAnnotationQueueItemRequest
- 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 DatasetItemsDeleteResponse
- type DatasetItemsGetResponse
- type DatasetItemsListParams
- type DatasetItemsListResponse
- type DatasetRun
- type DatasetRunItem
- type DatasetRunItemsCreateJSONRequestBody
- type DatasetRunItemsCreateResponse
- type DatasetRunItemsListParams
- type DatasetRunItemsListResponse
- type DatasetRunWithItems
- type DatasetStatus
- type DatasetsCreateJSONRequestBody
- type DatasetsCreateResponse
- type DatasetsDeleteRunResponse
- type DatasetsGetResponse
- type DatasetsGetRunResponse
- type DatasetsGetRunsParams
- type DatasetsGetRunsResponse
- type DatasetsListParams
- type DatasetsListResponse
- type DeleteAnnotationQueueItemResponse
- type DeleteDatasetItemResponse
- type DeleteDatasetRunResponse
- type DeleteTraceResponse
- type EmptyResponse
- type FilterConfig
- 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 MembershipRequest
- type MembershipResponse
- type MembershipRole
- type MembershipsGetOrganizationMembershipsResponse
- type MembershipsGetProjectMembershipsResponse
- type MembershipsResponse
- type MembershipsUpdateOrganizationMembershipJSONRequestBody
- type MembershipsUpdateOrganizationMembershipResponse
- type MembershipsUpdateProjectMembershipJSONRequestBody
- type MembershipsUpdateProjectMembershipResponse
- type MetricsDailyParams
- type MetricsDailyResponse
- type MetricsMetricsParams
- type MetricsMetricsResponse
- type MetricsResponse
- type Model
- type ModelUsageUnit
- type ModelsCreateJSONRequestBody
- type ModelsCreateResponse
- type ModelsDeleteResponse
- type ModelsGetResponse
- type ModelsListParams
- type ModelsListResponse
- type NumericScore
- type NumericScoreV1
- type Observation
- type ObservationBody
- type ObservationLevel
- type ObservationType
- type ObservationsGetManyParams
- type ObservationsGetManyResponse
- type ObservationsGetResponse
- type ObservationsView
- type ObservationsViews
- type OpenAICompletionUsageSchema
- type OpenAIResponseUsageSchema
- type OpenAIUsage
- type OptionalObservationBody
- type PaginatedAnnotationQueueItems
- type PaginatedAnnotationQueues
- type PaginatedDatasetItems
- type PaginatedDatasetRunItems
- type PaginatedDatasetRuns
- type PaginatedDatasets
- type PaginatedModels
- type PaginatedSessions
- type PatchMediaBody
- type Project
- type ProjectDeletionResponse
- type Projects
- type ProjectsCreateApiKeyJSONBody
- type ProjectsCreateApiKeyJSONRequestBody
- type ProjectsCreateApiKeyResponse
- type ProjectsCreateJSONBody
- type ProjectsCreateJSONRequestBody
- type ProjectsCreateResponse
- type ProjectsDeleteApiKeyResponse
- type ProjectsDeleteResponse
- type ProjectsGetApiKeysResponse
- type ProjectsGetResponse
- type ProjectsUpdateJSONBody
- type ProjectsUpdateJSONRequestBody
- type ProjectsUpdateResponse
- 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 PromptVersionUpdateJSONBody
- type PromptVersionUpdateJSONRequestBody
- type PromptVersionUpdateResponse
- type PromptsCreateJSONRequestBody
- type PromptsCreateResponse
- type PromptsGetParams
- type PromptsGetResponse
- type PromptsListParams
- type PromptsListResponse
- type RequestEditorFn
- type ResourceMeta
- type ResourceType
- type ResourceTypesResponse
- type SDKLogBody
- type SDKLogEvent
- type SchemaExtension
- type SchemaResource
- type SchemasResponse
- type ScimCreateUserJSONBody
- type ScimCreateUserJSONRequestBody
- type ScimCreateUserResponse
- type ScimDeleteUserResponse
- type ScimEmail
- type ScimFeatureSupport
- type ScimGetResourceTypesResponse
- type ScimGetSchemasResponse
- type ScimGetServiceProviderConfigResponse
- type ScimGetUserResponse
- type ScimListUsersParams
- type ScimListUsersResponse
- type ScimName
- type ScimUser
- type ScimUsersListResponse
- 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 ScoreSource
- type ScoreV1
- func (t ScoreV1) AsScoreV10() (ScoreV10, error)
- func (t ScoreV1) AsScoreV11() (ScoreV11, error)
- func (t ScoreV1) AsScoreV12() (ScoreV12, error)
- func (t *ScoreV1) FromScoreV10(v ScoreV10) error
- func (t *ScoreV1) FromScoreV11(v ScoreV11) error
- func (t *ScoreV1) FromScoreV12(v ScoreV12) error
- func (t ScoreV1) MarshalJSON() ([]byte, error)
- func (t *ScoreV1) MergeScoreV10(v ScoreV10) error
- func (t *ScoreV1) MergeScoreV11(v ScoreV11) error
- func (t *ScoreV1) MergeScoreV12(v ScoreV12) error
- func (t *ScoreV1) UnmarshalJSON(b []byte) error
- type ScoreV10
- type ScoreV10DataType
- type ScoreV11
- type ScoreV11DataType
- type ScoreV12
- type ScoreV12DataType
- type ScoreV2GetByIdResponse
- type ScoreV2GetParams
- type ScoreV2GetResponse
- type ServiceProviderConfig
- type Session
- type SessionWithTraces
- type SessionsGetResponse
- type SessionsListParams
- type SessionsListResponse
- type TextPrompt
- type Trace
- type TraceBody
- type TraceDeleteMultipleJSONBody
- type TraceDeleteMultipleJSONRequestBody
- type TraceDeleteMultipleResponse
- type TraceDeleteResponse
- type TraceEvent
- type TraceGetResponse
- type TraceListParams
- type TraceListResponse
- type TraceWithDetails
- type TraceWithFullDetails
- type Traces
- type UpdateAnnotationQueueItemRequest
- type UpdateEventBody
- type UpdateGenerationBody
- type UpdateGenerationEvent
- type UpdateObservationEvent
- type UpdateSpanBody
- type UpdateSpanEvent
- type Usage
- type UsageByModel
- type UsageDetails
- func (t UsageDetails) AsOpenAICompletionUsageSchema() (OpenAICompletionUsageSchema, error)
- func (t UsageDetails) AsOpenAIResponseUsageSchema() (OpenAIResponseUsageSchema, error)
- func (t UsageDetails) AsUsageDetails0() (UsageDetails0, error)
- func (t *UsageDetails) FromOpenAICompletionUsageSchema(v OpenAICompletionUsageSchema) error
- func (t *UsageDetails) FromOpenAIResponseUsageSchema(v OpenAIResponseUsageSchema) error
- func (t *UsageDetails) FromUsageDetails0(v UsageDetails0) error
- func (t UsageDetails) MarshalJSON() ([]byte, error)
- func (t *UsageDetails) MergeOpenAICompletionUsageSchema(v OpenAICompletionUsageSchema) error
- func (t *UsageDetails) MergeOpenAIResponseUsageSchema(v OpenAIResponseUsageSchema) error
- func (t *UsageDetails) MergeUsageDetails0(v UsageDetails0) error
- func (t *UsageDetails) UnmarshalJSON(b []byte) error
- type UsageDetails0
- type UserMeta
- type UtilsMetaResponse
Constants ¶
const (
BasicAuthScopes = "BasicAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAnnotationQueuesCreateQueueItemRequest ¶
func NewAnnotationQueuesCreateQueueItemRequest(server string, queueId string, body AnnotationQueuesCreateQueueItemJSONRequestBody) (*http.Request, error)
NewAnnotationQueuesCreateQueueItemRequest calls the generic AnnotationQueuesCreateQueueItem builder with application/json body
func NewAnnotationQueuesCreateQueueItemRequestWithBody ¶
func NewAnnotationQueuesCreateQueueItemRequestWithBody(server string, queueId string, contentType string, body io.Reader) (*http.Request, error)
NewAnnotationQueuesCreateQueueItemRequestWithBody generates requests for AnnotationQueuesCreateQueueItem with any type of body
func NewAnnotationQueuesDeleteQueueItemRequest ¶
func NewAnnotationQueuesDeleteQueueItemRequest(server string, queueId string, itemId string) (*http.Request, error)
NewAnnotationQueuesDeleteQueueItemRequest generates requests for AnnotationQueuesDeleteQueueItem
func NewAnnotationQueuesGetQueueItemRequest ¶
func NewAnnotationQueuesGetQueueItemRequest(server string, queueId string, itemId string) (*http.Request, error)
NewAnnotationQueuesGetQueueItemRequest generates requests for AnnotationQueuesGetQueueItem
func NewAnnotationQueuesGetQueueRequest ¶
NewAnnotationQueuesGetQueueRequest generates requests for AnnotationQueuesGetQueue
func NewAnnotationQueuesListQueueItemsRequest ¶
func NewAnnotationQueuesListQueueItemsRequest(server string, queueId string, params *AnnotationQueuesListQueueItemsParams) (*http.Request, error)
NewAnnotationQueuesListQueueItemsRequest generates requests for AnnotationQueuesListQueueItems
func NewAnnotationQueuesListQueuesRequest ¶
func NewAnnotationQueuesListQueuesRequest(server string, params *AnnotationQueuesListQueuesParams) (*http.Request, error)
NewAnnotationQueuesListQueuesRequest generates requests for AnnotationQueuesListQueues
func NewAnnotationQueuesUpdateQueueItemRequest ¶
func NewAnnotationQueuesUpdateQueueItemRequest(server string, queueId string, itemId string, body AnnotationQueuesUpdateQueueItemJSONRequestBody) (*http.Request, error)
NewAnnotationQueuesUpdateQueueItemRequest calls the generic AnnotationQueuesUpdateQueueItem builder with application/json body
func NewAnnotationQueuesUpdateQueueItemRequestWithBody ¶
func NewAnnotationQueuesUpdateQueueItemRequestWithBody(server string, queueId string, itemId string, contentType string, body io.Reader) (*http.Request, error)
NewAnnotationQueuesUpdateQueueItemRequestWithBody generates requests for AnnotationQueuesUpdateQueueItem with any type of body
func NewCommentsCreateRequest ¶
func NewCommentsCreateRequest(server string, body CommentsCreateJSONRequestBody) (*http.Request, error)
NewCommentsCreateRequest calls the generic CommentsCreate builder with application/json body
func NewCommentsCreateRequestWithBody ¶
func NewCommentsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCommentsCreateRequestWithBody generates requests for CommentsCreate with any type of body
func NewCommentsGetByIdRequest ¶
NewCommentsGetByIdRequest generates requests for CommentsGetById
func NewCommentsGetRequest ¶
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 NewDatasetItemsDeleteRequest ¶
NewDatasetItemsDeleteRequest generates requests for DatasetItemsDelete
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 NewDatasetRunItemsListRequest ¶
func NewDatasetRunItemsListRequest(server string, params *DatasetRunItemsListParams) (*http.Request, error)
NewDatasetRunItemsListRequest generates requests for DatasetRunItemsList
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 NewDatasetsDeleteRunRequest ¶
func NewDatasetsDeleteRunRequest(server string, datasetName string, runName string) (*http.Request, error)
NewDatasetsDeleteRunRequest generates requests for DatasetsDeleteRun
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 ¶
NewMediaGetRequest generates requests for MediaGet
func NewMediaGetUploadUrlRequest ¶
func NewMediaGetUploadUrlRequest(server string, body MediaGetUploadUrlJSONRequestBody) (*http.Request, error)
NewMediaGetUploadUrlRequest calls the generic MediaGetUploadUrl builder with application/json body
func NewMediaGetUploadUrlRequestWithBody ¶
func NewMediaGetUploadUrlRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMediaGetUploadUrlRequestWithBody generates requests for MediaGetUploadUrl with any type of body
func NewMediaPatchRequest ¶
func NewMediaPatchRequest(server string, mediaId string, body MediaPatchJSONRequestBody) (*http.Request, error)
NewMediaPatchRequest calls the generic MediaPatch builder with application/json body
func NewMediaPatchRequestWithBody ¶
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 NewMembershipsGetOrganizationMembershipsRequest ¶
NewMembershipsGetOrganizationMembershipsRequest generates requests for MembershipsGetOrganizationMemberships
func NewMembershipsGetProjectMembershipsRequest ¶
func NewMembershipsGetProjectMembershipsRequest(server string, projectId string) (*http.Request, error)
NewMembershipsGetProjectMembershipsRequest generates requests for MembershipsGetProjectMemberships
func NewMembershipsUpdateOrganizationMembershipRequest ¶
func NewMembershipsUpdateOrganizationMembershipRequest(server string, body MembershipsUpdateOrganizationMembershipJSONRequestBody) (*http.Request, error)
NewMembershipsUpdateOrganizationMembershipRequest calls the generic MembershipsUpdateOrganizationMembership builder with application/json body
func NewMembershipsUpdateOrganizationMembershipRequestWithBody ¶
func NewMembershipsUpdateOrganizationMembershipRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMembershipsUpdateOrganizationMembershipRequestWithBody generates requests for MembershipsUpdateOrganizationMembership with any type of body
func NewMembershipsUpdateProjectMembershipRequest ¶
func NewMembershipsUpdateProjectMembershipRequest(server string, projectId string, body MembershipsUpdateProjectMembershipJSONRequestBody) (*http.Request, error)
NewMembershipsUpdateProjectMembershipRequest calls the generic MembershipsUpdateProjectMembership builder with application/json body
func NewMembershipsUpdateProjectMembershipRequestWithBody ¶
func NewMembershipsUpdateProjectMembershipRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
NewMembershipsUpdateProjectMembershipRequestWithBody generates requests for MembershipsUpdateProjectMembership with any type of body
func NewMetricsDailyRequest ¶
func NewMetricsDailyRequest(server string, params *MetricsDailyParams) (*http.Request, error)
NewMetricsDailyRequest generates requests for MetricsDaily
func NewMetricsMetricsRequest ¶
func NewMetricsMetricsRequest(server string, params *MetricsMetricsParams) (*http.Request, error)
NewMetricsMetricsRequest generates requests for MetricsMetrics
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 NewProjectsCreateApiKeyRequest ¶
func NewProjectsCreateApiKeyRequest(server string, projectId string, body ProjectsCreateApiKeyJSONRequestBody) (*http.Request, error)
NewProjectsCreateApiKeyRequest calls the generic ProjectsCreateApiKey builder with application/json body
func NewProjectsCreateApiKeyRequestWithBody ¶
func NewProjectsCreateApiKeyRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
NewProjectsCreateApiKeyRequestWithBody generates requests for ProjectsCreateApiKey with any type of body
func NewProjectsCreateRequest ¶
func NewProjectsCreateRequest(server string, body ProjectsCreateJSONRequestBody) (*http.Request, error)
NewProjectsCreateRequest calls the generic ProjectsCreate builder with application/json body
func NewProjectsCreateRequestWithBody ¶
func NewProjectsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewProjectsCreateRequestWithBody generates requests for ProjectsCreate with any type of body
func NewProjectsDeleteApiKeyRequest ¶
func NewProjectsDeleteApiKeyRequest(server string, projectId string, apiKeyId string) (*http.Request, error)
NewProjectsDeleteApiKeyRequest generates requests for ProjectsDeleteApiKey
func NewProjectsDeleteRequest ¶
NewProjectsDeleteRequest generates requests for ProjectsDelete
func NewProjectsGetApiKeysRequest ¶
NewProjectsGetApiKeysRequest generates requests for ProjectsGetApiKeys
func NewProjectsGetRequest ¶
NewProjectsGetRequest generates requests for ProjectsGet
func NewProjectsUpdateRequest ¶
func NewProjectsUpdateRequest(server string, projectId string, body ProjectsUpdateJSONRequestBody) (*http.Request, error)
NewProjectsUpdateRequest calls the generic ProjectsUpdate builder with application/json body
func NewProjectsUpdateRequestWithBody ¶
func NewProjectsUpdateRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
NewProjectsUpdateRequestWithBody generates requests for ProjectsUpdate with any type of body
func NewPromptVersionUpdateRequest ¶
func NewPromptVersionUpdateRequest(server string, name string, version int, body PromptVersionUpdateJSONRequestBody) (*http.Request, error)
NewPromptVersionUpdateRequest calls the generic PromptVersionUpdate builder with application/json body
func NewPromptVersionUpdateRequestWithBody ¶
func NewPromptVersionUpdateRequestWithBody(server string, name string, version int, contentType string, body io.Reader) (*http.Request, error)
NewPromptVersionUpdateRequestWithBody generates requests for PromptVersionUpdate with any type of body
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 NewScimCreateUserRequest ¶
func NewScimCreateUserRequest(server string, body ScimCreateUserJSONRequestBody) (*http.Request, error)
NewScimCreateUserRequest calls the generic ScimCreateUser builder with application/json body
func NewScimCreateUserRequestWithBody ¶
func NewScimCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewScimCreateUserRequestWithBody generates requests for ScimCreateUser with any type of body
func NewScimDeleteUserRequest ¶
NewScimDeleteUserRequest generates requests for ScimDeleteUser
func NewScimGetResourceTypesRequest ¶
NewScimGetResourceTypesRequest generates requests for ScimGetResourceTypes
func NewScimGetSchemasRequest ¶
NewScimGetSchemasRequest generates requests for ScimGetSchemas
func NewScimGetServiceProviderConfigRequest ¶
NewScimGetServiceProviderConfigRequest generates requests for ScimGetServiceProviderConfig
func NewScimGetUserRequest ¶
NewScimGetUserRequest generates requests for ScimGetUser
func NewScimListUsersRequest ¶
func NewScimListUsersRequest(server string, params *ScimListUsersParams) (*http.Request, error)
NewScimListUsersRequest generates requests for ScimListUsers
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 NewScoreV2GetByIdRequest ¶
NewScoreV2GetByIdRequest generates requests for ScoreV2GetById
func NewScoreV2GetRequest ¶
func NewScoreV2GetRequest(server string, params *ScoreV2GetParams) (*http.Request, error)
NewScoreV2GetRequest generates requests for ScoreV2Get
func NewSessionsGetRequest ¶
NewSessionsGetRequest generates requests for SessionsGet
func NewSessionsListRequest ¶
func NewSessionsListRequest(server string, params *SessionsListParams) (*http.Request, error)
NewSessionsListRequest generates requests for SessionsList
func NewTraceDeleteMultipleRequest ¶
func NewTraceDeleteMultipleRequest(server string, body TraceDeleteMultipleJSONRequestBody) (*http.Request, error)
NewTraceDeleteMultipleRequest calls the generic TraceDeleteMultiple builder with application/json body
func NewTraceDeleteMultipleRequestWithBody ¶
func NewTraceDeleteMultipleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTraceDeleteMultipleRequestWithBody generates requests for TraceDeleteMultiple with any type of body
func NewTraceDeleteRequest ¶
NewTraceDeleteRequest generates requests for TraceDelete
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 AnnotationQueue ¶
type AnnotationQueue struct {
CreatedAt time.Time `json:"createdAt"`
Description *string `json:"description"`
Id string `json:"id"`
Name string `json:"name"`
ScoreConfigIds []string `json:"scoreConfigIds"`
UpdatedAt time.Time `json:"updatedAt"`
}
AnnotationQueue defines model for AnnotationQueue.
type AnnotationQueueItem ¶
type AnnotationQueueItem struct {
CompletedAt *time.Time `json:"completedAt"`
CreatedAt time.Time `json:"createdAt"`
Id string `json:"id"`
ObjectId string `json:"objectId"`
ObjectType AnnotationQueueObjectType `json:"objectType"`
QueueId string `json:"queueId"`
Status AnnotationQueueStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
}
AnnotationQueueItem defines model for AnnotationQueueItem.
type AnnotationQueueObjectType ¶
type AnnotationQueueObjectType string
AnnotationQueueObjectType defines model for AnnotationQueueObjectType.
const ( AnnotationQueueObjectTypeOBSERVATION AnnotationQueueObjectType = "OBSERVATION" AnnotationQueueObjectTypeTRACE AnnotationQueueObjectType = "TRACE" )
Defines values for AnnotationQueueObjectType.
type AnnotationQueueStatus ¶
type AnnotationQueueStatus string
AnnotationQueueStatus defines model for AnnotationQueueStatus.
const ( COMPLETED AnnotationQueueStatus = "COMPLETED" PENDING AnnotationQueueStatus = "PENDING" )
Defines values for AnnotationQueueStatus.
type AnnotationQueuesCreateQueueItemJSONRequestBody ¶
type AnnotationQueuesCreateQueueItemJSONRequestBody = CreateAnnotationQueueItemRequest
AnnotationQueuesCreateQueueItemJSONRequestBody defines body for AnnotationQueuesCreateQueueItem for application/json ContentType.
type AnnotationQueuesCreateQueueItemResponse ¶
type AnnotationQueuesCreateQueueItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AnnotationQueueItem
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseAnnotationQueuesCreateQueueItemResponse ¶
func ParseAnnotationQueuesCreateQueueItemResponse(rsp *http.Response) (*AnnotationQueuesCreateQueueItemResponse, error)
ParseAnnotationQueuesCreateQueueItemResponse parses an HTTP response from a AnnotationQueuesCreateQueueItemWithResponse call
func (AnnotationQueuesCreateQueueItemResponse) Status ¶
func (r AnnotationQueuesCreateQueueItemResponse) Status() string
Status returns HTTPResponse.Status
func (AnnotationQueuesCreateQueueItemResponse) StatusCode ¶
func (r AnnotationQueuesCreateQueueItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnnotationQueuesDeleteQueueItemResponse ¶
type AnnotationQueuesDeleteQueueItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteAnnotationQueueItemResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseAnnotationQueuesDeleteQueueItemResponse ¶
func ParseAnnotationQueuesDeleteQueueItemResponse(rsp *http.Response) (*AnnotationQueuesDeleteQueueItemResponse, error)
ParseAnnotationQueuesDeleteQueueItemResponse parses an HTTP response from a AnnotationQueuesDeleteQueueItemWithResponse call
func (AnnotationQueuesDeleteQueueItemResponse) Status ¶
func (r AnnotationQueuesDeleteQueueItemResponse) Status() string
Status returns HTTPResponse.Status
func (AnnotationQueuesDeleteQueueItemResponse) StatusCode ¶
func (r AnnotationQueuesDeleteQueueItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnnotationQueuesGetQueueItemResponse ¶
type AnnotationQueuesGetQueueItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AnnotationQueueItem
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseAnnotationQueuesGetQueueItemResponse ¶
func ParseAnnotationQueuesGetQueueItemResponse(rsp *http.Response) (*AnnotationQueuesGetQueueItemResponse, error)
ParseAnnotationQueuesGetQueueItemResponse parses an HTTP response from a AnnotationQueuesGetQueueItemWithResponse call
func (AnnotationQueuesGetQueueItemResponse) Status ¶
func (r AnnotationQueuesGetQueueItemResponse) Status() string
Status returns HTTPResponse.Status
func (AnnotationQueuesGetQueueItemResponse) StatusCode ¶
func (r AnnotationQueuesGetQueueItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnnotationQueuesGetQueueResponse ¶
type AnnotationQueuesGetQueueResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AnnotationQueue
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseAnnotationQueuesGetQueueResponse ¶
func ParseAnnotationQueuesGetQueueResponse(rsp *http.Response) (*AnnotationQueuesGetQueueResponse, error)
ParseAnnotationQueuesGetQueueResponse parses an HTTP response from a AnnotationQueuesGetQueueWithResponse call
func (AnnotationQueuesGetQueueResponse) Status ¶
func (r AnnotationQueuesGetQueueResponse) Status() string
Status returns HTTPResponse.Status
func (AnnotationQueuesGetQueueResponse) StatusCode ¶
func (r AnnotationQueuesGetQueueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnnotationQueuesListQueueItemsParams ¶
type AnnotationQueuesListQueueItemsParams struct {
// Status Filter by status
Status *AnnotationQueueStatus `form:"status,omitempty" json:"status,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"`
}
AnnotationQueuesListQueueItemsParams defines parameters for AnnotationQueuesListQueueItems.
type AnnotationQueuesListQueueItemsResponse ¶
type AnnotationQueuesListQueueItemsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedAnnotationQueueItems
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseAnnotationQueuesListQueueItemsResponse ¶
func ParseAnnotationQueuesListQueueItemsResponse(rsp *http.Response) (*AnnotationQueuesListQueueItemsResponse, error)
ParseAnnotationQueuesListQueueItemsResponse parses an HTTP response from a AnnotationQueuesListQueueItemsWithResponse call
func (AnnotationQueuesListQueueItemsResponse) Status ¶
func (r AnnotationQueuesListQueueItemsResponse) Status() string
Status returns HTTPResponse.Status
func (AnnotationQueuesListQueueItemsResponse) StatusCode ¶
func (r AnnotationQueuesListQueueItemsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnnotationQueuesListQueuesParams ¶
type AnnotationQueuesListQueuesParams 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"`
}
AnnotationQueuesListQueuesParams defines parameters for AnnotationQueuesListQueues.
type AnnotationQueuesListQueuesResponse ¶
type AnnotationQueuesListQueuesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedAnnotationQueues
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseAnnotationQueuesListQueuesResponse ¶
func ParseAnnotationQueuesListQueuesResponse(rsp *http.Response) (*AnnotationQueuesListQueuesResponse, error)
ParseAnnotationQueuesListQueuesResponse parses an HTTP response from a AnnotationQueuesListQueuesWithResponse call
func (AnnotationQueuesListQueuesResponse) Status ¶
func (r AnnotationQueuesListQueuesResponse) Status() string
Status returns HTTPResponse.Status
func (AnnotationQueuesListQueuesResponse) StatusCode ¶
func (r AnnotationQueuesListQueuesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnnotationQueuesUpdateQueueItemJSONRequestBody ¶
type AnnotationQueuesUpdateQueueItemJSONRequestBody = UpdateAnnotationQueueItemRequest
AnnotationQueuesUpdateQueueItemJSONRequestBody defines body for AnnotationQueuesUpdateQueueItem for application/json ContentType.
type AnnotationQueuesUpdateQueueItemResponse ¶
type AnnotationQueuesUpdateQueueItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AnnotationQueueItem
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseAnnotationQueuesUpdateQueueItemResponse ¶
func ParseAnnotationQueuesUpdateQueueItemResponse(rsp *http.Response) (*AnnotationQueuesUpdateQueueItemResponse, error)
ParseAnnotationQueuesUpdateQueueItemResponse parses an HTTP response from a AnnotationQueuesUpdateQueueItemWithResponse call
func (AnnotationQueuesUpdateQueueItemResponse) Status ¶
func (r AnnotationQueuesUpdateQueueItemResponse) Status() string
Status returns HTTPResponse.Status
func (AnnotationQueuesUpdateQueueItemResponse) StatusCode ¶
func (r AnnotationQueuesUpdateQueueItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApiKeyDeletionResponse ¶
type ApiKeyDeletionResponse struct {
Success bool `json:"success"`
}
ApiKeyDeletionResponse Response for API key deletion
type ApiKeyList ¶
type ApiKeyList struct {
ApiKeys []ApiKeySummary `json:"apiKeys"`
}
ApiKeyList List of API keys for a project
type ApiKeyResponse ¶
type ApiKeyResponse struct {
CreatedAt time.Time `json:"createdAt"`
DisplaySecretKey string `json:"displaySecretKey"`
Id string `json:"id"`
Note *string `json:"note"`
PublicKey string `json:"publicKey"`
SecretKey string `json:"secretKey"`
}
ApiKeyResponse Response for API key creation
type ApiKeySummary ¶
type ApiKeySummary struct {
CreatedAt time.Time `json:"createdAt"`
DisplaySecretKey string `json:"displaySecretKey"`
ExpiresAt *time.Time `json:"expiresAt"`
Id string `json:"id"`
LastUsedAt *time.Time `json:"lastUsedAt"`
Note *string `json:"note"`
PublicKey string `json:"publicKey"`
}
ApiKeySummary Summary of an API key
type AuthenticationScheme ¶
type AuthenticationScheme struct {
Description string `json:"description"`
Name string `json:"name"`
Primary bool `json:"primary"`
SpecUri string `json:"specUri"`
Type string `json:"type"`
}
AuthenticationScheme defines model for AuthenticationScheme.
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 {
// CommitMessage Commit message for this prompt version.
CommitMessage *string `json:"commitMessage"`
Config interface{} `json:"config"`
// Labels List of deployment labels of this prompt version.
Labels []string `json:"labels"`
Name string `json:"name"`
// ResolutionGraph The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
ResolutionGraph *map[string]interface{} `json:"resolutionGraph"`
// 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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
SessionId *string `json:"sessionId"`
Source ScoreSource `json:"source"`
Timestamp time.Time `json:"timestamp"`
TraceId *string `json:"traceId"`
UpdatedAt time.Time `json:"updatedAt"`
}
BaseScore defines model for BaseScore.
type BaseScoreV1 ¶
type BaseScoreV1 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"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
}
BaseScoreV1 defines model for BaseScoreV1.
type BooleanScoreV1 ¶
type BooleanScoreV1 = BaseScoreV1
BooleanScoreV1 defines model for BooleanScoreV1.
type BulkConfig ¶
type BulkConfig struct {
MaxOperations int `json:"maxOperations"`
MaxPayloadSize int `json:"maxPayloadSize"`
Supported bool `json:"supported"`
}
BulkConfig defines model for BulkConfig.
type CategoricalScore ¶
type CategoricalScore = BaseScore
CategoricalScore defines model for CategoricalScore.
type CategoricalScoreV1 ¶
type CategoricalScoreV1 = BaseScoreV1
CategoricalScoreV1 defines model for CategoricalScoreV1.
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) AnnotationQueuesCreateQueueItem ¶
func (c *Client) AnnotationQueuesCreateQueueItem(ctx context.Context, queueId string, body AnnotationQueuesCreateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnnotationQueuesCreateQueueItemWithBody ¶
func (*Client) AnnotationQueuesDeleteQueueItem ¶
func (*Client) AnnotationQueuesGetQueue ¶
func (*Client) AnnotationQueuesGetQueueItem ¶
func (*Client) AnnotationQueuesListQueueItems ¶
func (c *Client) AnnotationQueuesListQueueItems(ctx context.Context, queueId string, params *AnnotationQueuesListQueueItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnnotationQueuesListQueues ¶
func (c *Client) AnnotationQueuesListQueues(ctx context.Context, params *AnnotationQueuesListQueuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnnotationQueuesUpdateQueueItem ¶
func (c *Client) AnnotationQueuesUpdateQueueItem(ctx context.Context, queueId string, itemId string, body AnnotationQueuesUpdateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnnotationQueuesUpdateQueueItemWithBody ¶
func (*Client) CommentsCreate ¶
func (c *Client) CommentsCreate(ctx context.Context, body CommentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CommentsCreateWithBody ¶
func (*Client) CommentsGet ¶
func (c *Client) CommentsGet(ctx context.Context, params *CommentsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CommentsGetById ¶
func (*Client) DatasetItemsCreate ¶
func (c *Client) DatasetItemsCreate(ctx context.Context, body DatasetItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetItemsCreateWithBody ¶
func (*Client) DatasetItemsDelete ¶
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) DatasetRunItemsList ¶
func (c *Client) DatasetRunItemsList(ctx context.Context, params *DatasetRunItemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetsCreate ¶
func (c *Client) DatasetsCreate(ctx context.Context, body DatasetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DatasetsCreateWithBody ¶
func (*Client) DatasetsDeleteRun ¶
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 ¶
func (c *Client) MediaGetUploadUrl(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MediaGetUploadUrlWithBody ¶
func (*Client) MediaPatch ¶
func (c *Client) MediaPatch(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MediaPatchWithBody ¶
func (*Client) MembershipsGetOrganizationMemberships ¶
func (*Client) MembershipsGetProjectMemberships ¶
func (*Client) MembershipsUpdateOrganizationMembership ¶
func (c *Client) MembershipsUpdateOrganizationMembership(ctx context.Context, body MembershipsUpdateOrganizationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MembershipsUpdateOrganizationMembershipWithBody ¶
func (*Client) MembershipsUpdateProjectMembership ¶
func (c *Client) MembershipsUpdateProjectMembership(ctx context.Context, projectId string, body MembershipsUpdateProjectMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MembershipsUpdateProjectMembershipWithBody ¶
func (*Client) MetricsDaily ¶
func (c *Client) MetricsDaily(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MetricsMetrics ¶
func (c *Client) MetricsMetrics(ctx context.Context, params *MetricsMetricsParams, 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) ProjectsCreate ¶
func (c *Client) ProjectsCreate(ctx context.Context, body ProjectsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ProjectsCreateApiKey ¶
func (c *Client) ProjectsCreateApiKey(ctx context.Context, projectId string, body ProjectsCreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ProjectsCreateApiKeyWithBody ¶
func (*Client) ProjectsCreateWithBody ¶
func (*Client) ProjectsDelete ¶
func (*Client) ProjectsDeleteApiKey ¶
func (*Client) ProjectsGet ¶
func (*Client) ProjectsGetApiKeys ¶
func (*Client) ProjectsUpdate ¶
func (c *Client) ProjectsUpdate(ctx context.Context, projectId string, body ProjectsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ProjectsUpdateWithBody ¶
func (*Client) PromptVersionUpdate ¶
func (c *Client) PromptVersionUpdate(ctx context.Context, name string, version int, body PromptVersionUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PromptVersionUpdateWithBody ¶
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) ScimCreateUser ¶
func (c *Client) ScimCreateUser(ctx context.Context, body ScimCreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScimCreateUserWithBody ¶
func (*Client) ScimDeleteUser ¶
func (*Client) ScimGetResourceTypes ¶
func (*Client) ScimGetSchemas ¶
func (*Client) ScimGetServiceProviderConfig ¶
func (*Client) ScimGetUser ¶
func (*Client) ScimListUsers ¶
func (c *Client) ScimListUsers(ctx context.Context, params *ScimListUsersParams, 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) ScoreV2Get ¶
func (c *Client) ScoreV2Get(ctx context.Context, params *ScoreV2GetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScoreV2GetById ¶
func (*Client) SessionsGet ¶
func (*Client) SessionsList ¶
func (c *Client) SessionsList(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TraceDelete ¶
func (*Client) TraceDeleteMultiple ¶
func (c *Client) TraceDeleteMultiple(ctx context.Context, body TraceDeleteMultipleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TraceDeleteMultipleWithBody ¶
func (*Client) TraceList ¶
func (c *Client) TraceList(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// AnnotationQueuesListQueues request
AnnotationQueuesListQueues(ctx context.Context, params *AnnotationQueuesListQueuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnnotationQueuesGetQueue request
AnnotationQueuesGetQueue(ctx context.Context, queueId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnnotationQueuesListQueueItems request
AnnotationQueuesListQueueItems(ctx context.Context, queueId string, params *AnnotationQueuesListQueueItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnnotationQueuesCreateQueueItemWithBody request with any body
AnnotationQueuesCreateQueueItemWithBody(ctx context.Context, queueId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AnnotationQueuesCreateQueueItem(ctx context.Context, queueId string, body AnnotationQueuesCreateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnnotationQueuesDeleteQueueItem request
AnnotationQueuesDeleteQueueItem(ctx context.Context, queueId string, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnnotationQueuesGetQueueItem request
AnnotationQueuesGetQueueItem(ctx context.Context, queueId string, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnnotationQueuesUpdateQueueItemWithBody request with any body
AnnotationQueuesUpdateQueueItemWithBody(ctx context.Context, queueId string, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AnnotationQueuesUpdateQueueItem(ctx context.Context, queueId string, itemId string, body AnnotationQueuesUpdateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// 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)
// DatasetItemsDelete request
DatasetItemsDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DatasetItemsGet request
DatasetItemsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DatasetRunItemsList request
DatasetRunItemsList(ctx context.Context, params *DatasetRunItemsListParams, 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)
// DatasetsDeleteRun request
DatasetsDeleteRun(ctx context.Context, datasetName string, runName string, 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)
// MetricsMetrics request
MetricsMetrics(ctx context.Context, params *MetricsMetricsParams, 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)
// MembershipsGetOrganizationMemberships request
MembershipsGetOrganizationMemberships(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// MembershipsUpdateOrganizationMembershipWithBody request with any body
MembershipsUpdateOrganizationMembershipWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MembershipsUpdateOrganizationMembership(ctx context.Context, body MembershipsUpdateOrganizationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProjectsGet request
ProjectsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProjectsCreateWithBody request with any body
ProjectsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ProjectsCreate(ctx context.Context, body ProjectsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProjectsDelete request
ProjectsDelete(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProjectsUpdateWithBody request with any body
ProjectsUpdateWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ProjectsUpdate(ctx context.Context, projectId string, body ProjectsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProjectsGetApiKeys request
ProjectsGetApiKeys(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProjectsCreateApiKeyWithBody request with any body
ProjectsCreateApiKeyWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ProjectsCreateApiKey(ctx context.Context, projectId string, body ProjectsCreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProjectsDeleteApiKey request
ProjectsDeleteApiKey(ctx context.Context, projectId string, apiKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// MembershipsGetProjectMemberships request
MembershipsGetProjectMemberships(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// MembershipsUpdateProjectMembershipWithBody request with any body
MembershipsUpdateProjectMembershipWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MembershipsUpdateProjectMembership(ctx context.Context, projectId string, body MembershipsUpdateProjectMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScimGetResourceTypes request
ScimGetResourceTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScimGetSchemas request
ScimGetSchemas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScimGetServiceProviderConfig request
ScimGetServiceProviderConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScimListUsers request
ScimListUsers(ctx context.Context, params *ScimListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScimCreateUserWithBody request with any body
ScimCreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ScimCreateUser(ctx context.Context, body ScimCreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScimDeleteUser request
ScimDeleteUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScimGetUser request
ScimGetUser(ctx context.Context, userId string, 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)
// 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)
// 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)
// TraceDeleteMultipleWithBody request with any body
TraceDeleteMultipleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TraceDeleteMultiple(ctx context.Context, body TraceDeleteMultipleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TraceList request
TraceList(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TraceDelete request
TraceDelete(ctx context.Context, traceId string, 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)
// PromptVersionUpdateWithBody request with any body
PromptVersionUpdateWithBody(ctx context.Context, name string, version int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PromptVersionUpdate(ctx context.Context, name string, version int, body PromptVersionUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PromptsGet request
PromptsGet(ctx context.Context, promptName string, params *PromptsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScoreV2Get request
ScoreV2Get(ctx context.Context, params *ScoreV2GetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScoreV2GetById request
ScoreV2GetById(ctx context.Context, scoreId string, 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) AnnotationQueuesCreateQueueItemWithBodyWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesCreateQueueItemWithBodyWithResponse(ctx context.Context, queueId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnnotationQueuesCreateQueueItemResponse, error)
AnnotationQueuesCreateQueueItemWithBodyWithResponse request with arbitrary body returning *AnnotationQueuesCreateQueueItemResponse
func (*ClientWithResponses) AnnotationQueuesCreateQueueItemWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesCreateQueueItemWithResponse(ctx context.Context, queueId string, body AnnotationQueuesCreateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*AnnotationQueuesCreateQueueItemResponse, error)
func (*ClientWithResponses) AnnotationQueuesDeleteQueueItemWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesDeleteQueueItemWithResponse(ctx context.Context, queueId string, itemId string, reqEditors ...RequestEditorFn) (*AnnotationQueuesDeleteQueueItemResponse, error)
AnnotationQueuesDeleteQueueItemWithResponse request returning *AnnotationQueuesDeleteQueueItemResponse
func (*ClientWithResponses) AnnotationQueuesGetQueueItemWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesGetQueueItemWithResponse(ctx context.Context, queueId string, itemId string, reqEditors ...RequestEditorFn) (*AnnotationQueuesGetQueueItemResponse, error)
AnnotationQueuesGetQueueItemWithResponse request returning *AnnotationQueuesGetQueueItemResponse
func (*ClientWithResponses) AnnotationQueuesGetQueueWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesGetQueueWithResponse(ctx context.Context, queueId string, reqEditors ...RequestEditorFn) (*AnnotationQueuesGetQueueResponse, error)
AnnotationQueuesGetQueueWithResponse request returning *AnnotationQueuesGetQueueResponse
func (*ClientWithResponses) AnnotationQueuesListQueueItemsWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesListQueueItemsWithResponse(ctx context.Context, queueId string, params *AnnotationQueuesListQueueItemsParams, reqEditors ...RequestEditorFn) (*AnnotationQueuesListQueueItemsResponse, error)
AnnotationQueuesListQueueItemsWithResponse request returning *AnnotationQueuesListQueueItemsResponse
func (*ClientWithResponses) AnnotationQueuesListQueuesWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesListQueuesWithResponse(ctx context.Context, params *AnnotationQueuesListQueuesParams, reqEditors ...RequestEditorFn) (*AnnotationQueuesListQueuesResponse, error)
AnnotationQueuesListQueuesWithResponse request returning *AnnotationQueuesListQueuesResponse
func (*ClientWithResponses) AnnotationQueuesUpdateQueueItemWithBodyWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesUpdateQueueItemWithBodyWithResponse(ctx context.Context, queueId string, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnnotationQueuesUpdateQueueItemResponse, error)
AnnotationQueuesUpdateQueueItemWithBodyWithResponse request with arbitrary body returning *AnnotationQueuesUpdateQueueItemResponse
func (*ClientWithResponses) AnnotationQueuesUpdateQueueItemWithResponse ¶
func (c *ClientWithResponses) AnnotationQueuesUpdateQueueItemWithResponse(ctx context.Context, queueId string, itemId string, body AnnotationQueuesUpdateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*AnnotationQueuesUpdateQueueItemResponse, error)
func (*ClientWithResponses) CommentsCreateWithBodyWithResponse ¶
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 ¶
func (c *ClientWithResponses) CommentsCreateWithResponse(ctx context.Context, body CommentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CommentsCreateResponse, error)
func (*ClientWithResponses) CommentsGetByIdWithResponse ¶
func (c *ClientWithResponses) CommentsGetByIdWithResponse(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*CommentsGetByIdResponse, error)
CommentsGetByIdWithResponse request returning *CommentsGetByIdResponse
func (*ClientWithResponses) CommentsGetWithResponse ¶
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) DatasetItemsDeleteWithResponse ¶
func (c *ClientWithResponses) DatasetItemsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DatasetItemsDeleteResponse, error)
DatasetItemsDeleteWithResponse request returning *DatasetItemsDeleteResponse
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) DatasetRunItemsListWithResponse ¶
func (c *ClientWithResponses) DatasetRunItemsListWithResponse(ctx context.Context, params *DatasetRunItemsListParams, reqEditors ...RequestEditorFn) (*DatasetRunItemsListResponse, error)
DatasetRunItemsListWithResponse request returning *DatasetRunItemsListResponse
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) DatasetsDeleteRunWithResponse ¶
func (c *ClientWithResponses) DatasetsDeleteRunWithResponse(ctx context.Context, datasetName string, runName string, reqEditors ...RequestEditorFn) (*DatasetsDeleteRunResponse, error)
DatasetsDeleteRunWithResponse request returning *DatasetsDeleteRunResponse
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 ¶
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 ¶
func (c *ClientWithResponses) MediaGetUploadUrlWithResponse(ctx context.Context, body MediaGetUploadUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*MediaGetUploadUrlResponse, error)
func (*ClientWithResponses) MediaGetWithResponse ¶
func (c *ClientWithResponses) MediaGetWithResponse(ctx context.Context, mediaId string, reqEditors ...RequestEditorFn) (*MediaGetResponse, error)
MediaGetWithResponse request returning *MediaGetResponse
func (*ClientWithResponses) MediaPatchWithBodyWithResponse ¶
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 ¶
func (c *ClientWithResponses) MediaPatchWithResponse(ctx context.Context, mediaId string, body MediaPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*MediaPatchResponse, error)
func (*ClientWithResponses) MembershipsGetOrganizationMembershipsWithResponse ¶
func (c *ClientWithResponses) MembershipsGetOrganizationMembershipsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MembershipsGetOrganizationMembershipsResponse, error)
MembershipsGetOrganizationMembershipsWithResponse request returning *MembershipsGetOrganizationMembershipsResponse
func (*ClientWithResponses) MembershipsGetProjectMembershipsWithResponse ¶
func (c *ClientWithResponses) MembershipsGetProjectMembershipsWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*MembershipsGetProjectMembershipsResponse, error)
MembershipsGetProjectMembershipsWithResponse request returning *MembershipsGetProjectMembershipsResponse
func (*ClientWithResponses) MembershipsUpdateOrganizationMembershipWithBodyWithResponse ¶
func (c *ClientWithResponses) MembershipsUpdateOrganizationMembershipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MembershipsUpdateOrganizationMembershipResponse, error)
MembershipsUpdateOrganizationMembershipWithBodyWithResponse request with arbitrary body returning *MembershipsUpdateOrganizationMembershipResponse
func (*ClientWithResponses) MembershipsUpdateOrganizationMembershipWithResponse ¶
func (c *ClientWithResponses) MembershipsUpdateOrganizationMembershipWithResponse(ctx context.Context, body MembershipsUpdateOrganizationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*MembershipsUpdateOrganizationMembershipResponse, error)
func (*ClientWithResponses) MembershipsUpdateProjectMembershipWithBodyWithResponse ¶
func (c *ClientWithResponses) MembershipsUpdateProjectMembershipWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MembershipsUpdateProjectMembershipResponse, error)
MembershipsUpdateProjectMembershipWithBodyWithResponse request with arbitrary body returning *MembershipsUpdateProjectMembershipResponse
func (*ClientWithResponses) MembershipsUpdateProjectMembershipWithResponse ¶
func (c *ClientWithResponses) MembershipsUpdateProjectMembershipWithResponse(ctx context.Context, projectId string, body MembershipsUpdateProjectMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*MembershipsUpdateProjectMembershipResponse, error)
func (*ClientWithResponses) MetricsDailyWithResponse ¶
func (c *ClientWithResponses) MetricsDailyWithResponse(ctx context.Context, params *MetricsDailyParams, reqEditors ...RequestEditorFn) (*MetricsDailyResponse, error)
MetricsDailyWithResponse request returning *MetricsDailyResponse
func (*ClientWithResponses) MetricsMetricsWithResponse ¶
func (c *ClientWithResponses) MetricsMetricsWithResponse(ctx context.Context, params *MetricsMetricsParams, reqEditors ...RequestEditorFn) (*MetricsMetricsResponse, error)
MetricsMetricsWithResponse request returning *MetricsMetricsResponse
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) ProjectsCreateApiKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) ProjectsCreateApiKeyWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProjectsCreateApiKeyResponse, error)
ProjectsCreateApiKeyWithBodyWithResponse request with arbitrary body returning *ProjectsCreateApiKeyResponse
func (*ClientWithResponses) ProjectsCreateApiKeyWithResponse ¶
func (c *ClientWithResponses) ProjectsCreateApiKeyWithResponse(ctx context.Context, projectId string, body ProjectsCreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProjectsCreateApiKeyResponse, error)
func (*ClientWithResponses) ProjectsCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) ProjectsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProjectsCreateResponse, error)
ProjectsCreateWithBodyWithResponse request with arbitrary body returning *ProjectsCreateResponse
func (*ClientWithResponses) ProjectsCreateWithResponse ¶
func (c *ClientWithResponses) ProjectsCreateWithResponse(ctx context.Context, body ProjectsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ProjectsCreateResponse, error)
func (*ClientWithResponses) ProjectsDeleteApiKeyWithResponse ¶
func (c *ClientWithResponses) ProjectsDeleteApiKeyWithResponse(ctx context.Context, projectId string, apiKeyId string, reqEditors ...RequestEditorFn) (*ProjectsDeleteApiKeyResponse, error)
ProjectsDeleteApiKeyWithResponse request returning *ProjectsDeleteApiKeyResponse
func (*ClientWithResponses) ProjectsDeleteWithResponse ¶
func (c *ClientWithResponses) ProjectsDeleteWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ProjectsDeleteResponse, error)
ProjectsDeleteWithResponse request returning *ProjectsDeleteResponse
func (*ClientWithResponses) ProjectsGetApiKeysWithResponse ¶
func (c *ClientWithResponses) ProjectsGetApiKeysWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ProjectsGetApiKeysResponse, error)
ProjectsGetApiKeysWithResponse request returning *ProjectsGetApiKeysResponse
func (*ClientWithResponses) ProjectsGetWithResponse ¶
func (c *ClientWithResponses) ProjectsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProjectsGetResponse, error)
ProjectsGetWithResponse request returning *ProjectsGetResponse
func (*ClientWithResponses) ProjectsUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) ProjectsUpdateWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProjectsUpdateResponse, error)
ProjectsUpdateWithBodyWithResponse request with arbitrary body returning *ProjectsUpdateResponse
func (*ClientWithResponses) ProjectsUpdateWithResponse ¶
func (c *ClientWithResponses) ProjectsUpdateWithResponse(ctx context.Context, projectId string, body ProjectsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ProjectsUpdateResponse, error)
func (*ClientWithResponses) PromptVersionUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) PromptVersionUpdateWithBodyWithResponse(ctx context.Context, name string, version int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromptVersionUpdateResponse, error)
PromptVersionUpdateWithBodyWithResponse request with arbitrary body returning *PromptVersionUpdateResponse
func (*ClientWithResponses) PromptVersionUpdateWithResponse ¶
func (c *ClientWithResponses) PromptVersionUpdateWithResponse(ctx context.Context, name string, version int, body PromptVersionUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PromptVersionUpdateResponse, error)
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) ScimCreateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) ScimCreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScimCreateUserResponse, error)
ScimCreateUserWithBodyWithResponse request with arbitrary body returning *ScimCreateUserResponse
func (*ClientWithResponses) ScimCreateUserWithResponse ¶
func (c *ClientWithResponses) ScimCreateUserWithResponse(ctx context.Context, body ScimCreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ScimCreateUserResponse, error)
func (*ClientWithResponses) ScimDeleteUserWithResponse ¶
func (c *ClientWithResponses) ScimDeleteUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ScimDeleteUserResponse, error)
ScimDeleteUserWithResponse request returning *ScimDeleteUserResponse
func (*ClientWithResponses) ScimGetResourceTypesWithResponse ¶
func (c *ClientWithResponses) ScimGetResourceTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetResourceTypesResponse, error)
ScimGetResourceTypesWithResponse request returning *ScimGetResourceTypesResponse
func (*ClientWithResponses) ScimGetSchemasWithResponse ¶
func (c *ClientWithResponses) ScimGetSchemasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetSchemasResponse, error)
ScimGetSchemasWithResponse request returning *ScimGetSchemasResponse
func (*ClientWithResponses) ScimGetServiceProviderConfigWithResponse ¶
func (c *ClientWithResponses) ScimGetServiceProviderConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetServiceProviderConfigResponse, error)
ScimGetServiceProviderConfigWithResponse request returning *ScimGetServiceProviderConfigResponse
func (*ClientWithResponses) ScimGetUserWithResponse ¶
func (c *ClientWithResponses) ScimGetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ScimGetUserResponse, error)
ScimGetUserWithResponse request returning *ScimGetUserResponse
func (*ClientWithResponses) ScimListUsersWithResponse ¶
func (c *ClientWithResponses) ScimListUsersWithResponse(ctx context.Context, params *ScimListUsersParams, reqEditors ...RequestEditorFn) (*ScimListUsersResponse, error)
ScimListUsersWithResponse request returning *ScimListUsersResponse
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) ScoreV2GetByIdWithResponse ¶
func (c *ClientWithResponses) ScoreV2GetByIdWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreV2GetByIdResponse, error)
ScoreV2GetByIdWithResponse request returning *ScoreV2GetByIdResponse
func (*ClientWithResponses) ScoreV2GetWithResponse ¶
func (c *ClientWithResponses) ScoreV2GetWithResponse(ctx context.Context, params *ScoreV2GetParams, reqEditors ...RequestEditorFn) (*ScoreV2GetResponse, error)
ScoreV2GetWithResponse request returning *ScoreV2GetResponse
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) TraceDeleteMultipleWithBodyWithResponse ¶
func (c *ClientWithResponses) TraceDeleteMultipleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TraceDeleteMultipleResponse, error)
TraceDeleteMultipleWithBodyWithResponse request with arbitrary body returning *TraceDeleteMultipleResponse
func (*ClientWithResponses) TraceDeleteMultipleWithResponse ¶
func (c *ClientWithResponses) TraceDeleteMultipleWithResponse(ctx context.Context, body TraceDeleteMultipleJSONRequestBody, reqEditors ...RequestEditorFn) (*TraceDeleteMultipleResponse, error)
func (*ClientWithResponses) TraceDeleteWithResponse ¶
func (c *ClientWithResponses) TraceDeleteWithResponse(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*TraceDeleteResponse, error)
TraceDeleteWithResponse request returning *TraceDeleteResponse
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 {
// AnnotationQueuesListQueuesWithResponse request
AnnotationQueuesListQueuesWithResponse(ctx context.Context, params *AnnotationQueuesListQueuesParams, reqEditors ...RequestEditorFn) (*AnnotationQueuesListQueuesResponse, error)
// AnnotationQueuesGetQueueWithResponse request
AnnotationQueuesGetQueueWithResponse(ctx context.Context, queueId string, reqEditors ...RequestEditorFn) (*AnnotationQueuesGetQueueResponse, error)
// AnnotationQueuesListQueueItemsWithResponse request
AnnotationQueuesListQueueItemsWithResponse(ctx context.Context, queueId string, params *AnnotationQueuesListQueueItemsParams, reqEditors ...RequestEditorFn) (*AnnotationQueuesListQueueItemsResponse, error)
// AnnotationQueuesCreateQueueItemWithBodyWithResponse request with any body
AnnotationQueuesCreateQueueItemWithBodyWithResponse(ctx context.Context, queueId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnnotationQueuesCreateQueueItemResponse, error)
AnnotationQueuesCreateQueueItemWithResponse(ctx context.Context, queueId string, body AnnotationQueuesCreateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*AnnotationQueuesCreateQueueItemResponse, error)
// AnnotationQueuesDeleteQueueItemWithResponse request
AnnotationQueuesDeleteQueueItemWithResponse(ctx context.Context, queueId string, itemId string, reqEditors ...RequestEditorFn) (*AnnotationQueuesDeleteQueueItemResponse, error)
// AnnotationQueuesGetQueueItemWithResponse request
AnnotationQueuesGetQueueItemWithResponse(ctx context.Context, queueId string, itemId string, reqEditors ...RequestEditorFn) (*AnnotationQueuesGetQueueItemResponse, error)
// AnnotationQueuesUpdateQueueItemWithBodyWithResponse request with any body
AnnotationQueuesUpdateQueueItemWithBodyWithResponse(ctx context.Context, queueId string, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnnotationQueuesUpdateQueueItemResponse, error)
AnnotationQueuesUpdateQueueItemWithResponse(ctx context.Context, queueId string, itemId string, body AnnotationQueuesUpdateQueueItemJSONRequestBody, reqEditors ...RequestEditorFn) (*AnnotationQueuesUpdateQueueItemResponse, error)
// 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)
// DatasetItemsDeleteWithResponse request
DatasetItemsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DatasetItemsDeleteResponse, error)
// DatasetItemsGetWithResponse request
DatasetItemsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DatasetItemsGetResponse, error)
// DatasetRunItemsListWithResponse request
DatasetRunItemsListWithResponse(ctx context.Context, params *DatasetRunItemsListParams, reqEditors ...RequestEditorFn) (*DatasetRunItemsListResponse, 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)
// DatasetsDeleteRunWithResponse request
DatasetsDeleteRunWithResponse(ctx context.Context, datasetName string, runName string, reqEditors ...RequestEditorFn) (*DatasetsDeleteRunResponse, 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)
// MetricsMetricsWithResponse request
MetricsMetricsWithResponse(ctx context.Context, params *MetricsMetricsParams, reqEditors ...RequestEditorFn) (*MetricsMetricsResponse, 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)
// MembershipsGetOrganizationMembershipsWithResponse request
MembershipsGetOrganizationMembershipsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MembershipsGetOrganizationMembershipsResponse, error)
// MembershipsUpdateOrganizationMembershipWithBodyWithResponse request with any body
MembershipsUpdateOrganizationMembershipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MembershipsUpdateOrganizationMembershipResponse, error)
MembershipsUpdateOrganizationMembershipWithResponse(ctx context.Context, body MembershipsUpdateOrganizationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*MembershipsUpdateOrganizationMembershipResponse, error)
// ProjectsGetWithResponse request
ProjectsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProjectsGetResponse, error)
// ProjectsCreateWithBodyWithResponse request with any body
ProjectsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProjectsCreateResponse, error)
ProjectsCreateWithResponse(ctx context.Context, body ProjectsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ProjectsCreateResponse, error)
// ProjectsDeleteWithResponse request
ProjectsDeleteWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ProjectsDeleteResponse, error)
// ProjectsUpdateWithBodyWithResponse request with any body
ProjectsUpdateWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProjectsUpdateResponse, error)
ProjectsUpdateWithResponse(ctx context.Context, projectId string, body ProjectsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ProjectsUpdateResponse, error)
// ProjectsGetApiKeysWithResponse request
ProjectsGetApiKeysWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ProjectsGetApiKeysResponse, error)
// ProjectsCreateApiKeyWithBodyWithResponse request with any body
ProjectsCreateApiKeyWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProjectsCreateApiKeyResponse, error)
ProjectsCreateApiKeyWithResponse(ctx context.Context, projectId string, body ProjectsCreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProjectsCreateApiKeyResponse, error)
// ProjectsDeleteApiKeyWithResponse request
ProjectsDeleteApiKeyWithResponse(ctx context.Context, projectId string, apiKeyId string, reqEditors ...RequestEditorFn) (*ProjectsDeleteApiKeyResponse, error)
// MembershipsGetProjectMembershipsWithResponse request
MembershipsGetProjectMembershipsWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*MembershipsGetProjectMembershipsResponse, error)
// MembershipsUpdateProjectMembershipWithBodyWithResponse request with any body
MembershipsUpdateProjectMembershipWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MembershipsUpdateProjectMembershipResponse, error)
MembershipsUpdateProjectMembershipWithResponse(ctx context.Context, projectId string, body MembershipsUpdateProjectMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*MembershipsUpdateProjectMembershipResponse, error)
// ScimGetResourceTypesWithResponse request
ScimGetResourceTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetResourceTypesResponse, error)
// ScimGetSchemasWithResponse request
ScimGetSchemasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetSchemasResponse, error)
// ScimGetServiceProviderConfigWithResponse request
ScimGetServiceProviderConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ScimGetServiceProviderConfigResponse, error)
// ScimListUsersWithResponse request
ScimListUsersWithResponse(ctx context.Context, params *ScimListUsersParams, reqEditors ...RequestEditorFn) (*ScimListUsersResponse, error)
// ScimCreateUserWithBodyWithResponse request with any body
ScimCreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScimCreateUserResponse, error)
ScimCreateUserWithResponse(ctx context.Context, body ScimCreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ScimCreateUserResponse, error)
// ScimDeleteUserWithResponse request
ScimDeleteUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ScimDeleteUserResponse, error)
// ScimGetUserWithResponse request
ScimGetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ScimGetUserResponse, 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)
// 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)
// SessionsListWithResponse request
SessionsListWithResponse(ctx context.Context, params *SessionsListParams, reqEditors ...RequestEditorFn) (*SessionsListResponse, error)
// SessionsGetWithResponse request
SessionsGetWithResponse(ctx context.Context, sessionId string, reqEditors ...RequestEditorFn) (*SessionsGetResponse, error)
// TraceDeleteMultipleWithBodyWithResponse request with any body
TraceDeleteMultipleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TraceDeleteMultipleResponse, error)
TraceDeleteMultipleWithResponse(ctx context.Context, body TraceDeleteMultipleJSONRequestBody, reqEditors ...RequestEditorFn) (*TraceDeleteMultipleResponse, error)
// TraceListWithResponse request
TraceListWithResponse(ctx context.Context, params *TraceListParams, reqEditors ...RequestEditorFn) (*TraceListResponse, error)
// TraceDeleteWithResponse request
TraceDeleteWithResponse(ctx context.Context, traceId string, reqEditors ...RequestEditorFn) (*TraceDeleteResponse, 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)
// PromptVersionUpdateWithBodyWithResponse request with any body
PromptVersionUpdateWithBodyWithResponse(ctx context.Context, name string, version int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromptVersionUpdateResponse, error)
PromptVersionUpdateWithResponse(ctx context.Context, name string, version int, body PromptVersionUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PromptVersionUpdateResponse, error)
// PromptsGetWithResponse request
PromptsGetWithResponse(ctx context.Context, promptName string, params *PromptsGetParams, reqEditors ...RequestEditorFn) (*PromptsGetResponse, error)
// ScoreV2GetWithResponse request
ScoreV2GetWithResponse(ctx context.Context, params *ScoreV2GetParams, reqEditors ...RequestEditorFn) (*ScoreV2GetResponse, error)
// ScoreV2GetByIdWithResponse request
ScoreV2GetByIdWithResponse(ctx context.Context, scoreId string, reqEditors ...RequestEditorFn) (*ScoreV2GetByIdResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Comment ¶
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 ¶
type CommentObjectType string
CommentObjectType defines model for CommentObjectType.
const ( CommentObjectTypeOBSERVATION CommentObjectType = "OBSERVATION" CommentObjectTypePROMPT CommentObjectType = "PROMPT" CommentObjectTypeSESSION CommentObjectType = "SESSION" CommentObjectTypeTRACE CommentObjectType = "TRACE" )
Defines values for CommentObjectType.
type CommentsCreateJSONRequestBody ¶
type CommentsCreateJSONRequestBody = CreateCommentRequest
CommentsCreateJSONRequestBody defines body for CommentsCreate for application/json ContentType.
type CommentsCreateResponse ¶
type CommentsCreateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CreateCommentResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseCommentsCreateResponse ¶
func ParseCommentsCreateResponse(rsp *http.Response) (*CommentsCreateResponse, error)
ParseCommentsCreateResponse parses an HTTP response from a CommentsCreateWithResponse call
func (CommentsCreateResponse) Status ¶
func (r CommentsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (CommentsCreateResponse) StatusCode ¶
func (r CommentsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CommentsGetByIdResponse ¶
type CommentsGetByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Comment
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseCommentsGetByIdResponse ¶
func ParseCommentsGetByIdResponse(rsp *http.Response) (*CommentsGetByIdResponse, error)
ParseCommentsGetByIdResponse parses an HTTP response from a CommentsGetByIdWithResponse call
func (CommentsGetByIdResponse) Status ¶
func (r CommentsGetByIdResponse) Status() string
Status returns HTTPResponse.Status
func (CommentsGetByIdResponse) StatusCode ¶
func (r CommentsGetByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CommentsGetParams ¶
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 ¶
type CommentsGetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetCommentsResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseCommentsGetResponse ¶
func ParseCommentsGetResponse(rsp *http.Response) (*CommentsGetResponse, error)
ParseCommentsGetResponse parses an HTTP response from a CommentsGetWithResponse call
func (CommentsGetResponse) Status ¶
func (r CommentsGetResponse) Status() string
Status returns HTTPResponse.Status
func (CommentsGetResponse) StatusCode ¶
func (r CommentsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfigCategory ¶
ConfigCategory defines model for ConfigCategory.
type CreateAnnotationQueueItemRequest ¶
type CreateAnnotationQueueItemRequest struct {
ObjectId string `json:"objectId"`
ObjectType AnnotationQueueObjectType `json:"objectType"`
Status *AnnotationQueueStatus `json:"status,omitempty"`
}
CreateAnnotationQueueItemRequest defines model for CreateAnnotationQueueItemRequest.
type CreateChatPromptRequest ¶
type CreateChatPromptRequest struct {
// CommitMessage Commit message for this prompt version.
CommitMessage *string `json:"commitMessage"`
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 ¶
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 ¶
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,omitempty"`
}
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 {
// CommitMessage Commit message for this prompt version.
CommitMessage *string `json:"commitMessage"`
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 {
// CommitMessage Commit message for this prompt version.
CommitMessage *string `json:"commitMessage"`
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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id *string `json:"id"`
Metadata *interface{} `json:"metadata"`
Name string `json:"name"`
ObservationId *string `json:"observationId"`
SessionId *string `json:"sessionId"`
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 {
// CommitMessage Commit message for this prompt version.
CommitMessage *string `json:"commitMessage"`
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 DatasetItemsDeleteResponse ¶
type DatasetItemsDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteDatasetItemResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseDatasetItemsDeleteResponse ¶
func ParseDatasetItemsDeleteResponse(rsp *http.Response) (*DatasetItemsDeleteResponse, error)
ParseDatasetItemsDeleteResponse parses an HTTP response from a DatasetItemsDeleteWithResponse call
func (DatasetItemsDeleteResponse) Status ¶
func (r DatasetItemsDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetItemsDeleteResponse) StatusCode ¶
func (r DatasetItemsDeleteResponse) 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 DatasetRunItemsListParams ¶
type DatasetRunItemsListParams struct {
DatasetId string `form:"datasetId" json:"datasetId"`
RunName string `form:"runName" json:"runName"`
// 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"`
Response PaginatedDatasetRunItems `form:"response" json:"response"`
}
DatasetRunItemsListParams defines parameters for DatasetRunItemsList.
type DatasetRunItemsListResponse ¶
type DatasetRunItemsListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseDatasetRunItemsListResponse ¶
func ParseDatasetRunItemsListResponse(rsp *http.Response) (*DatasetRunItemsListResponse, error)
ParseDatasetRunItemsListResponse parses an HTTP response from a DatasetRunItemsListWithResponse call
func (DatasetRunItemsListResponse) Status ¶
func (r DatasetRunItemsListResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetRunItemsListResponse) StatusCode ¶
func (r DatasetRunItemsListResponse) 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 DatasetsDeleteRunResponse ¶
type DatasetsDeleteRunResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteDatasetRunResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseDatasetsDeleteRunResponse ¶
func ParseDatasetsDeleteRunResponse(rsp *http.Response) (*DatasetsDeleteRunResponse, error)
ParseDatasetsDeleteRunResponse parses an HTTP response from a DatasetsDeleteRunWithResponse call
func (DatasetsDeleteRunResponse) Status ¶
func (r DatasetsDeleteRunResponse) Status() string
Status returns HTTPResponse.Status
func (DatasetsDeleteRunResponse) StatusCode ¶
func (r DatasetsDeleteRunResponse) 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 DeleteAnnotationQueueItemResponse ¶
type DeleteAnnotationQueueItemResponse struct {
Message string `json:"message"`
Success bool `json:"success"`
}
DeleteAnnotationQueueItemResponse defines model for DeleteAnnotationQueueItemResponse.
type DeleteDatasetItemResponse ¶
type DeleteDatasetItemResponse struct {
// Message Success message after deletion
Message string `json:"message"`
}
DeleteDatasetItemResponse defines model for DeleteDatasetItemResponse.
type DeleteDatasetRunResponse ¶
type DeleteDatasetRunResponse struct {
Message string `json:"message"`
}
DeleteDatasetRunResponse defines model for DeleteDatasetRunResponse.
type DeleteTraceResponse ¶
type DeleteTraceResponse struct {
Message string `json:"message"`
}
DeleteTraceResponse defines model for DeleteTraceResponse.
type EmptyResponse ¶
type EmptyResponse = map[string]interface{}
EmptyResponse Empty response for 204 No Content responses
type FilterConfig ¶
FilterConfig defines model for FilterConfig.
type GetCommentsResponse ¶
type GetCommentsResponse struct {
Data []Comment `json:"data"`
Meta UtilsMetaResponse `json:"meta"`
}
GetCommentsResponse defines model for GetCommentsResponse.
type GetMediaResponse ¶
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 ¶
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 ¶
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 ¶
type GetScoresResponse struct {
Data []GetScoresResponseData `json:"data"`
Meta UtilsMetaResponse `json:"meta"`
}
GetScoresResponse defines model for GetScoresResponse.
type GetScoresResponseData ¶
type GetScoresResponseData struct {
// contains filtered or unexported fields
}
GetScoresResponseData defines model for GetScoresResponseData.
func (GetScoresResponseData) AsGetScoresResponseData0 ¶
func (t GetScoresResponseData) AsGetScoresResponseData0() (GetScoresResponseData0, error)
AsGetScoresResponseData0 returns the union data inside the GetScoresResponseData as a GetScoresResponseData0
func (GetScoresResponseData) AsGetScoresResponseData1 ¶
func (t GetScoresResponseData) AsGetScoresResponseData1() (GetScoresResponseData1, error)
AsGetScoresResponseData1 returns the union data inside the GetScoresResponseData as a GetScoresResponseData1
func (GetScoresResponseData) AsGetScoresResponseData2 ¶
func (t GetScoresResponseData) AsGetScoresResponseData2() (GetScoresResponseData2, error)
AsGetScoresResponseData2 returns the union data inside the GetScoresResponseData as a GetScoresResponseData2
func (*GetScoresResponseData) FromGetScoresResponseData0 ¶
func (t *GetScoresResponseData) FromGetScoresResponseData0(v GetScoresResponseData0) error
FromGetScoresResponseData0 overwrites any union data inside the GetScoresResponseData as the provided GetScoresResponseData0
func (*GetScoresResponseData) FromGetScoresResponseData1 ¶
func (t *GetScoresResponseData) FromGetScoresResponseData1(v GetScoresResponseData1) error
FromGetScoresResponseData1 overwrites any union data inside the GetScoresResponseData as the provided GetScoresResponseData1
func (*GetScoresResponseData) FromGetScoresResponseData2 ¶
func (t *GetScoresResponseData) FromGetScoresResponseData2(v GetScoresResponseData2) error
FromGetScoresResponseData2 overwrites any union data inside the GetScoresResponseData as the provided GetScoresResponseData2
func (GetScoresResponseData) MarshalJSON ¶
func (t GetScoresResponseData) MarshalJSON() ([]byte, error)
func (*GetScoresResponseData) MergeGetScoresResponseData0 ¶
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 ¶
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 ¶
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 ¶
func (t *GetScoresResponseData) UnmarshalJSON(b []byte) error
type GetScoresResponseData0 ¶
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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
SessionId *string `json:"sessionId"`
Source ScoreSource `json:"source"`
Timestamp time.Time `json:"timestamp"`
TraceId *string `json:"traceId"`
UpdatedAt time.Time `json:"updatedAt"`
}
GetScoresResponseData0 defines model for .
type GetScoresResponseData0DataType ¶
type GetScoresResponseData0DataType string
GetScoresResponseData0DataType defines model for GetScoresResponseData.0.DataType.
const (
GetScoresResponseData0DataTypeNUMERIC GetScoresResponseData0DataType = "NUMERIC"
)
Defines values for GetScoresResponseData0DataType.
type GetScoresResponseData1 ¶
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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
SessionId *string `json:"sessionId"`
Source ScoreSource `json:"source"`
Timestamp time.Time `json:"timestamp"`
TraceId *string `json:"traceId"`
UpdatedAt time.Time `json:"updatedAt"`
}
GetScoresResponseData1 defines model for .
type GetScoresResponseData1DataType ¶
type GetScoresResponseData1DataType string
GetScoresResponseData1DataType defines model for GetScoresResponseData.1.DataType.
const (
GetScoresResponseData1DataTypeCATEGORICAL GetScoresResponseData1DataType = "CATEGORICAL"
)
Defines values for GetScoresResponseData1DataType.
type GetScoresResponseData2 ¶
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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
SessionId *string `json:"sessionId"`
Source ScoreSource `json:"source"`
Timestamp time.Time `json:"timestamp"`
TraceId *string `json:"traceId"`
UpdatedAt time.Time `json:"updatedAt"`
}
GetScoresResponseData2 defines model for .
type GetScoresResponseData2DataType ¶
type GetScoresResponseData2DataType string
GetScoresResponseData2DataType defines model for GetScoresResponseData.2.DataType.
const (
GetScoresResponseData2DataTypeBOOLEAN GetScoresResponseData2DataType = "BOOLEAN"
)
Defines values for GetScoresResponseData2DataType.
type GetScoresResponseDataBoolean ¶
type GetScoresResponseDataBoolean = BooleanScore
GetScoresResponseDataBoolean defines model for GetScoresResponseDataBoolean.
type GetScoresResponseDataCategorical ¶
type GetScoresResponseDataCategorical = CategoricalScore
GetScoresResponseDataCategorical defines model for GetScoresResponseDataCategorical.
type GetScoresResponseDataNumeric ¶
type GetScoresResponseDataNumeric = NumericScore
GetScoresResponseDataNumeric defines model for GetScoresResponseDataNumeric.
type GetScoresResponseTraceData ¶
type GetScoresResponseTraceData struct {
// Environment The environment of the trace referenced by score
Environment *string `json:"environment"`
// 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
JSON207 *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 ¶
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 ¶
type MediaGetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetMediaResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMediaGetResponse ¶
func ParseMediaGetResponse(rsp *http.Response) (*MediaGetResponse, error)
ParseMediaGetResponse parses an HTTP response from a MediaGetWithResponse call
func (MediaGetResponse) Status ¶
func (r MediaGetResponse) Status() string
Status returns HTTPResponse.Status
func (MediaGetResponse) StatusCode ¶
func (r MediaGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MediaGetUploadUrlJSONRequestBody ¶
type MediaGetUploadUrlJSONRequestBody = GetMediaUploadUrlRequest
MediaGetUploadUrlJSONRequestBody defines body for MediaGetUploadUrl for application/json ContentType.
type MediaGetUploadUrlResponse ¶
type MediaGetUploadUrlResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetMediaUploadUrlResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMediaGetUploadUrlResponse ¶
func ParseMediaGetUploadUrlResponse(rsp *http.Response) (*MediaGetUploadUrlResponse, error)
ParseMediaGetUploadUrlResponse parses an HTTP response from a MediaGetUploadUrlWithResponse call
func (MediaGetUploadUrlResponse) Status ¶
func (r MediaGetUploadUrlResponse) Status() string
Status returns HTTPResponse.Status
func (MediaGetUploadUrlResponse) StatusCode ¶
func (r MediaGetUploadUrlResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MediaPatchJSONRequestBody ¶
type MediaPatchJSONRequestBody = PatchMediaBody
MediaPatchJSONRequestBody defines body for MediaPatch for application/json ContentType.
type MediaPatchResponse ¶
type MediaPatchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMediaPatchResponse ¶
func ParseMediaPatchResponse(rsp *http.Response) (*MediaPatchResponse, error)
ParseMediaPatchResponse parses an HTTP response from a MediaPatchWithResponse call
func (MediaPatchResponse) Status ¶
func (r MediaPatchResponse) Status() string
Status returns HTTPResponse.Status
func (MediaPatchResponse) StatusCode ¶
func (r MediaPatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MembershipRequest ¶
type MembershipRequest struct {
Role MembershipRole `json:"role"`
UserId string `json:"userId"`
}
MembershipRequest defines model for MembershipRequest.
type MembershipResponse ¶
type MembershipResponse struct {
Email string `json:"email"`
Name string `json:"name"`
Role MembershipRole `json:"role"`
UserId string `json:"userId"`
}
MembershipResponse defines model for MembershipResponse.
type MembershipRole ¶
type MembershipRole string
MembershipRole defines model for MembershipRole.
const ( ADMIN MembershipRole = "ADMIN" MEMBER MembershipRole = "MEMBER" OWNER MembershipRole = "OWNER" VIEWER MembershipRole = "VIEWER" )
Defines values for MembershipRole.
type MembershipsGetOrganizationMembershipsResponse ¶
type MembershipsGetOrganizationMembershipsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MembershipsResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMembershipsGetOrganizationMembershipsResponse ¶
func ParseMembershipsGetOrganizationMembershipsResponse(rsp *http.Response) (*MembershipsGetOrganizationMembershipsResponse, error)
ParseMembershipsGetOrganizationMembershipsResponse parses an HTTP response from a MembershipsGetOrganizationMembershipsWithResponse call
func (MembershipsGetOrganizationMembershipsResponse) Status ¶
func (r MembershipsGetOrganizationMembershipsResponse) Status() string
Status returns HTTPResponse.Status
func (MembershipsGetOrganizationMembershipsResponse) StatusCode ¶
func (r MembershipsGetOrganizationMembershipsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MembershipsGetProjectMembershipsResponse ¶
type MembershipsGetProjectMembershipsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MembershipsResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMembershipsGetProjectMembershipsResponse ¶
func ParseMembershipsGetProjectMembershipsResponse(rsp *http.Response) (*MembershipsGetProjectMembershipsResponse, error)
ParseMembershipsGetProjectMembershipsResponse parses an HTTP response from a MembershipsGetProjectMembershipsWithResponse call
func (MembershipsGetProjectMembershipsResponse) Status ¶
func (r MembershipsGetProjectMembershipsResponse) Status() string
Status returns HTTPResponse.Status
func (MembershipsGetProjectMembershipsResponse) StatusCode ¶
func (r MembershipsGetProjectMembershipsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MembershipsResponse ¶
type MembershipsResponse struct {
Memberships []MembershipResponse `json:"memberships"`
}
MembershipsResponse defines model for MembershipsResponse.
type MembershipsUpdateOrganizationMembershipJSONRequestBody ¶
type MembershipsUpdateOrganizationMembershipJSONRequestBody = MembershipRequest
MembershipsUpdateOrganizationMembershipJSONRequestBody defines body for MembershipsUpdateOrganizationMembership for application/json ContentType.
type MembershipsUpdateOrganizationMembershipResponse ¶
type MembershipsUpdateOrganizationMembershipResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MembershipResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMembershipsUpdateOrganizationMembershipResponse ¶
func ParseMembershipsUpdateOrganizationMembershipResponse(rsp *http.Response) (*MembershipsUpdateOrganizationMembershipResponse, error)
ParseMembershipsUpdateOrganizationMembershipResponse parses an HTTP response from a MembershipsUpdateOrganizationMembershipWithResponse call
func (MembershipsUpdateOrganizationMembershipResponse) Status ¶
func (r MembershipsUpdateOrganizationMembershipResponse) Status() string
Status returns HTTPResponse.Status
func (MembershipsUpdateOrganizationMembershipResponse) StatusCode ¶
func (r MembershipsUpdateOrganizationMembershipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MembershipsUpdateProjectMembershipJSONRequestBody ¶
type MembershipsUpdateProjectMembershipJSONRequestBody = MembershipRequest
MembershipsUpdateProjectMembershipJSONRequestBody defines body for MembershipsUpdateProjectMembership for application/json ContentType.
type MembershipsUpdateProjectMembershipResponse ¶
type MembershipsUpdateProjectMembershipResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MembershipResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMembershipsUpdateProjectMembershipResponse ¶
func ParseMembershipsUpdateProjectMembershipResponse(rsp *http.Response) (*MembershipsUpdateProjectMembershipResponse, error)
ParseMembershipsUpdateProjectMembershipResponse parses an HTTP response from a MembershipsUpdateProjectMembershipWithResponse call
func (MembershipsUpdateProjectMembershipResponse) Status ¶
func (r MembershipsUpdateProjectMembershipResponse) Status() string
Status returns HTTPResponse.Status
func (MembershipsUpdateProjectMembershipResponse) StatusCode ¶
func (r MembershipsUpdateProjectMembershipResponse) 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"`
// Environment Optional filter for metrics where events include any of these environments
Environment *[]string `form:"environment,omitempty" json:"environment,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 MetricsMetricsParams ¶
type MetricsMetricsParams struct {
// Query JSON string containing the query parameters with the following structure:
// “`json
// {
// "view": string, // Required. One of "traces", "observations", "scores-numeric", "scores-categorical"
// "dimensions": [ // Optional. Default: []
// {
// "field": string // Field to group by, e.g. "name", "userId", "sessionId"
// }
// ],
// "metrics": [ // Required. At least one metric must be provided
// {
// "measure": string, // What to measure, e.g. "count", "latency", "value"
// "aggregation": string // How to aggregate, e.g. "count", "sum", "avg", "p95"
// }
// ],
// "filters": [ // Optional. Default: []
// {
// "column": string, // Column to filter on
// "operator": string, // Operator, e.g. "=", ">", "<", "contains"
// "value": any, // Value to compare against
// "type": string, // Data type, e.g. "string", "number", "stringObject"
// "key": string // Required only when filtering on metadata
// }
// ],
// "timeDimension": { // Optional. Default: null. If provided, results will be grouped by time
// "granularity": string // One of "minute", "hour", "day", "week", "month", "year", "auto"
// },
// "fromTimestamp": string, // Required. ISO datetime string for start of time range
// "toTimestamp": string, // Required. ISO datetime string for end of time range
// "orderBy": [ // Optional. Default: null
// {
// "field": string, // Field to order by
// "direction": string // "asc" or "desc"
// }
// ]
// }
// “`
Query string `form:"query" json:"query"`
}
MetricsMetricsParams defines parameters for MetricsMetrics.
type MetricsMetricsResponse ¶
type MetricsMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MetricsResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseMetricsMetricsResponse ¶
func ParseMetricsMetricsResponse(rsp *http.Response) (*MetricsMetricsResponse, error)
ParseMetricsMetricsResponse parses an HTTP response from a MetricsMetricsWithResponse call
func (MetricsMetricsResponse) Status ¶
func (r MetricsMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (MetricsMetricsResponse) StatusCode ¶
func (r MetricsMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MetricsResponse ¶
type MetricsResponse struct {
// Data The metrics data. Each item in the list contains the metric values and dimensions requested in the query.
// Format varies based on the query parameters.
Data []map[string]interface{} `json:"data"`
}
MetricsResponse defines model for MetricsResponse.
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 *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 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,omitempty"`
}
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 NumericScoreV1 ¶
type NumericScoreV1 = BaseScoreV1
NumericScoreV1 defines model for NumericScoreV1.
type Observation ¶
type Observation struct {
// CompletionStartTime The completion start time of the observation
CompletionStartTime *time.Time `json:"completionStartTime"`
// CostDetails The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.
CostDetails *map[string]float64 `json:"costDetails"`
// EndTime The end time of the observation.
EndTime *time.Time `json:"endTime"`
// Environment The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
// 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 (Deprecated. Use usageDetails and costDetails instead.) Standard interface for usage and cost
Usage *Usage `json:"usage,omitempty"`
// UsageDetails The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.
UsageDetails *map[string]int `json:"usageDetails"`
// 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"`
Environment *string `json:"environment"`
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 (Deprecated. Use usageDetails and costDetails instead.) 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"`
// Environment Optional filter for observations where the environment is one of the provided values.
Environment *[]string `form:"environment,omitempty" json:"environment,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 OpenAICompletionUsageSchema ¶
type OpenAICompletionUsageSchema struct {
CompletionTokens int `json:"completion_tokens"`
CompletionTokensDetails *map[string]*int `json:"completion_tokens_details"`
PromptTokens int `json:"prompt_tokens"`
PromptTokensDetails *map[string]*int `json:"prompt_tokens_details"`
TotalTokens int `json:"total_tokens"`
}
OpenAICompletionUsageSchema OpenAI Usage schema from (Chat-)Completion APIs
type OpenAIResponseUsageSchema ¶
type OpenAIResponseUsageSchema struct {
InputTokens int `json:"input_tokens"`
InputTokensDetails *map[string]*int `json:"input_tokens_details"`
OutputTokens int `json:"output_tokens"`
OutputTokensDetails *map[string]*int `json:"output_tokens_details"`
TotalTokens int `json:"total_tokens"`
}
OpenAIResponseUsageSchema OpenAI Usage schema from Response API
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 {
Environment *string `json:"environment"`
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 PaginatedAnnotationQueueItems ¶
type PaginatedAnnotationQueueItems struct {
Data []AnnotationQueueItem `json:"data"`
Meta UtilsMetaResponse `json:"meta"`
}
PaginatedAnnotationQueueItems defines model for PaginatedAnnotationQueueItems.
type PaginatedAnnotationQueues ¶
type PaginatedAnnotationQueues struct {
Data []AnnotationQueue `json:"data"`
Meta UtilsMetaResponse `json:"meta"`
}
PaginatedAnnotationQueues defines model for PaginatedAnnotationQueues.
type PaginatedDatasetItems ¶
type PaginatedDatasetItems struct {
Data []DatasetItem `json:"data"`
Meta UtilsMetaResponse `json:"meta"`
}
PaginatedDatasetItems defines model for PaginatedDatasetItems.
type PaginatedDatasetRunItems ¶
type PaginatedDatasetRunItems struct {
Data []DatasetRunItem `json:"data"`
Meta UtilsMetaResponse `json:"meta"`
}
PaginatedDatasetRunItems defines model for PaginatedDatasetRunItems.
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 ¶
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 Project ¶
type Project struct {
Id string `json:"id"`
// Metadata Metadata for the project
Metadata map[string]interface{} `json:"metadata"`
Name string `json:"name"`
// RetentionDays Number of days to retain data. Null or 0 means no retention. Omitted if no retention is configured.
RetentionDays int `json:"retentionDays"`
}
Project defines model for Project.
type ProjectDeletionResponse ¶
type ProjectDeletionResponse struct {
Message string `json:"message"`
Success bool `json:"success"`
}
ProjectDeletionResponse defines model for ProjectDeletionResponse.
type Projects ¶
type Projects struct {
Data []Project `json:"data"`
}
Projects defines model for Projects.
type ProjectsCreateApiKeyJSONBody ¶
type ProjectsCreateApiKeyJSONBody struct {
// Note Optional note for the API key
Note *string `json:"note"`
}
ProjectsCreateApiKeyJSONBody defines parameters for ProjectsCreateApiKey.
type ProjectsCreateApiKeyJSONRequestBody ¶
type ProjectsCreateApiKeyJSONRequestBody ProjectsCreateApiKeyJSONBody
ProjectsCreateApiKeyJSONRequestBody defines body for ProjectsCreateApiKey for application/json ContentType.
type ProjectsCreateApiKeyResponse ¶
type ProjectsCreateApiKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApiKeyResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseProjectsCreateApiKeyResponse ¶
func ParseProjectsCreateApiKeyResponse(rsp *http.Response) (*ProjectsCreateApiKeyResponse, error)
ParseProjectsCreateApiKeyResponse parses an HTTP response from a ProjectsCreateApiKeyWithResponse call
func (ProjectsCreateApiKeyResponse) Status ¶
func (r ProjectsCreateApiKeyResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsCreateApiKeyResponse) StatusCode ¶
func (r ProjectsCreateApiKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProjectsCreateJSONBody ¶
type ProjectsCreateJSONBody struct {
// Metadata Optional metadata for the project
Metadata *map[string]interface{} `json:"metadata"`
Name string `json:"name"`
// Retention Number of days to retain data. Must be 0 or at least 7 days. Requires data-retention entitlement for non-zero values. Optional.
Retention int `json:"retention"`
}
ProjectsCreateJSONBody defines parameters for ProjectsCreate.
type ProjectsCreateJSONRequestBody ¶
type ProjectsCreateJSONRequestBody ProjectsCreateJSONBody
ProjectsCreateJSONRequestBody defines body for ProjectsCreate for application/json ContentType.
type ProjectsCreateResponse ¶
type ProjectsCreateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Project
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseProjectsCreateResponse ¶
func ParseProjectsCreateResponse(rsp *http.Response) (*ProjectsCreateResponse, error)
ParseProjectsCreateResponse parses an HTTP response from a ProjectsCreateWithResponse call
func (ProjectsCreateResponse) Status ¶
func (r ProjectsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsCreateResponse) StatusCode ¶
func (r ProjectsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProjectsDeleteApiKeyResponse ¶
type ProjectsDeleteApiKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApiKeyDeletionResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseProjectsDeleteApiKeyResponse ¶
func ParseProjectsDeleteApiKeyResponse(rsp *http.Response) (*ProjectsDeleteApiKeyResponse, error)
ParseProjectsDeleteApiKeyResponse parses an HTTP response from a ProjectsDeleteApiKeyWithResponse call
func (ProjectsDeleteApiKeyResponse) Status ¶
func (r ProjectsDeleteApiKeyResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsDeleteApiKeyResponse) StatusCode ¶
func (r ProjectsDeleteApiKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProjectsDeleteResponse ¶
type ProjectsDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *ProjectDeletionResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseProjectsDeleteResponse ¶
func ParseProjectsDeleteResponse(rsp *http.Response) (*ProjectsDeleteResponse, error)
ParseProjectsDeleteResponse parses an HTTP response from a ProjectsDeleteWithResponse call
func (ProjectsDeleteResponse) Status ¶
func (r ProjectsDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsDeleteResponse) StatusCode ¶
func (r ProjectsDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProjectsGetApiKeysResponse ¶
type ProjectsGetApiKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApiKeyList
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseProjectsGetApiKeysResponse ¶
func ParseProjectsGetApiKeysResponse(rsp *http.Response) (*ProjectsGetApiKeysResponse, error)
ParseProjectsGetApiKeysResponse parses an HTTP response from a ProjectsGetApiKeysWithResponse call
func (ProjectsGetApiKeysResponse) Status ¶
func (r ProjectsGetApiKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsGetApiKeysResponse) StatusCode ¶
func (r ProjectsGetApiKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ProjectsUpdateJSONBody ¶
type ProjectsUpdateJSONBody struct {
// Metadata Optional metadata for the project
Metadata *map[string]interface{} `json:"metadata"`
Name string `json:"name"`
// Retention Number of days to retain data. Must be 0 or at least 7 days. Requires data-retention entitlement for non-zero values. Optional.
Retention int `json:"retention"`
}
ProjectsUpdateJSONBody defines parameters for ProjectsUpdate.
type ProjectsUpdateJSONRequestBody ¶
type ProjectsUpdateJSONRequestBody ProjectsUpdateJSONBody
ProjectsUpdateJSONRequestBody defines body for ProjectsUpdate for application/json ContentType.
type ProjectsUpdateResponse ¶
type ProjectsUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Project
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseProjectsUpdateResponse ¶
func ParseProjectsUpdateResponse(rsp *http.Response) (*ProjectsUpdateResponse, error)
ParseProjectsUpdateResponse parses an HTTP response from a ProjectsUpdateWithResponse call
func (ProjectsUpdateResponse) Status ¶
func (r ProjectsUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsUpdateResponse) StatusCode ¶
func (r ProjectsUpdateResponse) 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 {
// CommitMessage Commit message for this prompt version.
CommitMessage *string `json:"commitMessage"`
Config interface{} `json:"config"`
// Labels List of deployment labels of this prompt version.
Labels []string `json:"labels"`
Name string `json:"name"`
// ResolutionGraph The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
ResolutionGraph *map[string]interface{} `json:"resolutionGraph"`
// 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 {
// CommitMessage Commit message for this prompt version.
CommitMessage *string `json:"commitMessage"`
Config interface{} `json:"config"`
// Labels List of deployment labels of this prompt version.
Labels []string `json:"labels"`
Name string `json:"name"`
// ResolutionGraph The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
ResolutionGraph *map[string]interface{} `json:"resolutionGraph"`
// 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 PromptVersionUpdateJSONBody ¶
type PromptVersionUpdateJSONBody struct {
// NewLabels New labels for the prompt version. Labels are unique across versions. The "latest" label is reserved and managed by Langfuse.
NewLabels []string `json:"newLabels"`
}
PromptVersionUpdateJSONBody defines parameters for PromptVersionUpdate.
type PromptVersionUpdateJSONRequestBody ¶
type PromptVersionUpdateJSONRequestBody PromptVersionUpdateJSONBody
PromptVersionUpdateJSONRequestBody defines body for PromptVersionUpdate for application/json ContentType.
type PromptVersionUpdateResponse ¶
type PromptVersionUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Prompt
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParsePromptVersionUpdateResponse ¶
func ParsePromptVersionUpdateResponse(rsp *http.Response) (*PromptVersionUpdateResponse, error)
ParsePromptVersionUpdateResponse parses an HTTP response from a PromptVersionUpdateWithResponse call
func (PromptVersionUpdateResponse) Status ¶
func (r PromptVersionUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (PromptVersionUpdateResponse) StatusCode ¶
func (r PromptVersionUpdateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ResourceMeta ¶
type ResourceMeta struct {
Location string `json:"location"`
ResourceType string `json:"resourceType"`
}
ResourceMeta defines model for ResourceMeta.
type ResourceType ¶
type ResourceType struct {
Description string `json:"description"`
Endpoint string `json:"endpoint"`
Id string `json:"id"`
Meta ResourceMeta `json:"meta"`
Name string `json:"name"`
Schema string `json:"schema"`
SchemaExtensions []SchemaExtension `json:"schemaExtensions"`
Schemas *[]string `json:"schemas"`
}
ResourceType defines model for ResourceType.
type ResourceTypesResponse ¶
type ResourceTypesResponse struct {
Resources []ResourceType `json:"Resources"`
Schemas []string `json:"schemas"`
TotalResults int `json:"totalResults"`
}
ResourceTypesResponse defines model for ResourceTypesResponse.
type SDKLogBody ¶
type SDKLogBody struct {
Log interface{} `json:"log"`
}
SDKLogBody defines model for SDKLogBody.
type SchemaExtension ¶
SchemaExtension defines model for SchemaExtension.
type SchemaResource ¶
type SchemaResource struct {
Attributes []interface{} `json:"attributes"`
Description string `json:"description"`
Id string `json:"id"`
Meta ResourceMeta `json:"meta"`
Name string `json:"name"`
}
SchemaResource defines model for SchemaResource.
type SchemasResponse ¶
type SchemasResponse struct {
Resources []SchemaResource `json:"Resources"`
Schemas []string `json:"schemas"`
TotalResults int `json:"totalResults"`
}
SchemasResponse defines model for SchemasResponse.
type ScimCreateUserJSONBody ¶
type ScimCreateUserJSONBody struct {
// Active Whether the user is active
Active *bool `json:"active"`
// Emails User's email addresses
Emails *[]ScimEmail `json:"emails"`
Name ScimName `json:"name"`
// Password Initial password for the user
Password *string `json:"password"`
// UserName User's email address (required)
UserName string `json:"userName"`
}
ScimCreateUserJSONBody defines parameters for ScimCreateUser.
type ScimCreateUserJSONRequestBody ¶
type ScimCreateUserJSONRequestBody ScimCreateUserJSONBody
ScimCreateUserJSONRequestBody defines body for ScimCreateUser for application/json ContentType.
type ScimCreateUserResponse ¶
type ScimCreateUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ScimUser
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScimCreateUserResponse ¶
func ParseScimCreateUserResponse(rsp *http.Response) (*ScimCreateUserResponse, error)
ParseScimCreateUserResponse parses an HTTP response from a ScimCreateUserWithResponse call
func (ScimCreateUserResponse) Status ¶
func (r ScimCreateUserResponse) Status() string
Status returns HTTPResponse.Status
func (ScimCreateUserResponse) StatusCode ¶
func (r ScimCreateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScimDeleteUserResponse ¶
type ScimDeleteUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EmptyResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScimDeleteUserResponse ¶
func ParseScimDeleteUserResponse(rsp *http.Response) (*ScimDeleteUserResponse, error)
ParseScimDeleteUserResponse parses an HTTP response from a ScimDeleteUserWithResponse call
func (ScimDeleteUserResponse) Status ¶
func (r ScimDeleteUserResponse) Status() string
Status returns HTTPResponse.Status
func (ScimDeleteUserResponse) StatusCode ¶
func (r ScimDeleteUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScimEmail ¶
type ScimEmail struct {
Primary bool `json:"primary"`
Type string `json:"type"`
Value string `json:"value"`
}
ScimEmail defines model for ScimEmail.
type ScimFeatureSupport ¶
type ScimFeatureSupport struct {
Supported bool `json:"supported"`
}
ScimFeatureSupport defines model for ScimFeatureSupport.
type ScimGetResourceTypesResponse ¶
type ScimGetResourceTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResourceTypesResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScimGetResourceTypesResponse ¶
func ParseScimGetResourceTypesResponse(rsp *http.Response) (*ScimGetResourceTypesResponse, error)
ParseScimGetResourceTypesResponse parses an HTTP response from a ScimGetResourceTypesWithResponse call
func (ScimGetResourceTypesResponse) Status ¶
func (r ScimGetResourceTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ScimGetResourceTypesResponse) StatusCode ¶
func (r ScimGetResourceTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScimGetSchemasResponse ¶
type ScimGetSchemasResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SchemasResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScimGetSchemasResponse ¶
func ParseScimGetSchemasResponse(rsp *http.Response) (*ScimGetSchemasResponse, error)
ParseScimGetSchemasResponse parses an HTTP response from a ScimGetSchemasWithResponse call
func (ScimGetSchemasResponse) Status ¶
func (r ScimGetSchemasResponse) Status() string
Status returns HTTPResponse.Status
func (ScimGetSchemasResponse) StatusCode ¶
func (r ScimGetSchemasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScimGetServiceProviderConfigResponse ¶
type ScimGetServiceProviderConfigResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ServiceProviderConfig
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScimGetServiceProviderConfigResponse ¶
func ParseScimGetServiceProviderConfigResponse(rsp *http.Response) (*ScimGetServiceProviderConfigResponse, error)
ParseScimGetServiceProviderConfigResponse parses an HTTP response from a ScimGetServiceProviderConfigWithResponse call
func (ScimGetServiceProviderConfigResponse) Status ¶
func (r ScimGetServiceProviderConfigResponse) Status() string
Status returns HTTPResponse.Status
func (ScimGetServiceProviderConfigResponse) StatusCode ¶
func (r ScimGetServiceProviderConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScimGetUserResponse ¶
type ScimGetUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ScimUser
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScimGetUserResponse ¶
func ParseScimGetUserResponse(rsp *http.Response) (*ScimGetUserResponse, error)
ParseScimGetUserResponse parses an HTTP response from a ScimGetUserWithResponse call
func (ScimGetUserResponse) Status ¶
func (r ScimGetUserResponse) Status() string
Status returns HTTPResponse.Status
func (ScimGetUserResponse) StatusCode ¶
func (r ScimGetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScimListUsersParams ¶
type ScimListUsersParams struct {
// Filter Filter expression (e.g. userName eq "value")
Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
// StartIndex 1-based index of the first result to return (default 1)
StartIndex *int `form:"startIndex,omitempty" json:"startIndex,omitempty"`
// Count Maximum number of results to return (default 100)
Count *int `form:"count,omitempty" json:"count,omitempty"`
}
ScimListUsersParams defines parameters for ScimListUsers.
type ScimListUsersResponse ¶
type ScimListUsersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ScimUsersListResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScimListUsersResponse ¶
func ParseScimListUsersResponse(rsp *http.Response) (*ScimListUsersResponse, error)
ParseScimListUsersResponse parses an HTTP response from a ScimListUsersWithResponse call
func (ScimListUsersResponse) Status ¶
func (r ScimListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ScimListUsersResponse) StatusCode ¶
func (r ScimListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScimName ¶
type ScimName struct {
Formatted *string `json:"formatted"`
}
ScimName defines model for ScimName.
type ScimUser ¶
type ScimUser struct {
Emails []ScimEmail `json:"emails"`
Id string `json:"id"`
Meta UserMeta `json:"meta"`
Name ScimName `json:"name"`
Schemas []string `json:"schemas"`
UserName string `json:"userName"`
}
ScimUser defines model for ScimUser.
type ScimUsersListResponse ¶
type ScimUsersListResponse struct {
Resources []ScimUser `json:"Resources"`
ItemsPerPage int `json:"itemsPerPage"`
Schemas []string `json:"schemas"`
StartIndex int `json:"startIndex"`
TotalResults int `json:"totalResults"`
}
ScimUsersListResponse defines model for ScimUsersListResponse.
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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
SessionId *string `json:"sessionId"`
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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
SessionId *string `json:"sessionId"`
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"`
DatasetRunId *string `json:"datasetRunId"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
SessionId *string `json:"sessionId"`
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"`
DatasetRunId *string `json:"datasetRunId"`
Environment *string `json:"environment"`
Id *string `json:"id"`
Metadata *interface{} `json:"metadata"`
Name string `json:"name"`
ObservationId *string `json:"observationId"`
SessionId *string `json:"sessionId"`
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 ( ScoreDataTypeBOOLEAN ScoreDataType = "BOOLEAN" ScoreDataTypeCATEGORICAL ScoreDataType = "CATEGORICAL" ScoreDataTypeNUMERIC 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 ScoreSource ¶
type ScoreSource string
ScoreSource defines model for ScoreSource.
const ( ANNOTATION ScoreSource = "ANNOTATION" API ScoreSource = "API" EVAL ScoreSource = "EVAL" )
Defines values for ScoreSource.
type ScoreV1 ¶
type ScoreV1 struct {
// contains filtered or unexported fields
}
ScoreV1 defines model for ScoreV1.
func (ScoreV1) AsScoreV10 ¶
AsScoreV10 returns the union data inside the ScoreV1 as a ScoreV10
func (ScoreV1) AsScoreV11 ¶
AsScoreV11 returns the union data inside the ScoreV1 as a ScoreV11
func (ScoreV1) AsScoreV12 ¶
AsScoreV12 returns the union data inside the ScoreV1 as a ScoreV12
func (*ScoreV1) FromScoreV10 ¶
FromScoreV10 overwrites any union data inside the ScoreV1 as the provided ScoreV10
func (*ScoreV1) FromScoreV11 ¶
FromScoreV11 overwrites any union data inside the ScoreV1 as the provided ScoreV11
func (*ScoreV1) FromScoreV12 ¶
FromScoreV12 overwrites any union data inside the ScoreV1 as the provided ScoreV12
func (ScoreV1) MarshalJSON ¶
func (*ScoreV1) MergeScoreV10 ¶
MergeScoreV10 performs a merge with any union data inside the ScoreV1, using the provided ScoreV10
func (*ScoreV1) MergeScoreV11 ¶
MergeScoreV11 performs a merge with any union data inside the ScoreV1, using the provided ScoreV11
func (*ScoreV1) MergeScoreV12 ¶
MergeScoreV12 performs a merge with any union data inside the ScoreV1, using the provided ScoreV12
func (*ScoreV1) UnmarshalJSON ¶
type ScoreV10 ¶
type ScoreV10 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 *ScoreV10DataType `json:"dataType,omitempty"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
}
ScoreV10 defines model for .
type ScoreV10DataType ¶
type ScoreV10DataType string
ScoreV10DataType defines model for ScoreV1.0.DataType.
const (
ScoreV10DataTypeNUMERIC ScoreV10DataType = "NUMERIC"
)
Defines values for ScoreV10DataType.
type ScoreV11 ¶
type ScoreV11 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 *ScoreV11DataType `json:"dataType,omitempty"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
}
ScoreV11 defines model for .
type ScoreV11DataType ¶
type ScoreV11DataType string
ScoreV11DataType defines model for ScoreV1.1.DataType.
const (
CATEGORICAL ScoreV11DataType = "CATEGORICAL"
)
Defines values for ScoreV11DataType.
type ScoreV12 ¶
type ScoreV12 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 *ScoreV12DataType `json:"dataType,omitempty"`
// Environment The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
Id string `json:"id"`
Metadata *interface{} `json:"metadata"`
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"`
}
ScoreV12 defines model for .
type ScoreV12DataType ¶
type ScoreV12DataType string
ScoreV12DataType defines model for ScoreV1.2.DataType.
const (
BOOLEAN ScoreV12DataType = "BOOLEAN"
)
Defines values for ScoreV12DataType.
type ScoreV2GetByIdResponse ¶
type ScoreV2GetByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Score
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScoreV2GetByIdResponse ¶
func ParseScoreV2GetByIdResponse(rsp *http.Response) (*ScoreV2GetByIdResponse, error)
ParseScoreV2GetByIdResponse parses an HTTP response from a ScoreV2GetByIdWithResponse call
func (ScoreV2GetByIdResponse) Status ¶
func (r ScoreV2GetByIdResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreV2GetByIdResponse) StatusCode ¶
func (r ScoreV2GetByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScoreV2GetParams ¶
type ScoreV2GetParams 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"`
// Environment Optional filter for scores where the environment is one of the provided values.
Environment *[]string `form:"environment,omitempty" json:"environment,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"`
}
ScoreV2GetParams defines parameters for ScoreV2Get.
type ScoreV2GetResponse ¶
type ScoreV2GetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetScoresResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseScoreV2GetResponse ¶
func ParseScoreV2GetResponse(rsp *http.Response) (*ScoreV2GetResponse, error)
ParseScoreV2GetResponse parses an HTTP response from a ScoreV2GetWithResponse call
func (ScoreV2GetResponse) Status ¶
func (r ScoreV2GetResponse) Status() string
Status returns HTTPResponse.Status
func (ScoreV2GetResponse) StatusCode ¶
func (r ScoreV2GetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ServiceProviderConfig ¶
type ServiceProviderConfig struct {
AuthenticationSchemes []AuthenticationScheme `json:"authenticationSchemes"`
Bulk BulkConfig `json:"bulk"`
ChangePassword ScimFeatureSupport `json:"changePassword"`
DocumentationUri string `json:"documentationUri"`
Etag ScimFeatureSupport `json:"etag"`
Filter FilterConfig `json:"filter"`
Meta ResourceMeta `json:"meta"`
Patch ScimFeatureSupport `json:"patch"`
Schemas []string `json:"schemas"`
Sort ScimFeatureSupport `json:"sort"`
}
ServiceProviderConfig defines model for ServiceProviderConfig.
type Session ¶
type Session struct {
CreatedAt time.Time `json:"createdAt"`
// Environment The environment from which this session originated.
Environment *string `json:"environment"`
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"`
// Environment Optional filter for sessions where the environment is one of the provided values.
Environment *[]string `form:"environment,omitempty" json:"environment,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 {
// Environment The environment from which this trace originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
Environment *string `json:"environment"`
// 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 {
Environment *string `json:"environment"`
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 TraceDeleteMultipleJSONBody ¶
type TraceDeleteMultipleJSONBody struct {
// TraceIds List of trace IDs to delete
TraceIds []string `json:"traceIds"`
}
TraceDeleteMultipleJSONBody defines parameters for TraceDeleteMultiple.
type TraceDeleteMultipleJSONRequestBody ¶
type TraceDeleteMultipleJSONRequestBody TraceDeleteMultipleJSONBody
TraceDeleteMultipleJSONRequestBody defines body for TraceDeleteMultiple for application/json ContentType.
type TraceDeleteMultipleResponse ¶
type TraceDeleteMultipleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteTraceResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseTraceDeleteMultipleResponse ¶
func ParseTraceDeleteMultipleResponse(rsp *http.Response) (*TraceDeleteMultipleResponse, error)
ParseTraceDeleteMultipleResponse parses an HTTP response from a TraceDeleteMultipleWithResponse call
func (TraceDeleteMultipleResponse) Status ¶
func (r TraceDeleteMultipleResponse) Status() string
Status returns HTTPResponse.Status
func (TraceDeleteMultipleResponse) StatusCode ¶
func (r TraceDeleteMultipleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TraceDeleteResponse ¶
type TraceDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteTraceResponse
JSON400 *interface{}
JSON401 *interface{}
JSON403 *interface{}
JSON404 *interface{}
JSON405 *interface{}
}
func ParseTraceDeleteResponse ¶
func ParseTraceDeleteResponse(rsp *http.Response) (*TraceDeleteResponse, error)
ParseTraceDeleteResponse parses an HTTP response from a TraceDeleteWithResponse call
func (TraceDeleteResponse) Status ¶
func (r TraceDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (TraceDeleteResponse) StatusCode ¶
func (r TraceDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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"`
// Environment Optional filter for traces where the environment is one of the provided values.
Environment *[]string `form:"environment,omitempty" json:"environment,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 UpdateAnnotationQueueItemRequest ¶
type UpdateAnnotationQueueItemRequest struct {
Status *AnnotationQueueStatus `json:"status,omitempty"`
}
UpdateAnnotationQueueItemRequest defines model for UpdateAnnotationQueueItemRequest.
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 (Deprecated. Use usageDetails and costDetails instead.) 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 UsageDetails ¶
type UsageDetails struct {
// contains filtered or unexported fields
}
UsageDetails defines model for UsageDetails.
func (UsageDetails) AsOpenAICompletionUsageSchema ¶
func (t UsageDetails) AsOpenAICompletionUsageSchema() (OpenAICompletionUsageSchema, error)
AsOpenAICompletionUsageSchema returns the union data inside the UsageDetails as a OpenAICompletionUsageSchema
func (UsageDetails) AsOpenAIResponseUsageSchema ¶
func (t UsageDetails) AsOpenAIResponseUsageSchema() (OpenAIResponseUsageSchema, error)
AsOpenAIResponseUsageSchema returns the union data inside the UsageDetails as a OpenAIResponseUsageSchema
func (UsageDetails) AsUsageDetails0 ¶
func (t UsageDetails) AsUsageDetails0() (UsageDetails0, error)
AsUsageDetails0 returns the union data inside the UsageDetails as a UsageDetails0
func (*UsageDetails) FromOpenAICompletionUsageSchema ¶
func (t *UsageDetails) FromOpenAICompletionUsageSchema(v OpenAICompletionUsageSchema) error
FromOpenAICompletionUsageSchema overwrites any union data inside the UsageDetails as the provided OpenAICompletionUsageSchema
func (*UsageDetails) FromOpenAIResponseUsageSchema ¶
func (t *UsageDetails) FromOpenAIResponseUsageSchema(v OpenAIResponseUsageSchema) error
FromOpenAIResponseUsageSchema overwrites any union data inside the UsageDetails as the provided OpenAIResponseUsageSchema
func (*UsageDetails) FromUsageDetails0 ¶
func (t *UsageDetails) FromUsageDetails0(v UsageDetails0) error
FromUsageDetails0 overwrites any union data inside the UsageDetails as the provided UsageDetails0
func (UsageDetails) MarshalJSON ¶
func (t UsageDetails) MarshalJSON() ([]byte, error)
func (*UsageDetails) MergeOpenAICompletionUsageSchema ¶
func (t *UsageDetails) MergeOpenAICompletionUsageSchema(v OpenAICompletionUsageSchema) error
MergeOpenAICompletionUsageSchema performs a merge with any union data inside the UsageDetails, using the provided OpenAICompletionUsageSchema
func (*UsageDetails) MergeOpenAIResponseUsageSchema ¶
func (t *UsageDetails) MergeOpenAIResponseUsageSchema(v OpenAIResponseUsageSchema) error
MergeOpenAIResponseUsageSchema performs a merge with any union data inside the UsageDetails, using the provided OpenAIResponseUsageSchema
func (*UsageDetails) MergeUsageDetails0 ¶
func (t *UsageDetails) MergeUsageDetails0(v UsageDetails0) error
MergeUsageDetails0 performs a merge with any union data inside the UsageDetails, using the provided UsageDetails0
func (*UsageDetails) UnmarshalJSON ¶
func (t *UsageDetails) UnmarshalJSON(b []byte) error
type UserMeta ¶
type UserMeta struct {
Created *string `json:"created"`
LastModified *string `json:"lastModified"`
ResourceType string `json:"resourceType"`
}
UserMeta defines model for UserMeta.
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.