api

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AddEvaluationsForbidden

type AddEvaluationsForbidden struct {
	Data io.Reader
}

func (AddEvaluationsForbidden) Read

func (s AddEvaluationsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddEvaluationsNoContent

type AddEvaluationsNoContent struct{}

AddEvaluationsNoContent is response for AddEvaluations operation.

type AddEvaluationsParams

type AddEvaluationsParams struct {
	ContentEncoding OptNilString `json:",omitempty,omitzero"`
}

AddEvaluationsParams is parameters of addEvaluations operation.

type AddEvaluationsReq

type AddEvaluationsReq interface {
	// contains filtered or unexported methods
}

type AddEvaluationsReqApplicationXPandasArrow

type AddEvaluationsReqApplicationXPandasArrow struct {
	Data io.Reader
}

func (AddEvaluationsReqApplicationXPandasArrow) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddEvaluationsReqApplicationXProtobuf

type AddEvaluationsReqApplicationXProtobuf struct {
	Data io.Reader
}

func (AddEvaluationsReqApplicationXProtobuf) Read

func (s AddEvaluationsReqApplicationXProtobuf) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddEvaluationsRes

type AddEvaluationsRes interface {
	// contains filtered or unexported methods
}

type AddEvaluationsUnprocessableEntity

type AddEvaluationsUnprocessableEntity struct {
	Data io.Reader
}

func (AddEvaluationsUnprocessableEntity) Read

func (s AddEvaluationsUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddEvaluationsUnsupportedMediaType

type AddEvaluationsUnsupportedMediaType struct {
	Data io.Reader
}

func (AddEvaluationsUnsupportedMediaType) Read

func (s AddEvaluationsUnsupportedMediaType) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSessionsForbidden

type AnnotateSessionsForbidden struct {
	Data io.Reader
}

func (AnnotateSessionsForbidden) Read

func (s AnnotateSessionsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSessionsNotFound

type AnnotateSessionsNotFound struct {
	Data io.Reader
}

func (AnnotateSessionsNotFound) Read

func (s AnnotateSessionsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSessionsParams

type AnnotateSessionsParams struct {
	// If true, fulfill request synchronously.
	Sync OptBool `json:",omitempty,omitzero"`
}

AnnotateSessionsParams is parameters of annotateSessions operation.

type AnnotateSessionsRequestBody

type AnnotateSessionsRequestBody struct {
	Data []SessionAnnotationData `json:"data"`
}

Ref: #/components/schemas/AnnotateSessionsRequestBody

func (*AnnotateSessionsRequestBody) Decode

Decode decodes AnnotateSessionsRequestBody from json.

func (*AnnotateSessionsRequestBody) Encode

func (s *AnnotateSessionsRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnnotateSessionsRequestBody) GetData

GetData returns the value of Data.

func (*AnnotateSessionsRequestBody) MarshalJSON

func (s *AnnotateSessionsRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateSessionsRequestBody) SetData

SetData sets the value of Data.

func (*AnnotateSessionsRequestBody) UnmarshalJSON

func (s *AnnotateSessionsRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateSessionsRequestBody) Validate

func (s *AnnotateSessionsRequestBody) Validate() error

type AnnotateSessionsRes

type AnnotateSessionsRes interface {
	// contains filtered or unexported methods
}

type AnnotateSessionsResponseBody

type AnnotateSessionsResponseBody struct {
	Data []InsertedSessionAnnotation `json:"data"`
}

Ref: #/components/schemas/AnnotateSessionsResponseBody

func (*AnnotateSessionsResponseBody) Decode

Decode decodes AnnotateSessionsResponseBody from json.

func (*AnnotateSessionsResponseBody) Encode

func (s *AnnotateSessionsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnnotateSessionsResponseBody) GetData

GetData returns the value of Data.

func (*AnnotateSessionsResponseBody) MarshalJSON

func (s *AnnotateSessionsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateSessionsResponseBody) SetData

SetData sets the value of Data.

func (*AnnotateSessionsResponseBody) UnmarshalJSON

func (s *AnnotateSessionsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateSessionsResponseBody) Validate

func (s *AnnotateSessionsResponseBody) Validate() error

type AnnotateSpanDocumentsForbidden

type AnnotateSpanDocumentsForbidden struct {
	Data io.Reader
}

func (AnnotateSpanDocumentsForbidden) Read

func (s AnnotateSpanDocumentsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSpanDocumentsNotFound

type AnnotateSpanDocumentsNotFound struct {
	Data io.Reader
}

func (AnnotateSpanDocumentsNotFound) Read

func (s AnnotateSpanDocumentsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSpanDocumentsParams

type AnnotateSpanDocumentsParams struct {
	// If set to true, the annotations are inserted synchronously.
	Sync OptBool `json:",omitempty,omitzero"`
}

AnnotateSpanDocumentsParams is parameters of annotateSpanDocuments operation.

type AnnotateSpanDocumentsRequestBody

type AnnotateSpanDocumentsRequestBody struct {
	Data []SpanDocumentAnnotationData `json:"data"`
}

Ref: #/components/schemas/AnnotateSpanDocumentsRequestBody

func (*AnnotateSpanDocumentsRequestBody) Decode

Decode decodes AnnotateSpanDocumentsRequestBody from json.

func (*AnnotateSpanDocumentsRequestBody) Encode

Encode implements json.Marshaler.

func (*AnnotateSpanDocumentsRequestBody) GetData

GetData returns the value of Data.

func (*AnnotateSpanDocumentsRequestBody) MarshalJSON

func (s *AnnotateSpanDocumentsRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateSpanDocumentsRequestBody) SetData

SetData sets the value of Data.

func (*AnnotateSpanDocumentsRequestBody) UnmarshalJSON

func (s *AnnotateSpanDocumentsRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateSpanDocumentsRequestBody) Validate

type AnnotateSpanDocumentsRes

type AnnotateSpanDocumentsRes interface {
	// contains filtered or unexported methods
}

type AnnotateSpanDocumentsResponseBody

type AnnotateSpanDocumentsResponseBody struct {
	Data []InsertedSpanDocumentAnnotation `json:"data"`
}

Ref: #/components/schemas/AnnotateSpanDocumentsResponseBody

func (*AnnotateSpanDocumentsResponseBody) Decode

Decode decodes AnnotateSpanDocumentsResponseBody from json.

func (*AnnotateSpanDocumentsResponseBody) Encode

Encode implements json.Marshaler.

func (*AnnotateSpanDocumentsResponseBody) GetData

GetData returns the value of Data.

func (*AnnotateSpanDocumentsResponseBody) MarshalJSON

func (s *AnnotateSpanDocumentsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateSpanDocumentsResponseBody) SetData

SetData sets the value of Data.

func (*AnnotateSpanDocumentsResponseBody) UnmarshalJSON

func (s *AnnotateSpanDocumentsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateSpanDocumentsResponseBody) Validate

type AnnotateSpanDocumentsUnprocessableEntity

type AnnotateSpanDocumentsUnprocessableEntity struct {
	Data io.Reader
}

func (AnnotateSpanDocumentsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSpansForbidden

type AnnotateSpansForbidden struct {
	Data io.Reader
}

func (AnnotateSpansForbidden) Read

func (s AnnotateSpansForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSpansNotFound

type AnnotateSpansNotFound struct {
	Data io.Reader
}

func (AnnotateSpansNotFound) Read

func (s AnnotateSpansNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateSpansParams

type AnnotateSpansParams struct {
	// If true, fulfill request synchronously.
	Sync OptBool `json:",omitempty,omitzero"`
}

AnnotateSpansParams is parameters of annotateSpans operation.

type AnnotateSpansRequestBody

type AnnotateSpansRequestBody struct {
	Data []SpanAnnotationData `json:"data"`
}

Ref: #/components/schemas/AnnotateSpansRequestBody

func (*AnnotateSpansRequestBody) Decode

func (s *AnnotateSpansRequestBody) Decode(d *jx.Decoder) error

Decode decodes AnnotateSpansRequestBody from json.

func (*AnnotateSpansRequestBody) Encode

func (s *AnnotateSpansRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnnotateSpansRequestBody) GetData

GetData returns the value of Data.

func (*AnnotateSpansRequestBody) MarshalJSON

func (s *AnnotateSpansRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateSpansRequestBody) SetData

func (s *AnnotateSpansRequestBody) SetData(val []SpanAnnotationData)

SetData sets the value of Data.

func (*AnnotateSpansRequestBody) UnmarshalJSON

func (s *AnnotateSpansRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateSpansRequestBody) Validate

func (s *AnnotateSpansRequestBody) Validate() error

type AnnotateSpansRes

type AnnotateSpansRes interface {
	// contains filtered or unexported methods
}

type AnnotateSpansResponseBody

type AnnotateSpansResponseBody struct {
	Data []InsertedSpanAnnotation `json:"data"`
}

Ref: #/components/schemas/AnnotateSpansResponseBody

func (*AnnotateSpansResponseBody) Decode

func (s *AnnotateSpansResponseBody) Decode(d *jx.Decoder) error

Decode decodes AnnotateSpansResponseBody from json.

func (*AnnotateSpansResponseBody) Encode

func (s *AnnotateSpansResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnnotateSpansResponseBody) GetData

GetData returns the value of Data.

func (*AnnotateSpansResponseBody) MarshalJSON

func (s *AnnotateSpansResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateSpansResponseBody) SetData

SetData sets the value of Data.

func (*AnnotateSpansResponseBody) UnmarshalJSON

func (s *AnnotateSpansResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateSpansResponseBody) Validate

func (s *AnnotateSpansResponseBody) Validate() error

type AnnotateTracesForbidden

type AnnotateTracesForbidden struct {
	Data io.Reader
}

func (AnnotateTracesForbidden) Read

func (s AnnotateTracesForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateTracesNotFound

type AnnotateTracesNotFound struct {
	Data io.Reader
}

func (AnnotateTracesNotFound) Read

func (s AnnotateTracesNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnnotateTracesParams

type AnnotateTracesParams struct {
	// If true, fulfill request synchronously.
	Sync OptBool `json:",omitempty,omitzero"`
}

AnnotateTracesParams is parameters of annotateTraces operation.

type AnnotateTracesRequestBody

type AnnotateTracesRequestBody struct {
	// The trace annotations to be upserted.
	Data []TraceAnnotationData `json:"data"`
}

Ref: #/components/schemas/AnnotateTracesRequestBody

func (*AnnotateTracesRequestBody) Decode

func (s *AnnotateTracesRequestBody) Decode(d *jx.Decoder) error

Decode decodes AnnotateTracesRequestBody from json.

func (*AnnotateTracesRequestBody) Encode

func (s *AnnotateTracesRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnnotateTracesRequestBody) GetData

GetData returns the value of Data.

func (*AnnotateTracesRequestBody) MarshalJSON

func (s *AnnotateTracesRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateTracesRequestBody) SetData

SetData sets the value of Data.

func (*AnnotateTracesRequestBody) UnmarshalJSON

func (s *AnnotateTracesRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateTracesRequestBody) Validate

func (s *AnnotateTracesRequestBody) Validate() error

type AnnotateTracesRes

type AnnotateTracesRes interface {
	// contains filtered or unexported methods
}

type AnnotateTracesResponseBody

type AnnotateTracesResponseBody struct {
	Data []InsertedTraceAnnotation `json:"data"`
}

Ref: #/components/schemas/AnnotateTracesResponseBody

func (*AnnotateTracesResponseBody) Decode

Decode decodes AnnotateTracesResponseBody from json.

func (*AnnotateTracesResponseBody) Encode

func (s *AnnotateTracesResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnnotateTracesResponseBody) GetData

GetData returns the value of Data.

func (*AnnotateTracesResponseBody) MarshalJSON

func (s *AnnotateTracesResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotateTracesResponseBody) SetData

SetData sets the value of Data.

func (*AnnotateTracesResponseBody) UnmarshalJSON

func (s *AnnotateTracesResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotateTracesResponseBody) Validate

func (s *AnnotateTracesResponseBody) Validate() error

type AnnotationResult

type AnnotationResult struct {
	// Explanation of the annotation result.
	Explanation OptNilString `json:"explanation"`
	// The label assigned by the annotation.
	Label OptNilString `json:"label"`
	// The score assigned by the annotation.
	Score OptNilFloat64 `json:"score"`
}

Ref: #/components/schemas/AnnotationResult

func (*AnnotationResult) Decode

func (s *AnnotationResult) Decode(d *jx.Decoder) error

Decode decodes AnnotationResult from json.

func (*AnnotationResult) Encode

func (s *AnnotationResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnnotationResult) GetExplanation

func (s *AnnotationResult) GetExplanation() OptNilString

GetExplanation returns the value of Explanation.

func (*AnnotationResult) GetLabel

func (s *AnnotationResult) GetLabel() OptNilString

GetLabel returns the value of Label.

func (*AnnotationResult) GetScore

func (s *AnnotationResult) GetScore() OptNilFloat64

GetScore returns the value of Score.

func (*AnnotationResult) MarshalJSON

func (s *AnnotationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnnotationResult) SetExplanation

func (s *AnnotationResult) SetExplanation(val OptNilString)

SetExplanation sets the value of Explanation.

func (*AnnotationResult) SetLabel

func (s *AnnotationResult) SetLabel(val OptNilString)

SetLabel sets the value of Label.

func (*AnnotationResult) SetScore

func (s *AnnotationResult) SetScore(val OptNilFloat64)

SetScore sets the value of Score.

func (*AnnotationResult) UnmarshalJSON

func (s *AnnotationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnnotationResult) Validate

func (s *AnnotationResult) Validate() error

type CategoricalAnnotationConfig

type CategoricalAnnotationConfig struct {
	Description           OptNilString                    `json:"description"`
	ID                    string                          `json:"id"`
	Name                  string                          `json:"name"`
	OptimizationDirection OptimizationDirection           `json:"optimization_direction"`
	Type                  CategoricalAnnotationConfigType `json:"type"`
	Values                []CategoricalAnnotationValue    `json:"values"`
}

Ref: #/components/schemas/CategoricalAnnotationConfig

func (*CategoricalAnnotationConfig) Decode

Decode decodes CategoricalAnnotationConfig from json.

func (*CategoricalAnnotationConfig) Encode

func (s *CategoricalAnnotationConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CategoricalAnnotationConfig) GetDescription

func (s *CategoricalAnnotationConfig) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*CategoricalAnnotationConfig) GetID

GetID returns the value of ID.

func (*CategoricalAnnotationConfig) GetName

func (s *CategoricalAnnotationConfig) GetName() string

GetName returns the value of Name.

func (*CategoricalAnnotationConfig) GetOptimizationDirection

func (s *CategoricalAnnotationConfig) GetOptimizationDirection() OptimizationDirection

GetOptimizationDirection returns the value of OptimizationDirection.

func (*CategoricalAnnotationConfig) GetType

GetType returns the value of Type.

func (*CategoricalAnnotationConfig) GetValues

GetValues returns the value of Values.

func (*CategoricalAnnotationConfig) MarshalJSON

func (s *CategoricalAnnotationConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CategoricalAnnotationConfig) SetDescription

func (s *CategoricalAnnotationConfig) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*CategoricalAnnotationConfig) SetID

func (s *CategoricalAnnotationConfig) SetID(val string)

SetID sets the value of ID.

func (*CategoricalAnnotationConfig) SetName

func (s *CategoricalAnnotationConfig) SetName(val string)

SetName sets the value of Name.

func (*CategoricalAnnotationConfig) SetOptimizationDirection

func (s *CategoricalAnnotationConfig) SetOptimizationDirection(val OptimizationDirection)

SetOptimizationDirection sets the value of OptimizationDirection.

func (*CategoricalAnnotationConfig) SetType

SetType sets the value of Type.

func (*CategoricalAnnotationConfig) SetValues

SetValues sets the value of Values.

func (*CategoricalAnnotationConfig) UnmarshalJSON

func (s *CategoricalAnnotationConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CategoricalAnnotationConfig) Validate

func (s *CategoricalAnnotationConfig) Validate() error

type CategoricalAnnotationConfigData

type CategoricalAnnotationConfigData struct {
	Description           OptNilString                        `json:"description"`
	Name                  string                              `json:"name"`
	OptimizationDirection OptimizationDirection               `json:"optimization_direction"`
	Type                  CategoricalAnnotationConfigDataType `json:"type"`
	Values                []CategoricalAnnotationValue        `json:"values"`
}

Ref: #/components/schemas/CategoricalAnnotationConfigData

func (*CategoricalAnnotationConfigData) Decode

Decode decodes CategoricalAnnotationConfigData from json.

func (*CategoricalAnnotationConfigData) Encode

Encode implements json.Marshaler.

func (*CategoricalAnnotationConfigData) GetDescription

func (s *CategoricalAnnotationConfigData) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*CategoricalAnnotationConfigData) GetName

GetName returns the value of Name.

func (*CategoricalAnnotationConfigData) GetOptimizationDirection

func (s *CategoricalAnnotationConfigData) GetOptimizationDirection() OptimizationDirection

GetOptimizationDirection returns the value of OptimizationDirection.

func (*CategoricalAnnotationConfigData) GetType

GetType returns the value of Type.

func (*CategoricalAnnotationConfigData) GetValues

GetValues returns the value of Values.

func (*CategoricalAnnotationConfigData) MarshalJSON

func (s *CategoricalAnnotationConfigData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CategoricalAnnotationConfigData) SetDescription

func (s *CategoricalAnnotationConfigData) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*CategoricalAnnotationConfigData) SetName

func (s *CategoricalAnnotationConfigData) SetName(val string)

SetName sets the value of Name.

func (*CategoricalAnnotationConfigData) SetOptimizationDirection

func (s *CategoricalAnnotationConfigData) SetOptimizationDirection(val OptimizationDirection)

SetOptimizationDirection sets the value of OptimizationDirection.

func (*CategoricalAnnotationConfigData) SetType

SetType sets the value of Type.

func (*CategoricalAnnotationConfigData) SetValues

SetValues sets the value of Values.

func (*CategoricalAnnotationConfigData) UnmarshalJSON

func (s *CategoricalAnnotationConfigData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CategoricalAnnotationConfigData) Validate

func (s *CategoricalAnnotationConfigData) Validate() error

type CategoricalAnnotationConfigDataType

type CategoricalAnnotationConfigDataType string
const (
	CategoricalAnnotationConfigDataTypeCATEGORICAL CategoricalAnnotationConfigDataType = "CATEGORICAL"
)

func (CategoricalAnnotationConfigDataType) AllValues

AllValues returns all CategoricalAnnotationConfigDataType values.

func (*CategoricalAnnotationConfigDataType) Decode

Decode decodes CategoricalAnnotationConfigDataType from json.

func (CategoricalAnnotationConfigDataType) Encode

Encode encodes CategoricalAnnotationConfigDataType as json.

func (CategoricalAnnotationConfigDataType) MarshalJSON

func (s CategoricalAnnotationConfigDataType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CategoricalAnnotationConfigDataType) MarshalText

func (s CategoricalAnnotationConfigDataType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CategoricalAnnotationConfigDataType) UnmarshalJSON

func (s *CategoricalAnnotationConfigDataType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CategoricalAnnotationConfigDataType) UnmarshalText

func (s *CategoricalAnnotationConfigDataType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CategoricalAnnotationConfigDataType) Validate

type CategoricalAnnotationConfigType

type CategoricalAnnotationConfigType string
const (
	CategoricalAnnotationConfigTypeCATEGORICAL CategoricalAnnotationConfigType = "CATEGORICAL"
)

func (CategoricalAnnotationConfigType) AllValues

AllValues returns all CategoricalAnnotationConfigType values.

func (*CategoricalAnnotationConfigType) Decode

Decode decodes CategoricalAnnotationConfigType from json.

func (CategoricalAnnotationConfigType) Encode

Encode encodes CategoricalAnnotationConfigType as json.

func (CategoricalAnnotationConfigType) MarshalJSON

func (s CategoricalAnnotationConfigType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CategoricalAnnotationConfigType) MarshalText

func (s CategoricalAnnotationConfigType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CategoricalAnnotationConfigType) UnmarshalJSON

func (s *CategoricalAnnotationConfigType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CategoricalAnnotationConfigType) UnmarshalText

func (s *CategoricalAnnotationConfigType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CategoricalAnnotationConfigType) Validate

type CategoricalAnnotationValue

type CategoricalAnnotationValue struct {
	Label string        `json:"label"`
	Score OptNilFloat64 `json:"score"`
}

Ref: #/components/schemas/CategoricalAnnotationValue

func (*CategoricalAnnotationValue) Decode

Decode decodes CategoricalAnnotationValue from json.

func (*CategoricalAnnotationValue) Encode

func (s *CategoricalAnnotationValue) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CategoricalAnnotationValue) GetLabel

func (s *CategoricalAnnotationValue) GetLabel() string

GetLabel returns the value of Label.

func (*CategoricalAnnotationValue) GetScore

GetScore returns the value of Score.

func (*CategoricalAnnotationValue) MarshalJSON

func (s *CategoricalAnnotationValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CategoricalAnnotationValue) SetLabel

func (s *CategoricalAnnotationValue) SetLabel(val string)

SetLabel sets the value of Label.

func (*CategoricalAnnotationValue) SetScore

func (s *CategoricalAnnotationValue) SetScore(val OptNilFloat64)

SetScore sets the value of Score.

func (*CategoricalAnnotationValue) UnmarshalJSON

func (s *CategoricalAnnotationValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CategoricalAnnotationValue) Validate

func (s *CategoricalAnnotationValue) Validate() error

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AddEvaluations

func (c *Client) AddEvaluations(ctx context.Context, request AddEvaluationsReq, params AddEvaluationsParams) (AddEvaluationsRes, error)

AddEvaluations invokes addEvaluations operation.

Add span, trace, or document evaluations.

POST /v1/evaluations

func (*Client) AnnotateSessions

AnnotateSessions invokes annotateSessions operation.

Create session annotations.

POST /v1/session_annotations

func (*Client) AnnotateSpanDocuments

AnnotateSpanDocuments invokes annotateSpanDocuments operation.

Annotate Span Documents.

POST /v1/document_annotations

func (*Client) AnnotateSpans

func (c *Client) AnnotateSpans(ctx context.Context, request *AnnotateSpansRequestBody, params AnnotateSpansParams) (AnnotateSpansRes, error)

AnnotateSpans invokes annotateSpans operation.

Create span annotations.

POST /v1/span_annotations

func (*Client) AnnotateTraces

func (c *Client) AnnotateTraces(ctx context.Context, request *AnnotateTracesRequestBody, params AnnotateTracesParams) (AnnotateTracesRes, error)

AnnotateTraces invokes annotateTraces operation.

Create trace annotations.

POST /v1/trace_annotations

func (*Client) CreateAnnotationConfigV1AnnotationConfigsPost

func (c *Client) CreateAnnotationConfigV1AnnotationConfigsPost(ctx context.Context, request CreateAnnotationConfigData) (CreateAnnotationConfigV1AnnotationConfigsPostRes, error)

CreateAnnotationConfigV1AnnotationConfigsPost invokes create_annotation_config_v1_annotation_configs_post operation.

Create an annotation configuration.

POST /v1/annotation_configs

func (*Client) CreateExperiment

CreateExperiment invokes createExperiment operation.

Create experiment on a dataset.

POST /v1/datasets/{dataset_id}/experiments

func (*Client) CreateExperimentRun

CreateExperimentRun invokes createExperimentRun operation.

Create run for an experiment.

POST /v1/experiments/{experiment_id}/runs

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, request *CreateProjectRequestBody) (CreateProjectRes, error)

CreateProject invokes createProject operation.

Create a new project with the specified configuration.

POST /v1/projects

func (*Client) CreatePromptVersionTag

func (c *Client) CreatePromptVersionTag(ctx context.Context, request *PromptVersionTagData, params CreatePromptVersionTagParams) (CreatePromptVersionTagRes, error)

CreatePromptVersionTag invokes createPromptVersionTag operation.

Add a new tag to a specific prompt version. Tags help identify and categorize different versions of a prompt.

POST /v1/prompt_versions/{prompt_version_id}/tags

func (*Client) CreateSpanNote

func (c *Client) CreateSpanNote(ctx context.Context, request *CreateSpanNoteRequestBody) (CreateSpanNoteRes, error)

CreateSpanNote invokes createSpanNote operation.

Add a note annotation to a span. Notes are special annotations that allow multiple entries per span (unlike regular annotations which are unique by name and identifier). Each note gets a unique timestamp-based identifier.

POST /v1/span_notes

func (*Client) CreateSpans

func (c *Client) CreateSpans(ctx context.Context, request *CreateSpansRequestBody, params CreateSpansParams) (CreateSpansRes, error)

CreateSpans invokes createSpans operation.

Submit spans to be inserted into a project. If any spans are invalid or duplicates, no spans will be inserted.

POST /v1/projects/{project_identifier}/spans

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, request *CreateUserRequestBody) (CreateUserRes, error)

CreateUser invokes createUser operation.

Create a new user with the specified configuration.

POST /v1/users

func (*Client) DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete

DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete invokes delete_annotation_config_v1_annotation_configs__config_id__delete operation.

Delete an annotation configuration.

DELETE /v1/annotation_configs/{config_id}

func (*Client) DeleteDatasetById

func (c *Client) DeleteDatasetById(ctx context.Context, params DeleteDatasetByIdParams) (DeleteDatasetByIdRes, error)

DeleteDatasetById invokes deleteDatasetById operation.

Delete dataset by ID.

DELETE /v1/datasets/{id}

func (*Client) DeleteExperiment

func (c *Client) DeleteExperiment(ctx context.Context, params DeleteExperimentParams) (DeleteExperimentRes, error)

DeleteExperiment invokes deleteExperiment operation.

Delete experiment by ID.

DELETE /v1/experiments/{experiment_id}

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)

DeleteProject invokes deleteProject operation.

Delete an existing project and all its associated data. The project identifier is either project ID or project name. The default project cannot be deleted. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

DELETE /v1/projects/{project_identifier}

func (*Client) DeleteSpan

func (c *Client) DeleteSpan(ctx context.Context, params DeleteSpanParams) (DeleteSpanRes, error)

DeleteSpan invokes deleteSpan operation.

Delete a single span by identifier. **Important**: This operation deletes ONLY the specified span itself and does NOT delete its descendants/children. All child spans will remain in the trace and become orphaned (their parent_id will point to a non-existent span). Behavior: - Deletes only the target span (preserves all descendant spans) - If this was the last span in the trace, the trace record is also deleted - If the deleted span had a parent, its cumulative metrics (error count, token counts) are subtracted from all ancestor spans in the chain **Note**: This operation is irreversible and may create orphaned spans.

DELETE /v1/spans/{span_identifier}

func (*Client) DeleteTrace

func (c *Client) DeleteTrace(ctx context.Context, params DeleteTraceParams) (DeleteTraceRes, error)

DeleteTrace invokes deleteTrace operation.

Delete an entire trace by its identifier. The identifier can be either: 1. A Relay node ID (base64-encoded) 2. An OpenTelemetry trace_id (hex string) This will permanently remove all spans in the trace and their associated data.

DELETE /v1/traces/{trace_identifier}

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)

DeleteUser invokes deleteUser operation.

Delete an existing user by their unique GlobalID.

DELETE /v1/users/{user_id}

func (*Client) GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet

GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet invokes get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get operation.

Get an annotation configuration by ID or name.

GET /v1/annotation_configs/{config_identifier}

func (*Client) GetDataset

func (c *Client) GetDataset(ctx context.Context, params GetDatasetParams) (GetDatasetRes, error)

GetDataset invokes getDataset operation.

Get dataset by ID.

GET /v1/datasets/{id}

func (*Client) GetDatasetCsv

func (c *Client) GetDatasetCsv(ctx context.Context, params GetDatasetCsvParams) (GetDatasetCsvRes, error)

GetDatasetCsv invokes getDatasetCsv operation.

Download dataset examples as CSV file.

GET /v1/datasets/{id}/csv

func (*Client) GetDatasetExamples

func (c *Client) GetDatasetExamples(ctx context.Context, params GetDatasetExamplesParams) (GetDatasetExamplesRes, error)

GetDatasetExamples invokes getDatasetExamples operation.

Get examples from a dataset.

GET /v1/datasets/{id}/examples

func (*Client) GetDatasetJSONLOpenAIEvals

func (c *Client) GetDatasetJSONLOpenAIEvals(ctx context.Context, params GetDatasetJSONLOpenAIEvalsParams) (GetDatasetJSONLOpenAIEvalsRes, error)

GetDatasetJSONLOpenAIEvals invokes getDatasetJSONLOpenAIEvals operation.

Download dataset examples as OpenAI evals JSONL file.

GET /v1/datasets/{id}/jsonl/openai_evals

func (*Client) GetDatasetJSONLOpenAIFineTuning

func (c *Client) GetDatasetJSONLOpenAIFineTuning(ctx context.Context, params GetDatasetJSONLOpenAIFineTuningParams) (GetDatasetJSONLOpenAIFineTuningRes, error)

GetDatasetJSONLOpenAIFineTuning invokes getDatasetJSONLOpenAIFineTuning operation.

Download dataset examples as OpenAI fine-tuning JSONL file.

GET /v1/datasets/{id}/jsonl/openai_ft

func (*Client) GetEvaluations

func (c *Client) GetEvaluations(ctx context.Context, params GetEvaluationsParams) (GetEvaluationsRes, error)

GetEvaluations invokes getEvaluations operation.

Get span, trace, or document evaluations from a project.

GET /v1/evaluations

func (*Client) GetExperiment

func (c *Client) GetExperiment(ctx context.Context, params GetExperimentParams) (GetExperimentRes, error)

GetExperiment invokes getExperiment operation.

Get experiment by ID.

GET /v1/experiments/{experiment_id}

func (*Client) GetExperimentCSV

func (c *Client) GetExperimentCSV(ctx context.Context, params GetExperimentCSVParams) (GetExperimentCSVRes, error)

GetExperimentCSV invokes getExperimentCSV operation.

Download experiment runs as a CSV file.

GET /v1/experiments/{experiment_id}/csv

func (*Client) GetExperimentJSON

func (c *Client) GetExperimentJSON(ctx context.Context, params GetExperimentJSONParams) (GetExperimentJSONRes, error)

GetExperimentJSON invokes getExperimentJSON operation.

Download experiment runs as a JSON file.

GET /v1/experiments/{experiment_id}/json

func (*Client) GetIncompleteExperimentEvaluations

func (c *Client) GetIncompleteExperimentEvaluations(ctx context.Context, params GetIncompleteExperimentEvaluationsParams) (GetIncompleteExperimentEvaluationsRes, error)

GetIncompleteExperimentEvaluations invokes getIncompleteExperimentEvaluations operation.

Get experiment runs that have incomplete evaluations. Returns runs with: - Missing evaluations (evaluator has not been run) - Failed evaluations (evaluator ran but has errors) Args: experiment_id: The ID of the experiment evaluation_name: List of evaluation names to check (required, at least one) cursor: Cursor for pagination limit: Maximum number of results to return Returns: Paginated list of runs with incomplete evaluations.

GET /v1/experiments/{experiment_id}/incomplete-evaluations

func (*Client) GetIncompleteExperimentRuns

func (c *Client) GetIncompleteExperimentRuns(ctx context.Context, params GetIncompleteExperimentRunsParams) (GetIncompleteExperimentRunsRes, error)

GetIncompleteExperimentRuns invokes getIncompleteExperimentRuns operation.

Get runs that need to be completed for this experiment. Returns all incomplete runs, including both missing runs (not yet attempted) and failed runs (attempted but have errors). Args: experiment_id: The ID of the experiment cursor: Cursor for pagination limit: Maximum number of results to return Returns: Paginated list of incomplete runs grouped by dataset example, with repetition numbers that need to be run.

GET /v1/experiments/{experiment_id}/incomplete-runs

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)

GetProject invokes getProject operation.

Retrieve a specific project using its unique identifier: either project ID or project name. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

GET /v1/projects/{project_identifier}

func (*Client) GetProjects

func (c *Client) GetProjects(ctx context.Context, params GetProjectsParams) (GetProjectsRes, error)

GetProjects invokes getProjects operation.

Retrieve a paginated list of all projects in the system.

GET /v1/projects

func (*Client) GetPromptVersionByPromptVersionId

func (c *Client) GetPromptVersionByPromptVersionId(ctx context.Context, params GetPromptVersionByPromptVersionIdParams) (GetPromptVersionByPromptVersionIdRes, error)

GetPromptVersionByPromptVersionId invokes getPromptVersionByPromptVersionId operation.

Retrieve a specific prompt version using its unique identifier. A prompt version contains the actual template and configuration.

GET /v1/prompt_versions/{prompt_version_id}

func (*Client) GetPromptVersionByTagName

func (c *Client) GetPromptVersionByTagName(ctx context.Context, params GetPromptVersionByTagNameParams) (GetPromptVersionByTagNameRes, error)

GetPromptVersionByTagName invokes getPromptVersionByTagName operation.

Retrieve a specific prompt version using its tag name. Tags are used to identify specific versions of a prompt.

GET /v1/prompts/{prompt_identifier}/tags/{tag_name}

func (*Client) GetPromptVersionLatest

func (c *Client) GetPromptVersionLatest(ctx context.Context, params GetPromptVersionLatestParams) (GetPromptVersionLatestRes, error)

GetPromptVersionLatest invokes getPromptVersionLatest operation.

Retrieve the most recent version of a specific prompt.

GET /v1/prompts/{prompt_identifier}/latest

func (*Client) GetPromptVersionTags

func (c *Client) GetPromptVersionTags(ctx context.Context, params GetPromptVersionTagsParams) (GetPromptVersionTagsRes, error)

GetPromptVersionTags invokes getPromptVersionTags operation.

Retrieve all tags associated with a specific prompt version. Tags are used to identify and categorize different versions of a prompt.

GET /v1/prompt_versions/{prompt_version_id}/tags

func (*Client) GetPrompts

func (c *Client) GetPrompts(ctx context.Context, params GetPromptsParams) (GetPromptsRes, error)

GetPrompts invokes getPrompts operation.

Retrieve a paginated list of all prompts in the system. A prompt can have multiple versions.

GET /v1/prompts

func (*Client) GetSpans

func (c *Client) GetSpans(ctx context.Context, params GetSpansParams) (GetSpansRes, error)

GetSpans invokes getSpans operation.

Return spans within a project filtered by time range. Supports cursor-based pagination.

GET /v1/projects/{project_identifier}/spans

func (*Client) GetUsers

func (c *Client) GetUsers(ctx context.Context, params GetUsersParams) (GetUsersRes, error)

GetUsers invokes getUsers operation.

Retrieve a paginated list of all users in the system.

GET /v1/users

func (*Client) ListAnnotationConfigsV1AnnotationConfigsGet

ListAnnotationConfigsV1AnnotationConfigsGet invokes list_annotation_configs_v1_annotation_configs_get operation.

Retrieve a paginated list of all annotation configurations in the system.

GET /v1/annotation_configs

func (*Client) ListDatasetVersionsByDatasetId

func (c *Client) ListDatasetVersionsByDatasetId(ctx context.Context, params ListDatasetVersionsByDatasetIdParams) (ListDatasetVersionsByDatasetIdRes, error)

ListDatasetVersionsByDatasetId invokes listDatasetVersionsByDatasetId operation.

List dataset versions.

GET /v1/datasets/{id}/versions

func (*Client) ListDatasets

func (c *Client) ListDatasets(ctx context.Context, params ListDatasetsParams) (ListDatasetsRes, error)

ListDatasets invokes listDatasets operation.

List datasets.

GET /v1/datasets

func (*Client) ListExperimentRuns

func (c *Client) ListExperimentRuns(ctx context.Context, params ListExperimentRunsParams) (ListExperimentRunsRes, error)

ListExperimentRuns invokes listExperimentRuns operation.

Retrieve a paginated list of runs for an experiment.

GET /v1/experiments/{experiment_id}/runs

func (*Client) ListExperiments

func (c *Client) ListExperiments(ctx context.Context, params ListExperimentsParams) (ListExperimentsRes, error)

ListExperiments invokes listExperiments operation.

Retrieve a paginated list of experiments for the specified dataset.

GET /v1/datasets/{dataset_id}/experiments

func (*Client) ListPromptVersions

func (c *Client) ListPromptVersions(ctx context.Context, params ListPromptVersionsParams) (ListPromptVersionsRes, error)

ListPromptVersions invokes listPromptVersions operation.

Retrieve all versions of a specific prompt with pagination support. Each prompt can have multiple versions with different configurations.

GET /v1/prompts/{prompt_identifier}/versions

func (*Client) ListSessionAnnotationsBySessionIds

func (c *Client) ListSessionAnnotationsBySessionIds(ctx context.Context, params ListSessionAnnotationsBySessionIdsParams) (ListSessionAnnotationsBySessionIdsRes, error)

ListSessionAnnotationsBySessionIds invokes listSessionAnnotationsBySessionIds operation.

Get session annotations for a list of session_ids.

GET /v1/projects/{project_identifier}/session_annotations

func (*Client) ListSpanAnnotationsBySpanIds

func (c *Client) ListSpanAnnotationsBySpanIds(ctx context.Context, params ListSpanAnnotationsBySpanIdsParams) (ListSpanAnnotationsBySpanIdsRes, error)

ListSpanAnnotationsBySpanIds invokes listSpanAnnotationsBySpanIds operation.

Get span annotations for a list of span_ids.

GET /v1/projects/{project_identifier}/span_annotations

func (*Client) ListTraceAnnotationsByTraceIds

func (c *Client) ListTraceAnnotationsByTraceIds(ctx context.Context, params ListTraceAnnotationsByTraceIdsParams) (ListTraceAnnotationsByTraceIdsRes, error)

ListTraceAnnotationsByTraceIds invokes listTraceAnnotationsByTraceIds operation.

Get trace annotations for a list of trace_ids.

GET /v1/projects/{project_identifier}/trace_annotations

func (*Client) PostPromptVersion

func (c *Client) PostPromptVersion(ctx context.Context, request *CreatePromptRequestBody) (PostPromptVersionRes, error)

PostPromptVersion invokes postPromptVersion operation.

Create a new prompt and its initial version. A prompt can have multiple versions.

POST /v1/prompts

func (*Client) UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut

UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut invokes update_annotation_config_v1_annotation_configs__config_id__put operation.

Update an annotation configuration.

PUT /v1/annotation_configs/{config_id}

func (*Client) UpdateProject

func (c *Client) UpdateProject(ctx context.Context, request *UpdateProjectRequestBody, params UpdateProjectParams) (UpdateProjectRes, error)

UpdateProject invokes updateProject operation.

Update an existing project with new configuration. Project names cannot be changed. The project identifier is either project ID or project name. Note: When using a project name as the identifier,

it cannot contain slash (/), question mark (?), or pound sign (#) characters.

PUT /v1/projects/{project_identifier}

func (*Client) UploadDataset

func (c *Client) UploadDataset(ctx context.Context, request UploadDatasetReq, params UploadDatasetParams) (UploadDatasetRes, error)

UploadDataset invokes uploadDataset operation.

Upload dataset from JSON, CSV, or PyArrow.

POST /v1/datasets/upload

func (*Client) UpsertExperimentEvaluation

func (c *Client) UpsertExperimentEvaluation(ctx context.Context, request *UpsertExperimentEvaluationRequestBody) (UpsertExperimentEvaluationRes, error)

UpsertExperimentEvaluation invokes upsertExperimentEvaluation operation.

Create or update evaluation for an experiment run.

POST /v1/experiment_evaluations

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type ContinuousAnnotationConfig

type ContinuousAnnotationConfig struct {
	Description           OptNilString                   `json:"description"`
	ID                    string                         `json:"id"`
	LowerBound            OptNilFloat64                  `json:"lower_bound"`
	Name                  string                         `json:"name"`
	OptimizationDirection OptimizationDirection          `json:"optimization_direction"`
	Type                  ContinuousAnnotationConfigType `json:"type"`
	UpperBound            OptNilFloat64                  `json:"upper_bound"`
}

Ref: #/components/schemas/ContinuousAnnotationConfig

func (*ContinuousAnnotationConfig) Decode

Decode decodes ContinuousAnnotationConfig from json.

func (*ContinuousAnnotationConfig) Encode

func (s *ContinuousAnnotationConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ContinuousAnnotationConfig) GetDescription

func (s *ContinuousAnnotationConfig) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*ContinuousAnnotationConfig) GetID

GetID returns the value of ID.

func (*ContinuousAnnotationConfig) GetLowerBound

func (s *ContinuousAnnotationConfig) GetLowerBound() OptNilFloat64

GetLowerBound returns the value of LowerBound.

func (*ContinuousAnnotationConfig) GetName

func (s *ContinuousAnnotationConfig) GetName() string

GetName returns the value of Name.

func (*ContinuousAnnotationConfig) GetOptimizationDirection

func (s *ContinuousAnnotationConfig) GetOptimizationDirection() OptimizationDirection

GetOptimizationDirection returns the value of OptimizationDirection.

func (*ContinuousAnnotationConfig) GetType

GetType returns the value of Type.

func (*ContinuousAnnotationConfig) GetUpperBound

func (s *ContinuousAnnotationConfig) GetUpperBound() OptNilFloat64

GetUpperBound returns the value of UpperBound.

func (*ContinuousAnnotationConfig) MarshalJSON

func (s *ContinuousAnnotationConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ContinuousAnnotationConfig) SetDescription

func (s *ContinuousAnnotationConfig) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*ContinuousAnnotationConfig) SetID

func (s *ContinuousAnnotationConfig) SetID(val string)

SetID sets the value of ID.

func (*ContinuousAnnotationConfig) SetLowerBound

func (s *ContinuousAnnotationConfig) SetLowerBound(val OptNilFloat64)

SetLowerBound sets the value of LowerBound.

func (*ContinuousAnnotationConfig) SetName

func (s *ContinuousAnnotationConfig) SetName(val string)

SetName sets the value of Name.

func (*ContinuousAnnotationConfig) SetOptimizationDirection

func (s *ContinuousAnnotationConfig) SetOptimizationDirection(val OptimizationDirection)

SetOptimizationDirection sets the value of OptimizationDirection.

func (*ContinuousAnnotationConfig) SetType

SetType sets the value of Type.

func (*ContinuousAnnotationConfig) SetUpperBound

func (s *ContinuousAnnotationConfig) SetUpperBound(val OptNilFloat64)

SetUpperBound sets the value of UpperBound.

func (*ContinuousAnnotationConfig) UnmarshalJSON

func (s *ContinuousAnnotationConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContinuousAnnotationConfig) Validate

func (s *ContinuousAnnotationConfig) Validate() error

type ContinuousAnnotationConfigData

type ContinuousAnnotationConfigData struct {
	Description           OptNilString                       `json:"description"`
	LowerBound            OptNilFloat64                      `json:"lower_bound"`
	Name                  string                             `json:"name"`
	OptimizationDirection OptimizationDirection              `json:"optimization_direction"`
	Type                  ContinuousAnnotationConfigDataType `json:"type"`
	UpperBound            OptNilFloat64                      `json:"upper_bound"`
}

Ref: #/components/schemas/ContinuousAnnotationConfigData

func (*ContinuousAnnotationConfigData) Decode

Decode decodes ContinuousAnnotationConfigData from json.

func (*ContinuousAnnotationConfigData) Encode

Encode implements json.Marshaler.

func (*ContinuousAnnotationConfigData) GetDescription

func (s *ContinuousAnnotationConfigData) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*ContinuousAnnotationConfigData) GetLowerBound

func (s *ContinuousAnnotationConfigData) GetLowerBound() OptNilFloat64

GetLowerBound returns the value of LowerBound.

func (*ContinuousAnnotationConfigData) GetName

GetName returns the value of Name.

func (*ContinuousAnnotationConfigData) GetOptimizationDirection

func (s *ContinuousAnnotationConfigData) GetOptimizationDirection() OptimizationDirection

GetOptimizationDirection returns the value of OptimizationDirection.

func (*ContinuousAnnotationConfigData) GetType

GetType returns the value of Type.

func (*ContinuousAnnotationConfigData) GetUpperBound

func (s *ContinuousAnnotationConfigData) GetUpperBound() OptNilFloat64

GetUpperBound returns the value of UpperBound.

func (*ContinuousAnnotationConfigData) MarshalJSON

func (s *ContinuousAnnotationConfigData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ContinuousAnnotationConfigData) SetDescription

func (s *ContinuousAnnotationConfigData) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*ContinuousAnnotationConfigData) SetLowerBound

func (s *ContinuousAnnotationConfigData) SetLowerBound(val OptNilFloat64)

SetLowerBound sets the value of LowerBound.

func (*ContinuousAnnotationConfigData) SetName

func (s *ContinuousAnnotationConfigData) SetName(val string)

SetName sets the value of Name.

func (*ContinuousAnnotationConfigData) SetOptimizationDirection

func (s *ContinuousAnnotationConfigData) SetOptimizationDirection(val OptimizationDirection)

SetOptimizationDirection sets the value of OptimizationDirection.

func (*ContinuousAnnotationConfigData) SetType

SetType sets the value of Type.

func (*ContinuousAnnotationConfigData) SetUpperBound

func (s *ContinuousAnnotationConfigData) SetUpperBound(val OptNilFloat64)

SetUpperBound sets the value of UpperBound.

func (*ContinuousAnnotationConfigData) UnmarshalJSON

func (s *ContinuousAnnotationConfigData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContinuousAnnotationConfigData) Validate

func (s *ContinuousAnnotationConfigData) Validate() error

type ContinuousAnnotationConfigDataType

type ContinuousAnnotationConfigDataType string
const (
	ContinuousAnnotationConfigDataTypeCONTINUOUS ContinuousAnnotationConfigDataType = "CONTINUOUS"
)

func (ContinuousAnnotationConfigDataType) AllValues

AllValues returns all ContinuousAnnotationConfigDataType values.

func (*ContinuousAnnotationConfigDataType) Decode

Decode decodes ContinuousAnnotationConfigDataType from json.

func (ContinuousAnnotationConfigDataType) Encode

Encode encodes ContinuousAnnotationConfigDataType as json.

func (ContinuousAnnotationConfigDataType) MarshalJSON

func (s ContinuousAnnotationConfigDataType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ContinuousAnnotationConfigDataType) MarshalText

func (s ContinuousAnnotationConfigDataType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ContinuousAnnotationConfigDataType) UnmarshalJSON

func (s *ContinuousAnnotationConfigDataType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContinuousAnnotationConfigDataType) UnmarshalText

func (s *ContinuousAnnotationConfigDataType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ContinuousAnnotationConfigDataType) Validate

type ContinuousAnnotationConfigType

type ContinuousAnnotationConfigType string
const (
	ContinuousAnnotationConfigTypeCONTINUOUS ContinuousAnnotationConfigType = "CONTINUOUS"
)

func (ContinuousAnnotationConfigType) AllValues

AllValues returns all ContinuousAnnotationConfigType values.

func (*ContinuousAnnotationConfigType) Decode

Decode decodes ContinuousAnnotationConfigType from json.

func (ContinuousAnnotationConfigType) Encode

Encode encodes ContinuousAnnotationConfigType as json.

func (ContinuousAnnotationConfigType) MarshalJSON

func (s ContinuousAnnotationConfigType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ContinuousAnnotationConfigType) MarshalText

func (s ContinuousAnnotationConfigType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ContinuousAnnotationConfigType) UnmarshalJSON

func (s *ContinuousAnnotationConfigType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContinuousAnnotationConfigType) UnmarshalText

func (s *ContinuousAnnotationConfigType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ContinuousAnnotationConfigType) Validate

type CreateAnnotationConfigData

type CreateAnnotationConfigData struct {
	Type                            CreateAnnotationConfigDataType // switch on this field
	CategoricalAnnotationConfigData CategoricalAnnotationConfigData
	ContinuousAnnotationConfigData  ContinuousAnnotationConfigData
	FreeformAnnotationConfigData    FreeformAnnotationConfigData
}

Ref: #/components/schemas/CreateAnnotationConfigData CreateAnnotationConfigData represents sum type.

func NewCategoricalAnnotationConfigDataCreateAnnotationConfigData

func NewCategoricalAnnotationConfigDataCreateAnnotationConfigData(v CategoricalAnnotationConfigData) CreateAnnotationConfigData

NewCategoricalAnnotationConfigDataCreateAnnotationConfigData returns new CreateAnnotationConfigData from CategoricalAnnotationConfigData.

func NewContinuousAnnotationConfigDataCreateAnnotationConfigData

func NewContinuousAnnotationConfigDataCreateAnnotationConfigData(v ContinuousAnnotationConfigData) CreateAnnotationConfigData

NewContinuousAnnotationConfigDataCreateAnnotationConfigData returns new CreateAnnotationConfigData from ContinuousAnnotationConfigData.

func NewFreeformAnnotationConfigDataCreateAnnotationConfigData

func NewFreeformAnnotationConfigDataCreateAnnotationConfigData(v FreeformAnnotationConfigData) CreateAnnotationConfigData

NewFreeformAnnotationConfigDataCreateAnnotationConfigData returns new CreateAnnotationConfigData from FreeformAnnotationConfigData.

func (*CreateAnnotationConfigData) Decode

Decode decodes CreateAnnotationConfigData from json.

func (CreateAnnotationConfigData) Encode

func (s CreateAnnotationConfigData) Encode(e *jx.Encoder)

Encode encodes CreateAnnotationConfigData as json.

func (CreateAnnotationConfigData) GetCategoricalAnnotationConfigData

func (s CreateAnnotationConfigData) GetCategoricalAnnotationConfigData() (v CategoricalAnnotationConfigData, ok bool)

GetCategoricalAnnotationConfigData returns CategoricalAnnotationConfigData and true boolean if CreateAnnotationConfigData is CategoricalAnnotationConfigData.

func (CreateAnnotationConfigData) GetContinuousAnnotationConfigData

func (s CreateAnnotationConfigData) GetContinuousAnnotationConfigData() (v ContinuousAnnotationConfigData, ok bool)

GetContinuousAnnotationConfigData returns ContinuousAnnotationConfigData and true boolean if CreateAnnotationConfigData is ContinuousAnnotationConfigData.

func (CreateAnnotationConfigData) GetFreeformAnnotationConfigData

func (s CreateAnnotationConfigData) GetFreeformAnnotationConfigData() (v FreeformAnnotationConfigData, ok bool)

GetFreeformAnnotationConfigData returns FreeformAnnotationConfigData and true boolean if CreateAnnotationConfigData is FreeformAnnotationConfigData.

func (CreateAnnotationConfigData) IsCategoricalAnnotationConfigData

func (s CreateAnnotationConfigData) IsCategoricalAnnotationConfigData() bool

IsCategoricalAnnotationConfigData reports whether CreateAnnotationConfigData is CategoricalAnnotationConfigData.

func (CreateAnnotationConfigData) IsContinuousAnnotationConfigData

func (s CreateAnnotationConfigData) IsContinuousAnnotationConfigData() bool

IsContinuousAnnotationConfigData reports whether CreateAnnotationConfigData is ContinuousAnnotationConfigData.

func (CreateAnnotationConfigData) IsFreeformAnnotationConfigData

func (s CreateAnnotationConfigData) IsFreeformAnnotationConfigData() bool

IsFreeformAnnotationConfigData reports whether CreateAnnotationConfigData is FreeformAnnotationConfigData.

func (CreateAnnotationConfigData) MarshalJSON

func (s CreateAnnotationConfigData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateAnnotationConfigData) SetCategoricalAnnotationConfigData

func (s *CreateAnnotationConfigData) SetCategoricalAnnotationConfigData(v CategoricalAnnotationConfigData)

SetCategoricalAnnotationConfigData sets CreateAnnotationConfigData to CategoricalAnnotationConfigData.

func (*CreateAnnotationConfigData) SetContinuousAnnotationConfigData

func (s *CreateAnnotationConfigData) SetContinuousAnnotationConfigData(v ContinuousAnnotationConfigData)

SetContinuousAnnotationConfigData sets CreateAnnotationConfigData to ContinuousAnnotationConfigData.

func (*CreateAnnotationConfigData) SetFreeformAnnotationConfigData

func (s *CreateAnnotationConfigData) SetFreeformAnnotationConfigData(v FreeformAnnotationConfigData)

SetFreeformAnnotationConfigData sets CreateAnnotationConfigData to FreeformAnnotationConfigData.

func (*CreateAnnotationConfigData) UnmarshalJSON

func (s *CreateAnnotationConfigData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CreateAnnotationConfigData) Validate

func (s CreateAnnotationConfigData) Validate() error

type CreateAnnotationConfigDataType

type CreateAnnotationConfigDataType string

CreateAnnotationConfigDataType is oneOf type of CreateAnnotationConfigData.

const (
	CategoricalAnnotationConfigDataCreateAnnotationConfigData CreateAnnotationConfigDataType = "CATEGORICAL"
	ContinuousAnnotationConfigDataCreateAnnotationConfigData  CreateAnnotationConfigDataType = "CONTINUOUS"
	FreeformAnnotationConfigDataCreateAnnotationConfigData    CreateAnnotationConfigDataType = "FREEFORM"
)

Possible values for CreateAnnotationConfigDataType.

type CreateAnnotationConfigResponseBody

type CreateAnnotationConfigResponseBody struct {
	Data CreateAnnotationConfigResponseBodyData `json:"data"`
}

Ref: #/components/schemas/CreateAnnotationConfigResponseBody

func (*CreateAnnotationConfigResponseBody) Decode

Decode decodes CreateAnnotationConfigResponseBody from json.

func (*CreateAnnotationConfigResponseBody) Encode

Encode implements json.Marshaler.

func (*CreateAnnotationConfigResponseBody) GetData

GetData returns the value of Data.

func (*CreateAnnotationConfigResponseBody) MarshalJSON

func (s *CreateAnnotationConfigResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateAnnotationConfigResponseBody) SetData

SetData sets the value of Data.

func (*CreateAnnotationConfigResponseBody) UnmarshalJSON

func (s *CreateAnnotationConfigResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateAnnotationConfigResponseBody) Validate

type CreateAnnotationConfigResponseBodyData

type CreateAnnotationConfigResponseBodyData struct {
	Type                        CreateAnnotationConfigResponseBodyDataType // switch on this field
	CategoricalAnnotationConfig CategoricalAnnotationConfig
	ContinuousAnnotationConfig  ContinuousAnnotationConfig
	FreeformAnnotationConfig    FreeformAnnotationConfig
}

CreateAnnotationConfigResponseBodyData represents sum type.

func NewCategoricalAnnotationConfigCreateAnnotationConfigResponseBodyData

func NewCategoricalAnnotationConfigCreateAnnotationConfigResponseBodyData(v CategoricalAnnotationConfig) CreateAnnotationConfigResponseBodyData

NewCategoricalAnnotationConfigCreateAnnotationConfigResponseBodyData returns new CreateAnnotationConfigResponseBodyData from CategoricalAnnotationConfig.

func NewContinuousAnnotationConfigCreateAnnotationConfigResponseBodyData

func NewContinuousAnnotationConfigCreateAnnotationConfigResponseBodyData(v ContinuousAnnotationConfig) CreateAnnotationConfigResponseBodyData

NewContinuousAnnotationConfigCreateAnnotationConfigResponseBodyData returns new CreateAnnotationConfigResponseBodyData from ContinuousAnnotationConfig.

func NewFreeformAnnotationConfigCreateAnnotationConfigResponseBodyData

func NewFreeformAnnotationConfigCreateAnnotationConfigResponseBodyData(v FreeformAnnotationConfig) CreateAnnotationConfigResponseBodyData

NewFreeformAnnotationConfigCreateAnnotationConfigResponseBodyData returns new CreateAnnotationConfigResponseBodyData from FreeformAnnotationConfig.

func (*CreateAnnotationConfigResponseBodyData) Decode

Decode decodes CreateAnnotationConfigResponseBodyData from json.

func (CreateAnnotationConfigResponseBodyData) Encode

Encode encodes CreateAnnotationConfigResponseBodyData as json.

func (CreateAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig

func (s CreateAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig() (v CategoricalAnnotationConfig, ok bool)

GetCategoricalAnnotationConfig returns CategoricalAnnotationConfig and true boolean if CreateAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (CreateAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig

func (s CreateAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig() (v ContinuousAnnotationConfig, ok bool)

GetContinuousAnnotationConfig returns ContinuousAnnotationConfig and true boolean if CreateAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (CreateAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig

func (s CreateAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig() (v FreeformAnnotationConfig, ok bool)

GetFreeformAnnotationConfig returns FreeformAnnotationConfig and true boolean if CreateAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (CreateAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig

func (s CreateAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig() bool

IsCategoricalAnnotationConfig reports whether CreateAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (CreateAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig

func (s CreateAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig() bool

IsContinuousAnnotationConfig reports whether CreateAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (CreateAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig

func (s CreateAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig() bool

IsFreeformAnnotationConfig reports whether CreateAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (CreateAnnotationConfigResponseBodyData) MarshalJSON

func (s CreateAnnotationConfigResponseBodyData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig

func (s *CreateAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig(v CategoricalAnnotationConfig)

SetCategoricalAnnotationConfig sets CreateAnnotationConfigResponseBodyData to CategoricalAnnotationConfig.

func (*CreateAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig

func (s *CreateAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig(v ContinuousAnnotationConfig)

SetContinuousAnnotationConfig sets CreateAnnotationConfigResponseBodyData to ContinuousAnnotationConfig.

func (*CreateAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig

func (s *CreateAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig(v FreeformAnnotationConfig)

SetFreeformAnnotationConfig sets CreateAnnotationConfigResponseBodyData to FreeformAnnotationConfig.

func (*CreateAnnotationConfigResponseBodyData) UnmarshalJSON

func (s *CreateAnnotationConfigResponseBodyData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CreateAnnotationConfigResponseBodyData) Validate

type CreateAnnotationConfigResponseBodyDataType

type CreateAnnotationConfigResponseBodyDataType string

CreateAnnotationConfigResponseBodyDataType is oneOf type of CreateAnnotationConfigResponseBodyData.

const (
	CategoricalAnnotationConfigCreateAnnotationConfigResponseBodyData CreateAnnotationConfigResponseBodyDataType = "CATEGORICAL"
	ContinuousAnnotationConfigCreateAnnotationConfigResponseBodyData  CreateAnnotationConfigResponseBodyDataType = "CONTINUOUS"
	FreeformAnnotationConfigCreateAnnotationConfigResponseBodyData    CreateAnnotationConfigResponseBodyDataType = "FREEFORM"
)

Possible values for CreateAnnotationConfigResponseBodyDataType.

type CreateAnnotationConfigV1AnnotationConfigsPostForbidden

type CreateAnnotationConfigV1AnnotationConfigsPostForbidden struct {
	Data io.Reader
}

func (CreateAnnotationConfigV1AnnotationConfigsPostForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateAnnotationConfigV1AnnotationConfigsPostRes

type CreateAnnotationConfigV1AnnotationConfigsPostRes interface {
	// contains filtered or unexported methods
}

type CreateExperimentForbidden

type CreateExperimentForbidden struct {
	Data io.Reader
}

func (CreateExperimentForbidden) Read

func (s CreateExperimentForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateExperimentNotFound

type CreateExperimentNotFound struct {
	Data io.Reader
}

func (CreateExperimentNotFound) Read

func (s CreateExperimentNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateExperimentParams

type CreateExperimentParams struct {
	DatasetID string
}

CreateExperimentParams is parameters of createExperiment operation.

type CreateExperimentRequestBody

type CreateExperimentRequestBody struct {
	// An optional description of the experiment.
	Description OptNilString `json:"description"`
	// Metadata for the experiment.
	Metadata OptNilCreateExperimentRequestBodyMetadata `json:"metadata"`
	// Name of the experiment (if omitted, a random name will be generated).
	Name OptNilString `json:"name"`
	// Number of times the experiment should be repeated for each example.
	Repetitions OptInt `json:"repetitions"`
	// List of dataset split identifiers (GlobalIDs or names) to filter by.
	Splits OptNilStringArray `json:"splits"`
	// ID of the dataset version over which the experiment will be run (if omitted, the latest version
	// will be used).
	VersionID OptNilString `json:"version_id"`
}

Details of the experiment to be created. Ref: #/components/schemas/CreateExperimentRequestBody

func (*CreateExperimentRequestBody) Decode

Decode decodes CreateExperimentRequestBody from json.

func (*CreateExperimentRequestBody) Encode

func (s *CreateExperimentRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateExperimentRequestBody) GetDescription

func (s *CreateExperimentRequestBody) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*CreateExperimentRequestBody) GetMetadata

GetMetadata returns the value of Metadata.

func (*CreateExperimentRequestBody) GetName

GetName returns the value of Name.

func (*CreateExperimentRequestBody) GetRepetitions

func (s *CreateExperimentRequestBody) GetRepetitions() OptInt

GetRepetitions returns the value of Repetitions.

func (*CreateExperimentRequestBody) GetSplits

GetSplits returns the value of Splits.

func (*CreateExperimentRequestBody) GetVersionID

func (s *CreateExperimentRequestBody) GetVersionID() OptNilString

GetVersionID returns the value of VersionID.

func (*CreateExperimentRequestBody) MarshalJSON

func (s *CreateExperimentRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateExperimentRequestBody) SetDescription

func (s *CreateExperimentRequestBody) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*CreateExperimentRequestBody) SetMetadata

SetMetadata sets the value of Metadata.

func (*CreateExperimentRequestBody) SetName

func (s *CreateExperimentRequestBody) SetName(val OptNilString)

SetName sets the value of Name.

func (*CreateExperimentRequestBody) SetRepetitions

func (s *CreateExperimentRequestBody) SetRepetitions(val OptInt)

SetRepetitions sets the value of Repetitions.

func (*CreateExperimentRequestBody) SetSplits

SetSplits sets the value of Splits.

func (*CreateExperimentRequestBody) SetVersionID

func (s *CreateExperimentRequestBody) SetVersionID(val OptNilString)

SetVersionID sets the value of VersionID.

func (*CreateExperimentRequestBody) UnmarshalJSON

func (s *CreateExperimentRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateExperimentRequestBody) Validate

func (s *CreateExperimentRequestBody) Validate() error

type CreateExperimentRequestBodyMetadata

type CreateExperimentRequestBodyMetadata map[string]jx.Raw

Metadata for the experiment.

func (*CreateExperimentRequestBodyMetadata) Decode

Decode decodes CreateExperimentRequestBodyMetadata from json.

func (CreateExperimentRequestBodyMetadata) Encode

Encode implements json.Marshaler.

func (CreateExperimentRequestBodyMetadata) MarshalJSON

func (s CreateExperimentRequestBodyMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateExperimentRequestBodyMetadata) UnmarshalJSON

func (s *CreateExperimentRequestBodyMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateExperimentRes

type CreateExperimentRes interface {
	// contains filtered or unexported methods
}

type CreateExperimentResponseBody

type CreateExperimentResponseBody struct {
	Data Experiment `json:"data"`
}

Ref: #/components/schemas/CreateExperimentResponseBody

func (*CreateExperimentResponseBody) Decode

Decode decodes CreateExperimentResponseBody from json.

func (*CreateExperimentResponseBody) Encode

func (s *CreateExperimentResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateExperimentResponseBody) GetData

GetData returns the value of Data.

func (*CreateExperimentResponseBody) MarshalJSON

func (s *CreateExperimentResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateExperimentResponseBody) SetData

func (s *CreateExperimentResponseBody) SetData(val Experiment)

SetData sets the value of Data.

func (*CreateExperimentResponseBody) UnmarshalJSON

func (s *CreateExperimentResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateExperimentRunConflict

type CreateExperimentRunConflict struct {
	Data io.Reader
}

func (CreateExperimentRunConflict) Read

func (s CreateExperimentRunConflict) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateExperimentRunForbidden

type CreateExperimentRunForbidden struct {
	Data io.Reader
}

func (CreateExperimentRunForbidden) Read

func (s CreateExperimentRunForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateExperimentRunNotFound

type CreateExperimentRunNotFound struct {
	Data io.Reader
}

func (CreateExperimentRunNotFound) Read

func (s CreateExperimentRunNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateExperimentRunParams

type CreateExperimentRunParams struct {
	ExperimentID string
}

CreateExperimentRunParams is parameters of createExperimentRun operation.

type CreateExperimentRunRequestBody

type CreateExperimentRunRequestBody struct {
	// The ID of the dataset example used in the experiment run.
	DatasetExampleID string `json:"dataset_example_id"`
	// The end time of the experiment run.
	EndTime time.Time `json:"end_time"`
	// Optional error message if the experiment run encountered an error.
	Error OptNilString `json:"error"`
	// The output of the experiment task.
	Output jx.Raw `json:"output"`
	// The repetition number of the experiment run.
	RepetitionNumber int `json:"repetition_number"`
	// The start time of the experiment run.
	StartTime time.Time `json:"start_time"`
	// The ID of the corresponding trace (if one exists).
	TraceID OptNilString `json:"trace_id"`
}

Ref: #/components/schemas/CreateExperimentRunRequestBody

func (*CreateExperimentRunRequestBody) Decode

Decode decodes CreateExperimentRunRequestBody from json.

func (*CreateExperimentRunRequestBody) Encode

Encode implements json.Marshaler.

func (*CreateExperimentRunRequestBody) GetDatasetExampleID

func (s *CreateExperimentRunRequestBody) GetDatasetExampleID() string

GetDatasetExampleID returns the value of DatasetExampleID.

func (*CreateExperimentRunRequestBody) GetEndTime

func (s *CreateExperimentRunRequestBody) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*CreateExperimentRunRequestBody) GetError

GetError returns the value of Error.

func (*CreateExperimentRunRequestBody) GetOutput

func (s *CreateExperimentRunRequestBody) GetOutput() jx.Raw

GetOutput returns the value of Output.

func (*CreateExperimentRunRequestBody) GetRepetitionNumber

func (s *CreateExperimentRunRequestBody) GetRepetitionNumber() int

GetRepetitionNumber returns the value of RepetitionNumber.

func (*CreateExperimentRunRequestBody) GetStartTime

func (s *CreateExperimentRunRequestBody) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*CreateExperimentRunRequestBody) GetTraceID

GetTraceID returns the value of TraceID.

func (*CreateExperimentRunRequestBody) MarshalJSON

func (s *CreateExperimentRunRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateExperimentRunRequestBody) SetDatasetExampleID

func (s *CreateExperimentRunRequestBody) SetDatasetExampleID(val string)

SetDatasetExampleID sets the value of DatasetExampleID.

func (*CreateExperimentRunRequestBody) SetEndTime

func (s *CreateExperimentRunRequestBody) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*CreateExperimentRunRequestBody) SetError

SetError sets the value of Error.

func (*CreateExperimentRunRequestBody) SetOutput

func (s *CreateExperimentRunRequestBody) SetOutput(val jx.Raw)

SetOutput sets the value of Output.

func (*CreateExperimentRunRequestBody) SetRepetitionNumber

func (s *CreateExperimentRunRequestBody) SetRepetitionNumber(val int)

SetRepetitionNumber sets the value of RepetitionNumber.

func (*CreateExperimentRunRequestBody) SetStartTime

func (s *CreateExperimentRunRequestBody) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*CreateExperimentRunRequestBody) SetTraceID

func (s *CreateExperimentRunRequestBody) SetTraceID(val OptNilString)

SetTraceID sets the value of TraceID.

func (*CreateExperimentRunRequestBody) UnmarshalJSON

func (s *CreateExperimentRunRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateExperimentRunRes

type CreateExperimentRunRes interface {
	// contains filtered or unexported methods
}

type CreateExperimentRunResponseBody

type CreateExperimentRunResponseBody struct {
	Data CreateExperimentRunResponseBodyData `json:"data"`
}

Ref: #/components/schemas/CreateExperimentRunResponseBody

func (*CreateExperimentRunResponseBody) Decode

Decode decodes CreateExperimentRunResponseBody from json.

func (*CreateExperimentRunResponseBody) Encode

Encode implements json.Marshaler.

func (*CreateExperimentRunResponseBody) GetData

GetData returns the value of Data.

func (*CreateExperimentRunResponseBody) MarshalJSON

func (s *CreateExperimentRunResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateExperimentRunResponseBody) SetData

SetData sets the value of Data.

func (*CreateExperimentRunResponseBody) UnmarshalJSON

func (s *CreateExperimentRunResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateExperimentRunResponseBodyData

type CreateExperimentRunResponseBodyData struct {
	// The ID of the newly created experiment run.
	ID string `json:"id"`
}

Ref: #/components/schemas/CreateExperimentRunResponseBodyData

func (*CreateExperimentRunResponseBodyData) Decode

Decode decodes CreateExperimentRunResponseBodyData from json.

func (*CreateExperimentRunResponseBodyData) Encode

Encode implements json.Marshaler.

func (*CreateExperimentRunResponseBodyData) GetID

GetID returns the value of ID.

func (*CreateExperimentRunResponseBodyData) MarshalJSON

func (s *CreateExperimentRunResponseBodyData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateExperimentRunResponseBodyData) SetID

SetID sets the value of ID.

func (*CreateExperimentRunResponseBodyData) UnmarshalJSON

func (s *CreateExperimentRunResponseBodyData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectForbidden

type CreateProjectForbidden struct {
	Data io.Reader
}

func (CreateProjectForbidden) Read

func (s CreateProjectForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateProjectRequestBody

type CreateProjectRequestBody struct {
	Description OptNilString `json:"description"`
	Name        string       `json:"name"`
}

Ref: #/components/schemas/CreateProjectRequestBody

func (*CreateProjectRequestBody) Decode

func (s *CreateProjectRequestBody) Decode(d *jx.Decoder) error

Decode decodes CreateProjectRequestBody from json.

func (*CreateProjectRequestBody) Encode

func (s *CreateProjectRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateProjectRequestBody) GetDescription

func (s *CreateProjectRequestBody) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*CreateProjectRequestBody) GetName

func (s *CreateProjectRequestBody) GetName() string

GetName returns the value of Name.

func (*CreateProjectRequestBody) MarshalJSON

func (s *CreateProjectRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectRequestBody) SetDescription

func (s *CreateProjectRequestBody) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*CreateProjectRequestBody) SetName

func (s *CreateProjectRequestBody) SetName(val string)

SetName sets the value of Name.

func (*CreateProjectRequestBody) UnmarshalJSON

func (s *CreateProjectRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateProjectRequestBody) Validate

func (s *CreateProjectRequestBody) Validate() error

type CreateProjectRes

type CreateProjectRes interface {
	// contains filtered or unexported methods
}

type CreateProjectResponseBody

type CreateProjectResponseBody struct {
	Data Project `json:"data"`
}

Ref: #/components/schemas/CreateProjectResponseBody

func (*CreateProjectResponseBody) Decode

func (s *CreateProjectResponseBody) Decode(d *jx.Decoder) error

Decode decodes CreateProjectResponseBody from json.

func (*CreateProjectResponseBody) Encode

func (s *CreateProjectResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateProjectResponseBody) GetData

func (s *CreateProjectResponseBody) GetData() Project

GetData returns the value of Data.

func (*CreateProjectResponseBody) MarshalJSON

func (s *CreateProjectResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectResponseBody) SetData

func (s *CreateProjectResponseBody) SetData(val Project)

SetData sets the value of Data.

func (*CreateProjectResponseBody) UnmarshalJSON

func (s *CreateProjectResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateProjectResponseBody) Validate

func (s *CreateProjectResponseBody) Validate() error

type CreateProjectUnprocessableEntity

type CreateProjectUnprocessableEntity struct {
	Data io.Reader
}

func (CreateProjectUnprocessableEntity) Read

func (s CreateProjectUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreatePromptRequestBody

type CreatePromptRequestBody struct {
	Prompt  PromptData        `json:"prompt"`
	Version PromptVersionData `json:"version"`
}

Ref: #/components/schemas/CreatePromptRequestBody

func (*CreatePromptRequestBody) Decode

func (s *CreatePromptRequestBody) Decode(d *jx.Decoder) error

Decode decodes CreatePromptRequestBody from json.

func (*CreatePromptRequestBody) Encode

func (s *CreatePromptRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatePromptRequestBody) GetPrompt

func (s *CreatePromptRequestBody) GetPrompt() PromptData

GetPrompt returns the value of Prompt.

func (*CreatePromptRequestBody) GetVersion

GetVersion returns the value of Version.

func (*CreatePromptRequestBody) MarshalJSON

func (s *CreatePromptRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePromptRequestBody) SetPrompt

func (s *CreatePromptRequestBody) SetPrompt(val PromptData)

SetPrompt sets the value of Prompt.

func (*CreatePromptRequestBody) SetVersion

func (s *CreatePromptRequestBody) SetVersion(val PromptVersionData)

SetVersion sets the value of Version.

func (*CreatePromptRequestBody) UnmarshalJSON

func (s *CreatePromptRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePromptRequestBody) Validate

func (s *CreatePromptRequestBody) Validate() error

type CreatePromptResponseBody

type CreatePromptResponseBody struct {
	Data PromptVersion `json:"data"`
}

Ref: #/components/schemas/CreatePromptResponseBody

func (*CreatePromptResponseBody) Decode

func (s *CreatePromptResponseBody) Decode(d *jx.Decoder) error

Decode decodes CreatePromptResponseBody from json.

func (*CreatePromptResponseBody) Encode

func (s *CreatePromptResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatePromptResponseBody) GetData

GetData returns the value of Data.

func (*CreatePromptResponseBody) MarshalJSON

func (s *CreatePromptResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePromptResponseBody) SetData

func (s *CreatePromptResponseBody) SetData(val PromptVersion)

SetData sets the value of Data.

func (*CreatePromptResponseBody) UnmarshalJSON

func (s *CreatePromptResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePromptResponseBody) Validate

func (s *CreatePromptResponseBody) Validate() error

type CreatePromptVersionTagForbidden

type CreatePromptVersionTagForbidden struct {
	Data io.Reader
}

func (CreatePromptVersionTagForbidden) Read

func (s CreatePromptVersionTagForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreatePromptVersionTagNoContent

type CreatePromptVersionTagNoContent struct{}

CreatePromptVersionTagNoContent is response for CreatePromptVersionTag operation.

type CreatePromptVersionTagNotFound

type CreatePromptVersionTagNotFound struct {
	Data io.Reader
}

func (CreatePromptVersionTagNotFound) Read

func (s CreatePromptVersionTagNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreatePromptVersionTagParams

type CreatePromptVersionTagParams struct {
	// The ID of the prompt version.
	PromptVersionID string
}

CreatePromptVersionTagParams is parameters of createPromptVersionTag operation.

type CreatePromptVersionTagRes

type CreatePromptVersionTagRes interface {
	// contains filtered or unexported methods
}

type CreatePromptVersionTagUnprocessableEntity

type CreatePromptVersionTagUnprocessableEntity struct {
	Data io.Reader
}

func (CreatePromptVersionTagUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateSpanNoteForbidden

type CreateSpanNoteForbidden struct {
	Data io.Reader
}

func (CreateSpanNoteForbidden) Read

func (s CreateSpanNoteForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateSpanNoteNotFound

type CreateSpanNoteNotFound struct {
	Data io.Reader
}

func (CreateSpanNoteNotFound) Read

func (s CreateSpanNoteNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateSpanNoteRequestBody

type CreateSpanNoteRequestBody struct {
	Data SpanNoteData `json:"data"`
}

Ref: #/components/schemas/CreateSpanNoteRequestBody

func (*CreateSpanNoteRequestBody) Decode

func (s *CreateSpanNoteRequestBody) Decode(d *jx.Decoder) error

Decode decodes CreateSpanNoteRequestBody from json.

func (*CreateSpanNoteRequestBody) Encode

func (s *CreateSpanNoteRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSpanNoteRequestBody) GetData

GetData returns the value of Data.

func (*CreateSpanNoteRequestBody) MarshalJSON

func (s *CreateSpanNoteRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSpanNoteRequestBody) SetData

func (s *CreateSpanNoteRequestBody) SetData(val SpanNoteData)

SetData sets the value of Data.

func (*CreateSpanNoteRequestBody) UnmarshalJSON

func (s *CreateSpanNoteRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateSpanNoteRequestBody) Validate

func (s *CreateSpanNoteRequestBody) Validate() error

type CreateSpanNoteRes

type CreateSpanNoteRes interface {
	// contains filtered or unexported methods
}

type CreateSpanNoteResponseBody

type CreateSpanNoteResponseBody struct {
	Data InsertedSpanAnnotation `json:"data"`
}

Ref: #/components/schemas/CreateSpanNoteResponseBody

func (*CreateSpanNoteResponseBody) Decode

Decode decodes CreateSpanNoteResponseBody from json.

func (*CreateSpanNoteResponseBody) Encode

func (s *CreateSpanNoteResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSpanNoteResponseBody) GetData

GetData returns the value of Data.

func (*CreateSpanNoteResponseBody) MarshalJSON

func (s *CreateSpanNoteResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSpanNoteResponseBody) SetData

SetData sets the value of Data.

func (*CreateSpanNoteResponseBody) UnmarshalJSON

func (s *CreateSpanNoteResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSpansBadRequest

type CreateSpansBadRequest struct {
	Data io.Reader
}

func (CreateSpansBadRequest) Read

func (s CreateSpansBadRequest) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateSpansForbidden

type CreateSpansForbidden struct {
	Data io.Reader
}

func (CreateSpansForbidden) Read

func (s CreateSpansForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateSpansNotFound

type CreateSpansNotFound struct {
	Data io.Reader
}

func (CreateSpansNotFound) Read

func (s CreateSpansNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateSpansParams

type CreateSpansParams struct {
	// The project identifier: either project ID or project name. If using a project name, it cannot
	// contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
}

CreateSpansParams is parameters of createSpans operation.

type CreateSpansRequestBody

type CreateSpansRequestBody struct {
	Data []Span `json:"data"`
}

Ref: #/components/schemas/CreateSpansRequestBody

func (*CreateSpansRequestBody) Decode

func (s *CreateSpansRequestBody) Decode(d *jx.Decoder) error

Decode decodes CreateSpansRequestBody from json.

func (*CreateSpansRequestBody) Encode

func (s *CreateSpansRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSpansRequestBody) GetData

func (s *CreateSpansRequestBody) GetData() []Span

GetData returns the value of Data.

func (*CreateSpansRequestBody) MarshalJSON

func (s *CreateSpansRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSpansRequestBody) SetData

func (s *CreateSpansRequestBody) SetData(val []Span)

SetData sets the value of Data.

func (*CreateSpansRequestBody) UnmarshalJSON

func (s *CreateSpansRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateSpansRequestBody) Validate

func (s *CreateSpansRequestBody) Validate() error

type CreateSpansRes

type CreateSpansRes interface {
	// contains filtered or unexported methods
}

type CreateSpansResponseBody

type CreateSpansResponseBody struct {
	// Number of spans successfully queued for insertion.
	TotalQueued int `json:"total_queued"`
	// Total number of spans received.
	TotalReceived int `json:"total_received"`
}

Ref: #/components/schemas/CreateSpansResponseBody

func (*CreateSpansResponseBody) Decode

func (s *CreateSpansResponseBody) Decode(d *jx.Decoder) error

Decode decodes CreateSpansResponseBody from json.

func (*CreateSpansResponseBody) Encode

func (s *CreateSpansResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSpansResponseBody) GetTotalQueued

func (s *CreateSpansResponseBody) GetTotalQueued() int

GetTotalQueued returns the value of TotalQueued.

func (*CreateSpansResponseBody) GetTotalReceived

func (s *CreateSpansResponseBody) GetTotalReceived() int

GetTotalReceived returns the value of TotalReceived.

func (*CreateSpansResponseBody) MarshalJSON

func (s *CreateSpansResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSpansResponseBody) SetTotalQueued

func (s *CreateSpansResponseBody) SetTotalQueued(val int)

SetTotalQueued sets the value of TotalQueued.

func (*CreateSpansResponseBody) SetTotalReceived

func (s *CreateSpansResponseBody) SetTotalReceived(val int)

SetTotalReceived sets the value of TotalReceived.

func (*CreateSpansResponseBody) UnmarshalJSON

func (s *CreateSpansResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUserBadRequest

type CreateUserBadRequest struct {
	Data io.Reader
}

func (CreateUserBadRequest) Read

func (s CreateUserBadRequest) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateUserConflict

type CreateUserConflict struct {
	Data io.Reader
}

func (CreateUserConflict) Read

func (s CreateUserConflict) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateUserForbidden

type CreateUserForbidden struct {
	Data io.Reader
}

func (CreateUserForbidden) Read

func (s CreateUserForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateUserRequestBody

type CreateUserRequestBody struct {
	SendWelcomeEmail OptBool                   `json:"send_welcome_email"`
	User             CreateUserRequestBodyUser `json:"user"`
}

Ref: #/components/schemas/CreateUserRequestBody

func (*CreateUserRequestBody) Decode

func (s *CreateUserRequestBody) Decode(d *jx.Decoder) error

Decode decodes CreateUserRequestBody from json.

func (*CreateUserRequestBody) Encode

func (s *CreateUserRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateUserRequestBody) GetSendWelcomeEmail

func (s *CreateUserRequestBody) GetSendWelcomeEmail() OptBool

GetSendWelcomeEmail returns the value of SendWelcomeEmail.

func (*CreateUserRequestBody) GetUser

GetUser returns the value of User.

func (*CreateUserRequestBody) MarshalJSON

func (s *CreateUserRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserRequestBody) SetSendWelcomeEmail

func (s *CreateUserRequestBody) SetSendWelcomeEmail(val OptBool)

SetSendWelcomeEmail sets the value of SendWelcomeEmail.

func (*CreateUserRequestBody) SetUser

SetUser sets the value of User.

func (*CreateUserRequestBody) UnmarshalJSON

func (s *CreateUserRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateUserRequestBody) Validate

func (s *CreateUserRequestBody) Validate() error

type CreateUserRequestBodyUser

type CreateUserRequestBodyUser struct {
	Type           CreateUserRequestBodyUserType // switch on this field
	LocalUserData  LocalUserData
	OAuth2UserData OAuth2UserData
	LDAPUserData   LDAPUserData
}

CreateUserRequestBodyUser represents sum type.

func NewLDAPUserDataCreateUserRequestBodyUser

func NewLDAPUserDataCreateUserRequestBodyUser(v LDAPUserData) CreateUserRequestBodyUser

NewLDAPUserDataCreateUserRequestBodyUser returns new CreateUserRequestBodyUser from LDAPUserData.

func NewLocalUserDataCreateUserRequestBodyUser

func NewLocalUserDataCreateUserRequestBodyUser(v LocalUserData) CreateUserRequestBodyUser

NewLocalUserDataCreateUserRequestBodyUser returns new CreateUserRequestBodyUser from LocalUserData.

func NewOAuth2UserDataCreateUserRequestBodyUser

func NewOAuth2UserDataCreateUserRequestBodyUser(v OAuth2UserData) CreateUserRequestBodyUser

NewOAuth2UserDataCreateUserRequestBodyUser returns new CreateUserRequestBodyUser from OAuth2UserData.

func (*CreateUserRequestBodyUser) Decode

func (s *CreateUserRequestBodyUser) Decode(d *jx.Decoder) error

Decode decodes CreateUserRequestBodyUser from json.

func (CreateUserRequestBodyUser) Encode

func (s CreateUserRequestBodyUser) Encode(e *jx.Encoder)

Encode encodes CreateUserRequestBodyUser as json.

func (CreateUserRequestBodyUser) GetLDAPUserData

func (s CreateUserRequestBodyUser) GetLDAPUserData() (v LDAPUserData, ok bool)

GetLDAPUserData returns LDAPUserData and true boolean if CreateUserRequestBodyUser is LDAPUserData.

func (CreateUserRequestBodyUser) GetLocalUserData

func (s CreateUserRequestBodyUser) GetLocalUserData() (v LocalUserData, ok bool)

GetLocalUserData returns LocalUserData and true boolean if CreateUserRequestBodyUser is LocalUserData.

func (CreateUserRequestBodyUser) GetOAuth2UserData

func (s CreateUserRequestBodyUser) GetOAuth2UserData() (v OAuth2UserData, ok bool)

GetOAuth2UserData returns OAuth2UserData and true boolean if CreateUserRequestBodyUser is OAuth2UserData.

func (CreateUserRequestBodyUser) IsLDAPUserData

func (s CreateUserRequestBodyUser) IsLDAPUserData() bool

IsLDAPUserData reports whether CreateUserRequestBodyUser is LDAPUserData.

func (CreateUserRequestBodyUser) IsLocalUserData

func (s CreateUserRequestBodyUser) IsLocalUserData() bool

IsLocalUserData reports whether CreateUserRequestBodyUser is LocalUserData.

func (CreateUserRequestBodyUser) IsOAuth2UserData

func (s CreateUserRequestBodyUser) IsOAuth2UserData() bool

IsOAuth2UserData reports whether CreateUserRequestBodyUser is OAuth2UserData.

func (CreateUserRequestBodyUser) MarshalJSON

func (s CreateUserRequestBodyUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserRequestBodyUser) SetLDAPUserData

func (s *CreateUserRequestBodyUser) SetLDAPUserData(v LDAPUserData)

SetLDAPUserData sets CreateUserRequestBodyUser to LDAPUserData.

func (*CreateUserRequestBodyUser) SetLocalUserData

func (s *CreateUserRequestBodyUser) SetLocalUserData(v LocalUserData)

SetLocalUserData sets CreateUserRequestBodyUser to LocalUserData.

func (*CreateUserRequestBodyUser) SetOAuth2UserData

func (s *CreateUserRequestBodyUser) SetOAuth2UserData(v OAuth2UserData)

SetOAuth2UserData sets CreateUserRequestBodyUser to OAuth2UserData.

func (*CreateUserRequestBodyUser) UnmarshalJSON

func (s *CreateUserRequestBodyUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CreateUserRequestBodyUser) Validate

func (s CreateUserRequestBodyUser) Validate() error

type CreateUserRequestBodyUserType

type CreateUserRequestBodyUserType string

CreateUserRequestBodyUserType is oneOf type of CreateUserRequestBodyUser.

const (
	LocalUserDataCreateUserRequestBodyUser  CreateUserRequestBodyUserType = "LOCAL"
	OAuth2UserDataCreateUserRequestBodyUser CreateUserRequestBodyUserType = "OAUTH2"
	LDAPUserDataCreateUserRequestBodyUser   CreateUserRequestBodyUserType = "LDAP"
)

Possible values for CreateUserRequestBodyUserType.

type CreateUserRes

type CreateUserRes interface {
	// contains filtered or unexported methods
}

type CreateUserResponseBody

type CreateUserResponseBody struct {
	Data CreateUserResponseBodyData `json:"data"`
}

Ref: #/components/schemas/CreateUserResponseBody

func (*CreateUserResponseBody) Decode

func (s *CreateUserResponseBody) Decode(d *jx.Decoder) error

Decode decodes CreateUserResponseBody from json.

func (*CreateUserResponseBody) Encode

func (s *CreateUserResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateUserResponseBody) GetData

GetData returns the value of Data.

func (*CreateUserResponseBody) MarshalJSON

func (s *CreateUserResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserResponseBody) SetData

SetData sets the value of Data.

func (*CreateUserResponseBody) UnmarshalJSON

func (s *CreateUserResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateUserResponseBody) Validate

func (s *CreateUserResponseBody) Validate() error

type CreateUserResponseBodyData

type CreateUserResponseBodyData struct {
	Type       CreateUserResponseBodyDataType // switch on this field
	LocalUser  LocalUser
	OAuth2User OAuth2User
	LDAPUser   LDAPUser
}

CreateUserResponseBodyData represents sum type.

func NewLDAPUserCreateUserResponseBodyData

func NewLDAPUserCreateUserResponseBodyData(v LDAPUser) CreateUserResponseBodyData

NewLDAPUserCreateUserResponseBodyData returns new CreateUserResponseBodyData from LDAPUser.

func NewLocalUserCreateUserResponseBodyData

func NewLocalUserCreateUserResponseBodyData(v LocalUser) CreateUserResponseBodyData

NewLocalUserCreateUserResponseBodyData returns new CreateUserResponseBodyData from LocalUser.

func NewOAuth2UserCreateUserResponseBodyData

func NewOAuth2UserCreateUserResponseBodyData(v OAuth2User) CreateUserResponseBodyData

NewOAuth2UserCreateUserResponseBodyData returns new CreateUserResponseBodyData from OAuth2User.

func (*CreateUserResponseBodyData) Decode

Decode decodes CreateUserResponseBodyData from json.

func (CreateUserResponseBodyData) Encode

func (s CreateUserResponseBodyData) Encode(e *jx.Encoder)

Encode encodes CreateUserResponseBodyData as json.

func (CreateUserResponseBodyData) GetLDAPUser

func (s CreateUserResponseBodyData) GetLDAPUser() (v LDAPUser, ok bool)

GetLDAPUser returns LDAPUser and true boolean if CreateUserResponseBodyData is LDAPUser.

func (CreateUserResponseBodyData) GetLocalUser

func (s CreateUserResponseBodyData) GetLocalUser() (v LocalUser, ok bool)

GetLocalUser returns LocalUser and true boolean if CreateUserResponseBodyData is LocalUser.

func (CreateUserResponseBodyData) GetOAuth2User

func (s CreateUserResponseBodyData) GetOAuth2User() (v OAuth2User, ok bool)

GetOAuth2User returns OAuth2User and true boolean if CreateUserResponseBodyData is OAuth2User.

func (CreateUserResponseBodyData) IsLDAPUser

func (s CreateUserResponseBodyData) IsLDAPUser() bool

IsLDAPUser reports whether CreateUserResponseBodyData is LDAPUser.

func (CreateUserResponseBodyData) IsLocalUser

func (s CreateUserResponseBodyData) IsLocalUser() bool

IsLocalUser reports whether CreateUserResponseBodyData is LocalUser.

func (CreateUserResponseBodyData) IsOAuth2User

func (s CreateUserResponseBodyData) IsOAuth2User() bool

IsOAuth2User reports whether CreateUserResponseBodyData is OAuth2User.

func (CreateUserResponseBodyData) MarshalJSON

func (s CreateUserResponseBodyData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserResponseBodyData) SetLDAPUser

func (s *CreateUserResponseBodyData) SetLDAPUser(v LDAPUser)

SetLDAPUser sets CreateUserResponseBodyData to LDAPUser.

func (*CreateUserResponseBodyData) SetLocalUser

func (s *CreateUserResponseBodyData) SetLocalUser(v LocalUser)

SetLocalUser sets CreateUserResponseBodyData to LocalUser.

func (*CreateUserResponseBodyData) SetOAuth2User

func (s *CreateUserResponseBodyData) SetOAuth2User(v OAuth2User)

SetOAuth2User sets CreateUserResponseBodyData to OAuth2User.

func (*CreateUserResponseBodyData) UnmarshalJSON

func (s *CreateUserResponseBodyData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CreateUserResponseBodyData) Validate

func (s CreateUserResponseBodyData) Validate() error

type CreateUserResponseBodyDataType

type CreateUserResponseBodyDataType string

CreateUserResponseBodyDataType is oneOf type of CreateUserResponseBodyData.

const (
	LocalUserCreateUserResponseBodyData  CreateUserResponseBodyDataType = "LOCAL"
	OAuth2UserCreateUserResponseBodyData CreateUserResponseBodyDataType = "OAUTH2"
	LDAPUserCreateUserResponseBodyData   CreateUserResponseBodyDataType = "LDAP"
)

Possible values for CreateUserResponseBodyDataType.

type CreateUserUnprocessableEntity

type CreateUserUnprocessableEntity struct {
	Data io.Reader
}

func (CreateUserUnprocessableEntity) Read

func (s CreateUserUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type Dataset

type Dataset struct {
	CreatedAt    time.Time       `json:"created_at"`
	Description  NilString       `json:"description"`
	ExampleCount int             `json:"example_count"`
	ID           string          `json:"id"`
	Metadata     DatasetMetadata `json:"metadata"`
	Name         string          `json:"name"`
	UpdatedAt    time.Time       `json:"updated_at"`
}

Ref: #/components/schemas/Dataset

func (*Dataset) Decode

func (s *Dataset) Decode(d *jx.Decoder) error

Decode decodes Dataset from json.

func (*Dataset) Encode

func (s *Dataset) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Dataset) GetCreatedAt

func (s *Dataset) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Dataset) GetDescription

func (s *Dataset) GetDescription() NilString

GetDescription returns the value of Description.

func (*Dataset) GetExampleCount

func (s *Dataset) GetExampleCount() int

GetExampleCount returns the value of ExampleCount.

func (*Dataset) GetID

func (s *Dataset) GetID() string

GetID returns the value of ID.

func (*Dataset) GetMetadata

func (s *Dataset) GetMetadata() DatasetMetadata

GetMetadata returns the value of Metadata.

func (*Dataset) GetName

func (s *Dataset) GetName() string

GetName returns the value of Name.

func (*Dataset) GetUpdatedAt

func (s *Dataset) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*Dataset) MarshalJSON

func (s *Dataset) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Dataset) SetCreatedAt

func (s *Dataset) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Dataset) SetDescription

func (s *Dataset) SetDescription(val NilString)

SetDescription sets the value of Description.

func (*Dataset) SetExampleCount

func (s *Dataset) SetExampleCount(val int)

SetExampleCount sets the value of ExampleCount.

func (*Dataset) SetID

func (s *Dataset) SetID(val string)

SetID sets the value of ID.

func (*Dataset) SetMetadata

func (s *Dataset) SetMetadata(val DatasetMetadata)

SetMetadata sets the value of Metadata.

func (*Dataset) SetName

func (s *Dataset) SetName(val string)

SetName sets the value of Name.

func (*Dataset) SetUpdatedAt

func (s *Dataset) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*Dataset) UnmarshalJSON

func (s *Dataset) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetExample

type DatasetExample struct {
	ID        string                 `json:"id"`
	Input     DatasetExampleInput    `json:"input"`
	Metadata  DatasetExampleMetadata `json:"metadata"`
	Output    DatasetExampleOutput   `json:"output"`
	UpdatedAt time.Time              `json:"updated_at"`
}

Ref: #/components/schemas/DatasetExample

func (*DatasetExample) Decode

func (s *DatasetExample) Decode(d *jx.Decoder) error

Decode decodes DatasetExample from json.

func (*DatasetExample) Encode

func (s *DatasetExample) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatasetExample) GetID

func (s *DatasetExample) GetID() string

GetID returns the value of ID.

func (*DatasetExample) GetInput

func (s *DatasetExample) GetInput() DatasetExampleInput

GetInput returns the value of Input.

func (*DatasetExample) GetMetadata

func (s *DatasetExample) GetMetadata() DatasetExampleMetadata

GetMetadata returns the value of Metadata.

func (*DatasetExample) GetOutput

func (s *DatasetExample) GetOutput() DatasetExampleOutput

GetOutput returns the value of Output.

func (*DatasetExample) GetUpdatedAt

func (s *DatasetExample) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*DatasetExample) MarshalJSON

func (s *DatasetExample) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetExample) SetID

func (s *DatasetExample) SetID(val string)

SetID sets the value of ID.

func (*DatasetExample) SetInput

func (s *DatasetExample) SetInput(val DatasetExampleInput)

SetInput sets the value of Input.

func (*DatasetExample) SetMetadata

func (s *DatasetExample) SetMetadata(val DatasetExampleMetadata)

SetMetadata sets the value of Metadata.

func (*DatasetExample) SetOutput

func (s *DatasetExample) SetOutput(val DatasetExampleOutput)

SetOutput sets the value of Output.

func (*DatasetExample) SetUpdatedAt

func (s *DatasetExample) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*DatasetExample) UnmarshalJSON

func (s *DatasetExample) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetExampleInput

type DatasetExampleInput map[string]jx.Raw

func (*DatasetExampleInput) Decode

func (s *DatasetExampleInput) Decode(d *jx.Decoder) error

Decode decodes DatasetExampleInput from json.

func (DatasetExampleInput) Encode

func (s DatasetExampleInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (DatasetExampleInput) MarshalJSON

func (s DatasetExampleInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetExampleInput) UnmarshalJSON

func (s *DatasetExampleInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetExampleMetadata

type DatasetExampleMetadata map[string]jx.Raw

func (*DatasetExampleMetadata) Decode

func (s *DatasetExampleMetadata) Decode(d *jx.Decoder) error

Decode decodes DatasetExampleMetadata from json.

func (DatasetExampleMetadata) Encode

func (s DatasetExampleMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (DatasetExampleMetadata) MarshalJSON

func (s DatasetExampleMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetExampleMetadata) UnmarshalJSON

func (s *DatasetExampleMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetExampleOutput

type DatasetExampleOutput map[string]jx.Raw

func (*DatasetExampleOutput) Decode

func (s *DatasetExampleOutput) Decode(d *jx.Decoder) error

Decode decodes DatasetExampleOutput from json.

func (DatasetExampleOutput) Encode

func (s DatasetExampleOutput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (DatasetExampleOutput) MarshalJSON

func (s DatasetExampleOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetExampleOutput) UnmarshalJSON

func (s *DatasetExampleOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetMetadata

type DatasetMetadata map[string]jx.Raw

func (*DatasetMetadata) Decode

func (s *DatasetMetadata) Decode(d *jx.Decoder) error

Decode decodes DatasetMetadata from json.

func (DatasetMetadata) Encode

func (s DatasetMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (DatasetMetadata) MarshalJSON

func (s DatasetMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetMetadata) UnmarshalJSON

func (s *DatasetMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetVersion

type DatasetVersion struct {
	CreatedAt   time.Time              `json:"created_at"`
	Description NilString              `json:"description"`
	Metadata    DatasetVersionMetadata `json:"metadata"`
	VersionID   string                 `json:"version_id"`
}

Ref: #/components/schemas/DatasetVersion

func (*DatasetVersion) Decode

func (s *DatasetVersion) Decode(d *jx.Decoder) error

Decode decodes DatasetVersion from json.

func (*DatasetVersion) Encode

func (s *DatasetVersion) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatasetVersion) GetCreatedAt

func (s *DatasetVersion) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*DatasetVersion) GetDescription

func (s *DatasetVersion) GetDescription() NilString

GetDescription returns the value of Description.

func (*DatasetVersion) GetMetadata

func (s *DatasetVersion) GetMetadata() DatasetVersionMetadata

GetMetadata returns the value of Metadata.

func (*DatasetVersion) GetVersionID

func (s *DatasetVersion) GetVersionID() string

GetVersionID returns the value of VersionID.

func (*DatasetVersion) MarshalJSON

func (s *DatasetVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetVersion) SetCreatedAt

func (s *DatasetVersion) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*DatasetVersion) SetDescription

func (s *DatasetVersion) SetDescription(val NilString)

SetDescription sets the value of Description.

func (*DatasetVersion) SetMetadata

func (s *DatasetVersion) SetMetadata(val DatasetVersionMetadata)

SetMetadata sets the value of Metadata.

func (*DatasetVersion) SetVersionID

func (s *DatasetVersion) SetVersionID(val string)

SetVersionID sets the value of VersionID.

func (*DatasetVersion) UnmarshalJSON

func (s *DatasetVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetVersionMetadata

type DatasetVersionMetadata map[string]jx.Raw

func (*DatasetVersionMetadata) Decode

func (s *DatasetVersionMetadata) Decode(d *jx.Decoder) error

Decode decodes DatasetVersionMetadata from json.

func (DatasetVersionMetadata) Encode

func (s DatasetVersionMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (DatasetVersionMetadata) MarshalJSON

func (s DatasetVersionMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetVersionMetadata) UnmarshalJSON

func (s *DatasetVersionMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetWithExampleCount

type DatasetWithExampleCount struct {
	CreatedAt    time.Time                       `json:"created_at"`
	Description  NilString                       `json:"description"`
	ExampleCount int                             `json:"example_count"`
	ID           string                          `json:"id"`
	Metadata     DatasetWithExampleCountMetadata `json:"metadata"`
	Name         string                          `json:"name"`
	UpdatedAt    time.Time                       `json:"updated_at"`
}

Ref: #/components/schemas/DatasetWithExampleCount

func (*DatasetWithExampleCount) Decode

func (s *DatasetWithExampleCount) Decode(d *jx.Decoder) error

Decode decodes DatasetWithExampleCount from json.

func (*DatasetWithExampleCount) Encode

func (s *DatasetWithExampleCount) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatasetWithExampleCount) GetCreatedAt

func (s *DatasetWithExampleCount) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*DatasetWithExampleCount) GetDescription

func (s *DatasetWithExampleCount) GetDescription() NilString

GetDescription returns the value of Description.

func (*DatasetWithExampleCount) GetExampleCount

func (s *DatasetWithExampleCount) GetExampleCount() int

GetExampleCount returns the value of ExampleCount.

func (*DatasetWithExampleCount) GetID

func (s *DatasetWithExampleCount) GetID() string

GetID returns the value of ID.

func (*DatasetWithExampleCount) GetMetadata

GetMetadata returns the value of Metadata.

func (*DatasetWithExampleCount) GetName

func (s *DatasetWithExampleCount) GetName() string

GetName returns the value of Name.

func (*DatasetWithExampleCount) GetUpdatedAt

func (s *DatasetWithExampleCount) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*DatasetWithExampleCount) MarshalJSON

func (s *DatasetWithExampleCount) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetWithExampleCount) SetCreatedAt

func (s *DatasetWithExampleCount) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*DatasetWithExampleCount) SetDescription

func (s *DatasetWithExampleCount) SetDescription(val NilString)

SetDescription sets the value of Description.

func (*DatasetWithExampleCount) SetExampleCount

func (s *DatasetWithExampleCount) SetExampleCount(val int)

SetExampleCount sets the value of ExampleCount.

func (*DatasetWithExampleCount) SetID

func (s *DatasetWithExampleCount) SetID(val string)

SetID sets the value of ID.

func (*DatasetWithExampleCount) SetMetadata

SetMetadata sets the value of Metadata.

func (*DatasetWithExampleCount) SetName

func (s *DatasetWithExampleCount) SetName(val string)

SetName sets the value of Name.

func (*DatasetWithExampleCount) SetUpdatedAt

func (s *DatasetWithExampleCount) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*DatasetWithExampleCount) UnmarshalJSON

func (s *DatasetWithExampleCount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatasetWithExampleCountMetadata

type DatasetWithExampleCountMetadata map[string]jx.Raw

func (*DatasetWithExampleCountMetadata) Decode

Decode decodes DatasetWithExampleCountMetadata from json.

func (DatasetWithExampleCountMetadata) Encode

Encode implements json.Marshaler.

func (DatasetWithExampleCountMetadata) MarshalJSON

func (s DatasetWithExampleCountMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatasetWithExampleCountMetadata) UnmarshalJSON

func (s *DatasetWithExampleCountMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteAnnotationConfigResponseBody

type DeleteAnnotationConfigResponseBody struct {
	Data DeleteAnnotationConfigResponseBodyData `json:"data"`
}

Ref: #/components/schemas/DeleteAnnotationConfigResponseBody

func (*DeleteAnnotationConfigResponseBody) Decode

Decode decodes DeleteAnnotationConfigResponseBody from json.

func (*DeleteAnnotationConfigResponseBody) Encode

Encode implements json.Marshaler.

func (*DeleteAnnotationConfigResponseBody) GetData

GetData returns the value of Data.

func (*DeleteAnnotationConfigResponseBody) MarshalJSON

func (s *DeleteAnnotationConfigResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteAnnotationConfigResponseBody) SetData

SetData sets the value of Data.

func (*DeleteAnnotationConfigResponseBody) UnmarshalJSON

func (s *DeleteAnnotationConfigResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteAnnotationConfigResponseBody) Validate

type DeleteAnnotationConfigResponseBodyData

type DeleteAnnotationConfigResponseBodyData struct {
	Type                        DeleteAnnotationConfigResponseBodyDataType // switch on this field
	CategoricalAnnotationConfig CategoricalAnnotationConfig
	ContinuousAnnotationConfig  ContinuousAnnotationConfig
	FreeformAnnotationConfig    FreeformAnnotationConfig
}

DeleteAnnotationConfigResponseBodyData represents sum type.

func NewCategoricalAnnotationConfigDeleteAnnotationConfigResponseBodyData

func NewCategoricalAnnotationConfigDeleteAnnotationConfigResponseBodyData(v CategoricalAnnotationConfig) DeleteAnnotationConfigResponseBodyData

NewCategoricalAnnotationConfigDeleteAnnotationConfigResponseBodyData returns new DeleteAnnotationConfigResponseBodyData from CategoricalAnnotationConfig.

func NewContinuousAnnotationConfigDeleteAnnotationConfigResponseBodyData

func NewContinuousAnnotationConfigDeleteAnnotationConfigResponseBodyData(v ContinuousAnnotationConfig) DeleteAnnotationConfigResponseBodyData

NewContinuousAnnotationConfigDeleteAnnotationConfigResponseBodyData returns new DeleteAnnotationConfigResponseBodyData from ContinuousAnnotationConfig.

func NewFreeformAnnotationConfigDeleteAnnotationConfigResponseBodyData

func NewFreeformAnnotationConfigDeleteAnnotationConfigResponseBodyData(v FreeformAnnotationConfig) DeleteAnnotationConfigResponseBodyData

NewFreeformAnnotationConfigDeleteAnnotationConfigResponseBodyData returns new DeleteAnnotationConfigResponseBodyData from FreeformAnnotationConfig.

func (*DeleteAnnotationConfigResponseBodyData) Decode

Decode decodes DeleteAnnotationConfigResponseBodyData from json.

func (DeleteAnnotationConfigResponseBodyData) Encode

Encode encodes DeleteAnnotationConfigResponseBodyData as json.

func (DeleteAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig

func (s DeleteAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig() (v CategoricalAnnotationConfig, ok bool)

GetCategoricalAnnotationConfig returns CategoricalAnnotationConfig and true boolean if DeleteAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (DeleteAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig

func (s DeleteAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig() (v ContinuousAnnotationConfig, ok bool)

GetContinuousAnnotationConfig returns ContinuousAnnotationConfig and true boolean if DeleteAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (DeleteAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig

func (s DeleteAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig() (v FreeformAnnotationConfig, ok bool)

GetFreeformAnnotationConfig returns FreeformAnnotationConfig and true boolean if DeleteAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (DeleteAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig

func (s DeleteAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig() bool

IsCategoricalAnnotationConfig reports whether DeleteAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (DeleteAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig

func (s DeleteAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig() bool

IsContinuousAnnotationConfig reports whether DeleteAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (DeleteAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig

func (s DeleteAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig() bool

IsFreeformAnnotationConfig reports whether DeleteAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (DeleteAnnotationConfigResponseBodyData) MarshalJSON

func (s DeleteAnnotationConfigResponseBodyData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig

func (s *DeleteAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig(v CategoricalAnnotationConfig)

SetCategoricalAnnotationConfig sets DeleteAnnotationConfigResponseBodyData to CategoricalAnnotationConfig.

func (*DeleteAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig

func (s *DeleteAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig(v ContinuousAnnotationConfig)

SetContinuousAnnotationConfig sets DeleteAnnotationConfigResponseBodyData to ContinuousAnnotationConfig.

func (*DeleteAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig

func (s *DeleteAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig(v FreeformAnnotationConfig)

SetFreeformAnnotationConfig sets DeleteAnnotationConfigResponseBodyData to FreeformAnnotationConfig.

func (*DeleteAnnotationConfigResponseBodyData) UnmarshalJSON

func (s *DeleteAnnotationConfigResponseBodyData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (DeleteAnnotationConfigResponseBodyData) Validate

type DeleteAnnotationConfigResponseBodyDataType

type DeleteAnnotationConfigResponseBodyDataType string

DeleteAnnotationConfigResponseBodyDataType is oneOf type of DeleteAnnotationConfigResponseBodyData.

const (
	CategoricalAnnotationConfigDeleteAnnotationConfigResponseBodyData DeleteAnnotationConfigResponseBodyDataType = "CATEGORICAL"
	ContinuousAnnotationConfigDeleteAnnotationConfigResponseBodyData  DeleteAnnotationConfigResponseBodyDataType = "CONTINUOUS"
	FreeformAnnotationConfigDeleteAnnotationConfigResponseBodyData    DeleteAnnotationConfigResponseBodyDataType = "FREEFORM"
)

Possible values for DeleteAnnotationConfigResponseBodyDataType.

type DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteForbidden

type DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteForbidden struct {
	Data io.Reader
}

func (DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteParams

type DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteParams struct {
	// ID of the annotation configuration.
	ConfigID string
}

DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteParams is parameters of delete_annotation_config_v1_annotation_configs__config_id__delete operation.

type DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteRes

type DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteRes interface {
	// contains filtered or unexported methods
}

type DeleteDatasetByIdForbidden

type DeleteDatasetByIdForbidden struct {
	Data io.Reader
}

func (DeleteDatasetByIdForbidden) Read

func (s DeleteDatasetByIdForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteDatasetByIdNoContent

type DeleteDatasetByIdNoContent struct{}

DeleteDatasetByIdNoContent is response for DeleteDatasetById operation.

type DeleteDatasetByIdNotFound

type DeleteDatasetByIdNotFound struct {
	Data io.Reader
}

func (DeleteDatasetByIdNotFound) Read

func (s DeleteDatasetByIdNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteDatasetByIdParams

type DeleteDatasetByIdParams struct {
	// The ID of the dataset to delete.
	ID string
}

DeleteDatasetByIdParams is parameters of deleteDatasetById operation.

type DeleteDatasetByIdRes

type DeleteDatasetByIdRes interface {
	// contains filtered or unexported methods
}

type DeleteDatasetByIdUnprocessableEntity

type DeleteDatasetByIdUnprocessableEntity struct {
	Data io.Reader
}

func (DeleteDatasetByIdUnprocessableEntity) Read

func (s DeleteDatasetByIdUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteExperimentForbidden

type DeleteExperimentForbidden struct {
	Data io.Reader
}

func (DeleteExperimentForbidden) Read

func (s DeleteExperimentForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteExperimentNoContent

type DeleteExperimentNoContent struct{}

DeleteExperimentNoContent is response for DeleteExperiment operation.

type DeleteExperimentNotFound

type DeleteExperimentNotFound struct {
	Data io.Reader
}

func (DeleteExperimentNotFound) Read

func (s DeleteExperimentNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteExperimentParams

type DeleteExperimentParams struct {
	ExperimentID string
}

DeleteExperimentParams is parameters of deleteExperiment operation.

type DeleteExperimentRes

type DeleteExperimentRes interface {
	// contains filtered or unexported methods
}

type DeleteProjectForbidden

type DeleteProjectForbidden struct {
	Data io.Reader
}

func (DeleteProjectForbidden) Read

func (s DeleteProjectForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteProjectNoContent

type DeleteProjectNoContent struct{}

DeleteProjectNoContent is response for DeleteProject operation.

type DeleteProjectNotFound

type DeleteProjectNotFound struct {
	Data io.Reader
}

func (DeleteProjectNotFound) Read

func (s DeleteProjectNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteProjectParams

type DeleteProjectParams struct {
	// The project identifier: either project ID or project name. If using a project name, it cannot
	// contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
}

DeleteProjectParams is parameters of deleteProject operation.

type DeleteProjectRes

type DeleteProjectRes interface {
	// contains filtered or unexported methods
}

type DeleteProjectUnprocessableEntity

type DeleteProjectUnprocessableEntity struct {
	Data io.Reader
}

func (DeleteProjectUnprocessableEntity) Read

func (s DeleteProjectUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteSpanForbidden

type DeleteSpanForbidden struct {
	Data io.Reader
}

func (DeleteSpanForbidden) Read

func (s DeleteSpanForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteSpanNoContent

type DeleteSpanNoContent struct{}

DeleteSpanNoContent is response for DeleteSpan operation.

type DeleteSpanNotFound

type DeleteSpanNotFound struct {
	Data io.Reader
}

func (DeleteSpanNotFound) Read

func (s DeleteSpanNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteSpanParams

type DeleteSpanParams struct {
	// The span identifier: either a relay GlobalID or OpenTelemetry span_id.
	SpanIdentifier string
}

DeleteSpanParams is parameters of deleteSpan operation.

type DeleteSpanRes

type DeleteSpanRes interface {
	// contains filtered or unexported methods
}

type DeleteTraceForbidden

type DeleteTraceForbidden struct {
	Data io.Reader
}

func (DeleteTraceForbidden) Read

func (s DeleteTraceForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteTraceNoContent

type DeleteTraceNoContent struct{}

DeleteTraceNoContent is response for DeleteTrace operation.

type DeleteTraceNotFound

type DeleteTraceNotFound struct {
	Data io.Reader
}

func (DeleteTraceNotFound) Read

func (s DeleteTraceNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteTraceParams

type DeleteTraceParams struct {
	// The trace identifier: either a relay GlobalID or OpenTelemetry trace_id.
	TraceIdentifier string
}

DeleteTraceParams is parameters of deleteTrace operation.

type DeleteTraceRes

type DeleteTraceRes interface {
	// contains filtered or unexported methods
}

type DeleteUserForbidden

type DeleteUserForbidden struct {
	Data io.Reader
}

func (DeleteUserForbidden) Read

func (s DeleteUserForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteUserNoContent

type DeleteUserNoContent struct{}

DeleteUserNoContent is response for DeleteUser operation.

type DeleteUserNotFound

type DeleteUserNotFound struct {
	Data io.Reader
}

func (DeleteUserNotFound) Read

func (s DeleteUserNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DeleteUserParams

type DeleteUserParams struct {
	// The GlobalID of the user (e.g. 'VXNlcjox').
	UserID string
}

DeleteUserParams is parameters of deleteUser operation.

type DeleteUserRes

type DeleteUserRes interface {
	// contains filtered or unexported methods
}

type DeleteUserUnprocessableEntity

type DeleteUserUnprocessableEntity struct {
	Data io.Reader
}

func (DeleteUserUnprocessableEntity) Read

func (s DeleteUserUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type Experiment

type Experiment struct {
	// The creation timestamp of the experiment.
	CreatedAt time.Time `json:"created_at"`
	// The ID of the dataset associated with the experiment.
	DatasetID string `json:"dataset_id"`
	// The ID of the dataset version associated with the experiment.
	DatasetVersionID string `json:"dataset_version_id"`
	// Number of examples in the experiment.
	ExampleCount int `json:"example_count"`
	// Number of failed runs in the experiment.
	FailedRunCount int `json:"failed_run_count"`
	// The ID of the experiment.
	ID string `json:"id"`
	// Metadata of the experiment.
	Metadata ExperimentMetadata `json:"metadata"`
	// Number of missing (not yet executed) runs in the experiment.
	MissingRunCount int `json:"missing_run_count"`
	// The name of the project associated with the experiment.
	ProjectName NilString `json:"project_name"`
	// Number of times the experiment is repeated.
	Repetitions int `json:"repetitions"`
	// Number of successful runs in the experiment.
	SuccessfulRunCount int `json:"successful_run_count"`
	// The last update timestamp of the experiment.
	UpdatedAt time.Time `json:"updated_at"`
}

Ref: #/components/schemas/Experiment

func (*Experiment) Decode

func (s *Experiment) Decode(d *jx.Decoder) error

Decode decodes Experiment from json.

func (*Experiment) Encode

func (s *Experiment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Experiment) GetCreatedAt

func (s *Experiment) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Experiment) GetDatasetID

func (s *Experiment) GetDatasetID() string

GetDatasetID returns the value of DatasetID.

func (*Experiment) GetDatasetVersionID

func (s *Experiment) GetDatasetVersionID() string

GetDatasetVersionID returns the value of DatasetVersionID.

func (*Experiment) GetExampleCount

func (s *Experiment) GetExampleCount() int

GetExampleCount returns the value of ExampleCount.

func (*Experiment) GetFailedRunCount

func (s *Experiment) GetFailedRunCount() int

GetFailedRunCount returns the value of FailedRunCount.

func (*Experiment) GetID

func (s *Experiment) GetID() string

GetID returns the value of ID.

func (*Experiment) GetMetadata

func (s *Experiment) GetMetadata() ExperimentMetadata

GetMetadata returns the value of Metadata.

func (*Experiment) GetMissingRunCount

func (s *Experiment) GetMissingRunCount() int

GetMissingRunCount returns the value of MissingRunCount.

func (*Experiment) GetProjectName

func (s *Experiment) GetProjectName() NilString

GetProjectName returns the value of ProjectName.

func (*Experiment) GetRepetitions

func (s *Experiment) GetRepetitions() int

GetRepetitions returns the value of Repetitions.

func (*Experiment) GetSuccessfulRunCount

func (s *Experiment) GetSuccessfulRunCount() int

GetSuccessfulRunCount returns the value of SuccessfulRunCount.

func (*Experiment) GetUpdatedAt

func (s *Experiment) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*Experiment) MarshalJSON

func (s *Experiment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Experiment) SetCreatedAt

func (s *Experiment) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Experiment) SetDatasetID

func (s *Experiment) SetDatasetID(val string)

SetDatasetID sets the value of DatasetID.

func (*Experiment) SetDatasetVersionID

func (s *Experiment) SetDatasetVersionID(val string)

SetDatasetVersionID sets the value of DatasetVersionID.

func (*Experiment) SetExampleCount

func (s *Experiment) SetExampleCount(val int)

SetExampleCount sets the value of ExampleCount.

func (*Experiment) SetFailedRunCount

func (s *Experiment) SetFailedRunCount(val int)

SetFailedRunCount sets the value of FailedRunCount.

func (*Experiment) SetID

func (s *Experiment) SetID(val string)

SetID sets the value of ID.

func (*Experiment) SetMetadata

func (s *Experiment) SetMetadata(val ExperimentMetadata)

SetMetadata sets the value of Metadata.

func (*Experiment) SetMissingRunCount

func (s *Experiment) SetMissingRunCount(val int)

SetMissingRunCount sets the value of MissingRunCount.

func (*Experiment) SetProjectName

func (s *Experiment) SetProjectName(val NilString)

SetProjectName sets the value of ProjectName.

func (*Experiment) SetRepetitions

func (s *Experiment) SetRepetitions(val int)

SetRepetitions sets the value of Repetitions.

func (*Experiment) SetSuccessfulRunCount

func (s *Experiment) SetSuccessfulRunCount(val int)

SetSuccessfulRunCount sets the value of SuccessfulRunCount.

func (*Experiment) SetUpdatedAt

func (s *Experiment) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*Experiment) UnmarshalJSON

func (s *Experiment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExperimentEvaluationResult

type ExperimentEvaluationResult struct {
	// Explanation of the evaluation result.
	Explanation OptNilString `json:"explanation"`
	// The label assigned by the evaluation.
	Label OptNilString `json:"label"`
	// The score assigned by the evaluation.
	Score OptNilFloat64 `json:"score"`
}

Ref: #/components/schemas/ExperimentEvaluationResult

func (*ExperimentEvaluationResult) Decode

Decode decodes ExperimentEvaluationResult from json.

func (*ExperimentEvaluationResult) Encode

func (s *ExperimentEvaluationResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExperimentEvaluationResult) GetExplanation

func (s *ExperimentEvaluationResult) GetExplanation() OptNilString

GetExplanation returns the value of Explanation.

func (*ExperimentEvaluationResult) GetLabel

GetLabel returns the value of Label.

func (*ExperimentEvaluationResult) GetScore

GetScore returns the value of Score.

func (*ExperimentEvaluationResult) MarshalJSON

func (s *ExperimentEvaluationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExperimentEvaluationResult) SetExplanation

func (s *ExperimentEvaluationResult) SetExplanation(val OptNilString)

SetExplanation sets the value of Explanation.

func (*ExperimentEvaluationResult) SetLabel

func (s *ExperimentEvaluationResult) SetLabel(val OptNilString)

SetLabel sets the value of Label.

func (*ExperimentEvaluationResult) SetScore

func (s *ExperimentEvaluationResult) SetScore(val OptNilFloat64)

SetScore sets the value of Score.

func (*ExperimentEvaluationResult) UnmarshalJSON

func (s *ExperimentEvaluationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ExperimentEvaluationResult) Validate

func (s *ExperimentEvaluationResult) Validate() error

type ExperimentMetadata

type ExperimentMetadata map[string]jx.Raw

Metadata of the experiment.

func (*ExperimentMetadata) Decode

func (s *ExperimentMetadata) Decode(d *jx.Decoder) error

Decode decodes ExperimentMetadata from json.

func (ExperimentMetadata) Encode

func (s ExperimentMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ExperimentMetadata) MarshalJSON

func (s ExperimentMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExperimentMetadata) UnmarshalJSON

func (s *ExperimentMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExperimentRun

type ExperimentRun struct {
	// The ID of the dataset example used in the experiment run.
	DatasetExampleID string `json:"dataset_example_id"`
	// The end time of the experiment run.
	EndTime time.Time `json:"end_time"`
	// Optional error message if the experiment run encountered an error.
	Error OptNilString `json:"error"`
	// The ID of the experiment.
	ExperimentID string `json:"experiment_id"`
	// The ID of the experiment run.
	ID string `json:"id"`
	// The output of the experiment task.
	Output jx.Raw `json:"output"`
	// The repetition number of the experiment run.
	RepetitionNumber int `json:"repetition_number"`
	// The start time of the experiment run.
	StartTime time.Time `json:"start_time"`
	// The ID of the corresponding trace (if one exists).
	TraceID OptNilString `json:"trace_id"`
}

Ref: #/components/schemas/ExperimentRun

func (*ExperimentRun) Decode

func (s *ExperimentRun) Decode(d *jx.Decoder) error

Decode decodes ExperimentRun from json.

func (*ExperimentRun) Encode

func (s *ExperimentRun) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExperimentRun) GetDatasetExampleID

func (s *ExperimentRun) GetDatasetExampleID() string

GetDatasetExampleID returns the value of DatasetExampleID.

func (*ExperimentRun) GetEndTime

func (s *ExperimentRun) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*ExperimentRun) GetError

func (s *ExperimentRun) GetError() OptNilString

GetError returns the value of Error.

func (*ExperimentRun) GetExperimentID

func (s *ExperimentRun) GetExperimentID() string

GetExperimentID returns the value of ExperimentID.

func (*ExperimentRun) GetID

func (s *ExperimentRun) GetID() string

GetID returns the value of ID.

func (*ExperimentRun) GetOutput

func (s *ExperimentRun) GetOutput() jx.Raw

GetOutput returns the value of Output.

func (*ExperimentRun) GetRepetitionNumber

func (s *ExperimentRun) GetRepetitionNumber() int

GetRepetitionNumber returns the value of RepetitionNumber.

func (*ExperimentRun) GetStartTime

func (s *ExperimentRun) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*ExperimentRun) GetTraceID

func (s *ExperimentRun) GetTraceID() OptNilString

GetTraceID returns the value of TraceID.

func (*ExperimentRun) MarshalJSON

func (s *ExperimentRun) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExperimentRun) SetDatasetExampleID

func (s *ExperimentRun) SetDatasetExampleID(val string)

SetDatasetExampleID sets the value of DatasetExampleID.

func (*ExperimentRun) SetEndTime

func (s *ExperimentRun) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*ExperimentRun) SetError

func (s *ExperimentRun) SetError(val OptNilString)

SetError sets the value of Error.

func (*ExperimentRun) SetExperimentID

func (s *ExperimentRun) SetExperimentID(val string)

SetExperimentID sets the value of ExperimentID.

func (*ExperimentRun) SetID

func (s *ExperimentRun) SetID(val string)

SetID sets the value of ID.

func (*ExperimentRun) SetOutput

func (s *ExperimentRun) SetOutput(val jx.Raw)

SetOutput sets the value of Output.

func (*ExperimentRun) SetRepetitionNumber

func (s *ExperimentRun) SetRepetitionNumber(val int)

SetRepetitionNumber sets the value of RepetitionNumber.

func (*ExperimentRun) SetStartTime

func (s *ExperimentRun) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*ExperimentRun) SetTraceID

func (s *ExperimentRun) SetTraceID(val OptNilString)

SetTraceID sets the value of TraceID.

func (*ExperimentRun) UnmarshalJSON

func (s *ExperimentRun) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FreeformAnnotationConfig

type FreeformAnnotationConfig struct {
	Description OptNilString                 `json:"description"`
	ID          string                       `json:"id"`
	Name        string                       `json:"name"`
	Type        FreeformAnnotationConfigType `json:"type"`
}

Ref: #/components/schemas/FreeformAnnotationConfig

func (*FreeformAnnotationConfig) Decode

func (s *FreeformAnnotationConfig) Decode(d *jx.Decoder) error

Decode decodes FreeformAnnotationConfig from json.

func (*FreeformAnnotationConfig) Encode

func (s *FreeformAnnotationConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FreeformAnnotationConfig) GetDescription

func (s *FreeformAnnotationConfig) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*FreeformAnnotationConfig) GetID

func (s *FreeformAnnotationConfig) GetID() string

GetID returns the value of ID.

func (*FreeformAnnotationConfig) GetName

func (s *FreeformAnnotationConfig) GetName() string

GetName returns the value of Name.

func (*FreeformAnnotationConfig) GetType

GetType returns the value of Type.

func (*FreeformAnnotationConfig) MarshalJSON

func (s *FreeformAnnotationConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FreeformAnnotationConfig) SetDescription

func (s *FreeformAnnotationConfig) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*FreeformAnnotationConfig) SetID

func (s *FreeformAnnotationConfig) SetID(val string)

SetID sets the value of ID.

func (*FreeformAnnotationConfig) SetName

func (s *FreeformAnnotationConfig) SetName(val string)

SetName sets the value of Name.

func (*FreeformAnnotationConfig) SetType

SetType sets the value of Type.

func (*FreeformAnnotationConfig) UnmarshalJSON

func (s *FreeformAnnotationConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FreeformAnnotationConfig) Validate

func (s *FreeformAnnotationConfig) Validate() error

type FreeformAnnotationConfigData

type FreeformAnnotationConfigData struct {
	Description OptNilString                     `json:"description"`
	Name        string                           `json:"name"`
	Type        FreeformAnnotationConfigDataType `json:"type"`
}

Ref: #/components/schemas/FreeformAnnotationConfigData

func (*FreeformAnnotationConfigData) Decode

Decode decodes FreeformAnnotationConfigData from json.

func (*FreeformAnnotationConfigData) Encode

func (s *FreeformAnnotationConfigData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FreeformAnnotationConfigData) GetDescription

func (s *FreeformAnnotationConfigData) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*FreeformAnnotationConfigData) GetName

func (s *FreeformAnnotationConfigData) GetName() string

GetName returns the value of Name.

func (*FreeformAnnotationConfigData) GetType

GetType returns the value of Type.

func (*FreeformAnnotationConfigData) MarshalJSON

func (s *FreeformAnnotationConfigData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FreeformAnnotationConfigData) SetDescription

func (s *FreeformAnnotationConfigData) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*FreeformAnnotationConfigData) SetName

func (s *FreeformAnnotationConfigData) SetName(val string)

SetName sets the value of Name.

func (*FreeformAnnotationConfigData) SetType

SetType sets the value of Type.

func (*FreeformAnnotationConfigData) UnmarshalJSON

func (s *FreeformAnnotationConfigData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FreeformAnnotationConfigData) Validate

func (s *FreeformAnnotationConfigData) Validate() error

type FreeformAnnotationConfigDataType

type FreeformAnnotationConfigDataType string
const (
	FreeformAnnotationConfigDataTypeFREEFORM FreeformAnnotationConfigDataType = "FREEFORM"
)

func (FreeformAnnotationConfigDataType) AllValues

AllValues returns all FreeformAnnotationConfigDataType values.

func (*FreeformAnnotationConfigDataType) Decode

Decode decodes FreeformAnnotationConfigDataType from json.

func (FreeformAnnotationConfigDataType) Encode

Encode encodes FreeformAnnotationConfigDataType as json.

func (FreeformAnnotationConfigDataType) MarshalJSON

func (s FreeformAnnotationConfigDataType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FreeformAnnotationConfigDataType) MarshalText

func (s FreeformAnnotationConfigDataType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FreeformAnnotationConfigDataType) UnmarshalJSON

func (s *FreeformAnnotationConfigDataType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FreeformAnnotationConfigDataType) UnmarshalText

func (s *FreeformAnnotationConfigDataType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FreeformAnnotationConfigDataType) Validate

type FreeformAnnotationConfigType

type FreeformAnnotationConfigType string
const (
	FreeformAnnotationConfigTypeFREEFORM FreeformAnnotationConfigType = "FREEFORM"
)

func (FreeformAnnotationConfigType) AllValues

AllValues returns all FreeformAnnotationConfigType values.

func (*FreeformAnnotationConfigType) Decode

Decode decodes FreeformAnnotationConfigType from json.

func (FreeformAnnotationConfigType) Encode

Encode encodes FreeformAnnotationConfigType as json.

func (FreeformAnnotationConfigType) MarshalJSON

func (s FreeformAnnotationConfigType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FreeformAnnotationConfigType) MarshalText

func (s FreeformAnnotationConfigType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FreeformAnnotationConfigType) UnmarshalJSON

func (s *FreeformAnnotationConfigType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FreeformAnnotationConfigType) UnmarshalText

func (s *FreeformAnnotationConfigType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FreeformAnnotationConfigType) Validate

func (s FreeformAnnotationConfigType) Validate() error

type GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetForbidden

type GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetForbidden struct {
	Data io.Reader
}

func (GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetParams

type GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetParams struct {
	// ID or name of the annotation configuration.
	ConfigIdentifier string
}

GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetParams is parameters of get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get operation.

type GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetRes

type GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetRes interface {
	// contains filtered or unexported methods
}

type GetAnnotationConfigResponseBody

type GetAnnotationConfigResponseBody struct {
	Data GetAnnotationConfigResponseBodyData `json:"data"`
}

Ref: #/components/schemas/GetAnnotationConfigResponseBody

func (*GetAnnotationConfigResponseBody) Decode

Decode decodes GetAnnotationConfigResponseBody from json.

func (*GetAnnotationConfigResponseBody) Encode

Encode implements json.Marshaler.

func (*GetAnnotationConfigResponseBody) GetData

GetData returns the value of Data.

func (*GetAnnotationConfigResponseBody) MarshalJSON

func (s *GetAnnotationConfigResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAnnotationConfigResponseBody) SetData

SetData sets the value of Data.

func (*GetAnnotationConfigResponseBody) UnmarshalJSON

func (s *GetAnnotationConfigResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAnnotationConfigResponseBody) Validate

func (s *GetAnnotationConfigResponseBody) Validate() error

type GetAnnotationConfigResponseBodyData

type GetAnnotationConfigResponseBodyData struct {
	Type                        GetAnnotationConfigResponseBodyDataType // switch on this field
	CategoricalAnnotationConfig CategoricalAnnotationConfig
	ContinuousAnnotationConfig  ContinuousAnnotationConfig
	FreeformAnnotationConfig    FreeformAnnotationConfig
}

GetAnnotationConfigResponseBodyData represents sum type.

func NewCategoricalAnnotationConfigGetAnnotationConfigResponseBodyData

func NewCategoricalAnnotationConfigGetAnnotationConfigResponseBodyData(v CategoricalAnnotationConfig) GetAnnotationConfigResponseBodyData

NewCategoricalAnnotationConfigGetAnnotationConfigResponseBodyData returns new GetAnnotationConfigResponseBodyData from CategoricalAnnotationConfig.

func NewContinuousAnnotationConfigGetAnnotationConfigResponseBodyData

func NewContinuousAnnotationConfigGetAnnotationConfigResponseBodyData(v ContinuousAnnotationConfig) GetAnnotationConfigResponseBodyData

NewContinuousAnnotationConfigGetAnnotationConfigResponseBodyData returns new GetAnnotationConfigResponseBodyData from ContinuousAnnotationConfig.

func NewFreeformAnnotationConfigGetAnnotationConfigResponseBodyData

func NewFreeformAnnotationConfigGetAnnotationConfigResponseBodyData(v FreeformAnnotationConfig) GetAnnotationConfigResponseBodyData

NewFreeformAnnotationConfigGetAnnotationConfigResponseBodyData returns new GetAnnotationConfigResponseBodyData from FreeformAnnotationConfig.

func (*GetAnnotationConfigResponseBodyData) Decode

Decode decodes GetAnnotationConfigResponseBodyData from json.

func (GetAnnotationConfigResponseBodyData) Encode

Encode encodes GetAnnotationConfigResponseBodyData as json.

func (GetAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig

func (s GetAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig() (v CategoricalAnnotationConfig, ok bool)

GetCategoricalAnnotationConfig returns CategoricalAnnotationConfig and true boolean if GetAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (GetAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig

func (s GetAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig() (v ContinuousAnnotationConfig, ok bool)

GetContinuousAnnotationConfig returns ContinuousAnnotationConfig and true boolean if GetAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (GetAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig

func (s GetAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig() (v FreeformAnnotationConfig, ok bool)

GetFreeformAnnotationConfig returns FreeformAnnotationConfig and true boolean if GetAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (GetAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig

func (s GetAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig() bool

IsCategoricalAnnotationConfig reports whether GetAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (GetAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig

func (s GetAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig() bool

IsContinuousAnnotationConfig reports whether GetAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (GetAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig

func (s GetAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig() bool

IsFreeformAnnotationConfig reports whether GetAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (GetAnnotationConfigResponseBodyData) MarshalJSON

func (s GetAnnotationConfigResponseBodyData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig

func (s *GetAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig(v CategoricalAnnotationConfig)

SetCategoricalAnnotationConfig sets GetAnnotationConfigResponseBodyData to CategoricalAnnotationConfig.

func (*GetAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig

func (s *GetAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig(v ContinuousAnnotationConfig)

SetContinuousAnnotationConfig sets GetAnnotationConfigResponseBodyData to ContinuousAnnotationConfig.

func (*GetAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig

func (s *GetAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig(v FreeformAnnotationConfig)

SetFreeformAnnotationConfig sets GetAnnotationConfigResponseBodyData to FreeformAnnotationConfig.

func (*GetAnnotationConfigResponseBodyData) UnmarshalJSON

func (s *GetAnnotationConfigResponseBodyData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetAnnotationConfigResponseBodyData) Validate

type GetAnnotationConfigResponseBodyDataType

type GetAnnotationConfigResponseBodyDataType string

GetAnnotationConfigResponseBodyDataType is oneOf type of GetAnnotationConfigResponseBodyData.

const (
	CategoricalAnnotationConfigGetAnnotationConfigResponseBodyData GetAnnotationConfigResponseBodyDataType = "CATEGORICAL"
	ContinuousAnnotationConfigGetAnnotationConfigResponseBodyData  GetAnnotationConfigResponseBodyDataType = "CONTINUOUS"
	FreeformAnnotationConfigGetAnnotationConfigResponseBodyData    GetAnnotationConfigResponseBodyDataType = "FREEFORM"
)

Possible values for GetAnnotationConfigResponseBodyDataType.

type GetAnnotationConfigsResponseBody

type GetAnnotationConfigsResponseBody struct {
	Data       []GetAnnotationConfigsResponseBodyDataItem `json:"data"`
	NextCursor NilString                                  `json:"next_cursor"`
}

Ref: #/components/schemas/GetAnnotationConfigsResponseBody

func (*GetAnnotationConfigsResponseBody) Decode

Decode decodes GetAnnotationConfigsResponseBody from json.

func (*GetAnnotationConfigsResponseBody) Encode

Encode implements json.Marshaler.

func (*GetAnnotationConfigsResponseBody) GetData

GetData returns the value of Data.

func (*GetAnnotationConfigsResponseBody) GetNextCursor

func (s *GetAnnotationConfigsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*GetAnnotationConfigsResponseBody) MarshalJSON

func (s *GetAnnotationConfigsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAnnotationConfigsResponseBody) SetData

SetData sets the value of Data.

func (*GetAnnotationConfigsResponseBody) SetNextCursor

func (s *GetAnnotationConfigsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetAnnotationConfigsResponseBody) UnmarshalJSON

func (s *GetAnnotationConfigsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAnnotationConfigsResponseBody) Validate

type GetAnnotationConfigsResponseBodyDataItem

type GetAnnotationConfigsResponseBodyDataItem struct {
	Type                        GetAnnotationConfigsResponseBodyDataItemType // switch on this field
	CategoricalAnnotationConfig CategoricalAnnotationConfig
	ContinuousAnnotationConfig  ContinuousAnnotationConfig
	FreeformAnnotationConfig    FreeformAnnotationConfig
}

GetAnnotationConfigsResponseBodyDataItem represents sum type.

func NewCategoricalAnnotationConfigGetAnnotationConfigsResponseBodyDataItem

func NewCategoricalAnnotationConfigGetAnnotationConfigsResponseBodyDataItem(v CategoricalAnnotationConfig) GetAnnotationConfigsResponseBodyDataItem

NewCategoricalAnnotationConfigGetAnnotationConfigsResponseBodyDataItem returns new GetAnnotationConfigsResponseBodyDataItem from CategoricalAnnotationConfig.

func NewContinuousAnnotationConfigGetAnnotationConfigsResponseBodyDataItem

func NewContinuousAnnotationConfigGetAnnotationConfigsResponseBodyDataItem(v ContinuousAnnotationConfig) GetAnnotationConfigsResponseBodyDataItem

NewContinuousAnnotationConfigGetAnnotationConfigsResponseBodyDataItem returns new GetAnnotationConfigsResponseBodyDataItem from ContinuousAnnotationConfig.

func NewFreeformAnnotationConfigGetAnnotationConfigsResponseBodyDataItem

func NewFreeformAnnotationConfigGetAnnotationConfigsResponseBodyDataItem(v FreeformAnnotationConfig) GetAnnotationConfigsResponseBodyDataItem

NewFreeformAnnotationConfigGetAnnotationConfigsResponseBodyDataItem returns new GetAnnotationConfigsResponseBodyDataItem from FreeformAnnotationConfig.

func (*GetAnnotationConfigsResponseBodyDataItem) Decode

Decode decodes GetAnnotationConfigsResponseBodyDataItem from json.

func (GetAnnotationConfigsResponseBodyDataItem) Encode

Encode encodes GetAnnotationConfigsResponseBodyDataItem as json.

func (GetAnnotationConfigsResponseBodyDataItem) GetCategoricalAnnotationConfig

func (s GetAnnotationConfigsResponseBodyDataItem) GetCategoricalAnnotationConfig() (v CategoricalAnnotationConfig, ok bool)

GetCategoricalAnnotationConfig returns CategoricalAnnotationConfig and true boolean if GetAnnotationConfigsResponseBodyDataItem is CategoricalAnnotationConfig.

func (GetAnnotationConfigsResponseBodyDataItem) GetContinuousAnnotationConfig

func (s GetAnnotationConfigsResponseBodyDataItem) GetContinuousAnnotationConfig() (v ContinuousAnnotationConfig, ok bool)

GetContinuousAnnotationConfig returns ContinuousAnnotationConfig and true boolean if GetAnnotationConfigsResponseBodyDataItem is ContinuousAnnotationConfig.

func (GetAnnotationConfigsResponseBodyDataItem) GetFreeformAnnotationConfig

func (s GetAnnotationConfigsResponseBodyDataItem) GetFreeformAnnotationConfig() (v FreeformAnnotationConfig, ok bool)

GetFreeformAnnotationConfig returns FreeformAnnotationConfig and true boolean if GetAnnotationConfigsResponseBodyDataItem is FreeformAnnotationConfig.

func (GetAnnotationConfigsResponseBodyDataItem) IsCategoricalAnnotationConfig

func (s GetAnnotationConfigsResponseBodyDataItem) IsCategoricalAnnotationConfig() bool

IsCategoricalAnnotationConfig reports whether GetAnnotationConfigsResponseBodyDataItem is CategoricalAnnotationConfig.

func (GetAnnotationConfigsResponseBodyDataItem) IsContinuousAnnotationConfig

func (s GetAnnotationConfigsResponseBodyDataItem) IsContinuousAnnotationConfig() bool

IsContinuousAnnotationConfig reports whether GetAnnotationConfigsResponseBodyDataItem is ContinuousAnnotationConfig.

func (GetAnnotationConfigsResponseBodyDataItem) IsFreeformAnnotationConfig

func (s GetAnnotationConfigsResponseBodyDataItem) IsFreeformAnnotationConfig() bool

IsFreeformAnnotationConfig reports whether GetAnnotationConfigsResponseBodyDataItem is FreeformAnnotationConfig.

func (GetAnnotationConfigsResponseBodyDataItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetAnnotationConfigsResponseBodyDataItem) SetCategoricalAnnotationConfig

func (s *GetAnnotationConfigsResponseBodyDataItem) SetCategoricalAnnotationConfig(v CategoricalAnnotationConfig)

SetCategoricalAnnotationConfig sets GetAnnotationConfigsResponseBodyDataItem to CategoricalAnnotationConfig.

func (*GetAnnotationConfigsResponseBodyDataItem) SetContinuousAnnotationConfig

func (s *GetAnnotationConfigsResponseBodyDataItem) SetContinuousAnnotationConfig(v ContinuousAnnotationConfig)

SetContinuousAnnotationConfig sets GetAnnotationConfigsResponseBodyDataItem to ContinuousAnnotationConfig.

func (*GetAnnotationConfigsResponseBodyDataItem) SetFreeformAnnotationConfig

func (s *GetAnnotationConfigsResponseBodyDataItem) SetFreeformAnnotationConfig(v FreeformAnnotationConfig)

SetFreeformAnnotationConfig sets GetAnnotationConfigsResponseBodyDataItem to FreeformAnnotationConfig.

func (*GetAnnotationConfigsResponseBodyDataItem) UnmarshalJSON

func (s *GetAnnotationConfigsResponseBodyDataItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetAnnotationConfigsResponseBodyDataItem) Validate

type GetAnnotationConfigsResponseBodyDataItemType

type GetAnnotationConfigsResponseBodyDataItemType string

GetAnnotationConfigsResponseBodyDataItemType is oneOf type of GetAnnotationConfigsResponseBodyDataItem.

const (
	CategoricalAnnotationConfigGetAnnotationConfigsResponseBodyDataItem GetAnnotationConfigsResponseBodyDataItemType = "CATEGORICAL"
	ContinuousAnnotationConfigGetAnnotationConfigsResponseBodyDataItem  GetAnnotationConfigsResponseBodyDataItemType = "CONTINUOUS"
	FreeformAnnotationConfigGetAnnotationConfigsResponseBodyDataItem    GetAnnotationConfigsResponseBodyDataItemType = "FREEFORM"
)

Possible values for GetAnnotationConfigsResponseBodyDataItemType.

type GetDatasetCsvForbidden

type GetDatasetCsvForbidden struct {
	Data io.Reader
}

func (GetDatasetCsvForbidden) Read

func (s GetDatasetCsvForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetCsvOK

type GetDatasetCsvOK struct {
	Data io.Reader
}

func (GetDatasetCsvOK) Read

func (s GetDatasetCsvOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetCsvParams

type GetDatasetCsvParams struct {
	// The ID of the dataset.
	ID string
	// The ID of the dataset version (if omitted, returns data from the latest version).
	VersionID OptNilString `json:",omitempty,omitzero"`
}

GetDatasetCsvParams is parameters of getDatasetCsv operation.

type GetDatasetCsvRes

type GetDatasetCsvRes interface {
	// contains filtered or unexported methods
}

type GetDatasetCsvUnprocessableEntity

type GetDatasetCsvUnprocessableEntity struct {
	Data io.Reader
}

func (GetDatasetCsvUnprocessableEntity) Read

func (s GetDatasetCsvUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetExamplesForbidden

type GetDatasetExamplesForbidden struct {
	Data io.Reader
}

func (GetDatasetExamplesForbidden) Read

func (s GetDatasetExamplesForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetExamplesNotFound

type GetDatasetExamplesNotFound struct {
	Data io.Reader
}

func (GetDatasetExamplesNotFound) Read

func (s GetDatasetExamplesNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetExamplesParams

type GetDatasetExamplesParams struct {
	// The ID of the dataset.
	ID string
	// The ID of the dataset version (if omitted, returns data from the latest version).
	VersionID OptNilString `json:",omitempty,omitzero"`
	// List of dataset split identifiers (GlobalIDs or names) to filter by.
	Split OptNilStringArray `json:",omitempty,omitzero"`
}

GetDatasetExamplesParams is parameters of getDatasetExamples operation.

type GetDatasetExamplesRes

type GetDatasetExamplesRes interface {
	// contains filtered or unexported methods
}

type GetDatasetForbidden

type GetDatasetForbidden struct {
	Data io.Reader
}

func (GetDatasetForbidden) Read

func (s GetDatasetForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetJSONLOpenAIEvalsForbidden

type GetDatasetJSONLOpenAIEvalsForbidden struct {
	Data io.Reader
}

func (GetDatasetJSONLOpenAIEvalsForbidden) Read

func (s GetDatasetJSONLOpenAIEvalsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetJSONLOpenAIEvalsOK

type GetDatasetJSONLOpenAIEvalsOK struct {
	Data io.Reader
}

func (GetDatasetJSONLOpenAIEvalsOK) Read

func (s GetDatasetJSONLOpenAIEvalsOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetJSONLOpenAIEvalsParams

type GetDatasetJSONLOpenAIEvalsParams struct {
	// The ID of the dataset.
	ID string
	// The ID of the dataset version (if omitted, returns data from the latest version).
	VersionID OptNilString `json:",omitempty,omitzero"`
}

GetDatasetJSONLOpenAIEvalsParams is parameters of getDatasetJSONLOpenAIEvals operation.

type GetDatasetJSONLOpenAIEvalsRes

type GetDatasetJSONLOpenAIEvalsRes interface {
	// contains filtered or unexported methods
}

type GetDatasetJSONLOpenAIEvalsUnprocessableEntity

type GetDatasetJSONLOpenAIEvalsUnprocessableEntity struct {
	Data io.Reader
}

func (GetDatasetJSONLOpenAIEvalsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetJSONLOpenAIFineTuningForbidden

type GetDatasetJSONLOpenAIFineTuningForbidden struct {
	Data io.Reader
}

func (GetDatasetJSONLOpenAIFineTuningForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetJSONLOpenAIFineTuningOK

type GetDatasetJSONLOpenAIFineTuningOK struct {
	Data io.Reader
}

func (GetDatasetJSONLOpenAIFineTuningOK) Read

func (s GetDatasetJSONLOpenAIFineTuningOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetJSONLOpenAIFineTuningParams

type GetDatasetJSONLOpenAIFineTuningParams struct {
	// The ID of the dataset.
	ID string
	// The ID of the dataset version (if omitted, returns data from the latest version).
	VersionID OptNilString `json:",omitempty,omitzero"`
}

GetDatasetJSONLOpenAIFineTuningParams is parameters of getDatasetJSONLOpenAIFineTuning operation.

type GetDatasetJSONLOpenAIFineTuningRes

type GetDatasetJSONLOpenAIFineTuningRes interface {
	// contains filtered or unexported methods
}

type GetDatasetJSONLOpenAIFineTuningUnprocessableEntity

type GetDatasetJSONLOpenAIFineTuningUnprocessableEntity struct {
	Data io.Reader
}

func (GetDatasetJSONLOpenAIFineTuningUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetNotFound

type GetDatasetNotFound struct {
	Data io.Reader
}

func (GetDatasetNotFound) Read

func (s GetDatasetNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetDatasetParams

type GetDatasetParams struct {
	// The ID of the dataset.
	ID string
}

GetDatasetParams is parameters of getDataset operation.

type GetDatasetRes

type GetDatasetRes interface {
	// contains filtered or unexported methods
}

type GetDatasetResponseBody

type GetDatasetResponseBody struct {
	Data DatasetWithExampleCount `json:"data"`
}

Ref: #/components/schemas/GetDatasetResponseBody

func (*GetDatasetResponseBody) Decode

func (s *GetDatasetResponseBody) Decode(d *jx.Decoder) error

Decode decodes GetDatasetResponseBody from json.

func (*GetDatasetResponseBody) Encode

func (s *GetDatasetResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDatasetResponseBody) GetData

GetData returns the value of Data.

func (*GetDatasetResponseBody) MarshalJSON

func (s *GetDatasetResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDatasetResponseBody) SetData

SetData sets the value of Data.

func (*GetDatasetResponseBody) UnmarshalJSON

func (s *GetDatasetResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetEvaluationsForbidden

type GetEvaluationsForbidden struct {
	Data io.Reader
}

func (GetEvaluationsForbidden) Read

func (s GetEvaluationsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetEvaluationsNotFound

type GetEvaluationsNotFound struct {
	Data io.Reader
}

func (GetEvaluationsNotFound) Read

func (s GetEvaluationsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetEvaluationsOKApplicationJSON

type GetEvaluationsOKApplicationJSON jx.Raw

func (*GetEvaluationsOKApplicationJSON) Decode

Decode decodes GetEvaluationsOKApplicationJSON from json.

func (GetEvaluationsOKApplicationJSON) Encode

Encode encodes GetEvaluationsOKApplicationJSON as json.

func (GetEvaluationsOKApplicationJSON) MarshalJSON

func (s GetEvaluationsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetEvaluationsOKApplicationJSON) UnmarshalJSON

func (s *GetEvaluationsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetEvaluationsParams

type GetEvaluationsParams struct {
	// The name of the project to get evaluations from (if omitted, evaluations will be drawn from the
	// `default` project).
	ProjectName OptNilString `json:",omitempty,omitzero"`
}

GetEvaluationsParams is parameters of getEvaluations operation.

type GetEvaluationsRes

type GetEvaluationsRes interface {
	// contains filtered or unexported methods
}

type GetExperimentCSVForbidden

type GetExperimentCSVForbidden struct {
	Data io.Reader
}

func (GetExperimentCSVForbidden) Read

func (s GetExperimentCSVForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetExperimentCSVOKApplicationJSON

type GetExperimentCSVOKApplicationJSON jx.Raw

func (*GetExperimentCSVOKApplicationJSON) Decode

Decode decodes GetExperimentCSVOKApplicationJSON from json.

func (GetExperimentCSVOKApplicationJSON) Encode

Encode encodes GetExperimentCSVOKApplicationJSON as json.

func (GetExperimentCSVOKApplicationJSON) MarshalJSON

func (s GetExperimentCSVOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExperimentCSVOKApplicationJSON) UnmarshalJSON

func (s *GetExperimentCSVOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExperimentCSVOKTextCsv

type GetExperimentCSVOKTextCsv struct {
	Data io.Reader
}

func (GetExperimentCSVOKTextCsv) Read

func (s GetExperimentCSVOKTextCsv) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetExperimentCSVParams

type GetExperimentCSVParams struct {
	ExperimentID string
}

GetExperimentCSVParams is parameters of getExperimentCSV operation.

type GetExperimentCSVRes

type GetExperimentCSVRes interface {
	// contains filtered or unexported methods
}

type GetExperimentForbidden

type GetExperimentForbidden struct {
	Data io.Reader
}

func (GetExperimentForbidden) Read

func (s GetExperimentForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetExperimentJSONForbidden

type GetExperimentJSONForbidden struct {
	Data io.Reader
}

func (GetExperimentJSONForbidden) Read

func (s GetExperimentJSONForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetExperimentJSONNotFound

type GetExperimentJSONNotFound struct {
	Data io.Reader
}

func (GetExperimentJSONNotFound) Read

func (s GetExperimentJSONNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetExperimentJSONOK

type GetExperimentJSONOK struct {
	Data io.Reader
}

func (GetExperimentJSONOK) Read

func (s GetExperimentJSONOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetExperimentJSONParams

type GetExperimentJSONParams struct {
	ExperimentID string
}

GetExperimentJSONParams is parameters of getExperimentJSON operation.

type GetExperimentJSONRes

type GetExperimentJSONRes interface {
	// contains filtered or unexported methods
}

type GetExperimentNotFound

type GetExperimentNotFound struct {
	Data io.Reader
}

func (GetExperimentNotFound) Read

func (s GetExperimentNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetExperimentParams

type GetExperimentParams struct {
	ExperimentID string
}

GetExperimentParams is parameters of getExperiment operation.

type GetExperimentRes

type GetExperimentRes interface {
	// contains filtered or unexported methods
}

type GetExperimentResponseBody

type GetExperimentResponseBody struct {
	Data Experiment `json:"data"`
}

Ref: #/components/schemas/GetExperimentResponseBody

func (*GetExperimentResponseBody) Decode

func (s *GetExperimentResponseBody) Decode(d *jx.Decoder) error

Decode decodes GetExperimentResponseBody from json.

func (*GetExperimentResponseBody) Encode

func (s *GetExperimentResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetExperimentResponseBody) GetData

GetData returns the value of Data.

func (*GetExperimentResponseBody) MarshalJSON

func (s *GetExperimentResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExperimentResponseBody) SetData

func (s *GetExperimentResponseBody) SetData(val Experiment)

SetData sets the value of Data.

func (*GetExperimentResponseBody) UnmarshalJSON

func (s *GetExperimentResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetIncompleteEvaluationsResponseBody

type GetIncompleteEvaluationsResponseBody struct {
	Data       []IncompleteExperimentEvaluation `json:"data"`
	NextCursor NilString                        `json:"next_cursor"`
}

Ref: #/components/schemas/GetIncompleteEvaluationsResponseBody

func (*GetIncompleteEvaluationsResponseBody) Decode

Decode decodes GetIncompleteEvaluationsResponseBody from json.

func (*GetIncompleteEvaluationsResponseBody) Encode

Encode implements json.Marshaler.

func (*GetIncompleteEvaluationsResponseBody) GetData

GetData returns the value of Data.

func (*GetIncompleteEvaluationsResponseBody) GetNextCursor

GetNextCursor returns the value of NextCursor.

func (*GetIncompleteEvaluationsResponseBody) MarshalJSON

func (s *GetIncompleteEvaluationsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetIncompleteEvaluationsResponseBody) SetData

SetData sets the value of Data.

func (*GetIncompleteEvaluationsResponseBody) SetNextCursor

func (s *GetIncompleteEvaluationsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetIncompleteEvaluationsResponseBody) UnmarshalJSON

func (s *GetIncompleteEvaluationsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetIncompleteEvaluationsResponseBody) Validate

type GetIncompleteExperimentEvaluationsBadRequest

type GetIncompleteExperimentEvaluationsBadRequest struct {
	Data io.Reader
}

func (GetIncompleteExperimentEvaluationsBadRequest) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetIncompleteExperimentEvaluationsForbidden

type GetIncompleteExperimentEvaluationsForbidden struct {
	Data io.Reader
}

func (GetIncompleteExperimentEvaluationsForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetIncompleteExperimentEvaluationsNotFound

type GetIncompleteExperimentEvaluationsNotFound struct {
	Data io.Reader
}

func (GetIncompleteExperimentEvaluationsNotFound) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetIncompleteExperimentEvaluationsParams

type GetIncompleteExperimentEvaluationsParams struct {
	ExperimentID string
	// Evaluation names to check.
	EvaluationName []string `json:",omitempty"`
	// Cursor for pagination.
	Cursor OptNilString `json:",omitempty,omitzero"`
	// Maximum number of runs with incomplete evaluations to return.
	Limit OptInt `json:",omitempty,omitzero"`
}

GetIncompleteExperimentEvaluationsParams is parameters of getIncompleteExperimentEvaluations operation.

type GetIncompleteExperimentEvaluationsRes

type GetIncompleteExperimentEvaluationsRes interface {
	// contains filtered or unexported methods
}

type GetIncompleteExperimentEvaluationsUnprocessableEntity

type GetIncompleteExperimentEvaluationsUnprocessableEntity struct {
	Data io.Reader
}

func (GetIncompleteExperimentEvaluationsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetIncompleteExperimentRunsForbidden

type GetIncompleteExperimentRunsForbidden struct {
	Data io.Reader
}

func (GetIncompleteExperimentRunsForbidden) Read

func (s GetIncompleteExperimentRunsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetIncompleteExperimentRunsNotFound

type GetIncompleteExperimentRunsNotFound struct {
	Data io.Reader
}

func (GetIncompleteExperimentRunsNotFound) Read

func (s GetIncompleteExperimentRunsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetIncompleteExperimentRunsParams

type GetIncompleteExperimentRunsParams struct {
	ExperimentID string
	// Cursor for pagination.
	Cursor OptNilString `json:",omitempty,omitzero"`
	// Maximum number of examples with incomplete runs to return.
	Limit OptInt `json:",omitempty,omitzero"`
}

GetIncompleteExperimentRunsParams is parameters of getIncompleteExperimentRuns operation.

type GetIncompleteExperimentRunsRes

type GetIncompleteExperimentRunsRes interface {
	// contains filtered or unexported methods
}

type GetIncompleteExperimentRunsResponseBody

type GetIncompleteExperimentRunsResponseBody struct {
	Data       []IncompleteExperimentRun `json:"data"`
	NextCursor NilString                 `json:"next_cursor"`
}

Ref: #/components/schemas/GetIncompleteExperimentRunsResponseBody

func (*GetIncompleteExperimentRunsResponseBody) Decode

Decode decodes GetIncompleteExperimentRunsResponseBody from json.

func (*GetIncompleteExperimentRunsResponseBody) Encode

Encode implements json.Marshaler.

func (*GetIncompleteExperimentRunsResponseBody) GetData

GetData returns the value of Data.

func (*GetIncompleteExperimentRunsResponseBody) GetNextCursor

GetNextCursor returns the value of NextCursor.

func (*GetIncompleteExperimentRunsResponseBody) MarshalJSON

func (s *GetIncompleteExperimentRunsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetIncompleteExperimentRunsResponseBody) SetData

SetData sets the value of Data.

func (*GetIncompleteExperimentRunsResponseBody) SetNextCursor

func (s *GetIncompleteExperimentRunsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetIncompleteExperimentRunsResponseBody) UnmarshalJSON

func (s *GetIncompleteExperimentRunsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetIncompleteExperimentRunsResponseBody) Validate

type GetIncompleteExperimentRunsUnprocessableEntity

type GetIncompleteExperimentRunsUnprocessableEntity struct {
	Data io.Reader
}

func (GetIncompleteExperimentRunsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetProjectForbidden

type GetProjectForbidden struct {
	Data io.Reader
}

func (GetProjectForbidden) Read

func (s GetProjectForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetProjectNotFound

type GetProjectNotFound struct {
	Data io.Reader
}

func (GetProjectNotFound) Read

func (s GetProjectNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetProjectParams

type GetProjectParams struct {
	// The project identifier: either project ID or project name. If using a project name, it cannot
	// contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
}

GetProjectParams is parameters of getProject operation.

type GetProjectRes

type GetProjectRes interface {
	// contains filtered or unexported methods
}

type GetProjectResponseBody

type GetProjectResponseBody struct {
	Data Project `json:"data"`
}

Ref: #/components/schemas/GetProjectResponseBody

func (*GetProjectResponseBody) Decode

func (s *GetProjectResponseBody) Decode(d *jx.Decoder) error

Decode decodes GetProjectResponseBody from json.

func (*GetProjectResponseBody) Encode

func (s *GetProjectResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetProjectResponseBody) GetData

func (s *GetProjectResponseBody) GetData() Project

GetData returns the value of Data.

func (*GetProjectResponseBody) MarshalJSON

func (s *GetProjectResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetProjectResponseBody) SetData

func (s *GetProjectResponseBody) SetData(val Project)

SetData sets the value of Data.

func (*GetProjectResponseBody) UnmarshalJSON

func (s *GetProjectResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetProjectResponseBody) Validate

func (s *GetProjectResponseBody) Validate() error

type GetProjectUnprocessableEntity

type GetProjectUnprocessableEntity struct {
	Data io.Reader
}

func (GetProjectUnprocessableEntity) Read

func (s GetProjectUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetProjectsForbidden

type GetProjectsForbidden struct {
	Data io.Reader
}

func (GetProjectsForbidden) Read

func (s GetProjectsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetProjectsParams

type GetProjectsParams struct {
	// Cursor for pagination (project ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The max number of projects to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
	// Include experiment projects in the response. Experiment projects are created from running
	// experiments.
	IncludeExperimentProjects OptBool `json:",omitempty,omitzero"`
}

GetProjectsParams is parameters of getProjects operation.

type GetProjectsRes

type GetProjectsRes interface {
	// contains filtered or unexported methods
}

type GetProjectsResponseBody

type GetProjectsResponseBody struct {
	Data       []Project `json:"data"`
	NextCursor NilString `json:"next_cursor"`
}

Ref: #/components/schemas/GetProjectsResponseBody

func (*GetProjectsResponseBody) Decode

func (s *GetProjectsResponseBody) Decode(d *jx.Decoder) error

Decode decodes GetProjectsResponseBody from json.

func (*GetProjectsResponseBody) Encode

func (s *GetProjectsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetProjectsResponseBody) GetData

func (s *GetProjectsResponseBody) GetData() []Project

GetData returns the value of Data.

func (*GetProjectsResponseBody) GetNextCursor

func (s *GetProjectsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*GetProjectsResponseBody) MarshalJSON

func (s *GetProjectsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetProjectsResponseBody) SetData

func (s *GetProjectsResponseBody) SetData(val []Project)

SetData sets the value of Data.

func (*GetProjectsResponseBody) SetNextCursor

func (s *GetProjectsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetProjectsResponseBody) UnmarshalJSON

func (s *GetProjectsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetProjectsResponseBody) Validate

func (s *GetProjectsResponseBody) Validate() error

type GetProjectsUnprocessableEntity

type GetProjectsUnprocessableEntity struct {
	Data io.Reader
}

func (GetProjectsUnprocessableEntity) Read

func (s GetProjectsUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptResponseBody

type GetPromptResponseBody struct {
	Data PromptVersion `json:"data"`
}

Ref: #/components/schemas/GetPromptResponseBody

func (*GetPromptResponseBody) Decode

func (s *GetPromptResponseBody) Decode(d *jx.Decoder) error

Decode decodes GetPromptResponseBody from json.

func (*GetPromptResponseBody) Encode

func (s *GetPromptResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetPromptResponseBody) GetData

func (s *GetPromptResponseBody) GetData() PromptVersion

GetData returns the value of Data.

func (*GetPromptResponseBody) MarshalJSON

func (s *GetPromptResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetPromptResponseBody) SetData

func (s *GetPromptResponseBody) SetData(val PromptVersion)

SetData sets the value of Data.

func (*GetPromptResponseBody) UnmarshalJSON

func (s *GetPromptResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetPromptResponseBody) Validate

func (s *GetPromptResponseBody) Validate() error

type GetPromptVersionByPromptVersionIdForbidden

type GetPromptVersionByPromptVersionIdForbidden struct {
	Data io.Reader
}

func (GetPromptVersionByPromptVersionIdForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionByPromptVersionIdNotFound

type GetPromptVersionByPromptVersionIdNotFound struct {
	Data io.Reader
}

func (GetPromptVersionByPromptVersionIdNotFound) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionByPromptVersionIdParams

type GetPromptVersionByPromptVersionIdParams struct {
	// The ID of the prompt version.
	PromptVersionID string
}

GetPromptVersionByPromptVersionIdParams is parameters of getPromptVersionByPromptVersionId operation.

type GetPromptVersionByPromptVersionIdRes

type GetPromptVersionByPromptVersionIdRes interface {
	// contains filtered or unexported methods
}

type GetPromptVersionByPromptVersionIdUnprocessableEntity

type GetPromptVersionByPromptVersionIdUnprocessableEntity struct {
	Data io.Reader
}

func (GetPromptVersionByPromptVersionIdUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionByTagNameForbidden

type GetPromptVersionByTagNameForbidden struct {
	Data io.Reader
}

func (GetPromptVersionByTagNameForbidden) Read

func (s GetPromptVersionByTagNameForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionByTagNameNotFound

type GetPromptVersionByTagNameNotFound struct {
	Data io.Reader
}

func (GetPromptVersionByTagNameNotFound) Read

func (s GetPromptVersionByTagNameNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionByTagNameParams

type GetPromptVersionByTagNameParams struct {
	// The identifier of the prompt, i.e. name or ID.
	PromptIdentifier string
	// The tag of the prompt version.
	TagName string
}

GetPromptVersionByTagNameParams is parameters of getPromptVersionByTagName operation.

type GetPromptVersionByTagNameRes

type GetPromptVersionByTagNameRes interface {
	// contains filtered or unexported methods
}

type GetPromptVersionByTagNameUnprocessableEntity

type GetPromptVersionByTagNameUnprocessableEntity struct {
	Data io.Reader
}

func (GetPromptVersionByTagNameUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionLatestForbidden

type GetPromptVersionLatestForbidden struct {
	Data io.Reader
}

func (GetPromptVersionLatestForbidden) Read

func (s GetPromptVersionLatestForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionLatestNotFound

type GetPromptVersionLatestNotFound struct {
	Data io.Reader
}

func (GetPromptVersionLatestNotFound) Read

func (s GetPromptVersionLatestNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionLatestParams

type GetPromptVersionLatestParams struct {
	// The identifier of the prompt, i.e. name or ID.
	PromptIdentifier string
}

GetPromptVersionLatestParams is parameters of getPromptVersionLatest operation.

type GetPromptVersionLatestRes

type GetPromptVersionLatestRes interface {
	// contains filtered or unexported methods
}

type GetPromptVersionLatestUnprocessableEntity

type GetPromptVersionLatestUnprocessableEntity struct {
	Data io.Reader
}

func (GetPromptVersionLatestUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionTagsForbidden

type GetPromptVersionTagsForbidden struct {
	Data io.Reader
}

func (GetPromptVersionTagsForbidden) Read

func (s GetPromptVersionTagsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionTagsNotFound

type GetPromptVersionTagsNotFound struct {
	Data io.Reader
}

func (GetPromptVersionTagsNotFound) Read

func (s GetPromptVersionTagsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionTagsParams

type GetPromptVersionTagsParams struct {
	// The ID of the prompt version.
	PromptVersionID string
	// Cursor for pagination (base64-encoded promptVersionTag ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The max number of tags to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
}

GetPromptVersionTagsParams is parameters of getPromptVersionTags operation.

type GetPromptVersionTagsRes

type GetPromptVersionTagsRes interface {
	// contains filtered or unexported methods
}

type GetPromptVersionTagsResponseBody

type GetPromptVersionTagsResponseBody struct {
	Data       []PromptVersionTag `json:"data"`
	NextCursor NilString          `json:"next_cursor"`
}

Ref: #/components/schemas/GetPromptVersionTagsResponseBody

func (*GetPromptVersionTagsResponseBody) Decode

Decode decodes GetPromptVersionTagsResponseBody from json.

func (*GetPromptVersionTagsResponseBody) Encode

Encode implements json.Marshaler.

func (*GetPromptVersionTagsResponseBody) GetData

GetData returns the value of Data.

func (*GetPromptVersionTagsResponseBody) GetNextCursor

func (s *GetPromptVersionTagsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*GetPromptVersionTagsResponseBody) MarshalJSON

func (s *GetPromptVersionTagsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetPromptVersionTagsResponseBody) SetData

SetData sets the value of Data.

func (*GetPromptVersionTagsResponseBody) SetNextCursor

func (s *GetPromptVersionTagsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetPromptVersionTagsResponseBody) UnmarshalJSON

func (s *GetPromptVersionTagsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetPromptVersionTagsResponseBody) Validate

type GetPromptVersionTagsUnprocessableEntity

type GetPromptVersionTagsUnprocessableEntity struct {
	Data io.Reader
}

func (GetPromptVersionTagsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptVersionsResponseBody

type GetPromptVersionsResponseBody struct {
	Data       []PromptVersion `json:"data"`
	NextCursor NilString       `json:"next_cursor"`
}

Ref: #/components/schemas/GetPromptVersionsResponseBody

func (*GetPromptVersionsResponseBody) Decode

Decode decodes GetPromptVersionsResponseBody from json.

func (*GetPromptVersionsResponseBody) Encode

Encode implements json.Marshaler.

func (*GetPromptVersionsResponseBody) GetData

GetData returns the value of Data.

func (*GetPromptVersionsResponseBody) GetNextCursor

func (s *GetPromptVersionsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*GetPromptVersionsResponseBody) MarshalJSON

func (s *GetPromptVersionsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetPromptVersionsResponseBody) SetData

func (s *GetPromptVersionsResponseBody) SetData(val []PromptVersion)

SetData sets the value of Data.

func (*GetPromptVersionsResponseBody) SetNextCursor

func (s *GetPromptVersionsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetPromptVersionsResponseBody) UnmarshalJSON

func (s *GetPromptVersionsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetPromptVersionsResponseBody) Validate

func (s *GetPromptVersionsResponseBody) Validate() error

type GetPromptsForbidden

type GetPromptsForbidden struct {
	Data io.Reader
}

func (GetPromptsForbidden) Read

func (s GetPromptsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetPromptsParams

type GetPromptsParams struct {
	// Cursor for pagination (base64-encoded prompt ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The max number of prompts to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
}

GetPromptsParams is parameters of getPrompts operation.

type GetPromptsRes

type GetPromptsRes interface {
	// contains filtered or unexported methods
}

type GetPromptsResponseBody

type GetPromptsResponseBody struct {
	Data       []Prompt  `json:"data"`
	NextCursor NilString `json:"next_cursor"`
}

Ref: #/components/schemas/GetPromptsResponseBody

func (*GetPromptsResponseBody) Decode

func (s *GetPromptsResponseBody) Decode(d *jx.Decoder) error

Decode decodes GetPromptsResponseBody from json.

func (*GetPromptsResponseBody) Encode

func (s *GetPromptsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetPromptsResponseBody) GetData

func (s *GetPromptsResponseBody) GetData() []Prompt

GetData returns the value of Data.

func (*GetPromptsResponseBody) GetNextCursor

func (s *GetPromptsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*GetPromptsResponseBody) MarshalJSON

func (s *GetPromptsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetPromptsResponseBody) SetData

func (s *GetPromptsResponseBody) SetData(val []Prompt)

SetData sets the value of Data.

func (*GetPromptsResponseBody) SetNextCursor

func (s *GetPromptsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetPromptsResponseBody) UnmarshalJSON

func (s *GetPromptsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetPromptsResponseBody) Validate

func (s *GetPromptsResponseBody) Validate() error

type GetPromptsUnprocessableEntity

type GetPromptsUnprocessableEntity struct {
	Data io.Reader
}

func (GetPromptsUnprocessableEntity) Read

func (s GetPromptsUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetSpansForbidden

type GetSpansForbidden struct {
	Data io.Reader
}

func (GetSpansForbidden) Read

func (s GetSpansForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetSpansNotFound

type GetSpansNotFound struct {
	Data io.Reader
}

func (GetSpansNotFound) Read

func (s GetSpansNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetSpansParams

type GetSpansParams struct {
	// The project identifier: either project ID or project name. If using a project name, it cannot
	// contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
	// Pagination cursor (Span Global ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// Maximum number of spans to return.
	Limit OptInt `json:",omitempty,omitzero"`
	// Inclusive lower bound time.
	StartTime OptNilDateTime `json:",omitempty,omitzero"`
	// Exclusive upper bound time.
	EndTime OptNilDateTime `json:",omitempty,omitzero"`
}

GetSpansParams is parameters of getSpans operation.

type GetSpansRes

type GetSpansRes interface {
	// contains filtered or unexported methods
}

type GetSpansUnprocessableEntity

type GetSpansUnprocessableEntity struct {
	Data io.Reader
}

func (GetSpansUnprocessableEntity) Read

func (s GetSpansUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetUsersForbidden

type GetUsersForbidden struct {
	Data io.Reader
}

func (GetUsersForbidden) Read

func (s GetUsersForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetUsersParams

type GetUsersParams struct {
	// Cursor for pagination (base64-encoded user ID).
	Cursor OptString `json:",omitempty,omitzero"`
	// The max number of users to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
}

GetUsersParams is parameters of getUsers operation.

type GetUsersRes

type GetUsersRes interface {
	// contains filtered or unexported methods
}

type GetUsersResponseBody

type GetUsersResponseBody struct {
	Data       []GetUsersResponseBodyDataItem `json:"data"`
	NextCursor NilString                      `json:"next_cursor"`
}

Ref: #/components/schemas/GetUsersResponseBody

func (*GetUsersResponseBody) Decode

func (s *GetUsersResponseBody) Decode(d *jx.Decoder) error

Decode decodes GetUsersResponseBody from json.

func (*GetUsersResponseBody) Encode

func (s *GetUsersResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetUsersResponseBody) GetData

GetData returns the value of Data.

func (*GetUsersResponseBody) GetNextCursor

func (s *GetUsersResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*GetUsersResponseBody) MarshalJSON

func (s *GetUsersResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUsersResponseBody) SetData

SetData sets the value of Data.

func (*GetUsersResponseBody) SetNextCursor

func (s *GetUsersResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*GetUsersResponseBody) UnmarshalJSON

func (s *GetUsersResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetUsersResponseBody) Validate

func (s *GetUsersResponseBody) Validate() error

type GetUsersResponseBodyDataItem

type GetUsersResponseBodyDataItem struct {
	Type       GetUsersResponseBodyDataItemType // switch on this field
	LocalUser  LocalUser
	OAuth2User OAuth2User
	LDAPUser   LDAPUser
}

GetUsersResponseBodyDataItem represents sum type.

func NewLDAPUserGetUsersResponseBodyDataItem

func NewLDAPUserGetUsersResponseBodyDataItem(v LDAPUser) GetUsersResponseBodyDataItem

NewLDAPUserGetUsersResponseBodyDataItem returns new GetUsersResponseBodyDataItem from LDAPUser.

func NewLocalUserGetUsersResponseBodyDataItem

func NewLocalUserGetUsersResponseBodyDataItem(v LocalUser) GetUsersResponseBodyDataItem

NewLocalUserGetUsersResponseBodyDataItem returns new GetUsersResponseBodyDataItem from LocalUser.

func NewOAuth2UserGetUsersResponseBodyDataItem

func NewOAuth2UserGetUsersResponseBodyDataItem(v OAuth2User) GetUsersResponseBodyDataItem

NewOAuth2UserGetUsersResponseBodyDataItem returns new GetUsersResponseBodyDataItem from OAuth2User.

func (*GetUsersResponseBodyDataItem) Decode

Decode decodes GetUsersResponseBodyDataItem from json.

func (GetUsersResponseBodyDataItem) Encode

Encode encodes GetUsersResponseBodyDataItem as json.

func (GetUsersResponseBodyDataItem) GetLDAPUser

func (s GetUsersResponseBodyDataItem) GetLDAPUser() (v LDAPUser, ok bool)

GetLDAPUser returns LDAPUser and true boolean if GetUsersResponseBodyDataItem is LDAPUser.

func (GetUsersResponseBodyDataItem) GetLocalUser

func (s GetUsersResponseBodyDataItem) GetLocalUser() (v LocalUser, ok bool)

GetLocalUser returns LocalUser and true boolean if GetUsersResponseBodyDataItem is LocalUser.

func (GetUsersResponseBodyDataItem) GetOAuth2User

func (s GetUsersResponseBodyDataItem) GetOAuth2User() (v OAuth2User, ok bool)

GetOAuth2User returns OAuth2User and true boolean if GetUsersResponseBodyDataItem is OAuth2User.

func (GetUsersResponseBodyDataItem) IsLDAPUser

func (s GetUsersResponseBodyDataItem) IsLDAPUser() bool

IsLDAPUser reports whether GetUsersResponseBodyDataItem is LDAPUser.

func (GetUsersResponseBodyDataItem) IsLocalUser

func (s GetUsersResponseBodyDataItem) IsLocalUser() bool

IsLocalUser reports whether GetUsersResponseBodyDataItem is LocalUser.

func (GetUsersResponseBodyDataItem) IsOAuth2User

func (s GetUsersResponseBodyDataItem) IsOAuth2User() bool

IsOAuth2User reports whether GetUsersResponseBodyDataItem is OAuth2User.

func (GetUsersResponseBodyDataItem) MarshalJSON

func (s GetUsersResponseBodyDataItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUsersResponseBodyDataItem) SetLDAPUser

func (s *GetUsersResponseBodyDataItem) SetLDAPUser(v LDAPUser)

SetLDAPUser sets GetUsersResponseBodyDataItem to LDAPUser.

func (*GetUsersResponseBodyDataItem) SetLocalUser

func (s *GetUsersResponseBodyDataItem) SetLocalUser(v LocalUser)

SetLocalUser sets GetUsersResponseBodyDataItem to LocalUser.

func (*GetUsersResponseBodyDataItem) SetOAuth2User

func (s *GetUsersResponseBodyDataItem) SetOAuth2User(v OAuth2User)

SetOAuth2User sets GetUsersResponseBodyDataItem to OAuth2User.

func (*GetUsersResponseBodyDataItem) UnmarshalJSON

func (s *GetUsersResponseBodyDataItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetUsersResponseBodyDataItem) Validate

func (s GetUsersResponseBodyDataItem) Validate() error

type GetUsersResponseBodyDataItemType

type GetUsersResponseBodyDataItemType string

GetUsersResponseBodyDataItemType is oneOf type of GetUsersResponseBodyDataItem.

const (
	LocalUserGetUsersResponseBodyDataItem  GetUsersResponseBodyDataItemType = "LOCAL"
	OAuth2UserGetUsersResponseBodyDataItem GetUsersResponseBodyDataItemType = "OAUTH2"
	LDAPUserGetUsersResponseBodyDataItem   GetUsersResponseBodyDataItemType = "LDAP"
)

Possible values for GetUsersResponseBodyDataItemType.

type GetUsersUnprocessableEntity

type GetUsersUnprocessableEntity struct {
	Data io.Reader
}

func (GetUsersUnprocessableEntity) Read

func (s GetUsersUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type HTTPValidationError

type HTTPValidationError struct {
	Detail []ValidationError `json:"detail"`
}

Ref: #/components/schemas/HTTPValidationError

func (*HTTPValidationError) Decode

func (s *HTTPValidationError) Decode(d *jx.Decoder) error

Decode decodes HTTPValidationError from json.

func (*HTTPValidationError) Encode

func (s *HTTPValidationError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HTTPValidationError) GetDetail

func (s *HTTPValidationError) GetDetail() []ValidationError

GetDetail returns the value of Detail.

func (*HTTPValidationError) MarshalJSON

func (s *HTTPValidationError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HTTPValidationError) SetDetail

func (s *HTTPValidationError) SetDetail(val []ValidationError)

SetDetail sets the value of Detail.

func (*HTTPValidationError) UnmarshalJSON

func (s *HTTPValidationError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HTTPValidationError) Validate

func (s *HTTPValidationError) Validate() error

type Handler

type Handler interface {
	// AddEvaluations implements addEvaluations operation.
	//
	// Add span, trace, or document evaluations.
	//
	// POST /v1/evaluations
	AddEvaluations(ctx context.Context, req AddEvaluationsReq, params AddEvaluationsParams) (AddEvaluationsRes, error)
	// AnnotateSessions implements annotateSessions operation.
	//
	// Create session annotations.
	//
	// POST /v1/session_annotations
	AnnotateSessions(ctx context.Context, req *AnnotateSessionsRequestBody, params AnnotateSessionsParams) (AnnotateSessionsRes, error)
	// AnnotateSpanDocuments implements annotateSpanDocuments operation.
	//
	// Annotate Span Documents.
	//
	// POST /v1/document_annotations
	AnnotateSpanDocuments(ctx context.Context, req *AnnotateSpanDocumentsRequestBody, params AnnotateSpanDocumentsParams) (AnnotateSpanDocumentsRes, error)
	// AnnotateSpans implements annotateSpans operation.
	//
	// Create span annotations.
	//
	// POST /v1/span_annotations
	AnnotateSpans(ctx context.Context, req *AnnotateSpansRequestBody, params AnnotateSpansParams) (AnnotateSpansRes, error)
	// AnnotateTraces implements annotateTraces operation.
	//
	// Create trace annotations.
	//
	// POST /v1/trace_annotations
	AnnotateTraces(ctx context.Context, req *AnnotateTracesRequestBody, params AnnotateTracesParams) (AnnotateTracesRes, error)
	// CreateAnnotationConfigV1AnnotationConfigsPost implements create_annotation_config_v1_annotation_configs_post operation.
	//
	// Create an annotation configuration.
	//
	// POST /v1/annotation_configs
	CreateAnnotationConfigV1AnnotationConfigsPost(ctx context.Context, req CreateAnnotationConfigData) (CreateAnnotationConfigV1AnnotationConfigsPostRes, error)
	// CreateExperiment implements createExperiment operation.
	//
	// Create experiment on a dataset.
	//
	// POST /v1/datasets/{dataset_id}/experiments
	CreateExperiment(ctx context.Context, req *CreateExperimentRequestBody, params CreateExperimentParams) (CreateExperimentRes, error)
	// CreateExperimentRun implements createExperimentRun operation.
	//
	// Create run for an experiment.
	//
	// POST /v1/experiments/{experiment_id}/runs
	CreateExperimentRun(ctx context.Context, req *CreateExperimentRunRequestBody, params CreateExperimentRunParams) (CreateExperimentRunRes, error)
	// CreateProject implements createProject operation.
	//
	// Create a new project with the specified configuration.
	//
	// POST /v1/projects
	CreateProject(ctx context.Context, req *CreateProjectRequestBody) (CreateProjectRes, error)
	// CreatePromptVersionTag implements createPromptVersionTag operation.
	//
	// Add a new tag to a specific prompt version. Tags help identify and categorize different versions
	// of a prompt.
	//
	// POST /v1/prompt_versions/{prompt_version_id}/tags
	CreatePromptVersionTag(ctx context.Context, req *PromptVersionTagData, params CreatePromptVersionTagParams) (CreatePromptVersionTagRes, error)
	// CreateSpanNote implements createSpanNote operation.
	//
	// Add a note annotation to a span. Notes are special annotations that allow multiple entries per
	// span (unlike regular annotations which are unique by name and identifier). Each note gets a unique
	// timestamp-based identifier.
	//
	// POST /v1/span_notes
	CreateSpanNote(ctx context.Context, req *CreateSpanNoteRequestBody) (CreateSpanNoteRes, error)
	// CreateSpans implements createSpans operation.
	//
	// Submit spans to be inserted into a project. If any spans are invalid or duplicates, no spans will
	// be inserted.
	//
	// POST /v1/projects/{project_identifier}/spans
	CreateSpans(ctx context.Context, req *CreateSpansRequestBody, params CreateSpansParams) (CreateSpansRes, error)
	// CreateUser implements createUser operation.
	//
	// Create a new user with the specified configuration.
	//
	// POST /v1/users
	CreateUser(ctx context.Context, req *CreateUserRequestBody) (CreateUserRes, error)
	// DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete implements delete_annotation_config_v1_annotation_configs__config_id__delete operation.
	//
	// Delete an annotation configuration.
	//
	// DELETE /v1/annotation_configs/{config_id}
	DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete(ctx context.Context, params DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteParams) (DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteRes, error)
	// DeleteDatasetById implements deleteDatasetById operation.
	//
	// Delete dataset by ID.
	//
	// DELETE /v1/datasets/{id}
	DeleteDatasetById(ctx context.Context, params DeleteDatasetByIdParams) (DeleteDatasetByIdRes, error)
	// DeleteExperiment implements deleteExperiment operation.
	//
	// Delete experiment by ID.
	//
	// DELETE /v1/experiments/{experiment_id}
	DeleteExperiment(ctx context.Context, params DeleteExperimentParams) (DeleteExperimentRes, error)
	// DeleteProject implements deleteProject operation.
	//
	// Delete an existing project and all its associated data. The project identifier is either project
	// ID or project name. The default project cannot be deleted. Note: When using a project name as the
	// identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
	//
	// DELETE /v1/projects/{project_identifier}
	DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
	// DeleteSpan implements deleteSpan operation.
	//
	// Delete a single span by identifier.
	// **Important**: This operation deletes ONLY the specified span itself and does NOT
	// delete its descendants/children. All child spans will remain in the trace and
	// become orphaned (their parent_id will point to a non-existent span).
	// Behavior:
	// - Deletes only the target span (preserves all descendant spans)
	// - If this was the last span in the trace, the trace record is also deleted
	// - If the deleted span had a parent, its cumulative metrics (error count, token counts)
	// are subtracted from all ancestor spans in the chain
	// **Note**: This operation is irreversible and may create orphaned spans.
	//
	// DELETE /v1/spans/{span_identifier}
	DeleteSpan(ctx context.Context, params DeleteSpanParams) (DeleteSpanRes, error)
	// DeleteTrace implements deleteTrace operation.
	//
	// Delete an entire trace by its identifier. The identifier can be either:
	// 1. A Relay node ID (base64-encoded)
	// 2. An OpenTelemetry trace_id (hex string)
	// This will permanently remove all spans in the trace and their associated data.
	//
	// DELETE /v1/traces/{trace_identifier}
	DeleteTrace(ctx context.Context, params DeleteTraceParams) (DeleteTraceRes, error)
	// DeleteUser implements deleteUser operation.
	//
	// Delete an existing user by their unique GlobalID.
	//
	// DELETE /v1/users/{user_id}
	DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
	// GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet implements get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get operation.
	//
	// Get an annotation configuration by ID or name.
	//
	// GET /v1/annotation_configs/{config_identifier}
	GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet(ctx context.Context, params GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetParams) (GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetRes, error)
	// GetDataset implements getDataset operation.
	//
	// Get dataset by ID.
	//
	// GET /v1/datasets/{id}
	GetDataset(ctx context.Context, params GetDatasetParams) (GetDatasetRes, error)
	// GetDatasetCsv implements getDatasetCsv operation.
	//
	// Download dataset examples as CSV file.
	//
	// GET /v1/datasets/{id}/csv
	GetDatasetCsv(ctx context.Context, params GetDatasetCsvParams) (GetDatasetCsvRes, error)
	// GetDatasetExamples implements getDatasetExamples operation.
	//
	// Get examples from a dataset.
	//
	// GET /v1/datasets/{id}/examples
	GetDatasetExamples(ctx context.Context, params GetDatasetExamplesParams) (GetDatasetExamplesRes, error)
	// GetDatasetJSONLOpenAIEvals implements getDatasetJSONLOpenAIEvals operation.
	//
	// Download dataset examples as OpenAI evals JSONL file.
	//
	// GET /v1/datasets/{id}/jsonl/openai_evals
	GetDatasetJSONLOpenAIEvals(ctx context.Context, params GetDatasetJSONLOpenAIEvalsParams) (GetDatasetJSONLOpenAIEvalsRes, error)
	// GetDatasetJSONLOpenAIFineTuning implements getDatasetJSONLOpenAIFineTuning operation.
	//
	// Download dataset examples as OpenAI fine-tuning JSONL file.
	//
	// GET /v1/datasets/{id}/jsonl/openai_ft
	GetDatasetJSONLOpenAIFineTuning(ctx context.Context, params GetDatasetJSONLOpenAIFineTuningParams) (GetDatasetJSONLOpenAIFineTuningRes, error)
	// GetEvaluations implements getEvaluations operation.
	//
	// Get span, trace, or document evaluations from a project.
	//
	// GET /v1/evaluations
	GetEvaluations(ctx context.Context, params GetEvaluationsParams) (GetEvaluationsRes, error)
	// GetExperiment implements getExperiment operation.
	//
	// Get experiment by ID.
	//
	// GET /v1/experiments/{experiment_id}
	GetExperiment(ctx context.Context, params GetExperimentParams) (GetExperimentRes, error)
	// GetExperimentCSV implements getExperimentCSV operation.
	//
	// Download experiment runs as a CSV file.
	//
	// GET /v1/experiments/{experiment_id}/csv
	GetExperimentCSV(ctx context.Context, params GetExperimentCSVParams) (GetExperimentCSVRes, error)
	// GetExperimentJSON implements getExperimentJSON operation.
	//
	// Download experiment runs as a JSON file.
	//
	// GET /v1/experiments/{experiment_id}/json
	GetExperimentJSON(ctx context.Context, params GetExperimentJSONParams) (GetExperimentJSONRes, error)
	// GetIncompleteExperimentEvaluations implements getIncompleteExperimentEvaluations operation.
	//
	// Get experiment runs that have incomplete evaluations.
	// Returns runs with:
	// - Missing evaluations (evaluator has not been run)
	// - Failed evaluations (evaluator ran but has errors)
	// Args:
	// experiment_id: The ID of the experiment
	// evaluation_name: List of evaluation names to check (required, at least one)
	// cursor: Cursor for pagination
	// limit: Maximum number of results to return
	// Returns:
	// Paginated list of runs with incomplete evaluations.
	//
	// GET /v1/experiments/{experiment_id}/incomplete-evaluations
	GetIncompleteExperimentEvaluations(ctx context.Context, params GetIncompleteExperimentEvaluationsParams) (GetIncompleteExperimentEvaluationsRes, error)
	// GetIncompleteExperimentRuns implements getIncompleteExperimentRuns operation.
	//
	// Get runs that need to be completed for this experiment.
	// Returns all incomplete runs, including both missing runs (not yet attempted)
	// and failed runs (attempted but have errors).
	// Args:
	// experiment_id: The ID of the experiment
	// cursor: Cursor for pagination
	// limit: Maximum number of results to return
	// Returns:
	// Paginated list of incomplete runs grouped by dataset example,
	// with repetition numbers that need to be run.
	//
	// GET /v1/experiments/{experiment_id}/incomplete-runs
	GetIncompleteExperimentRuns(ctx context.Context, params GetIncompleteExperimentRunsParams) (GetIncompleteExperimentRunsRes, error)
	// GetProject implements getProject operation.
	//
	// Retrieve a specific project using its unique identifier: either project ID or project name. Note:
	// When using a project name as the identifier, it cannot contain slash (/), question mark (?), or
	// pound sign (#) characters.
	//
	// GET /v1/projects/{project_identifier}
	GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
	// GetProjects implements getProjects operation.
	//
	// Retrieve a paginated list of all projects in the system.
	//
	// GET /v1/projects
	GetProjects(ctx context.Context, params GetProjectsParams) (GetProjectsRes, error)
	// GetPromptVersionByPromptVersionId implements getPromptVersionByPromptVersionId operation.
	//
	// Retrieve a specific prompt version using its unique identifier. A prompt version contains the
	// actual template and configuration.
	//
	// GET /v1/prompt_versions/{prompt_version_id}
	GetPromptVersionByPromptVersionId(ctx context.Context, params GetPromptVersionByPromptVersionIdParams) (GetPromptVersionByPromptVersionIdRes, error)
	// GetPromptVersionByTagName implements getPromptVersionByTagName operation.
	//
	// Retrieve a specific prompt version using its tag name. Tags are used to identify specific versions
	// of a prompt.
	//
	// GET /v1/prompts/{prompt_identifier}/tags/{tag_name}
	GetPromptVersionByTagName(ctx context.Context, params GetPromptVersionByTagNameParams) (GetPromptVersionByTagNameRes, error)
	// GetPromptVersionLatest implements getPromptVersionLatest operation.
	//
	// Retrieve the most recent version of a specific prompt.
	//
	// GET /v1/prompts/{prompt_identifier}/latest
	GetPromptVersionLatest(ctx context.Context, params GetPromptVersionLatestParams) (GetPromptVersionLatestRes, error)
	// GetPromptVersionTags implements getPromptVersionTags operation.
	//
	// Retrieve all tags associated with a specific prompt version. Tags are used to identify and
	// categorize different versions of a prompt.
	//
	// GET /v1/prompt_versions/{prompt_version_id}/tags
	GetPromptVersionTags(ctx context.Context, params GetPromptVersionTagsParams) (GetPromptVersionTagsRes, error)
	// GetPrompts implements getPrompts operation.
	//
	// Retrieve a paginated list of all prompts in the system. A prompt can have multiple versions.
	//
	// GET /v1/prompts
	GetPrompts(ctx context.Context, params GetPromptsParams) (GetPromptsRes, error)
	// GetSpans implements getSpans operation.
	//
	// Return spans within a project filtered by time range. Supports cursor-based pagination.
	//
	// GET /v1/projects/{project_identifier}/spans
	GetSpans(ctx context.Context, params GetSpansParams) (GetSpansRes, error)
	// GetUsers implements getUsers operation.
	//
	// Retrieve a paginated list of all users in the system.
	//
	// GET /v1/users
	GetUsers(ctx context.Context, params GetUsersParams) (GetUsersRes, error)
	// ListAnnotationConfigsV1AnnotationConfigsGet implements list_annotation_configs_v1_annotation_configs_get operation.
	//
	// Retrieve a paginated list of all annotation configurations in the system.
	//
	// GET /v1/annotation_configs
	ListAnnotationConfigsV1AnnotationConfigsGet(ctx context.Context, params ListAnnotationConfigsV1AnnotationConfigsGetParams) (ListAnnotationConfigsV1AnnotationConfigsGetRes, error)
	// ListDatasetVersionsByDatasetId implements listDatasetVersionsByDatasetId operation.
	//
	// List dataset versions.
	//
	// GET /v1/datasets/{id}/versions
	ListDatasetVersionsByDatasetId(ctx context.Context, params ListDatasetVersionsByDatasetIdParams) (ListDatasetVersionsByDatasetIdRes, error)
	// ListDatasets implements listDatasets operation.
	//
	// List datasets.
	//
	// GET /v1/datasets
	ListDatasets(ctx context.Context, params ListDatasetsParams) (ListDatasetsRes, error)
	// ListExperimentRuns implements listExperimentRuns operation.
	//
	// Retrieve a paginated list of runs for an experiment.
	//
	// GET /v1/experiments/{experiment_id}/runs
	ListExperimentRuns(ctx context.Context, params ListExperimentRunsParams) (ListExperimentRunsRes, error)
	// ListExperiments implements listExperiments operation.
	//
	// Retrieve a paginated list of experiments for the specified dataset.
	//
	// GET /v1/datasets/{dataset_id}/experiments
	ListExperiments(ctx context.Context, params ListExperimentsParams) (ListExperimentsRes, error)
	// ListPromptVersions implements listPromptVersions operation.
	//
	// Retrieve all versions of a specific prompt with pagination support. Each prompt can have multiple
	// versions with different configurations.
	//
	// GET /v1/prompts/{prompt_identifier}/versions
	ListPromptVersions(ctx context.Context, params ListPromptVersionsParams) (ListPromptVersionsRes, error)
	// ListSessionAnnotationsBySessionIds implements listSessionAnnotationsBySessionIds operation.
	//
	// Get session annotations for a list of session_ids.
	//
	// GET /v1/projects/{project_identifier}/session_annotations
	ListSessionAnnotationsBySessionIds(ctx context.Context, params ListSessionAnnotationsBySessionIdsParams) (ListSessionAnnotationsBySessionIdsRes, error)
	// ListSpanAnnotationsBySpanIds implements listSpanAnnotationsBySpanIds operation.
	//
	// Get span annotations for a list of span_ids.
	//
	// GET /v1/projects/{project_identifier}/span_annotations
	ListSpanAnnotationsBySpanIds(ctx context.Context, params ListSpanAnnotationsBySpanIdsParams) (ListSpanAnnotationsBySpanIdsRes, error)
	// ListTraceAnnotationsByTraceIds implements listTraceAnnotationsByTraceIds operation.
	//
	// Get trace annotations for a list of trace_ids.
	//
	// GET /v1/projects/{project_identifier}/trace_annotations
	ListTraceAnnotationsByTraceIds(ctx context.Context, params ListTraceAnnotationsByTraceIdsParams) (ListTraceAnnotationsByTraceIdsRes, error)
	// PostPromptVersion implements postPromptVersion operation.
	//
	// Create a new prompt and its initial version. A prompt can have multiple versions.
	//
	// POST /v1/prompts
	PostPromptVersion(ctx context.Context, req *CreatePromptRequestBody) (PostPromptVersionRes, error)
	// UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut implements update_annotation_config_v1_annotation_configs__config_id__put operation.
	//
	// Update an annotation configuration.
	//
	// PUT /v1/annotation_configs/{config_id}
	UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut(ctx context.Context, req CreateAnnotationConfigData, params UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutParams) (UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutRes, error)
	// UpdateProject implements updateProject operation.
	//
	// Update an existing project with new configuration. Project names cannot be changed. The project
	// identifier is either project ID or project name. Note: When using a project name as the identifier,
	//  it cannot contain slash (/), question mark (?), or pound sign (#) characters.
	//
	// PUT /v1/projects/{project_identifier}
	UpdateProject(ctx context.Context, req *UpdateProjectRequestBody, params UpdateProjectParams) (UpdateProjectRes, error)
	// UploadDataset implements uploadDataset operation.
	//
	// Upload dataset from JSON, CSV, or PyArrow.
	//
	// POST /v1/datasets/upload
	UploadDataset(ctx context.Context, req UploadDatasetReq, params UploadDatasetParams) (UploadDatasetRes, error)
	// UpsertExperimentEvaluation implements upsertExperimentEvaluation operation.
	//
	// Create or update evaluation for an experiment run.
	//
	// POST /v1/experiment_evaluations
	UpsertExperimentEvaluation(ctx context.Context, req *UpsertExperimentEvaluationRequestBody) (UpsertExperimentEvaluationRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type Identifier

type Identifier string

func (*Identifier) Decode

func (s *Identifier) Decode(d *jx.Decoder) error

Decode decodes Identifier from json.

func (Identifier) Encode

func (s Identifier) Encode(e *jx.Encoder)

Encode encodes Identifier as json.

func (Identifier) MarshalJSON

func (s Identifier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Identifier) UnmarshalJSON

func (s *Identifier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Identifier) Validate

func (s Identifier) Validate() error

type IncompleteExperimentEvaluation

type IncompleteExperimentEvaluation struct {
	// The dataset example.
	DatasetExample DatasetExample `json:"dataset_example"`
	// List of evaluation names that are incomplete (either missing or failed).
	EvaluationNames []string `json:"evaluation_names"`
	// The experiment run.
	ExperimentRun ExperimentRun `json:"experiment_run"`
}

Information about an experiment run with incomplete evaluations. Ref: #/components/schemas/IncompleteExperimentEvaluation

func (*IncompleteExperimentEvaluation) Decode

Decode decodes IncompleteExperimentEvaluation from json.

func (*IncompleteExperimentEvaluation) Encode

Encode implements json.Marshaler.

func (*IncompleteExperimentEvaluation) GetDatasetExample

func (s *IncompleteExperimentEvaluation) GetDatasetExample() DatasetExample

GetDatasetExample returns the value of DatasetExample.

func (*IncompleteExperimentEvaluation) GetEvaluationNames

func (s *IncompleteExperimentEvaluation) GetEvaluationNames() []string

GetEvaluationNames returns the value of EvaluationNames.

func (*IncompleteExperimentEvaluation) GetExperimentRun

func (s *IncompleteExperimentEvaluation) GetExperimentRun() ExperimentRun

GetExperimentRun returns the value of ExperimentRun.

func (*IncompleteExperimentEvaluation) MarshalJSON

func (s *IncompleteExperimentEvaluation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IncompleteExperimentEvaluation) SetDatasetExample

func (s *IncompleteExperimentEvaluation) SetDatasetExample(val DatasetExample)

SetDatasetExample sets the value of DatasetExample.

func (*IncompleteExperimentEvaluation) SetEvaluationNames

func (s *IncompleteExperimentEvaluation) SetEvaluationNames(val []string)

SetEvaluationNames sets the value of EvaluationNames.

func (*IncompleteExperimentEvaluation) SetExperimentRun

func (s *IncompleteExperimentEvaluation) SetExperimentRun(val ExperimentRun)

SetExperimentRun sets the value of ExperimentRun.

func (*IncompleteExperimentEvaluation) UnmarshalJSON

func (s *IncompleteExperimentEvaluation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IncompleteExperimentEvaluation) Validate

func (s *IncompleteExperimentEvaluation) Validate() error

type IncompleteExperimentRun

type IncompleteExperimentRun struct {
	// The dataset example.
	DatasetExample DatasetExample `json:"dataset_example"`
	// List of repetition numbers that need to be run.
	RepetitionNumbers []int `json:"repetition_numbers"`
}

Information about incomplete runs for a dataset example. Ref: #/components/schemas/IncompleteExperimentRun

func (*IncompleteExperimentRun) Decode

func (s *IncompleteExperimentRun) Decode(d *jx.Decoder) error

Decode decodes IncompleteExperimentRun from json.

func (*IncompleteExperimentRun) Encode

func (s *IncompleteExperimentRun) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IncompleteExperimentRun) GetDatasetExample

func (s *IncompleteExperimentRun) GetDatasetExample() DatasetExample

GetDatasetExample returns the value of DatasetExample.

func (*IncompleteExperimentRun) GetRepetitionNumbers

func (s *IncompleteExperimentRun) GetRepetitionNumbers() []int

GetRepetitionNumbers returns the value of RepetitionNumbers.

func (*IncompleteExperimentRun) MarshalJSON

func (s *IncompleteExperimentRun) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IncompleteExperimentRun) SetDatasetExample

func (s *IncompleteExperimentRun) SetDatasetExample(val DatasetExample)

SetDatasetExample sets the value of DatasetExample.

func (*IncompleteExperimentRun) SetRepetitionNumbers

func (s *IncompleteExperimentRun) SetRepetitionNumbers(val []int)

SetRepetitionNumbers sets the value of RepetitionNumbers.

func (*IncompleteExperimentRun) UnmarshalJSON

func (s *IncompleteExperimentRun) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IncompleteExperimentRun) Validate

func (s *IncompleteExperimentRun) Validate() error

type InsertedSessionAnnotation

type InsertedSessionAnnotation struct {
	// The ID of the inserted session annotation.
	ID string `json:"id"`
}

Ref: #/components/schemas/InsertedSessionAnnotation

func (*InsertedSessionAnnotation) Decode

func (s *InsertedSessionAnnotation) Decode(d *jx.Decoder) error

Decode decodes InsertedSessionAnnotation from json.

func (*InsertedSessionAnnotation) Encode

func (s *InsertedSessionAnnotation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InsertedSessionAnnotation) GetID

func (s *InsertedSessionAnnotation) GetID() string

GetID returns the value of ID.

func (*InsertedSessionAnnotation) MarshalJSON

func (s *InsertedSessionAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InsertedSessionAnnotation) SetID

func (s *InsertedSessionAnnotation) SetID(val string)

SetID sets the value of ID.

func (*InsertedSessionAnnotation) UnmarshalJSON

func (s *InsertedSessionAnnotation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InsertedSpanAnnotation

type InsertedSpanAnnotation struct {
	// The ID of the inserted span annotation.
	ID string `json:"id"`
}

Ref: #/components/schemas/InsertedSpanAnnotation

func (*InsertedSpanAnnotation) Decode

func (s *InsertedSpanAnnotation) Decode(d *jx.Decoder) error

Decode decodes InsertedSpanAnnotation from json.

func (*InsertedSpanAnnotation) Encode

func (s *InsertedSpanAnnotation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InsertedSpanAnnotation) GetID

func (s *InsertedSpanAnnotation) GetID() string

GetID returns the value of ID.

func (*InsertedSpanAnnotation) MarshalJSON

func (s *InsertedSpanAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InsertedSpanAnnotation) SetID

func (s *InsertedSpanAnnotation) SetID(val string)

SetID sets the value of ID.

func (*InsertedSpanAnnotation) UnmarshalJSON

func (s *InsertedSpanAnnotation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InsertedSpanDocumentAnnotation

type InsertedSpanDocumentAnnotation struct {
	// The ID of the inserted span document annotation.
	ID string `json:"id"`
}

Ref: #/components/schemas/InsertedSpanDocumentAnnotation

func (*InsertedSpanDocumentAnnotation) Decode

Decode decodes InsertedSpanDocumentAnnotation from json.

func (*InsertedSpanDocumentAnnotation) Encode

Encode implements json.Marshaler.

func (*InsertedSpanDocumentAnnotation) GetID

GetID returns the value of ID.

func (*InsertedSpanDocumentAnnotation) MarshalJSON

func (s *InsertedSpanDocumentAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InsertedSpanDocumentAnnotation) SetID

func (s *InsertedSpanDocumentAnnotation) SetID(val string)

SetID sets the value of ID.

func (*InsertedSpanDocumentAnnotation) UnmarshalJSON

func (s *InsertedSpanDocumentAnnotation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InsertedTraceAnnotation

type InsertedTraceAnnotation struct {
	// The ID of the inserted trace annotation.
	ID string `json:"id"`
}

Ref: #/components/schemas/InsertedTraceAnnotation

func (*InsertedTraceAnnotation) Decode

func (s *InsertedTraceAnnotation) Decode(d *jx.Decoder) error

Decode decodes InsertedTraceAnnotation from json.

func (*InsertedTraceAnnotation) Encode

func (s *InsertedTraceAnnotation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InsertedTraceAnnotation) GetID

func (s *InsertedTraceAnnotation) GetID() string

GetID returns the value of ID.

func (*InsertedTraceAnnotation) MarshalJSON

func (s *InsertedTraceAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InsertedTraceAnnotation) SetID

func (s *InsertedTraceAnnotation) SetID(val string)

SetID sets the value of ID.

func (*InsertedTraceAnnotation) UnmarshalJSON

func (s *InsertedTraceAnnotation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Invoker

type Invoker interface {
	// AddEvaluations invokes addEvaluations operation.
	//
	// Add span, trace, or document evaluations.
	//
	// POST /v1/evaluations
	AddEvaluations(ctx context.Context, request AddEvaluationsReq, params AddEvaluationsParams) (AddEvaluationsRes, error)
	// AnnotateSessions invokes annotateSessions operation.
	//
	// Create session annotations.
	//
	// POST /v1/session_annotations
	AnnotateSessions(ctx context.Context, request *AnnotateSessionsRequestBody, params AnnotateSessionsParams) (AnnotateSessionsRes, error)
	// AnnotateSpanDocuments invokes annotateSpanDocuments operation.
	//
	// Annotate Span Documents.
	//
	// POST /v1/document_annotations
	AnnotateSpanDocuments(ctx context.Context, request *AnnotateSpanDocumentsRequestBody, params AnnotateSpanDocumentsParams) (AnnotateSpanDocumentsRes, error)
	// AnnotateSpans invokes annotateSpans operation.
	//
	// Create span annotations.
	//
	// POST /v1/span_annotations
	AnnotateSpans(ctx context.Context, request *AnnotateSpansRequestBody, params AnnotateSpansParams) (AnnotateSpansRes, error)
	// AnnotateTraces invokes annotateTraces operation.
	//
	// Create trace annotations.
	//
	// POST /v1/trace_annotations
	AnnotateTraces(ctx context.Context, request *AnnotateTracesRequestBody, params AnnotateTracesParams) (AnnotateTracesRes, error)
	// CreateAnnotationConfigV1AnnotationConfigsPost invokes create_annotation_config_v1_annotation_configs_post operation.
	//
	// Create an annotation configuration.
	//
	// POST /v1/annotation_configs
	CreateAnnotationConfigV1AnnotationConfigsPost(ctx context.Context, request CreateAnnotationConfigData) (CreateAnnotationConfigV1AnnotationConfigsPostRes, error)
	// CreateExperiment invokes createExperiment operation.
	//
	// Create experiment on a dataset.
	//
	// POST /v1/datasets/{dataset_id}/experiments
	CreateExperiment(ctx context.Context, request *CreateExperimentRequestBody, params CreateExperimentParams) (CreateExperimentRes, error)
	// CreateExperimentRun invokes createExperimentRun operation.
	//
	// Create run for an experiment.
	//
	// POST /v1/experiments/{experiment_id}/runs
	CreateExperimentRun(ctx context.Context, request *CreateExperimentRunRequestBody, params CreateExperimentRunParams) (CreateExperimentRunRes, error)
	// CreateProject invokes createProject operation.
	//
	// Create a new project with the specified configuration.
	//
	// POST /v1/projects
	CreateProject(ctx context.Context, request *CreateProjectRequestBody) (CreateProjectRes, error)
	// CreatePromptVersionTag invokes createPromptVersionTag operation.
	//
	// Add a new tag to a specific prompt version. Tags help identify and categorize different versions
	// of a prompt.
	//
	// POST /v1/prompt_versions/{prompt_version_id}/tags
	CreatePromptVersionTag(ctx context.Context, request *PromptVersionTagData, params CreatePromptVersionTagParams) (CreatePromptVersionTagRes, error)
	// CreateSpanNote invokes createSpanNote operation.
	//
	// Add a note annotation to a span. Notes are special annotations that allow multiple entries per
	// span (unlike regular annotations which are unique by name and identifier). Each note gets a unique
	// timestamp-based identifier.
	//
	// POST /v1/span_notes
	CreateSpanNote(ctx context.Context, request *CreateSpanNoteRequestBody) (CreateSpanNoteRes, error)
	// CreateSpans invokes createSpans operation.
	//
	// Submit spans to be inserted into a project. If any spans are invalid or duplicates, no spans will
	// be inserted.
	//
	// POST /v1/projects/{project_identifier}/spans
	CreateSpans(ctx context.Context, request *CreateSpansRequestBody, params CreateSpansParams) (CreateSpansRes, error)
	// CreateUser invokes createUser operation.
	//
	// Create a new user with the specified configuration.
	//
	// POST /v1/users
	CreateUser(ctx context.Context, request *CreateUserRequestBody) (CreateUserRes, error)
	// DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete invokes delete_annotation_config_v1_annotation_configs__config_id__delete operation.
	//
	// Delete an annotation configuration.
	//
	// DELETE /v1/annotation_configs/{config_id}
	DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete(ctx context.Context, params DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteParams) (DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteRes, error)
	// DeleteDatasetById invokes deleteDatasetById operation.
	//
	// Delete dataset by ID.
	//
	// DELETE /v1/datasets/{id}
	DeleteDatasetById(ctx context.Context, params DeleteDatasetByIdParams) (DeleteDatasetByIdRes, error)
	// DeleteExperiment invokes deleteExperiment operation.
	//
	// Delete experiment by ID.
	//
	// DELETE /v1/experiments/{experiment_id}
	DeleteExperiment(ctx context.Context, params DeleteExperimentParams) (DeleteExperimentRes, error)
	// DeleteProject invokes deleteProject operation.
	//
	// Delete an existing project and all its associated data. The project identifier is either project
	// ID or project name. The default project cannot be deleted. Note: When using a project name as the
	// identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
	//
	// DELETE /v1/projects/{project_identifier}
	DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
	// DeleteSpan invokes deleteSpan operation.
	//
	// Delete a single span by identifier.
	// **Important**: This operation deletes ONLY the specified span itself and does NOT
	// delete its descendants/children. All child spans will remain in the trace and
	// become orphaned (their parent_id will point to a non-existent span).
	// Behavior:
	// - Deletes only the target span (preserves all descendant spans)
	// - If this was the last span in the trace, the trace record is also deleted
	// - If the deleted span had a parent, its cumulative metrics (error count, token counts)
	// are subtracted from all ancestor spans in the chain
	// **Note**: This operation is irreversible and may create orphaned spans.
	//
	// DELETE /v1/spans/{span_identifier}
	DeleteSpan(ctx context.Context, params DeleteSpanParams) (DeleteSpanRes, error)
	// DeleteTrace invokes deleteTrace operation.
	//
	// Delete an entire trace by its identifier. The identifier can be either:
	// 1. A Relay node ID (base64-encoded)
	// 2. An OpenTelemetry trace_id (hex string)
	// This will permanently remove all spans in the trace and their associated data.
	//
	// DELETE /v1/traces/{trace_identifier}
	DeleteTrace(ctx context.Context, params DeleteTraceParams) (DeleteTraceRes, error)
	// DeleteUser invokes deleteUser operation.
	//
	// Delete an existing user by their unique GlobalID.
	//
	// DELETE /v1/users/{user_id}
	DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
	// GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet invokes get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get operation.
	//
	// Get an annotation configuration by ID or name.
	//
	// GET /v1/annotation_configs/{config_identifier}
	GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet(ctx context.Context, params GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetParams) (GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetRes, error)
	// GetDataset invokes getDataset operation.
	//
	// Get dataset by ID.
	//
	// GET /v1/datasets/{id}
	GetDataset(ctx context.Context, params GetDatasetParams) (GetDatasetRes, error)
	// GetDatasetCsv invokes getDatasetCsv operation.
	//
	// Download dataset examples as CSV file.
	//
	// GET /v1/datasets/{id}/csv
	GetDatasetCsv(ctx context.Context, params GetDatasetCsvParams) (GetDatasetCsvRes, error)
	// GetDatasetExamples invokes getDatasetExamples operation.
	//
	// Get examples from a dataset.
	//
	// GET /v1/datasets/{id}/examples
	GetDatasetExamples(ctx context.Context, params GetDatasetExamplesParams) (GetDatasetExamplesRes, error)
	// GetDatasetJSONLOpenAIEvals invokes getDatasetJSONLOpenAIEvals operation.
	//
	// Download dataset examples as OpenAI evals JSONL file.
	//
	// GET /v1/datasets/{id}/jsonl/openai_evals
	GetDatasetJSONLOpenAIEvals(ctx context.Context, params GetDatasetJSONLOpenAIEvalsParams) (GetDatasetJSONLOpenAIEvalsRes, error)
	// GetDatasetJSONLOpenAIFineTuning invokes getDatasetJSONLOpenAIFineTuning operation.
	//
	// Download dataset examples as OpenAI fine-tuning JSONL file.
	//
	// GET /v1/datasets/{id}/jsonl/openai_ft
	GetDatasetJSONLOpenAIFineTuning(ctx context.Context, params GetDatasetJSONLOpenAIFineTuningParams) (GetDatasetJSONLOpenAIFineTuningRes, error)
	// GetEvaluations invokes getEvaluations operation.
	//
	// Get span, trace, or document evaluations from a project.
	//
	// GET /v1/evaluations
	GetEvaluations(ctx context.Context, params GetEvaluationsParams) (GetEvaluationsRes, error)
	// GetExperiment invokes getExperiment operation.
	//
	// Get experiment by ID.
	//
	// GET /v1/experiments/{experiment_id}
	GetExperiment(ctx context.Context, params GetExperimentParams) (GetExperimentRes, error)
	// GetExperimentCSV invokes getExperimentCSV operation.
	//
	// Download experiment runs as a CSV file.
	//
	// GET /v1/experiments/{experiment_id}/csv
	GetExperimentCSV(ctx context.Context, params GetExperimentCSVParams) (GetExperimentCSVRes, error)
	// GetExperimentJSON invokes getExperimentJSON operation.
	//
	// Download experiment runs as a JSON file.
	//
	// GET /v1/experiments/{experiment_id}/json
	GetExperimentJSON(ctx context.Context, params GetExperimentJSONParams) (GetExperimentJSONRes, error)
	// GetIncompleteExperimentEvaluations invokes getIncompleteExperimentEvaluations operation.
	//
	// Get experiment runs that have incomplete evaluations.
	// Returns runs with:
	// - Missing evaluations (evaluator has not been run)
	// - Failed evaluations (evaluator ran but has errors)
	// Args:
	// experiment_id: The ID of the experiment
	// evaluation_name: List of evaluation names to check (required, at least one)
	// cursor: Cursor for pagination
	// limit: Maximum number of results to return
	// Returns:
	// Paginated list of runs with incomplete evaluations.
	//
	// GET /v1/experiments/{experiment_id}/incomplete-evaluations
	GetIncompleteExperimentEvaluations(ctx context.Context, params GetIncompleteExperimentEvaluationsParams) (GetIncompleteExperimentEvaluationsRes, error)
	// GetIncompleteExperimentRuns invokes getIncompleteExperimentRuns operation.
	//
	// Get runs that need to be completed for this experiment.
	// Returns all incomplete runs, including both missing runs (not yet attempted)
	// and failed runs (attempted but have errors).
	// Args:
	// experiment_id: The ID of the experiment
	// cursor: Cursor for pagination
	// limit: Maximum number of results to return
	// Returns:
	// Paginated list of incomplete runs grouped by dataset example,
	// with repetition numbers that need to be run.
	//
	// GET /v1/experiments/{experiment_id}/incomplete-runs
	GetIncompleteExperimentRuns(ctx context.Context, params GetIncompleteExperimentRunsParams) (GetIncompleteExperimentRunsRes, error)
	// GetProject invokes getProject operation.
	//
	// Retrieve a specific project using its unique identifier: either project ID or project name. Note:
	// When using a project name as the identifier, it cannot contain slash (/), question mark (?), or
	// pound sign (#) characters.
	//
	// GET /v1/projects/{project_identifier}
	GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
	// GetProjects invokes getProjects operation.
	//
	// Retrieve a paginated list of all projects in the system.
	//
	// GET /v1/projects
	GetProjects(ctx context.Context, params GetProjectsParams) (GetProjectsRes, error)
	// GetPromptVersionByPromptVersionId invokes getPromptVersionByPromptVersionId operation.
	//
	// Retrieve a specific prompt version using its unique identifier. A prompt version contains the
	// actual template and configuration.
	//
	// GET /v1/prompt_versions/{prompt_version_id}
	GetPromptVersionByPromptVersionId(ctx context.Context, params GetPromptVersionByPromptVersionIdParams) (GetPromptVersionByPromptVersionIdRes, error)
	// GetPromptVersionByTagName invokes getPromptVersionByTagName operation.
	//
	// Retrieve a specific prompt version using its tag name. Tags are used to identify specific versions
	// of a prompt.
	//
	// GET /v1/prompts/{prompt_identifier}/tags/{tag_name}
	GetPromptVersionByTagName(ctx context.Context, params GetPromptVersionByTagNameParams) (GetPromptVersionByTagNameRes, error)
	// GetPromptVersionLatest invokes getPromptVersionLatest operation.
	//
	// Retrieve the most recent version of a specific prompt.
	//
	// GET /v1/prompts/{prompt_identifier}/latest
	GetPromptVersionLatest(ctx context.Context, params GetPromptVersionLatestParams) (GetPromptVersionLatestRes, error)
	// GetPromptVersionTags invokes getPromptVersionTags operation.
	//
	// Retrieve all tags associated with a specific prompt version. Tags are used to identify and
	// categorize different versions of a prompt.
	//
	// GET /v1/prompt_versions/{prompt_version_id}/tags
	GetPromptVersionTags(ctx context.Context, params GetPromptVersionTagsParams) (GetPromptVersionTagsRes, error)
	// GetPrompts invokes getPrompts operation.
	//
	// Retrieve a paginated list of all prompts in the system. A prompt can have multiple versions.
	//
	// GET /v1/prompts
	GetPrompts(ctx context.Context, params GetPromptsParams) (GetPromptsRes, error)
	// GetSpans invokes getSpans operation.
	//
	// Return spans within a project filtered by time range. Supports cursor-based pagination.
	//
	// GET /v1/projects/{project_identifier}/spans
	GetSpans(ctx context.Context, params GetSpansParams) (GetSpansRes, error)
	// GetUsers invokes getUsers operation.
	//
	// Retrieve a paginated list of all users in the system.
	//
	// GET /v1/users
	GetUsers(ctx context.Context, params GetUsersParams) (GetUsersRes, error)
	// ListAnnotationConfigsV1AnnotationConfigsGet invokes list_annotation_configs_v1_annotation_configs_get operation.
	//
	// Retrieve a paginated list of all annotation configurations in the system.
	//
	// GET /v1/annotation_configs
	ListAnnotationConfigsV1AnnotationConfigsGet(ctx context.Context, params ListAnnotationConfigsV1AnnotationConfigsGetParams) (ListAnnotationConfigsV1AnnotationConfigsGetRes, error)
	// ListDatasetVersionsByDatasetId invokes listDatasetVersionsByDatasetId operation.
	//
	// List dataset versions.
	//
	// GET /v1/datasets/{id}/versions
	ListDatasetVersionsByDatasetId(ctx context.Context, params ListDatasetVersionsByDatasetIdParams) (ListDatasetVersionsByDatasetIdRes, error)
	// ListDatasets invokes listDatasets operation.
	//
	// List datasets.
	//
	// GET /v1/datasets
	ListDatasets(ctx context.Context, params ListDatasetsParams) (ListDatasetsRes, error)
	// ListExperimentRuns invokes listExperimentRuns operation.
	//
	// Retrieve a paginated list of runs for an experiment.
	//
	// GET /v1/experiments/{experiment_id}/runs
	ListExperimentRuns(ctx context.Context, params ListExperimentRunsParams) (ListExperimentRunsRes, error)
	// ListExperiments invokes listExperiments operation.
	//
	// Retrieve a paginated list of experiments for the specified dataset.
	//
	// GET /v1/datasets/{dataset_id}/experiments
	ListExperiments(ctx context.Context, params ListExperimentsParams) (ListExperimentsRes, error)
	// ListPromptVersions invokes listPromptVersions operation.
	//
	// Retrieve all versions of a specific prompt with pagination support. Each prompt can have multiple
	// versions with different configurations.
	//
	// GET /v1/prompts/{prompt_identifier}/versions
	ListPromptVersions(ctx context.Context, params ListPromptVersionsParams) (ListPromptVersionsRes, error)
	// ListSessionAnnotationsBySessionIds invokes listSessionAnnotationsBySessionIds operation.
	//
	// Get session annotations for a list of session_ids.
	//
	// GET /v1/projects/{project_identifier}/session_annotations
	ListSessionAnnotationsBySessionIds(ctx context.Context, params ListSessionAnnotationsBySessionIdsParams) (ListSessionAnnotationsBySessionIdsRes, error)
	// ListSpanAnnotationsBySpanIds invokes listSpanAnnotationsBySpanIds operation.
	//
	// Get span annotations for a list of span_ids.
	//
	// GET /v1/projects/{project_identifier}/span_annotations
	ListSpanAnnotationsBySpanIds(ctx context.Context, params ListSpanAnnotationsBySpanIdsParams) (ListSpanAnnotationsBySpanIdsRes, error)
	// ListTraceAnnotationsByTraceIds invokes listTraceAnnotationsByTraceIds operation.
	//
	// Get trace annotations for a list of trace_ids.
	//
	// GET /v1/projects/{project_identifier}/trace_annotations
	ListTraceAnnotationsByTraceIds(ctx context.Context, params ListTraceAnnotationsByTraceIdsParams) (ListTraceAnnotationsByTraceIdsRes, error)
	// PostPromptVersion invokes postPromptVersion operation.
	//
	// Create a new prompt and its initial version. A prompt can have multiple versions.
	//
	// POST /v1/prompts
	PostPromptVersion(ctx context.Context, request *CreatePromptRequestBody) (PostPromptVersionRes, error)
	// UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut invokes update_annotation_config_v1_annotation_configs__config_id__put operation.
	//
	// Update an annotation configuration.
	//
	// PUT /v1/annotation_configs/{config_id}
	UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut(ctx context.Context, request CreateAnnotationConfigData, params UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutParams) (UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutRes, error)
	// UpdateProject invokes updateProject operation.
	//
	// Update an existing project with new configuration. Project names cannot be changed. The project
	// identifier is either project ID or project name. Note: When using a project name as the identifier,
	//  it cannot contain slash (/), question mark (?), or pound sign (#) characters.
	//
	// PUT /v1/projects/{project_identifier}
	UpdateProject(ctx context.Context, request *UpdateProjectRequestBody, params UpdateProjectParams) (UpdateProjectRes, error)
	// UploadDataset invokes uploadDataset operation.
	//
	// Upload dataset from JSON, CSV, or PyArrow.
	//
	// POST /v1/datasets/upload
	UploadDataset(ctx context.Context, request UploadDatasetReq, params UploadDatasetParams) (UploadDatasetRes, error)
	// UpsertExperimentEvaluation invokes upsertExperimentEvaluation operation.
	//
	// Create or update evaluation for an experiment run.
	//
	// POST /v1/experiment_evaluations
	UpsertExperimentEvaluation(ctx context.Context, request *UpsertExperimentEvaluationRequestBody) (UpsertExperimentEvaluationRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type LDAPUser

type LDAPUser struct {
	AuthMethod LDAPUserAuthMethod `json:"auth_method"`
	CreatedAt  time.Time          `json:"created_at"`
	Email      string             `json:"email"`
	ID         string             `json:"id"`
	Role       LDAPUserRole       `json:"role"`
	UpdatedAt  time.Time          `json:"updated_at"`
	Username   string             `json:"username"`
}

Ref: #/components/schemas/LDAPUser

func (*LDAPUser) Decode

func (s *LDAPUser) Decode(d *jx.Decoder) error

Decode decodes LDAPUser from json.

func (*LDAPUser) Encode

func (s *LDAPUser) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LDAPUser) GetAuthMethod

func (s *LDAPUser) GetAuthMethod() LDAPUserAuthMethod

GetAuthMethod returns the value of AuthMethod.

func (*LDAPUser) GetCreatedAt

func (s *LDAPUser) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*LDAPUser) GetEmail

func (s *LDAPUser) GetEmail() string

GetEmail returns the value of Email.

func (*LDAPUser) GetID

func (s *LDAPUser) GetID() string

GetID returns the value of ID.

func (*LDAPUser) GetRole

func (s *LDAPUser) GetRole() LDAPUserRole

GetRole returns the value of Role.

func (*LDAPUser) GetUpdatedAt

func (s *LDAPUser) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*LDAPUser) GetUsername

func (s *LDAPUser) GetUsername() string

GetUsername returns the value of Username.

func (*LDAPUser) MarshalJSON

func (s *LDAPUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LDAPUser) SetAuthMethod

func (s *LDAPUser) SetAuthMethod(val LDAPUserAuthMethod)

SetAuthMethod sets the value of AuthMethod.

func (*LDAPUser) SetCreatedAt

func (s *LDAPUser) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*LDAPUser) SetEmail

func (s *LDAPUser) SetEmail(val string)

SetEmail sets the value of Email.

func (*LDAPUser) SetID

func (s *LDAPUser) SetID(val string)

SetID sets the value of ID.

func (*LDAPUser) SetRole

func (s *LDAPUser) SetRole(val LDAPUserRole)

SetRole sets the value of Role.

func (*LDAPUser) SetUpdatedAt

func (s *LDAPUser) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*LDAPUser) SetUsername

func (s *LDAPUser) SetUsername(val string)

SetUsername sets the value of Username.

func (*LDAPUser) UnmarshalJSON

func (s *LDAPUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LDAPUser) Validate

func (s *LDAPUser) Validate() error

type LDAPUserAuthMethod

type LDAPUserAuthMethod string
const (
	LDAPUserAuthMethodLDAP LDAPUserAuthMethod = "LDAP"
)

func (LDAPUserAuthMethod) AllValues

func (LDAPUserAuthMethod) AllValues() []LDAPUserAuthMethod

AllValues returns all LDAPUserAuthMethod values.

func (*LDAPUserAuthMethod) Decode

func (s *LDAPUserAuthMethod) Decode(d *jx.Decoder) error

Decode decodes LDAPUserAuthMethod from json.

func (LDAPUserAuthMethod) Encode

func (s LDAPUserAuthMethod) Encode(e *jx.Encoder)

Encode encodes LDAPUserAuthMethod as json.

func (LDAPUserAuthMethod) MarshalJSON

func (s LDAPUserAuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LDAPUserAuthMethod) MarshalText

func (s LDAPUserAuthMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LDAPUserAuthMethod) UnmarshalJSON

func (s *LDAPUserAuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LDAPUserAuthMethod) UnmarshalText

func (s *LDAPUserAuthMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LDAPUserAuthMethod) Validate

func (s LDAPUserAuthMethod) Validate() error

type LDAPUserData

type LDAPUserData struct {
	AuthMethod LDAPUserDataAuthMethod `json:"auth_method"`
	Email      string                 `json:"email"`
	Role       LDAPUserDataRole       `json:"role"`
	Username   string                 `json:"username"`
}

Ref: #/components/schemas/LDAPUserData

func (*LDAPUserData) Decode

func (s *LDAPUserData) Decode(d *jx.Decoder) error

Decode decodes LDAPUserData from json.

func (*LDAPUserData) Encode

func (s *LDAPUserData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LDAPUserData) GetAuthMethod

func (s *LDAPUserData) GetAuthMethod() LDAPUserDataAuthMethod

GetAuthMethod returns the value of AuthMethod.

func (*LDAPUserData) GetEmail

func (s *LDAPUserData) GetEmail() string

GetEmail returns the value of Email.

func (*LDAPUserData) GetRole

func (s *LDAPUserData) GetRole() LDAPUserDataRole

GetRole returns the value of Role.

func (*LDAPUserData) GetUsername

func (s *LDAPUserData) GetUsername() string

GetUsername returns the value of Username.

func (*LDAPUserData) MarshalJSON

func (s *LDAPUserData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LDAPUserData) SetAuthMethod

func (s *LDAPUserData) SetAuthMethod(val LDAPUserDataAuthMethod)

SetAuthMethod sets the value of AuthMethod.

func (*LDAPUserData) SetEmail

func (s *LDAPUserData) SetEmail(val string)

SetEmail sets the value of Email.

func (*LDAPUserData) SetRole

func (s *LDAPUserData) SetRole(val LDAPUserDataRole)

SetRole sets the value of Role.

func (*LDAPUserData) SetUsername

func (s *LDAPUserData) SetUsername(val string)

SetUsername sets the value of Username.

func (*LDAPUserData) UnmarshalJSON

func (s *LDAPUserData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LDAPUserData) Validate

func (s *LDAPUserData) Validate() error

type LDAPUserDataAuthMethod

type LDAPUserDataAuthMethod string
const (
	LDAPUserDataAuthMethodLDAP LDAPUserDataAuthMethod = "LDAP"
)

func (LDAPUserDataAuthMethod) AllValues

AllValues returns all LDAPUserDataAuthMethod values.

func (*LDAPUserDataAuthMethod) Decode

func (s *LDAPUserDataAuthMethod) Decode(d *jx.Decoder) error

Decode decodes LDAPUserDataAuthMethod from json.

func (LDAPUserDataAuthMethod) Encode

func (s LDAPUserDataAuthMethod) Encode(e *jx.Encoder)

Encode encodes LDAPUserDataAuthMethod as json.

func (LDAPUserDataAuthMethod) MarshalJSON

func (s LDAPUserDataAuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LDAPUserDataAuthMethod) MarshalText

func (s LDAPUserDataAuthMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LDAPUserDataAuthMethod) UnmarshalJSON

func (s *LDAPUserDataAuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LDAPUserDataAuthMethod) UnmarshalText

func (s *LDAPUserDataAuthMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LDAPUserDataAuthMethod) Validate

func (s LDAPUserDataAuthMethod) Validate() error

type LDAPUserDataRole

type LDAPUserDataRole string
const (
	LDAPUserDataRoleSYSTEM LDAPUserDataRole = "SYSTEM"
	LDAPUserDataRoleADMIN  LDAPUserDataRole = "ADMIN"
	LDAPUserDataRoleMEMBER LDAPUserDataRole = "MEMBER"
	LDAPUserDataRoleVIEWER LDAPUserDataRole = "VIEWER"
)

func (LDAPUserDataRole) AllValues

func (LDAPUserDataRole) AllValues() []LDAPUserDataRole

AllValues returns all LDAPUserDataRole values.

func (*LDAPUserDataRole) Decode

func (s *LDAPUserDataRole) Decode(d *jx.Decoder) error

Decode decodes LDAPUserDataRole from json.

func (LDAPUserDataRole) Encode

func (s LDAPUserDataRole) Encode(e *jx.Encoder)

Encode encodes LDAPUserDataRole as json.

func (LDAPUserDataRole) MarshalJSON

func (s LDAPUserDataRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LDAPUserDataRole) MarshalText

func (s LDAPUserDataRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LDAPUserDataRole) UnmarshalJSON

func (s *LDAPUserDataRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LDAPUserDataRole) UnmarshalText

func (s *LDAPUserDataRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LDAPUserDataRole) Validate

func (s LDAPUserDataRole) Validate() error

type LDAPUserRole

type LDAPUserRole string
const (
	LDAPUserRoleSYSTEM LDAPUserRole = "SYSTEM"
	LDAPUserRoleADMIN  LDAPUserRole = "ADMIN"
	LDAPUserRoleMEMBER LDAPUserRole = "MEMBER"
	LDAPUserRoleVIEWER LDAPUserRole = "VIEWER"
)

func (LDAPUserRole) AllValues

func (LDAPUserRole) AllValues() []LDAPUserRole

AllValues returns all LDAPUserRole values.

func (*LDAPUserRole) Decode

func (s *LDAPUserRole) Decode(d *jx.Decoder) error

Decode decodes LDAPUserRole from json.

func (LDAPUserRole) Encode

func (s LDAPUserRole) Encode(e *jx.Encoder)

Encode encodes LDAPUserRole as json.

func (LDAPUserRole) MarshalJSON

func (s LDAPUserRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LDAPUserRole) MarshalText

func (s LDAPUserRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LDAPUserRole) UnmarshalJSON

func (s *LDAPUserRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LDAPUserRole) UnmarshalText

func (s *LDAPUserRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LDAPUserRole) Validate

func (s LDAPUserRole) Validate() error

type Labeler

type Labeler struct {
	// contains filtered or unexported fields
}

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type ListAnnotationConfigsV1AnnotationConfigsGetForbidden

type ListAnnotationConfigsV1AnnotationConfigsGetForbidden struct {
	Data io.Reader
}

func (ListAnnotationConfigsV1AnnotationConfigsGetForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListAnnotationConfigsV1AnnotationConfigsGetParams

type ListAnnotationConfigsV1AnnotationConfigsGetParams struct {
	// Cursor for pagination (base64-encoded annotation config ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// Maximum number of configs to return.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListAnnotationConfigsV1AnnotationConfigsGetParams is parameters of list_annotation_configs_v1_annotation_configs_get operation.

type ListAnnotationConfigsV1AnnotationConfigsGetRes

type ListAnnotationConfigsV1AnnotationConfigsGetRes interface {
	// contains filtered or unexported methods
}

type ListDatasetExamplesData

type ListDatasetExamplesData struct {
	DatasetID      string           `json:"dataset_id"`
	Examples       []DatasetExample `json:"examples"`
	FilteredSplits []string         `json:"filtered_splits"`
	VersionID      string           `json:"version_id"`
}

Ref: #/components/schemas/ListDatasetExamplesData

func (*ListDatasetExamplesData) Decode

func (s *ListDatasetExamplesData) Decode(d *jx.Decoder) error

Decode decodes ListDatasetExamplesData from json.

func (*ListDatasetExamplesData) Encode

func (s *ListDatasetExamplesData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListDatasetExamplesData) GetDatasetID

func (s *ListDatasetExamplesData) GetDatasetID() string

GetDatasetID returns the value of DatasetID.

func (*ListDatasetExamplesData) GetExamples

func (s *ListDatasetExamplesData) GetExamples() []DatasetExample

GetExamples returns the value of Examples.

func (*ListDatasetExamplesData) GetFilteredSplits

func (s *ListDatasetExamplesData) GetFilteredSplits() []string

GetFilteredSplits returns the value of FilteredSplits.

func (*ListDatasetExamplesData) GetVersionID

func (s *ListDatasetExamplesData) GetVersionID() string

GetVersionID returns the value of VersionID.

func (*ListDatasetExamplesData) MarshalJSON

func (s *ListDatasetExamplesData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDatasetExamplesData) SetDatasetID

func (s *ListDatasetExamplesData) SetDatasetID(val string)

SetDatasetID sets the value of DatasetID.

func (*ListDatasetExamplesData) SetExamples

func (s *ListDatasetExamplesData) SetExamples(val []DatasetExample)

SetExamples sets the value of Examples.

func (*ListDatasetExamplesData) SetFilteredSplits

func (s *ListDatasetExamplesData) SetFilteredSplits(val []string)

SetFilteredSplits sets the value of FilteredSplits.

func (*ListDatasetExamplesData) SetVersionID

func (s *ListDatasetExamplesData) SetVersionID(val string)

SetVersionID sets the value of VersionID.

func (*ListDatasetExamplesData) UnmarshalJSON

func (s *ListDatasetExamplesData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDatasetExamplesData) Validate

func (s *ListDatasetExamplesData) Validate() error

type ListDatasetExamplesResponseBody

type ListDatasetExamplesResponseBody struct {
	Data ListDatasetExamplesData `json:"data"`
}

Ref: #/components/schemas/ListDatasetExamplesResponseBody

func (*ListDatasetExamplesResponseBody) Decode

Decode decodes ListDatasetExamplesResponseBody from json.

func (*ListDatasetExamplesResponseBody) Encode

Encode implements json.Marshaler.

func (*ListDatasetExamplesResponseBody) GetData

GetData returns the value of Data.

func (*ListDatasetExamplesResponseBody) MarshalJSON

func (s *ListDatasetExamplesResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDatasetExamplesResponseBody) SetData

SetData sets the value of Data.

func (*ListDatasetExamplesResponseBody) UnmarshalJSON

func (s *ListDatasetExamplesResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDatasetExamplesResponseBody) Validate

func (s *ListDatasetExamplesResponseBody) Validate() error

type ListDatasetVersionsByDatasetIdForbidden

type ListDatasetVersionsByDatasetIdForbidden struct {
	Data io.Reader
}

func (ListDatasetVersionsByDatasetIdForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListDatasetVersionsByDatasetIdParams

type ListDatasetVersionsByDatasetIdParams struct {
	// The ID of the dataset.
	ID string
	// Cursor for pagination.
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The max number of dataset versions to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListDatasetVersionsByDatasetIdParams is parameters of listDatasetVersionsByDatasetId operation.

type ListDatasetVersionsByDatasetIdRes

type ListDatasetVersionsByDatasetIdRes interface {
	// contains filtered or unexported methods
}

type ListDatasetVersionsByDatasetIdUnprocessableEntity

type ListDatasetVersionsByDatasetIdUnprocessableEntity struct {
	Data io.Reader
}

func (ListDatasetVersionsByDatasetIdUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListDatasetVersionsResponseBody

type ListDatasetVersionsResponseBody struct {
	Data       []DatasetVersion `json:"data"`
	NextCursor NilString        `json:"next_cursor"`
}

Ref: #/components/schemas/ListDatasetVersionsResponseBody

func (*ListDatasetVersionsResponseBody) Decode

Decode decodes ListDatasetVersionsResponseBody from json.

func (*ListDatasetVersionsResponseBody) Encode

Encode implements json.Marshaler.

func (*ListDatasetVersionsResponseBody) GetData

GetData returns the value of Data.

func (*ListDatasetVersionsResponseBody) GetNextCursor

func (s *ListDatasetVersionsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*ListDatasetVersionsResponseBody) MarshalJSON

func (s *ListDatasetVersionsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDatasetVersionsResponseBody) SetData

SetData sets the value of Data.

func (*ListDatasetVersionsResponseBody) SetNextCursor

func (s *ListDatasetVersionsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*ListDatasetVersionsResponseBody) UnmarshalJSON

func (s *ListDatasetVersionsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDatasetVersionsResponseBody) Validate

func (s *ListDatasetVersionsResponseBody) Validate() error

type ListDatasetsForbidden

type ListDatasetsForbidden struct {
	Data io.Reader
}

func (ListDatasetsForbidden) Read

func (s ListDatasetsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListDatasetsParams

type ListDatasetsParams struct {
	// Cursor for pagination.
	Cursor OptNilString `json:",omitempty,omitzero"`
	// An optional dataset name to filter by.
	Name OptNilString `json:",omitempty,omitzero"`
	// The max number of datasets to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListDatasetsParams is parameters of listDatasets operation.

type ListDatasetsRes

type ListDatasetsRes interface {
	// contains filtered or unexported methods
}

type ListDatasetsResponseBody

type ListDatasetsResponseBody struct {
	Data       []Dataset `json:"data"`
	NextCursor NilString `json:"next_cursor"`
}

Ref: #/components/schemas/ListDatasetsResponseBody

func (*ListDatasetsResponseBody) Decode

func (s *ListDatasetsResponseBody) Decode(d *jx.Decoder) error

Decode decodes ListDatasetsResponseBody from json.

func (*ListDatasetsResponseBody) Encode

func (s *ListDatasetsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListDatasetsResponseBody) GetData

func (s *ListDatasetsResponseBody) GetData() []Dataset

GetData returns the value of Data.

func (*ListDatasetsResponseBody) GetNextCursor

func (s *ListDatasetsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*ListDatasetsResponseBody) MarshalJSON

func (s *ListDatasetsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDatasetsResponseBody) SetData

func (s *ListDatasetsResponseBody) SetData(val []Dataset)

SetData sets the value of Data.

func (*ListDatasetsResponseBody) SetNextCursor

func (s *ListDatasetsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*ListDatasetsResponseBody) UnmarshalJSON

func (s *ListDatasetsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDatasetsResponseBody) Validate

func (s *ListDatasetsResponseBody) Validate() error

type ListDatasetsUnprocessableEntity

type ListDatasetsUnprocessableEntity struct {
	Data io.Reader
}

func (ListDatasetsUnprocessableEntity) Read

func (s ListDatasetsUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListExperimentRunsForbidden

type ListExperimentRunsForbidden struct {
	Data io.Reader
}

func (ListExperimentRunsForbidden) Read

func (s ListExperimentRunsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListExperimentRunsNotFound

type ListExperimentRunsNotFound struct {
	Data io.Reader
}

func (ListExperimentRunsNotFound) Read

func (s ListExperimentRunsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListExperimentRunsParams

type ListExperimentRunsParams struct {
	ExperimentID string
	// Cursor for pagination (base64-encoded experiment run ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The max number of experiment runs to return at a time. If not specified, returns all results.
	Limit OptNilInt `json:",omitempty,omitzero"`
}

ListExperimentRunsParams is parameters of listExperimentRuns operation.

type ListExperimentRunsRes

type ListExperimentRunsRes interface {
	// contains filtered or unexported methods
}

type ListExperimentRunsResponseBody

type ListExperimentRunsResponseBody struct {
	Data       []ExperimentRun `json:"data"`
	NextCursor NilString       `json:"next_cursor"`
}

Ref: #/components/schemas/ListExperimentRunsResponseBody

func (*ListExperimentRunsResponseBody) Decode

Decode decodes ListExperimentRunsResponseBody from json.

func (*ListExperimentRunsResponseBody) Encode

Encode implements json.Marshaler.

func (*ListExperimentRunsResponseBody) GetData

GetData returns the value of Data.

func (*ListExperimentRunsResponseBody) GetNextCursor

func (s *ListExperimentRunsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*ListExperimentRunsResponseBody) MarshalJSON

func (s *ListExperimentRunsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListExperimentRunsResponseBody) SetData

SetData sets the value of Data.

func (*ListExperimentRunsResponseBody) SetNextCursor

func (s *ListExperimentRunsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*ListExperimentRunsResponseBody) UnmarshalJSON

func (s *ListExperimentRunsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListExperimentRunsResponseBody) Validate

func (s *ListExperimentRunsResponseBody) Validate() error

type ListExperimentRunsUnprocessableEntity

type ListExperimentRunsUnprocessableEntity struct {
	Data io.Reader
}

func (ListExperimentRunsUnprocessableEntity) Read

func (s ListExperimentRunsUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListExperimentsForbidden

type ListExperimentsForbidden struct {
	Data io.Reader
}

func (ListExperimentsForbidden) Read

func (s ListExperimentsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListExperimentsParams

type ListExperimentsParams struct {
	DatasetID string
	// Cursor for pagination (base64-encoded experiment ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The max number of experiments to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListExperimentsParams is parameters of listExperiments operation.

type ListExperimentsRes

type ListExperimentsRes interface {
	// contains filtered or unexported methods
}

type ListExperimentsResponseBody

type ListExperimentsResponseBody struct {
	Data       []Experiment `json:"data"`
	NextCursor NilString    `json:"next_cursor"`
}

Ref: #/components/schemas/ListExperimentsResponseBody

func (*ListExperimentsResponseBody) Decode

Decode decodes ListExperimentsResponseBody from json.

func (*ListExperimentsResponseBody) Encode

func (s *ListExperimentsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListExperimentsResponseBody) GetData

func (s *ListExperimentsResponseBody) GetData() []Experiment

GetData returns the value of Data.

func (*ListExperimentsResponseBody) GetNextCursor

func (s *ListExperimentsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*ListExperimentsResponseBody) MarshalJSON

func (s *ListExperimentsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListExperimentsResponseBody) SetData

func (s *ListExperimentsResponseBody) SetData(val []Experiment)

SetData sets the value of Data.

func (*ListExperimentsResponseBody) SetNextCursor

func (s *ListExperimentsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*ListExperimentsResponseBody) UnmarshalJSON

func (s *ListExperimentsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListExperimentsResponseBody) Validate

func (s *ListExperimentsResponseBody) Validate() error

type ListExperimentsUnprocessableEntity

type ListExperimentsUnprocessableEntity struct {
	Data io.Reader
}

func (ListExperimentsUnprocessableEntity) Read

func (s ListExperimentsUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListPromptVersionsForbidden

type ListPromptVersionsForbidden struct {
	Data io.Reader
}

func (ListPromptVersionsForbidden) Read

func (s ListPromptVersionsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListPromptVersionsNotFound

type ListPromptVersionsNotFound struct {
	Data io.Reader
}

func (ListPromptVersionsNotFound) Read

func (s ListPromptVersionsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListPromptVersionsParams

type ListPromptVersionsParams struct {
	// The identifier of the prompt, i.e. name or ID.
	PromptIdentifier string
	// Cursor for pagination (base64-encoded promptVersion ID).
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The max number of prompt versions to return at a time.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListPromptVersionsParams is parameters of listPromptVersions operation.

type ListPromptVersionsRes

type ListPromptVersionsRes interface {
	// contains filtered or unexported methods
}

type ListPromptVersionsUnprocessableEntity

type ListPromptVersionsUnprocessableEntity struct {
	Data io.Reader
}

func (ListPromptVersionsUnprocessableEntity) Read

func (s ListPromptVersionsUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListSessionAnnotationsBySessionIdsForbidden

type ListSessionAnnotationsBySessionIdsForbidden struct {
	Data io.Reader
}

func (ListSessionAnnotationsBySessionIdsForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListSessionAnnotationsBySessionIdsNotFound

type ListSessionAnnotationsBySessionIdsNotFound struct {
	Data io.Reader
}

func (ListSessionAnnotationsBySessionIdsNotFound) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListSessionAnnotationsBySessionIdsParams

type ListSessionAnnotationsBySessionIdsParams struct {
	// The project identifier: either project ID or project name. If using a project name as the
	// identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
	// One or more session id to fetch annotations for.
	SessionIds []string `json:",omitempty"`
	// Optional list of annotation names to include. If provided, only annotations with these names will
	// be returned. 'note' annotations are excluded by default unless explicitly included in this list.
	IncludeAnnotationNames OptNilStringArray `json:",omitempty,omitzero"`
	// Optional list of annotation names to exclude from results.
	ExcludeAnnotationNames OptNilStringArray `json:",omitempty,omitzero"`
	// A cursor for pagination.
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The maximum number of annotations to return in a single request.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListSessionAnnotationsBySessionIdsParams is parameters of listSessionAnnotationsBySessionIds operation.

type ListSessionAnnotationsBySessionIdsRes

type ListSessionAnnotationsBySessionIdsRes interface {
	// contains filtered or unexported methods
}

type ListSessionAnnotationsBySessionIdsUnprocessableEntity

type ListSessionAnnotationsBySessionIdsUnprocessableEntity struct {
	Data io.Reader
}

func (ListSessionAnnotationsBySessionIdsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListSpanAnnotationsBySpanIdsForbidden

type ListSpanAnnotationsBySpanIdsForbidden struct {
	Data io.Reader
}

func (ListSpanAnnotationsBySpanIdsForbidden) Read

func (s ListSpanAnnotationsBySpanIdsForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListSpanAnnotationsBySpanIdsNotFound

type ListSpanAnnotationsBySpanIdsNotFound struct {
	Data io.Reader
}

func (ListSpanAnnotationsBySpanIdsNotFound) Read

func (s ListSpanAnnotationsBySpanIdsNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListSpanAnnotationsBySpanIdsParams

type ListSpanAnnotationsBySpanIdsParams struct {
	// The project identifier: either project ID or project name. If using a project name as the
	// identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
	// One or more span id to fetch annotations for.
	SpanIds []string `json:",omitempty"`
	// Optional list of annotation names to include. If provided, only annotations with these names will
	// be returned. 'note' annotations are excluded by default unless explicitly included in this list.
	IncludeAnnotationNames OptNilStringArray `json:",omitempty,omitzero"`
	// Optional list of annotation names to exclude from results.
	ExcludeAnnotationNames OptNilStringArray `json:",omitempty,omitzero"`
	// A cursor for pagination.
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The maximum number of annotations to return in a single request.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListSpanAnnotationsBySpanIdsParams is parameters of listSpanAnnotationsBySpanIds operation.

type ListSpanAnnotationsBySpanIdsRes

type ListSpanAnnotationsBySpanIdsRes interface {
	// contains filtered or unexported methods
}

type ListSpanAnnotationsBySpanIdsUnprocessableEntity

type ListSpanAnnotationsBySpanIdsUnprocessableEntity struct {
	Data io.Reader
}

func (ListSpanAnnotationsBySpanIdsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListTraceAnnotationsByTraceIdsForbidden

type ListTraceAnnotationsByTraceIdsForbidden struct {
	Data io.Reader
}

func (ListTraceAnnotationsByTraceIdsForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListTraceAnnotationsByTraceIdsNotFound

type ListTraceAnnotationsByTraceIdsNotFound struct {
	Data io.Reader
}

func (ListTraceAnnotationsByTraceIdsNotFound) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListTraceAnnotationsByTraceIdsParams

type ListTraceAnnotationsByTraceIdsParams struct {
	// The project identifier: either project ID or project name. If using a project name as the
	// identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
	// One or more trace id to fetch annotations for.
	TraceIds []string `json:",omitempty"`
	// Optional list of annotation names to include. If provided, only annotations with these names will
	// be returned. 'note' annotations are excluded by default unless explicitly included in this list.
	IncludeAnnotationNames OptNilStringArray `json:",omitempty,omitzero"`
	// Optional list of annotation names to exclude from results.
	ExcludeAnnotationNames OptNilStringArray `json:",omitempty,omitzero"`
	// A cursor for pagination.
	Cursor OptNilString `json:",omitempty,omitzero"`
	// The maximum number of annotations to return in a single request.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListTraceAnnotationsByTraceIdsParams is parameters of listTraceAnnotationsByTraceIds operation.

type ListTraceAnnotationsByTraceIdsRes

type ListTraceAnnotationsByTraceIdsRes interface {
	// contains filtered or unexported methods
}

type ListTraceAnnotationsByTraceIdsUnprocessableEntity

type ListTraceAnnotationsByTraceIdsUnprocessableEntity struct {
	Data io.Reader
}

func (ListTraceAnnotationsByTraceIdsUnprocessableEntity) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type LocalUser

type LocalUser struct {
	AuthMethod         LocalUserAuthMethod `json:"auth_method"`
	CreatedAt          time.Time           `json:"created_at"`
	Email              string              `json:"email"`
	ID                 string              `json:"id"`
	Password           OptString           `json:"password"`
	PasswordNeedsReset bool                `json:"password_needs_reset"`
	Role               LocalUserRole       `json:"role"`
	UpdatedAt          time.Time           `json:"updated_at"`
	Username           string              `json:"username"`
}

Ref: #/components/schemas/LocalUser

func (*LocalUser) Decode

func (s *LocalUser) Decode(d *jx.Decoder) error

Decode decodes LocalUser from json.

func (*LocalUser) Encode

func (s *LocalUser) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LocalUser) GetAuthMethod

func (s *LocalUser) GetAuthMethod() LocalUserAuthMethod

GetAuthMethod returns the value of AuthMethod.

func (*LocalUser) GetCreatedAt

func (s *LocalUser) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*LocalUser) GetEmail

func (s *LocalUser) GetEmail() string

GetEmail returns the value of Email.

func (*LocalUser) GetID

func (s *LocalUser) GetID() string

GetID returns the value of ID.

func (*LocalUser) GetPassword

func (s *LocalUser) GetPassword() OptString

GetPassword returns the value of Password.

func (*LocalUser) GetPasswordNeedsReset

func (s *LocalUser) GetPasswordNeedsReset() bool

GetPasswordNeedsReset returns the value of PasswordNeedsReset.

func (*LocalUser) GetRole

func (s *LocalUser) GetRole() LocalUserRole

GetRole returns the value of Role.

func (*LocalUser) GetUpdatedAt

func (s *LocalUser) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*LocalUser) GetUsername

func (s *LocalUser) GetUsername() string

GetUsername returns the value of Username.

func (*LocalUser) MarshalJSON

func (s *LocalUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LocalUser) SetAuthMethod

func (s *LocalUser) SetAuthMethod(val LocalUserAuthMethod)

SetAuthMethod sets the value of AuthMethod.

func (*LocalUser) SetCreatedAt

func (s *LocalUser) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*LocalUser) SetEmail

func (s *LocalUser) SetEmail(val string)

SetEmail sets the value of Email.

func (*LocalUser) SetID

func (s *LocalUser) SetID(val string)

SetID sets the value of ID.

func (*LocalUser) SetPassword

func (s *LocalUser) SetPassword(val OptString)

SetPassword sets the value of Password.

func (*LocalUser) SetPasswordNeedsReset

func (s *LocalUser) SetPasswordNeedsReset(val bool)

SetPasswordNeedsReset sets the value of PasswordNeedsReset.

func (*LocalUser) SetRole

func (s *LocalUser) SetRole(val LocalUserRole)

SetRole sets the value of Role.

func (*LocalUser) SetUpdatedAt

func (s *LocalUser) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*LocalUser) SetUsername

func (s *LocalUser) SetUsername(val string)

SetUsername sets the value of Username.

func (*LocalUser) UnmarshalJSON

func (s *LocalUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocalUser) Validate

func (s *LocalUser) Validate() error

type LocalUserAuthMethod

type LocalUserAuthMethod string
const (
	LocalUserAuthMethodLOCAL LocalUserAuthMethod = "LOCAL"
)

func (LocalUserAuthMethod) AllValues

AllValues returns all LocalUserAuthMethod values.

func (*LocalUserAuthMethod) Decode

func (s *LocalUserAuthMethod) Decode(d *jx.Decoder) error

Decode decodes LocalUserAuthMethod from json.

func (LocalUserAuthMethod) Encode

func (s LocalUserAuthMethod) Encode(e *jx.Encoder)

Encode encodes LocalUserAuthMethod as json.

func (LocalUserAuthMethod) MarshalJSON

func (s LocalUserAuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LocalUserAuthMethod) MarshalText

func (s LocalUserAuthMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LocalUserAuthMethod) UnmarshalJSON

func (s *LocalUserAuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocalUserAuthMethod) UnmarshalText

func (s *LocalUserAuthMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LocalUserAuthMethod) Validate

func (s LocalUserAuthMethod) Validate() error

type LocalUserData

type LocalUserData struct {
	AuthMethod LocalUserDataAuthMethod `json:"auth_method"`
	Email      string                  `json:"email"`
	Password   OptString               `json:"password"`
	Role       LocalUserDataRole       `json:"role"`
	Username   string                  `json:"username"`
}

Ref: #/components/schemas/LocalUserData

func (*LocalUserData) Decode

func (s *LocalUserData) Decode(d *jx.Decoder) error

Decode decodes LocalUserData from json.

func (*LocalUserData) Encode

func (s *LocalUserData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LocalUserData) GetAuthMethod

func (s *LocalUserData) GetAuthMethod() LocalUserDataAuthMethod

GetAuthMethod returns the value of AuthMethod.

func (*LocalUserData) GetEmail

func (s *LocalUserData) GetEmail() string

GetEmail returns the value of Email.

func (*LocalUserData) GetPassword

func (s *LocalUserData) GetPassword() OptString

GetPassword returns the value of Password.

func (*LocalUserData) GetRole

func (s *LocalUserData) GetRole() LocalUserDataRole

GetRole returns the value of Role.

func (*LocalUserData) GetUsername

func (s *LocalUserData) GetUsername() string

GetUsername returns the value of Username.

func (*LocalUserData) MarshalJSON

func (s *LocalUserData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LocalUserData) SetAuthMethod

func (s *LocalUserData) SetAuthMethod(val LocalUserDataAuthMethod)

SetAuthMethod sets the value of AuthMethod.

func (*LocalUserData) SetEmail

func (s *LocalUserData) SetEmail(val string)

SetEmail sets the value of Email.

func (*LocalUserData) SetPassword

func (s *LocalUserData) SetPassword(val OptString)

SetPassword sets the value of Password.

func (*LocalUserData) SetRole

func (s *LocalUserData) SetRole(val LocalUserDataRole)

SetRole sets the value of Role.

func (*LocalUserData) SetUsername

func (s *LocalUserData) SetUsername(val string)

SetUsername sets the value of Username.

func (*LocalUserData) UnmarshalJSON

func (s *LocalUserData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocalUserData) Validate

func (s *LocalUserData) Validate() error

type LocalUserDataAuthMethod

type LocalUserDataAuthMethod string
const (
	LocalUserDataAuthMethodLOCAL LocalUserDataAuthMethod = "LOCAL"
)

func (LocalUserDataAuthMethod) AllValues

AllValues returns all LocalUserDataAuthMethod values.

func (*LocalUserDataAuthMethod) Decode

func (s *LocalUserDataAuthMethod) Decode(d *jx.Decoder) error

Decode decodes LocalUserDataAuthMethod from json.

func (LocalUserDataAuthMethod) Encode

func (s LocalUserDataAuthMethod) Encode(e *jx.Encoder)

Encode encodes LocalUserDataAuthMethod as json.

func (LocalUserDataAuthMethod) MarshalJSON

func (s LocalUserDataAuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LocalUserDataAuthMethod) MarshalText

func (s LocalUserDataAuthMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LocalUserDataAuthMethod) UnmarshalJSON

func (s *LocalUserDataAuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocalUserDataAuthMethod) UnmarshalText

func (s *LocalUserDataAuthMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LocalUserDataAuthMethod) Validate

func (s LocalUserDataAuthMethod) Validate() error

type LocalUserDataRole

type LocalUserDataRole string
const (
	LocalUserDataRoleSYSTEM LocalUserDataRole = "SYSTEM"
	LocalUserDataRoleADMIN  LocalUserDataRole = "ADMIN"
	LocalUserDataRoleMEMBER LocalUserDataRole = "MEMBER"
	LocalUserDataRoleVIEWER LocalUserDataRole = "VIEWER"
)

func (LocalUserDataRole) AllValues

func (LocalUserDataRole) AllValues() []LocalUserDataRole

AllValues returns all LocalUserDataRole values.

func (*LocalUserDataRole) Decode

func (s *LocalUserDataRole) Decode(d *jx.Decoder) error

Decode decodes LocalUserDataRole from json.

func (LocalUserDataRole) Encode

func (s LocalUserDataRole) Encode(e *jx.Encoder)

Encode encodes LocalUserDataRole as json.

func (LocalUserDataRole) MarshalJSON

func (s LocalUserDataRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LocalUserDataRole) MarshalText

func (s LocalUserDataRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LocalUserDataRole) UnmarshalJSON

func (s *LocalUserDataRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocalUserDataRole) UnmarshalText

func (s *LocalUserDataRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LocalUserDataRole) Validate

func (s LocalUserDataRole) Validate() error

type LocalUserRole

type LocalUserRole string
const (
	LocalUserRoleSYSTEM LocalUserRole = "SYSTEM"
	LocalUserRoleADMIN  LocalUserRole = "ADMIN"
	LocalUserRoleMEMBER LocalUserRole = "MEMBER"
	LocalUserRoleVIEWER LocalUserRole = "VIEWER"
)

func (LocalUserRole) AllValues

func (LocalUserRole) AllValues() []LocalUserRole

AllValues returns all LocalUserRole values.

func (*LocalUserRole) Decode

func (s *LocalUserRole) Decode(d *jx.Decoder) error

Decode decodes LocalUserRole from json.

func (LocalUserRole) Encode

func (s LocalUserRole) Encode(e *jx.Encoder)

Encode encodes LocalUserRole as json.

func (LocalUserRole) MarshalJSON

func (s LocalUserRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LocalUserRole) MarshalText

func (s LocalUserRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LocalUserRole) UnmarshalJSON

func (s *LocalUserRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocalUserRole) UnmarshalText

func (s *LocalUserRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LocalUserRole) Validate

func (s LocalUserRole) Validate() error

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type ModelProvider

type ModelProvider string

Ref: #/components/schemas/ModelProvider

const (
	ModelProviderOPENAI      ModelProvider = "OPENAI"
	ModelProviderAZUREOPENAI ModelProvider = "AZURE_OPENAI"
	ModelProviderANTHROPIC   ModelProvider = "ANTHROPIC"
	ModelProviderGOOGLE      ModelProvider = "GOOGLE"
	ModelProviderDEEPSEEK    ModelProvider = "DEEPSEEK"
	ModelProviderXAI         ModelProvider = "XAI"
	ModelProviderOLLAMA      ModelProvider = "OLLAMA"
	ModelProviderAWS         ModelProvider = "AWS"
)

func (ModelProvider) AllValues

func (ModelProvider) AllValues() []ModelProvider

AllValues returns all ModelProvider values.

func (*ModelProvider) Decode

func (s *ModelProvider) Decode(d *jx.Decoder) error

Decode decodes ModelProvider from json.

func (ModelProvider) Encode

func (s ModelProvider) Encode(e *jx.Encoder)

Encode encodes ModelProvider as json.

func (ModelProvider) MarshalJSON

func (s ModelProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ModelProvider) MarshalText

func (s ModelProvider) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ModelProvider) UnmarshalJSON

func (s *ModelProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelProvider) UnmarshalText

func (s *ModelProvider) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ModelProvider) Validate

func (s ModelProvider) Validate() error

type NilString

type NilString struct {
	Value string
	Null  bool
}

NilString is nullable string.

func NewNilString

func NewNilString(v string) NilString

NewNilString returns new NilString with value set to v.

func (*NilString) Decode

func (o *NilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (NilString) Encode

func (o NilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (NilString) Get

func (o NilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilString) IsNull

func (o NilString) IsNull() bool

IsNull returns true if value is Null.

func (NilString) MarshalJSON

func (s NilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilString) Or

func (o NilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*NilString) SetTo

func (o *NilString) SetTo(v string)

SetTo sets value to v.

func (*NilString) SetToNull

func (o *NilString) SetToNull()

SetToNull sets value to null.

func (*NilString) UnmarshalJSON

func (s *NilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilToolResultContentPartToolResult

type NilToolResultContentPartToolResult struct {
	Value ToolResultContentPartToolResult
	Null  bool
}

NilToolResultContentPartToolResult is nullable ToolResultContentPartToolResult.

func NewNilToolResultContentPartToolResult

func NewNilToolResultContentPartToolResult(v ToolResultContentPartToolResult) NilToolResultContentPartToolResult

NewNilToolResultContentPartToolResult returns new NilToolResultContentPartToolResult with value set to v.

func (*NilToolResultContentPartToolResult) Decode

Decode decodes ToolResultContentPartToolResult from json.

func (NilToolResultContentPartToolResult) Encode

Encode encodes ToolResultContentPartToolResult as json.

func (NilToolResultContentPartToolResult) Get

Get returns value and boolean that denotes whether value was set.

func (NilToolResultContentPartToolResult) IsNull

IsNull returns true if value is Null.

func (NilToolResultContentPartToolResult) MarshalJSON

func (s NilToolResultContentPartToolResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilToolResultContentPartToolResult) Or

Or returns value if set, or given parameter if does not.

func (*NilToolResultContentPartToolResult) SetTo

SetTo sets value to v.

func (*NilToolResultContentPartToolResult) SetToNull

func (o *NilToolResultContentPartToolResult) SetToNull()

SetToNull sets value to null.

func (*NilToolResultContentPartToolResult) UnmarshalJSON

func (s *NilToolResultContentPartToolResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilUploadDatasetReqApplicationJSONSplitsItem

type NilUploadDatasetReqApplicationJSONSplitsItem struct {
	Value UploadDatasetReqApplicationJSONSplitsItem
	Null  bool
}

NilUploadDatasetReqApplicationJSONSplitsItem is nullable UploadDatasetReqApplicationJSONSplitsItem.

func NewNilUploadDatasetReqApplicationJSONSplitsItem

func NewNilUploadDatasetReqApplicationJSONSplitsItem(v UploadDatasetReqApplicationJSONSplitsItem) NilUploadDatasetReqApplicationJSONSplitsItem

NewNilUploadDatasetReqApplicationJSONSplitsItem returns new NilUploadDatasetReqApplicationJSONSplitsItem with value set to v.

func (*NilUploadDatasetReqApplicationJSONSplitsItem) Decode

Decode decodes UploadDatasetReqApplicationJSONSplitsItem from json.

func (NilUploadDatasetReqApplicationJSONSplitsItem) Encode

Encode encodes UploadDatasetReqApplicationJSONSplitsItem as json.

func (NilUploadDatasetReqApplicationJSONSplitsItem) Get

Get returns value and boolean that denotes whether value was set.

func (NilUploadDatasetReqApplicationJSONSplitsItem) IsNull

IsNull returns true if value is Null.

func (NilUploadDatasetReqApplicationJSONSplitsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (NilUploadDatasetReqApplicationJSONSplitsItem) Or

Or returns value if set, or given parameter if does not.

func (*NilUploadDatasetReqApplicationJSONSplitsItem) SetTo

SetTo sets value to v.

func (*NilUploadDatasetReqApplicationJSONSplitsItem) SetToNull

SetToNull sets value to null.

func (*NilUploadDatasetReqApplicationJSONSplitsItem) UnmarshalJSON

func (s *NilUploadDatasetReqApplicationJSONSplitsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OAuth2User

type OAuth2User struct {
	AuthMethod        OAuth2UserAuthMethod `json:"auth_method"`
	CreatedAt         time.Time            `json:"created_at"`
	Email             string               `json:"email"`
	ID                string               `json:"id"`
	OAuth2ClientID    OptString            `json:"oauth2_client_id"`
	OAuth2UserID      OptString            `json:"oauth2_user_id"`
	ProfilePictureURL OptString            `json:"profile_picture_url"`
	Role              OAuth2UserRole       `json:"role"`
	UpdatedAt         time.Time            `json:"updated_at"`
	Username          string               `json:"username"`
}

Ref: #/components/schemas/OAuth2User

func (*OAuth2User) Decode

func (s *OAuth2User) Decode(d *jx.Decoder) error

Decode decodes OAuth2User from json.

func (*OAuth2User) Encode

func (s *OAuth2User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OAuth2User) GetAuthMethod

func (s *OAuth2User) GetAuthMethod() OAuth2UserAuthMethod

GetAuthMethod returns the value of AuthMethod.

func (*OAuth2User) GetCreatedAt

func (s *OAuth2User) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*OAuth2User) GetEmail

func (s *OAuth2User) GetEmail() string

GetEmail returns the value of Email.

func (*OAuth2User) GetID

func (s *OAuth2User) GetID() string

GetID returns the value of ID.

func (*OAuth2User) GetOAuth2ClientID

func (s *OAuth2User) GetOAuth2ClientID() OptString

GetOAuth2ClientID returns the value of OAuth2ClientID.

func (*OAuth2User) GetOAuth2UserID

func (s *OAuth2User) GetOAuth2UserID() OptString

GetOAuth2UserID returns the value of OAuth2UserID.

func (*OAuth2User) GetProfilePictureURL

func (s *OAuth2User) GetProfilePictureURL() OptString

GetProfilePictureURL returns the value of ProfilePictureURL.

func (*OAuth2User) GetRole

func (s *OAuth2User) GetRole() OAuth2UserRole

GetRole returns the value of Role.

func (*OAuth2User) GetUpdatedAt

func (s *OAuth2User) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*OAuth2User) GetUsername

func (s *OAuth2User) GetUsername() string

GetUsername returns the value of Username.

func (*OAuth2User) MarshalJSON

func (s *OAuth2User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OAuth2User) SetAuthMethod

func (s *OAuth2User) SetAuthMethod(val OAuth2UserAuthMethod)

SetAuthMethod sets the value of AuthMethod.

func (*OAuth2User) SetCreatedAt

func (s *OAuth2User) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*OAuth2User) SetEmail

func (s *OAuth2User) SetEmail(val string)

SetEmail sets the value of Email.

func (*OAuth2User) SetID

func (s *OAuth2User) SetID(val string)

SetID sets the value of ID.

func (*OAuth2User) SetOAuth2ClientID

func (s *OAuth2User) SetOAuth2ClientID(val OptString)

SetOAuth2ClientID sets the value of OAuth2ClientID.

func (*OAuth2User) SetOAuth2UserID

func (s *OAuth2User) SetOAuth2UserID(val OptString)

SetOAuth2UserID sets the value of OAuth2UserID.

func (*OAuth2User) SetProfilePictureURL

func (s *OAuth2User) SetProfilePictureURL(val OptString)

SetProfilePictureURL sets the value of ProfilePictureURL.

func (*OAuth2User) SetRole

func (s *OAuth2User) SetRole(val OAuth2UserRole)

SetRole sets the value of Role.

func (*OAuth2User) SetUpdatedAt

func (s *OAuth2User) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*OAuth2User) SetUsername

func (s *OAuth2User) SetUsername(val string)

SetUsername sets the value of Username.

func (*OAuth2User) UnmarshalJSON

func (s *OAuth2User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OAuth2User) Validate

func (s *OAuth2User) Validate() error

type OAuth2UserAuthMethod

type OAuth2UserAuthMethod string
const (
	OAuth2UserAuthMethodOAuth2 OAuth2UserAuthMethod = "OAUTH2"
)

func (OAuth2UserAuthMethod) AllValues

AllValues returns all OAuth2UserAuthMethod values.

func (*OAuth2UserAuthMethod) Decode

func (s *OAuth2UserAuthMethod) Decode(d *jx.Decoder) error

Decode decodes OAuth2UserAuthMethod from json.

func (OAuth2UserAuthMethod) Encode

func (s OAuth2UserAuthMethod) Encode(e *jx.Encoder)

Encode encodes OAuth2UserAuthMethod as json.

func (OAuth2UserAuthMethod) MarshalJSON

func (s OAuth2UserAuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OAuth2UserAuthMethod) MarshalText

func (s OAuth2UserAuthMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OAuth2UserAuthMethod) UnmarshalJSON

func (s *OAuth2UserAuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OAuth2UserAuthMethod) UnmarshalText

func (s *OAuth2UserAuthMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OAuth2UserAuthMethod) Validate

func (s OAuth2UserAuthMethod) Validate() error

type OAuth2UserData

type OAuth2UserData struct {
	AuthMethod     OAuth2UserDataAuthMethod `json:"auth_method"`
	Email          string                   `json:"email"`
	OAuth2ClientID OptString                `json:"oauth2_client_id"`
	OAuth2UserID   OptString                `json:"oauth2_user_id"`
	Role           OAuth2UserDataRole       `json:"role"`
	Username       string                   `json:"username"`
}

Ref: #/components/schemas/OAuth2UserData

func (*OAuth2UserData) Decode

func (s *OAuth2UserData) Decode(d *jx.Decoder) error

Decode decodes OAuth2UserData from json.

func (*OAuth2UserData) Encode

func (s *OAuth2UserData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OAuth2UserData) GetAuthMethod

func (s *OAuth2UserData) GetAuthMethod() OAuth2UserDataAuthMethod

GetAuthMethod returns the value of AuthMethod.

func (*OAuth2UserData) GetEmail

func (s *OAuth2UserData) GetEmail() string

GetEmail returns the value of Email.

func (*OAuth2UserData) GetOAuth2ClientID

func (s *OAuth2UserData) GetOAuth2ClientID() OptString

GetOAuth2ClientID returns the value of OAuth2ClientID.

func (*OAuth2UserData) GetOAuth2UserID

func (s *OAuth2UserData) GetOAuth2UserID() OptString

GetOAuth2UserID returns the value of OAuth2UserID.

func (*OAuth2UserData) GetRole

func (s *OAuth2UserData) GetRole() OAuth2UserDataRole

GetRole returns the value of Role.

func (*OAuth2UserData) GetUsername

func (s *OAuth2UserData) GetUsername() string

GetUsername returns the value of Username.

func (*OAuth2UserData) MarshalJSON

func (s *OAuth2UserData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OAuth2UserData) SetAuthMethod

func (s *OAuth2UserData) SetAuthMethod(val OAuth2UserDataAuthMethod)

SetAuthMethod sets the value of AuthMethod.

func (*OAuth2UserData) SetEmail

func (s *OAuth2UserData) SetEmail(val string)

SetEmail sets the value of Email.

func (*OAuth2UserData) SetOAuth2ClientID

func (s *OAuth2UserData) SetOAuth2ClientID(val OptString)

SetOAuth2ClientID sets the value of OAuth2ClientID.

func (*OAuth2UserData) SetOAuth2UserID

func (s *OAuth2UserData) SetOAuth2UserID(val OptString)

SetOAuth2UserID sets the value of OAuth2UserID.

func (*OAuth2UserData) SetRole

func (s *OAuth2UserData) SetRole(val OAuth2UserDataRole)

SetRole sets the value of Role.

func (*OAuth2UserData) SetUsername

func (s *OAuth2UserData) SetUsername(val string)

SetUsername sets the value of Username.

func (*OAuth2UserData) UnmarshalJSON

func (s *OAuth2UserData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OAuth2UserData) Validate

func (s *OAuth2UserData) Validate() error

type OAuth2UserDataAuthMethod

type OAuth2UserDataAuthMethod string
const (
	OAuth2UserDataAuthMethodOAuth2 OAuth2UserDataAuthMethod = "OAUTH2"
)

func (OAuth2UserDataAuthMethod) AllValues

AllValues returns all OAuth2UserDataAuthMethod values.

func (*OAuth2UserDataAuthMethod) Decode

func (s *OAuth2UserDataAuthMethod) Decode(d *jx.Decoder) error

Decode decodes OAuth2UserDataAuthMethod from json.

func (OAuth2UserDataAuthMethod) Encode

func (s OAuth2UserDataAuthMethod) Encode(e *jx.Encoder)

Encode encodes OAuth2UserDataAuthMethod as json.

func (OAuth2UserDataAuthMethod) MarshalJSON

func (s OAuth2UserDataAuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OAuth2UserDataAuthMethod) MarshalText

func (s OAuth2UserDataAuthMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OAuth2UserDataAuthMethod) UnmarshalJSON

func (s *OAuth2UserDataAuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OAuth2UserDataAuthMethod) UnmarshalText

func (s *OAuth2UserDataAuthMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OAuth2UserDataAuthMethod) Validate

func (s OAuth2UserDataAuthMethod) Validate() error

type OAuth2UserDataRole

type OAuth2UserDataRole string
const (
	OAuth2UserDataRoleSYSTEM OAuth2UserDataRole = "SYSTEM"
	OAuth2UserDataRoleADMIN  OAuth2UserDataRole = "ADMIN"
	OAuth2UserDataRoleMEMBER OAuth2UserDataRole = "MEMBER"
	OAuth2UserDataRoleVIEWER OAuth2UserDataRole = "VIEWER"
)

func (OAuth2UserDataRole) AllValues

func (OAuth2UserDataRole) AllValues() []OAuth2UserDataRole

AllValues returns all OAuth2UserDataRole values.

func (*OAuth2UserDataRole) Decode

func (s *OAuth2UserDataRole) Decode(d *jx.Decoder) error

Decode decodes OAuth2UserDataRole from json.

func (OAuth2UserDataRole) Encode

func (s OAuth2UserDataRole) Encode(e *jx.Encoder)

Encode encodes OAuth2UserDataRole as json.

func (OAuth2UserDataRole) MarshalJSON

func (s OAuth2UserDataRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OAuth2UserDataRole) MarshalText

func (s OAuth2UserDataRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OAuth2UserDataRole) UnmarshalJSON

func (s *OAuth2UserDataRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OAuth2UserDataRole) UnmarshalText

func (s *OAuth2UserDataRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OAuth2UserDataRole) Validate

func (s OAuth2UserDataRole) Validate() error

type OAuth2UserRole

type OAuth2UserRole string
const (
	OAuth2UserRoleSYSTEM OAuth2UserRole = "SYSTEM"
	OAuth2UserRoleADMIN  OAuth2UserRole = "ADMIN"
	OAuth2UserRoleMEMBER OAuth2UserRole = "MEMBER"
	OAuth2UserRoleVIEWER OAuth2UserRole = "VIEWER"
)

func (OAuth2UserRole) AllValues

func (OAuth2UserRole) AllValues() []OAuth2UserRole

AllValues returns all OAuth2UserRole values.

func (*OAuth2UserRole) Decode

func (s *OAuth2UserRole) Decode(d *jx.Decoder) error

Decode decodes OAuth2UserRole from json.

func (OAuth2UserRole) Encode

func (s OAuth2UserRole) Encode(e *jx.Encoder)

Encode encodes OAuth2UserRole as json.

func (OAuth2UserRole) MarshalJSON

func (s OAuth2UserRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OAuth2UserRole) MarshalText

func (s OAuth2UserRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OAuth2UserRole) UnmarshalJSON

func (s *OAuth2UserRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OAuth2UserRole) UnmarshalText

func (s *OAuth2UserRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OAuth2UserRole) Validate

func (s OAuth2UserRole) Validate() error

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	AddEvaluationsOperation                                                      OperationName = "AddEvaluations"
	AnnotateSessionsOperation                                                    OperationName = "AnnotateSessions"
	AnnotateSpanDocumentsOperation                                               OperationName = "AnnotateSpanDocuments"
	AnnotateSpansOperation                                                       OperationName = "AnnotateSpans"
	AnnotateTracesOperation                                                      OperationName = "AnnotateTraces"
	CreateAnnotationConfigV1AnnotationConfigsPostOperation                       OperationName = "CreateAnnotationConfigV1AnnotationConfigsPost"
	CreateExperimentOperation                                                    OperationName = "CreateExperiment"
	CreateExperimentRunOperation                                                 OperationName = "CreateExperimentRun"
	CreateProjectOperation                                                       OperationName = "CreateProject"
	CreatePromptVersionTagOperation                                              OperationName = "CreatePromptVersionTag"
	CreateSpanNoteOperation                                                      OperationName = "CreateSpanNote"
	CreateSpansOperation                                                         OperationName = "CreateSpans"
	CreateUserOperation                                                          OperationName = "CreateUser"
	DeleteAnnotationConfigV1AnnotationConfigsConfigIDDeleteOperation             OperationName = "DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete"
	DeleteDatasetByIdOperation                                                   OperationName = "DeleteDatasetById"
	DeleteExperimentOperation                                                    OperationName = "DeleteExperiment"
	DeleteProjectOperation                                                       OperationName = "DeleteProject"
	DeleteSpanOperation                                                          OperationName = "DeleteSpan"
	DeleteTraceOperation                                                         OperationName = "DeleteTrace"
	DeleteUserOperation                                                          OperationName = "DeleteUser"
	GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGetOperation OperationName = "GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet"
	GetDatasetOperation                                                          OperationName = "GetDataset"
	GetDatasetCsvOperation                                                       OperationName = "GetDatasetCsv"
	GetDatasetExamplesOperation                                                  OperationName = "GetDatasetExamples"
	GetDatasetJSONLOpenAIEvalsOperation                                          OperationName = "GetDatasetJSONLOpenAIEvals"
	GetDatasetJSONLOpenAIFineTuningOperation                                     OperationName = "GetDatasetJSONLOpenAIFineTuning"
	GetEvaluationsOperation                                                      OperationName = "GetEvaluations"
	GetExperimentOperation                                                       OperationName = "GetExperiment"
	GetExperimentCSVOperation                                                    OperationName = "GetExperimentCSV"
	GetExperimentJSONOperation                                                   OperationName = "GetExperimentJSON"
	GetIncompleteExperimentEvaluationsOperation                                  OperationName = "GetIncompleteExperimentEvaluations"
	GetIncompleteExperimentRunsOperation                                         OperationName = "GetIncompleteExperimentRuns"
	GetProjectOperation                                                          OperationName = "GetProject"
	GetProjectsOperation                                                         OperationName = "GetProjects"
	GetPromptVersionByPromptVersionIdOperation                                   OperationName = "GetPromptVersionByPromptVersionId"
	GetPromptVersionByTagNameOperation                                           OperationName = "GetPromptVersionByTagName"
	GetPromptVersionLatestOperation                                              OperationName = "GetPromptVersionLatest"
	GetPromptVersionTagsOperation                                                OperationName = "GetPromptVersionTags"
	GetPromptsOperation                                                          OperationName = "GetPrompts"
	GetSpansOperation                                                            OperationName = "GetSpans"
	GetUsersOperation                                                            OperationName = "GetUsers"
	ListAnnotationConfigsV1AnnotationConfigsGetOperation                         OperationName = "ListAnnotationConfigsV1AnnotationConfigsGet"
	ListDatasetVersionsByDatasetIdOperation                                      OperationName = "ListDatasetVersionsByDatasetId"
	ListDatasetsOperation                                                        OperationName = "ListDatasets"
	ListExperimentRunsOperation                                                  OperationName = "ListExperimentRuns"
	ListExperimentsOperation                                                     OperationName = "ListExperiments"
	ListPromptVersionsOperation                                                  OperationName = "ListPromptVersions"
	ListSessionAnnotationsBySessionIdsOperation                                  OperationName = "ListSessionAnnotationsBySessionIds"
	ListSpanAnnotationsBySpanIdsOperation                                        OperationName = "ListSpanAnnotationsBySpanIds"
	ListTraceAnnotationsByTraceIdsOperation                                      OperationName = "ListTraceAnnotationsByTraceIds"
	PostPromptVersionOperation                                                   OperationName = "PostPromptVersion"
	UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutOperation                OperationName = "UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut"
	UpdateProjectOperation                                                       OperationName = "UpdateProject"
	UploadDatasetOperation                                                       OperationName = "UploadDataset"
	UpsertExperimentEvaluationOperation                                          OperationName = "UpsertExperimentEvaluation"
)

type OptAnnotationResult

type OptAnnotationResult struct {
	Value AnnotationResult
	Set   bool
}

OptAnnotationResult is optional AnnotationResult.

func NewOptAnnotationResult

func NewOptAnnotationResult(v AnnotationResult) OptAnnotationResult

NewOptAnnotationResult returns new OptAnnotationResult with value set to v.

func (*OptAnnotationResult) Decode

func (o *OptAnnotationResult) Decode(d *jx.Decoder) error

Decode decodes AnnotationResult from json.

func (OptAnnotationResult) Encode

func (o OptAnnotationResult) Encode(e *jx.Encoder)

Encode encodes AnnotationResult as json.

func (OptAnnotationResult) Get

func (o OptAnnotationResult) Get() (v AnnotationResult, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAnnotationResult) IsSet

func (o OptAnnotationResult) IsSet() bool

IsSet returns true if OptAnnotationResult was set.

func (OptAnnotationResult) MarshalJSON

func (s OptAnnotationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnnotationResult) Or

Or returns value if set, or given parameter if does not.

func (*OptAnnotationResult) Reset

func (o *OptAnnotationResult) Reset()

Reset unsets value.

func (*OptAnnotationResult) SetTo

SetTo sets value to v.

func (*OptAnnotationResult) UnmarshalJSON

func (s *OptAnnotationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptExperimentEvaluationResult

type OptExperimentEvaluationResult struct {
	Value ExperimentEvaluationResult
	Set   bool
}

OptExperimentEvaluationResult is optional ExperimentEvaluationResult.

func NewOptExperimentEvaluationResult

func NewOptExperimentEvaluationResult(v ExperimentEvaluationResult) OptExperimentEvaluationResult

NewOptExperimentEvaluationResult returns new OptExperimentEvaluationResult with value set to v.

func (*OptExperimentEvaluationResult) Decode

Decode decodes ExperimentEvaluationResult from json.

func (OptExperimentEvaluationResult) Encode

Encode encodes ExperimentEvaluationResult as json.

func (OptExperimentEvaluationResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptExperimentEvaluationResult) IsSet

IsSet returns true if OptExperimentEvaluationResult was set.

func (OptExperimentEvaluationResult) MarshalJSON

func (s OptExperimentEvaluationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptExperimentEvaluationResult) Or

Or returns value if set, or given parameter if does not.

func (*OptExperimentEvaluationResult) Reset

func (o *OptExperimentEvaluationResult) Reset()

Reset unsets value.

func (*OptExperimentEvaluationResult) SetTo

SetTo sets value to v.

func (*OptExperimentEvaluationResult) UnmarshalJSON

func (s *OptExperimentEvaluationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

OptFloat64 is optional float64.

func NewOptFloat64

func NewOptFloat64(v float64) OptFloat64

NewOptFloat64 returns new OptFloat64 with value set to v.

func (*OptFloat64) Decode

func (o *OptFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptFloat64) Encode

func (o OptFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptFloat64) Get

func (o OptFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat64) IsSet

func (o OptFloat64) IsSet() bool

IsSet returns true if OptFloat64 was set.

func (OptFloat64) MarshalJSON

func (s OptFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat64) Or

func (o OptFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptFloat64) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilCreateExperimentRequestBodyMetadata

type OptNilCreateExperimentRequestBodyMetadata struct {
	Value CreateExperimentRequestBodyMetadata
	Set   bool
	Null  bool
}

OptNilCreateExperimentRequestBodyMetadata is optional nullable CreateExperimentRequestBodyMetadata.

func NewOptNilCreateExperimentRequestBodyMetadata

func NewOptNilCreateExperimentRequestBodyMetadata(v CreateExperimentRequestBodyMetadata) OptNilCreateExperimentRequestBodyMetadata

NewOptNilCreateExperimentRequestBodyMetadata returns new OptNilCreateExperimentRequestBodyMetadata with value set to v.

func (*OptNilCreateExperimentRequestBodyMetadata) Decode

Decode decodes CreateExperimentRequestBodyMetadata from json.

func (OptNilCreateExperimentRequestBodyMetadata) Encode

Encode encodes CreateExperimentRequestBodyMetadata as json.

func (OptNilCreateExperimentRequestBodyMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilCreateExperimentRequestBodyMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilCreateExperimentRequestBodyMetadata) IsSet

IsSet returns true if OptNilCreateExperimentRequestBodyMetadata was set.

func (OptNilCreateExperimentRequestBodyMetadata) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptNilCreateExperimentRequestBodyMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilCreateExperimentRequestBodyMetadata) Reset

Reset unsets value.

func (*OptNilCreateExperimentRequestBodyMetadata) SetTo

SetTo sets value to v.

func (*OptNilCreateExperimentRequestBodyMetadata) SetToNull

SetToNull sets value to null.

func (*OptNilCreateExperimentRequestBodyMetadata) UnmarshalJSON

func (s *OptNilCreateExperimentRequestBodyMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDateTime

type OptNilDateTime struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDateTime is optional nullable time.Time.

func NewOptNilDateTime

func NewOptNilDateTime(v time.Time) OptNilDateTime

NewOptNilDateTime returns new OptNilDateTime with value set to v.

func (OptNilDateTime) Get

func (o OptNilDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilDateTime) IsNull

func (o OptNilDateTime) IsNull() bool

IsNull returns true if value is Null.

func (OptNilDateTime) IsSet

func (o OptNilDateTime) IsSet() bool

IsSet returns true if OptNilDateTime was set.

func (OptNilDateTime) Or

func (o OptNilDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptNilDateTime) Reset

func (o *OptNilDateTime) Reset()

Reset unsets value.

func (*OptNilDateTime) SetTo

func (o *OptNilDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDateTime) SetToNull

func (o *OptNilDateTime) SetToNull()

SetToNull sets value to null.

type OptNilFloat64

type OptNilFloat64 struct {
	Value float64
	Set   bool
	Null  bool
}

OptNilFloat64 is optional nullable float64.

func NewOptNilFloat64

func NewOptNilFloat64(v float64) OptNilFloat64

NewOptNilFloat64 returns new OptNilFloat64 with value set to v.

func (*OptNilFloat64) Decode

func (o *OptNilFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptNilFloat64) Encode

func (o OptNilFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptNilFloat64) Get

func (o OptNilFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilFloat64) IsNull

func (o OptNilFloat64) IsNull() bool

IsNull returns true if value is Null.

func (OptNilFloat64) IsSet

func (o OptNilFloat64) IsSet() bool

IsSet returns true if OptNilFloat64 was set.

func (OptNilFloat64) MarshalJSON

func (s OptNilFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilFloat64) Or

func (o OptNilFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptNilFloat64) Reset

func (o *OptNilFloat64) Reset()

Reset unsets value.

func (*OptNilFloat64) SetTo

func (o *OptNilFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptNilFloat64) SetToNull

func (o *OptNilFloat64) SetToNull()

SetToNull sets value to null.

func (*OptNilFloat64) UnmarshalJSON

func (s *OptNilFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt

type OptNilInt struct {
	Value int
	Set   bool
	Null  bool
}

OptNilInt is optional nullable int.

func NewOptNilInt

func NewOptNilInt(v int) OptNilInt

NewOptNilInt returns new OptNilInt with value set to v.

func (OptNilInt) Get

func (o OptNilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt) IsNull

func (o OptNilInt) IsNull() bool

IsNull returns true if value is Null.

func (OptNilInt) IsSet

func (o OptNilInt) IsSet() bool

IsSet returns true if OptNilInt was set.

func (OptNilInt) Or

func (o OptNilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptNilInt) Reset

func (o *OptNilInt) Reset()

Reset unsets value.

func (*OptNilInt) SetTo

func (o *OptNilInt) SetTo(v int)

SetTo sets value to v.

func (*OptNilInt) SetToNull

func (o *OptNilInt) SetToNull()

SetToNull sets value to null.

type OptNilPromptDataMetadata

type OptNilPromptDataMetadata struct {
	Value PromptDataMetadata
	Set   bool
	Null  bool
}

OptNilPromptDataMetadata is optional nullable PromptDataMetadata.

func NewOptNilPromptDataMetadata

func NewOptNilPromptDataMetadata(v PromptDataMetadata) OptNilPromptDataMetadata

NewOptNilPromptDataMetadata returns new OptNilPromptDataMetadata with value set to v.

func (*OptNilPromptDataMetadata) Decode

func (o *OptNilPromptDataMetadata) Decode(d *jx.Decoder) error

Decode decodes PromptDataMetadata from json.

func (OptNilPromptDataMetadata) Encode

func (o OptNilPromptDataMetadata) Encode(e *jx.Encoder)

Encode encodes PromptDataMetadata as json.

func (OptNilPromptDataMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilPromptDataMetadata) IsNull

func (o OptNilPromptDataMetadata) IsNull() bool

IsNull returns true if value is Null.

func (OptNilPromptDataMetadata) IsSet

func (o OptNilPromptDataMetadata) IsSet() bool

IsSet returns true if OptNilPromptDataMetadata was set.

func (OptNilPromptDataMetadata) MarshalJSON

func (s OptNilPromptDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilPromptDataMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilPromptDataMetadata) Reset

func (o *OptNilPromptDataMetadata) Reset()

Reset unsets value.

func (*OptNilPromptDataMetadata) SetTo

SetTo sets value to v.

func (*OptNilPromptDataMetadata) SetToNull

func (o *OptNilPromptDataMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilPromptDataMetadata) UnmarshalJSON

func (s *OptNilPromptDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilPromptMetadata

type OptNilPromptMetadata struct {
	Value PromptMetadata
	Set   bool
	Null  bool
}

OptNilPromptMetadata is optional nullable PromptMetadata.

func NewOptNilPromptMetadata

func NewOptNilPromptMetadata(v PromptMetadata) OptNilPromptMetadata

NewOptNilPromptMetadata returns new OptNilPromptMetadata with value set to v.

func (*OptNilPromptMetadata) Decode

func (o *OptNilPromptMetadata) Decode(d *jx.Decoder) error

Decode decodes PromptMetadata from json.

func (OptNilPromptMetadata) Encode

func (o OptNilPromptMetadata) Encode(e *jx.Encoder)

Encode encodes PromptMetadata as json.

func (OptNilPromptMetadata) Get

func (o OptNilPromptMetadata) Get() (v PromptMetadata, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilPromptMetadata) IsNull

func (o OptNilPromptMetadata) IsNull() bool

IsNull returns true if value is Null.

func (OptNilPromptMetadata) IsSet

func (o OptNilPromptMetadata) IsSet() bool

IsSet returns true if OptNilPromptMetadata was set.

func (OptNilPromptMetadata) MarshalJSON

func (s OptNilPromptMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilPromptMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilPromptMetadata) Reset

func (o *OptNilPromptMetadata) Reset()

Reset unsets value.

func (*OptNilPromptMetadata) SetTo

SetTo sets value to v.

func (*OptNilPromptMetadata) SetToNull

func (o *OptNilPromptMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilPromptMetadata) UnmarshalJSON

func (s *OptNilPromptMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilPromptVersionDataResponseFormat

type OptNilPromptVersionDataResponseFormat struct {
	Value PromptVersionDataResponseFormat
	Set   bool
	Null  bool
}

OptNilPromptVersionDataResponseFormat is optional nullable PromptVersionDataResponseFormat.

func NewOptNilPromptVersionDataResponseFormat

func NewOptNilPromptVersionDataResponseFormat(v PromptVersionDataResponseFormat) OptNilPromptVersionDataResponseFormat

NewOptNilPromptVersionDataResponseFormat returns new OptNilPromptVersionDataResponseFormat with value set to v.

func (*OptNilPromptVersionDataResponseFormat) Decode

Decode decodes PromptVersionDataResponseFormat from json.

func (OptNilPromptVersionDataResponseFormat) Encode

Encode encodes PromptVersionDataResponseFormat as json.

func (OptNilPromptVersionDataResponseFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilPromptVersionDataResponseFormat) IsNull

IsNull returns true if value is Null.

func (OptNilPromptVersionDataResponseFormat) IsSet

IsSet returns true if OptNilPromptVersionDataResponseFormat was set.

func (OptNilPromptVersionDataResponseFormat) MarshalJSON

func (s OptNilPromptVersionDataResponseFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilPromptVersionDataResponseFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptNilPromptVersionDataResponseFormat) Reset

Reset unsets value.

func (*OptNilPromptVersionDataResponseFormat) SetTo

SetTo sets value to v.

func (*OptNilPromptVersionDataResponseFormat) SetToNull

SetToNull sets value to null.

func (*OptNilPromptVersionDataResponseFormat) UnmarshalJSON

func (s *OptNilPromptVersionDataResponseFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilPromptVersionResponseFormat

type OptNilPromptVersionResponseFormat struct {
	Value PromptVersionResponseFormat
	Set   bool
	Null  bool
}

OptNilPromptVersionResponseFormat is optional nullable PromptVersionResponseFormat.

func NewOptNilPromptVersionResponseFormat

func NewOptNilPromptVersionResponseFormat(v PromptVersionResponseFormat) OptNilPromptVersionResponseFormat

NewOptNilPromptVersionResponseFormat returns new OptNilPromptVersionResponseFormat with value set to v.

func (*OptNilPromptVersionResponseFormat) Decode

Decode decodes PromptVersionResponseFormat from json.

func (OptNilPromptVersionResponseFormat) Encode

Encode encodes PromptVersionResponseFormat as json.

func (OptNilPromptVersionResponseFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilPromptVersionResponseFormat) IsNull

IsNull returns true if value is Null.

func (OptNilPromptVersionResponseFormat) IsSet

IsSet returns true if OptNilPromptVersionResponseFormat was set.

func (OptNilPromptVersionResponseFormat) MarshalJSON

func (s OptNilPromptVersionResponseFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilPromptVersionResponseFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptNilPromptVersionResponseFormat) Reset

Reset unsets value.

func (*OptNilPromptVersionResponseFormat) SetTo

SetTo sets value to v.

func (*OptNilPromptVersionResponseFormat) SetToNull

func (o *OptNilPromptVersionResponseFormat) SetToNull()

SetToNull sets value to null.

func (*OptNilPromptVersionResponseFormat) UnmarshalJSON

func (s *OptNilPromptVersionResponseFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionAnnotationDataMetadata

type OptNilSessionAnnotationDataMetadata struct {
	Value SessionAnnotationDataMetadata
	Set   bool
	Null  bool
}

OptNilSessionAnnotationDataMetadata is optional nullable SessionAnnotationDataMetadata.

func NewOptNilSessionAnnotationDataMetadata

func NewOptNilSessionAnnotationDataMetadata(v SessionAnnotationDataMetadata) OptNilSessionAnnotationDataMetadata

NewOptNilSessionAnnotationDataMetadata returns new OptNilSessionAnnotationDataMetadata with value set to v.

func (*OptNilSessionAnnotationDataMetadata) Decode

Decode decodes SessionAnnotationDataMetadata from json.

func (OptNilSessionAnnotationDataMetadata) Encode

Encode encodes SessionAnnotationDataMetadata as json.

func (OptNilSessionAnnotationDataMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionAnnotationDataMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilSessionAnnotationDataMetadata) IsSet

IsSet returns true if OptNilSessionAnnotationDataMetadata was set.

func (OptNilSessionAnnotationDataMetadata) MarshalJSON

func (s OptNilSessionAnnotationDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionAnnotationDataMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionAnnotationDataMetadata) Reset

Reset unsets value.

func (*OptNilSessionAnnotationDataMetadata) SetTo

SetTo sets value to v.

func (*OptNilSessionAnnotationDataMetadata) SetToNull

func (o *OptNilSessionAnnotationDataMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionAnnotationDataMetadata) UnmarshalJSON

func (s *OptNilSessionAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionAnnotationMetadata

type OptNilSessionAnnotationMetadata struct {
	Value SessionAnnotationMetadata
	Set   bool
	Null  bool
}

OptNilSessionAnnotationMetadata is optional nullable SessionAnnotationMetadata.

func NewOptNilSessionAnnotationMetadata

func NewOptNilSessionAnnotationMetadata(v SessionAnnotationMetadata) OptNilSessionAnnotationMetadata

NewOptNilSessionAnnotationMetadata returns new OptNilSessionAnnotationMetadata with value set to v.

func (*OptNilSessionAnnotationMetadata) Decode

Decode decodes SessionAnnotationMetadata from json.

func (OptNilSessionAnnotationMetadata) Encode

Encode encodes SessionAnnotationMetadata as json.

func (OptNilSessionAnnotationMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionAnnotationMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilSessionAnnotationMetadata) IsSet

IsSet returns true if OptNilSessionAnnotationMetadata was set.

func (OptNilSessionAnnotationMetadata) MarshalJSON

func (s OptNilSessionAnnotationMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionAnnotationMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionAnnotationMetadata) Reset

Reset unsets value.

func (*OptNilSessionAnnotationMetadata) SetTo

SetTo sets value to v.

func (*OptNilSessionAnnotationMetadata) SetToNull

func (o *OptNilSessionAnnotationMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionAnnotationMetadata) UnmarshalJSON

func (s *OptNilSessionAnnotationMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSpanAnnotationDataMetadata

type OptNilSpanAnnotationDataMetadata struct {
	Value SpanAnnotationDataMetadata
	Set   bool
	Null  bool
}

OptNilSpanAnnotationDataMetadata is optional nullable SpanAnnotationDataMetadata.

func NewOptNilSpanAnnotationDataMetadata

func NewOptNilSpanAnnotationDataMetadata(v SpanAnnotationDataMetadata) OptNilSpanAnnotationDataMetadata

NewOptNilSpanAnnotationDataMetadata returns new OptNilSpanAnnotationDataMetadata with value set to v.

func (*OptNilSpanAnnotationDataMetadata) Decode

Decode decodes SpanAnnotationDataMetadata from json.

func (OptNilSpanAnnotationDataMetadata) Encode

Encode encodes SpanAnnotationDataMetadata as json.

func (OptNilSpanAnnotationDataMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSpanAnnotationDataMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilSpanAnnotationDataMetadata) IsSet

IsSet returns true if OptNilSpanAnnotationDataMetadata was set.

func (OptNilSpanAnnotationDataMetadata) MarshalJSON

func (s OptNilSpanAnnotationDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSpanAnnotationDataMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSpanAnnotationDataMetadata) Reset

Reset unsets value.

func (*OptNilSpanAnnotationDataMetadata) SetTo

SetTo sets value to v.

func (*OptNilSpanAnnotationDataMetadata) SetToNull

func (o *OptNilSpanAnnotationDataMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilSpanAnnotationDataMetadata) UnmarshalJSON

func (s *OptNilSpanAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSpanAnnotationMetadata

type OptNilSpanAnnotationMetadata struct {
	Value SpanAnnotationMetadata
	Set   bool
	Null  bool
}

OptNilSpanAnnotationMetadata is optional nullable SpanAnnotationMetadata.

func NewOptNilSpanAnnotationMetadata

func NewOptNilSpanAnnotationMetadata(v SpanAnnotationMetadata) OptNilSpanAnnotationMetadata

NewOptNilSpanAnnotationMetadata returns new OptNilSpanAnnotationMetadata with value set to v.

func (*OptNilSpanAnnotationMetadata) Decode

Decode decodes SpanAnnotationMetadata from json.

func (OptNilSpanAnnotationMetadata) Encode

Encode encodes SpanAnnotationMetadata as json.

func (OptNilSpanAnnotationMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSpanAnnotationMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilSpanAnnotationMetadata) IsSet

IsSet returns true if OptNilSpanAnnotationMetadata was set.

func (OptNilSpanAnnotationMetadata) MarshalJSON

func (s OptNilSpanAnnotationMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSpanAnnotationMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSpanAnnotationMetadata) Reset

func (o *OptNilSpanAnnotationMetadata) Reset()

Reset unsets value.

func (*OptNilSpanAnnotationMetadata) SetTo

SetTo sets value to v.

func (*OptNilSpanAnnotationMetadata) SetToNull

func (o *OptNilSpanAnnotationMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilSpanAnnotationMetadata) UnmarshalJSON

func (s *OptNilSpanAnnotationMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSpanDocumentAnnotationDataMetadata

type OptNilSpanDocumentAnnotationDataMetadata struct {
	Value SpanDocumentAnnotationDataMetadata
	Set   bool
	Null  bool
}

OptNilSpanDocumentAnnotationDataMetadata is optional nullable SpanDocumentAnnotationDataMetadata.

func NewOptNilSpanDocumentAnnotationDataMetadata

func NewOptNilSpanDocumentAnnotationDataMetadata(v SpanDocumentAnnotationDataMetadata) OptNilSpanDocumentAnnotationDataMetadata

NewOptNilSpanDocumentAnnotationDataMetadata returns new OptNilSpanDocumentAnnotationDataMetadata with value set to v.

func (*OptNilSpanDocumentAnnotationDataMetadata) Decode

Decode decodes SpanDocumentAnnotationDataMetadata from json.

func (OptNilSpanDocumentAnnotationDataMetadata) Encode

Encode encodes SpanDocumentAnnotationDataMetadata as json.

func (OptNilSpanDocumentAnnotationDataMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSpanDocumentAnnotationDataMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilSpanDocumentAnnotationDataMetadata) IsSet

IsSet returns true if OptNilSpanDocumentAnnotationDataMetadata was set.

func (OptNilSpanDocumentAnnotationDataMetadata) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptNilSpanDocumentAnnotationDataMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSpanDocumentAnnotationDataMetadata) Reset

Reset unsets value.

func (*OptNilSpanDocumentAnnotationDataMetadata) SetTo

SetTo sets value to v.

func (*OptNilSpanDocumentAnnotationDataMetadata) SetToNull

SetToNull sets value to null.

func (*OptNilSpanDocumentAnnotationDataMetadata) UnmarshalJSON

func (s *OptNilSpanDocumentAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsNull returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetToNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilStringArray

type OptNilStringArray struct {
	Value []string
	Set   bool
	Null  bool
}

OptNilStringArray is optional nullable []string.

func NewOptNilStringArray

func NewOptNilStringArray(v []string) OptNilStringArray

NewOptNilStringArray returns new OptNilStringArray with value set to v.

func (*OptNilStringArray) Decode

func (o *OptNilStringArray) Decode(d *jx.Decoder) error

Decode decodes []string from json.

func (OptNilStringArray) Encode

func (o OptNilStringArray) Encode(e *jx.Encoder)

Encode encodes []string as json.

func (OptNilStringArray) Get

func (o OptNilStringArray) Get() (v []string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilStringArray) IsNull

func (o OptNilStringArray) IsNull() bool

IsNull returns true if value is Null.

func (OptNilStringArray) IsSet

func (o OptNilStringArray) IsSet() bool

IsSet returns true if OptNilStringArray was set.

func (OptNilStringArray) MarshalJSON

func (s OptNilStringArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilStringArray) Or

func (o OptNilStringArray) Or(d []string) []string

Or returns value if set, or given parameter if does not.

func (*OptNilStringArray) Reset

func (o *OptNilStringArray) Reset()

Reset unsets value.

func (*OptNilStringArray) SetTo

func (o *OptNilStringArray) SetTo(v []string)

SetTo sets value to v.

func (*OptNilStringArray) SetToNull

func (o *OptNilStringArray) SetToNull()

SetToNull sets value to null.

func (*OptNilStringArray) UnmarshalJSON

func (s *OptNilStringArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilTraceAnnotationDataMetadata

type OptNilTraceAnnotationDataMetadata struct {
	Value TraceAnnotationDataMetadata
	Set   bool
	Null  bool
}

OptNilTraceAnnotationDataMetadata is optional nullable TraceAnnotationDataMetadata.

func NewOptNilTraceAnnotationDataMetadata

func NewOptNilTraceAnnotationDataMetadata(v TraceAnnotationDataMetadata) OptNilTraceAnnotationDataMetadata

NewOptNilTraceAnnotationDataMetadata returns new OptNilTraceAnnotationDataMetadata with value set to v.

func (*OptNilTraceAnnotationDataMetadata) Decode

Decode decodes TraceAnnotationDataMetadata from json.

func (OptNilTraceAnnotationDataMetadata) Encode

Encode encodes TraceAnnotationDataMetadata as json.

func (OptNilTraceAnnotationDataMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilTraceAnnotationDataMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilTraceAnnotationDataMetadata) IsSet

IsSet returns true if OptNilTraceAnnotationDataMetadata was set.

func (OptNilTraceAnnotationDataMetadata) MarshalJSON

func (s OptNilTraceAnnotationDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilTraceAnnotationDataMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilTraceAnnotationDataMetadata) Reset

Reset unsets value.

func (*OptNilTraceAnnotationDataMetadata) SetTo

SetTo sets value to v.

func (*OptNilTraceAnnotationDataMetadata) SetToNull

func (o *OptNilTraceAnnotationDataMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilTraceAnnotationDataMetadata) UnmarshalJSON

func (s *OptNilTraceAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilTraceAnnotationMetadata

type OptNilTraceAnnotationMetadata struct {
	Value TraceAnnotationMetadata
	Set   bool
	Null  bool
}

OptNilTraceAnnotationMetadata is optional nullable TraceAnnotationMetadata.

func NewOptNilTraceAnnotationMetadata

func NewOptNilTraceAnnotationMetadata(v TraceAnnotationMetadata) OptNilTraceAnnotationMetadata

NewOptNilTraceAnnotationMetadata returns new OptNilTraceAnnotationMetadata with value set to v.

func (*OptNilTraceAnnotationMetadata) Decode

Decode decodes TraceAnnotationMetadata from json.

func (OptNilTraceAnnotationMetadata) Encode

Encode encodes TraceAnnotationMetadata as json.

func (OptNilTraceAnnotationMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilTraceAnnotationMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilTraceAnnotationMetadata) IsSet

IsSet returns true if OptNilTraceAnnotationMetadata was set.

func (OptNilTraceAnnotationMetadata) MarshalJSON

func (s OptNilTraceAnnotationMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilTraceAnnotationMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilTraceAnnotationMetadata) Reset

func (o *OptNilTraceAnnotationMetadata) Reset()

Reset unsets value.

func (*OptNilTraceAnnotationMetadata) SetTo

SetTo sets value to v.

func (*OptNilTraceAnnotationMetadata) SetToNull

func (o *OptNilTraceAnnotationMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilTraceAnnotationMetadata) UnmarshalJSON

func (s *OptNilTraceAnnotationMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilUpsertExperimentEvaluationRequestBodyMetadata

type OptNilUpsertExperimentEvaluationRequestBodyMetadata struct {
	Value UpsertExperimentEvaluationRequestBodyMetadata
	Set   bool
	Null  bool
}

OptNilUpsertExperimentEvaluationRequestBodyMetadata is optional nullable UpsertExperimentEvaluationRequestBodyMetadata.

func NewOptNilUpsertExperimentEvaluationRequestBodyMetadata

func NewOptNilUpsertExperimentEvaluationRequestBodyMetadata(v UpsertExperimentEvaluationRequestBodyMetadata) OptNilUpsertExperimentEvaluationRequestBodyMetadata

NewOptNilUpsertExperimentEvaluationRequestBodyMetadata returns new OptNilUpsertExperimentEvaluationRequestBodyMetadata with value set to v.

func (*OptNilUpsertExperimentEvaluationRequestBodyMetadata) Decode

Decode decodes UpsertExperimentEvaluationRequestBodyMetadata from json.

func (OptNilUpsertExperimentEvaluationRequestBodyMetadata) Encode

Encode encodes UpsertExperimentEvaluationRequestBodyMetadata as json.

func (OptNilUpsertExperimentEvaluationRequestBodyMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilUpsertExperimentEvaluationRequestBodyMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilUpsertExperimentEvaluationRequestBodyMetadata) IsSet

IsSet returns true if OptNilUpsertExperimentEvaluationRequestBodyMetadata was set.

func (OptNilUpsertExperimentEvaluationRequestBodyMetadata) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptNilUpsertExperimentEvaluationRequestBodyMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilUpsertExperimentEvaluationRequestBodyMetadata) Reset

Reset unsets value.

func (*OptNilUpsertExperimentEvaluationRequestBodyMetadata) SetTo

SetTo sets value to v.

func (*OptNilUpsertExperimentEvaluationRequestBodyMetadata) SetToNull

SetToNull sets value to null.

func (*OptNilUpsertExperimentEvaluationRequestBodyMetadata) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptAnthropicInvocationParametersContentThinking

type OptPromptAnthropicInvocationParametersContentThinking struct {
	Value PromptAnthropicInvocationParametersContentThinking
	Set   bool
}

OptPromptAnthropicInvocationParametersContentThinking is optional PromptAnthropicInvocationParametersContentThinking.

func NewOptPromptAnthropicInvocationParametersContentThinking

NewOptPromptAnthropicInvocationParametersContentThinking returns new OptPromptAnthropicInvocationParametersContentThinking with value set to v.

func (*OptPromptAnthropicInvocationParametersContentThinking) Decode

Decode decodes PromptAnthropicInvocationParametersContentThinking from json.

func (OptPromptAnthropicInvocationParametersContentThinking) Encode

Encode encodes PromptAnthropicInvocationParametersContentThinking as json.

func (OptPromptAnthropicInvocationParametersContentThinking) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptAnthropicInvocationParametersContentThinking) IsSet

IsSet returns true if OptPromptAnthropicInvocationParametersContentThinking was set.

func (OptPromptAnthropicInvocationParametersContentThinking) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptAnthropicInvocationParametersContentThinking) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptAnthropicInvocationParametersContentThinking) Reset

Reset unsets value.

func (*OptPromptAnthropicInvocationParametersContentThinking) SetTo

SetTo sets value to v.

func (*OptPromptAnthropicInvocationParametersContentThinking) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptAzureOpenAIInvocationParametersContentReasoningEffort

type OptPromptAzureOpenAIInvocationParametersContentReasoningEffort struct {
	Value PromptAzureOpenAIInvocationParametersContentReasoningEffort
	Set   bool
}

OptPromptAzureOpenAIInvocationParametersContentReasoningEffort is optional PromptAzureOpenAIInvocationParametersContentReasoningEffort.

func NewOptPromptAzureOpenAIInvocationParametersContentReasoningEffort

NewOptPromptAzureOpenAIInvocationParametersContentReasoningEffort returns new OptPromptAzureOpenAIInvocationParametersContentReasoningEffort with value set to v.

func (*OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptAzureOpenAIInvocationParametersContentReasoningEffort from json.

func (OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptAzureOpenAIInvocationParametersContentReasoningEffort as json.

func (OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) IsSet

IsSet returns true if OptPromptAzureOpenAIInvocationParametersContentReasoningEffort was set.

func (OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) Reset

Reset unsets value.

func (*OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) SetTo

SetTo sets value to v.

func (*OptPromptAzureOpenAIInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptDeepSeekInvocationParametersContentReasoningEffort

type OptPromptDeepSeekInvocationParametersContentReasoningEffort struct {
	Value PromptDeepSeekInvocationParametersContentReasoningEffort
	Set   bool
}

OptPromptDeepSeekInvocationParametersContentReasoningEffort is optional PromptDeepSeekInvocationParametersContentReasoningEffort.

func NewOptPromptDeepSeekInvocationParametersContentReasoningEffort

NewOptPromptDeepSeekInvocationParametersContentReasoningEffort returns new OptPromptDeepSeekInvocationParametersContentReasoningEffort with value set to v.

func (*OptPromptDeepSeekInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptDeepSeekInvocationParametersContentReasoningEffort from json.

func (OptPromptDeepSeekInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptDeepSeekInvocationParametersContentReasoningEffort as json.

func (OptPromptDeepSeekInvocationParametersContentReasoningEffort) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptDeepSeekInvocationParametersContentReasoningEffort) IsSet

IsSet returns true if OptPromptDeepSeekInvocationParametersContentReasoningEffort was set.

func (OptPromptDeepSeekInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptDeepSeekInvocationParametersContentReasoningEffort) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptDeepSeekInvocationParametersContentReasoningEffort) Reset

Reset unsets value.

func (*OptPromptDeepSeekInvocationParametersContentReasoningEffort) SetTo

SetTo sets value to v.

func (*OptPromptDeepSeekInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptOllamaInvocationParametersContentReasoningEffort

type OptPromptOllamaInvocationParametersContentReasoningEffort struct {
	Value PromptOllamaInvocationParametersContentReasoningEffort
	Set   bool
}

OptPromptOllamaInvocationParametersContentReasoningEffort is optional PromptOllamaInvocationParametersContentReasoningEffort.

func NewOptPromptOllamaInvocationParametersContentReasoningEffort

NewOptPromptOllamaInvocationParametersContentReasoningEffort returns new OptPromptOllamaInvocationParametersContentReasoningEffort with value set to v.

func (*OptPromptOllamaInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptOllamaInvocationParametersContentReasoningEffort from json.

func (OptPromptOllamaInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptOllamaInvocationParametersContentReasoningEffort as json.

func (OptPromptOllamaInvocationParametersContentReasoningEffort) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptOllamaInvocationParametersContentReasoningEffort) IsSet

IsSet returns true if OptPromptOllamaInvocationParametersContentReasoningEffort was set.

func (OptPromptOllamaInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptOllamaInvocationParametersContentReasoningEffort) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptOllamaInvocationParametersContentReasoningEffort) Reset

Reset unsets value.

func (*OptPromptOllamaInvocationParametersContentReasoningEffort) SetTo

SetTo sets value to v.

func (*OptPromptOllamaInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptOpenAIInvocationParametersContentReasoningEffort

type OptPromptOpenAIInvocationParametersContentReasoningEffort struct {
	Value PromptOpenAIInvocationParametersContentReasoningEffort
	Set   bool
}

OptPromptOpenAIInvocationParametersContentReasoningEffort is optional PromptOpenAIInvocationParametersContentReasoningEffort.

func NewOptPromptOpenAIInvocationParametersContentReasoningEffort

NewOptPromptOpenAIInvocationParametersContentReasoningEffort returns new OptPromptOpenAIInvocationParametersContentReasoningEffort with value set to v.

func (*OptPromptOpenAIInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptOpenAIInvocationParametersContentReasoningEffort from json.

func (OptPromptOpenAIInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptOpenAIInvocationParametersContentReasoningEffort as json.

func (OptPromptOpenAIInvocationParametersContentReasoningEffort) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptOpenAIInvocationParametersContentReasoningEffort) IsSet

IsSet returns true if OptPromptOpenAIInvocationParametersContentReasoningEffort was set.

func (OptPromptOpenAIInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptOpenAIInvocationParametersContentReasoningEffort) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptOpenAIInvocationParametersContentReasoningEffort) Reset

Reset unsets value.

func (*OptPromptOpenAIInvocationParametersContentReasoningEffort) SetTo

SetTo sets value to v.

func (*OptPromptOpenAIInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptResponseFormatJSONSchemaDefinitionSchema

type OptPromptResponseFormatJSONSchemaDefinitionSchema struct {
	Value PromptResponseFormatJSONSchemaDefinitionSchema
	Set   bool
}

OptPromptResponseFormatJSONSchemaDefinitionSchema is optional PromptResponseFormatJSONSchemaDefinitionSchema.

func NewOptPromptResponseFormatJSONSchemaDefinitionSchema

func NewOptPromptResponseFormatJSONSchemaDefinitionSchema(v PromptResponseFormatJSONSchemaDefinitionSchema) OptPromptResponseFormatJSONSchemaDefinitionSchema

NewOptPromptResponseFormatJSONSchemaDefinitionSchema returns new OptPromptResponseFormatJSONSchemaDefinitionSchema with value set to v.

func (*OptPromptResponseFormatJSONSchemaDefinitionSchema) Decode

Decode decodes PromptResponseFormatJSONSchemaDefinitionSchema from json.

func (OptPromptResponseFormatJSONSchemaDefinitionSchema) Encode

Encode encodes PromptResponseFormatJSONSchemaDefinitionSchema as json.

func (OptPromptResponseFormatJSONSchemaDefinitionSchema) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptResponseFormatJSONSchemaDefinitionSchema) IsSet

IsSet returns true if OptPromptResponseFormatJSONSchemaDefinitionSchema was set.

func (OptPromptResponseFormatJSONSchemaDefinitionSchema) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptResponseFormatJSONSchemaDefinitionSchema) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptResponseFormatJSONSchemaDefinitionSchema) Reset

Reset unsets value.

func (*OptPromptResponseFormatJSONSchemaDefinitionSchema) SetTo

SetTo sets value to v.

func (*OptPromptResponseFormatJSONSchemaDefinitionSchema) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptToolFunctionDefinitionParameters

type OptPromptToolFunctionDefinitionParameters struct {
	Value PromptToolFunctionDefinitionParameters
	Set   bool
}

OptPromptToolFunctionDefinitionParameters is optional PromptToolFunctionDefinitionParameters.

func NewOptPromptToolFunctionDefinitionParameters

func NewOptPromptToolFunctionDefinitionParameters(v PromptToolFunctionDefinitionParameters) OptPromptToolFunctionDefinitionParameters

NewOptPromptToolFunctionDefinitionParameters returns new OptPromptToolFunctionDefinitionParameters with value set to v.

func (*OptPromptToolFunctionDefinitionParameters) Decode

Decode decodes PromptToolFunctionDefinitionParameters from json.

func (OptPromptToolFunctionDefinitionParameters) Encode

Encode encodes PromptToolFunctionDefinitionParameters as json.

func (OptPromptToolFunctionDefinitionParameters) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptToolFunctionDefinitionParameters) IsSet

IsSet returns true if OptPromptToolFunctionDefinitionParameters was set.

func (OptPromptToolFunctionDefinitionParameters) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptToolFunctionDefinitionParameters) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptToolFunctionDefinitionParameters) Reset

Reset unsets value.

func (*OptPromptToolFunctionDefinitionParameters) SetTo

SetTo sets value to v.

func (*OptPromptToolFunctionDefinitionParameters) UnmarshalJSON

func (s *OptPromptToolFunctionDefinitionParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptTools

type OptPromptTools struct {
	Value PromptTools
	Set   bool
}

OptPromptTools is optional PromptTools.

func NewOptPromptTools

func NewOptPromptTools(v PromptTools) OptPromptTools

NewOptPromptTools returns new OptPromptTools with value set to v.

func (*OptPromptTools) Decode

func (o *OptPromptTools) Decode(d *jx.Decoder) error

Decode decodes PromptTools from json.

func (OptPromptTools) Encode

func (o OptPromptTools) Encode(e *jx.Encoder)

Encode encodes PromptTools as json.

func (OptPromptTools) Get

func (o OptPromptTools) Get() (v PromptTools, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPromptTools) IsSet

func (o OptPromptTools) IsSet() bool

IsSet returns true if OptPromptTools was set.

func (OptPromptTools) MarshalJSON

func (s OptPromptTools) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPromptTools) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptTools) Reset

func (o *OptPromptTools) Reset()

Reset unsets value.

func (*OptPromptTools) SetTo

func (o *OptPromptTools) SetTo(v PromptTools)

SetTo sets value to v.

func (*OptPromptTools) UnmarshalJSON

func (s *OptPromptTools) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptToolsToolChoice

type OptPromptToolsToolChoice struct {
	Value PromptToolsToolChoice
	Set   bool
}

OptPromptToolsToolChoice is optional PromptToolsToolChoice.

func NewOptPromptToolsToolChoice

func NewOptPromptToolsToolChoice(v PromptToolsToolChoice) OptPromptToolsToolChoice

NewOptPromptToolsToolChoice returns new OptPromptToolsToolChoice with value set to v.

func (*OptPromptToolsToolChoice) Decode

func (o *OptPromptToolsToolChoice) Decode(d *jx.Decoder) error

Decode decodes PromptToolsToolChoice from json.

func (OptPromptToolsToolChoice) Encode

func (o OptPromptToolsToolChoice) Encode(e *jx.Encoder)

Encode encodes PromptToolsToolChoice as json.

func (OptPromptToolsToolChoice) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptToolsToolChoice) IsSet

func (o OptPromptToolsToolChoice) IsSet() bool

IsSet returns true if OptPromptToolsToolChoice was set.

func (OptPromptToolsToolChoice) MarshalJSON

func (s OptPromptToolsToolChoice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPromptToolsToolChoice) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptToolsToolChoice) Reset

func (o *OptPromptToolsToolChoice) Reset()

Reset unsets value.

func (*OptPromptToolsToolChoice) SetTo

SetTo sets value to v.

func (*OptPromptToolsToolChoice) UnmarshalJSON

func (s *OptPromptToolsToolChoice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptXAIInvocationParametersContentReasoningEffort

type OptPromptXAIInvocationParametersContentReasoningEffort struct {
	Value PromptXAIInvocationParametersContentReasoningEffort
	Set   bool
}

OptPromptXAIInvocationParametersContentReasoningEffort is optional PromptXAIInvocationParametersContentReasoningEffort.

func NewOptPromptXAIInvocationParametersContentReasoningEffort

NewOptPromptXAIInvocationParametersContentReasoningEffort returns new OptPromptXAIInvocationParametersContentReasoningEffort with value set to v.

func (*OptPromptXAIInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptXAIInvocationParametersContentReasoningEffort from json.

func (OptPromptXAIInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptXAIInvocationParametersContentReasoningEffort as json.

func (OptPromptXAIInvocationParametersContentReasoningEffort) Get

Get returns value and boolean that denotes whether value was set.

func (OptPromptXAIInvocationParametersContentReasoningEffort) IsSet

IsSet returns true if OptPromptXAIInvocationParametersContentReasoningEffort was set.

func (OptPromptXAIInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPromptXAIInvocationParametersContentReasoningEffort) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptXAIInvocationParametersContentReasoningEffort) Reset

Reset unsets value.

func (*OptPromptXAIInvocationParametersContentReasoningEffort) SetTo

SetTo sets value to v.

func (*OptPromptXAIInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpanAttributes

type OptSpanAttributes struct {
	Value SpanAttributes
	Set   bool
}

OptSpanAttributes is optional SpanAttributes.

func NewOptSpanAttributes

func NewOptSpanAttributes(v SpanAttributes) OptSpanAttributes

NewOptSpanAttributes returns new OptSpanAttributes with value set to v.

func (*OptSpanAttributes) Decode

func (o *OptSpanAttributes) Decode(d *jx.Decoder) error

Decode decodes SpanAttributes from json.

func (OptSpanAttributes) Encode

func (o OptSpanAttributes) Encode(e *jx.Encoder)

Encode encodes SpanAttributes as json.

func (OptSpanAttributes) Get

func (o OptSpanAttributes) Get() (v SpanAttributes, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSpanAttributes) IsSet

func (o OptSpanAttributes) IsSet() bool

IsSet returns true if OptSpanAttributes was set.

func (OptSpanAttributes) MarshalJSON

func (s OptSpanAttributes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpanAttributes) Or

Or returns value if set, or given parameter if does not.

func (*OptSpanAttributes) Reset

func (o *OptSpanAttributes) Reset()

Reset unsets value.

func (*OptSpanAttributes) SetTo

func (o *OptSpanAttributes) SetTo(v SpanAttributes)

SetTo sets value to v.

func (*OptSpanAttributes) UnmarshalJSON

func (s *OptSpanAttributes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpanEventAttributes

type OptSpanEventAttributes struct {
	Value SpanEventAttributes
	Set   bool
}

OptSpanEventAttributes is optional SpanEventAttributes.

func NewOptSpanEventAttributes

func NewOptSpanEventAttributes(v SpanEventAttributes) OptSpanEventAttributes

NewOptSpanEventAttributes returns new OptSpanEventAttributes with value set to v.

func (*OptSpanEventAttributes) Decode

func (o *OptSpanEventAttributes) Decode(d *jx.Decoder) error

Decode decodes SpanEventAttributes from json.

func (OptSpanEventAttributes) Encode

func (o OptSpanEventAttributes) Encode(e *jx.Encoder)

Encode encodes SpanEventAttributes as json.

func (OptSpanEventAttributes) Get

Get returns value and boolean that denotes whether value was set.

func (OptSpanEventAttributes) IsSet

func (o OptSpanEventAttributes) IsSet() bool

IsSet returns true if OptSpanEventAttributes was set.

func (OptSpanEventAttributes) MarshalJSON

func (s OptSpanEventAttributes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpanEventAttributes) Or

Or returns value if set, or given parameter if does not.

func (*OptSpanEventAttributes) Reset

func (o *OptSpanEventAttributes) Reset()

Reset unsets value.

func (*OptSpanEventAttributes) SetTo

SetTo sets value to v.

func (*OptSpanEventAttributes) UnmarshalJSON

func (s *OptSpanEventAttributes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUploadDatasetReqApplicationJSONAction

type OptUploadDatasetReqApplicationJSONAction struct {
	Value UploadDatasetReqApplicationJSONAction
	Set   bool
}

OptUploadDatasetReqApplicationJSONAction is optional UploadDatasetReqApplicationJSONAction.

func NewOptUploadDatasetReqApplicationJSONAction

func NewOptUploadDatasetReqApplicationJSONAction(v UploadDatasetReqApplicationJSONAction) OptUploadDatasetReqApplicationJSONAction

NewOptUploadDatasetReqApplicationJSONAction returns new OptUploadDatasetReqApplicationJSONAction with value set to v.

func (*OptUploadDatasetReqApplicationJSONAction) Decode

Decode decodes UploadDatasetReqApplicationJSONAction from json.

func (OptUploadDatasetReqApplicationJSONAction) Encode

Encode encodes UploadDatasetReqApplicationJSONAction as json.

func (OptUploadDatasetReqApplicationJSONAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptUploadDatasetReqApplicationJSONAction) IsSet

IsSet returns true if OptUploadDatasetReqApplicationJSONAction was set.

func (OptUploadDatasetReqApplicationJSONAction) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUploadDatasetReqApplicationJSONAction) Or

Or returns value if set, or given parameter if does not.

func (*OptUploadDatasetReqApplicationJSONAction) Reset

Reset unsets value.

func (*OptUploadDatasetReqApplicationJSONAction) SetTo

SetTo sets value to v.

func (*OptUploadDatasetReqApplicationJSONAction) UnmarshalJSON

func (s *OptUploadDatasetReqApplicationJSONAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUploadDatasetReqMultipartFormDataAction

type OptUploadDatasetReqMultipartFormDataAction struct {
	Value UploadDatasetReqMultipartFormDataAction
	Set   bool
}

OptUploadDatasetReqMultipartFormDataAction is optional UploadDatasetReqMultipartFormDataAction.

func NewOptUploadDatasetReqMultipartFormDataAction

func NewOptUploadDatasetReqMultipartFormDataAction(v UploadDatasetReqMultipartFormDataAction) OptUploadDatasetReqMultipartFormDataAction

NewOptUploadDatasetReqMultipartFormDataAction returns new OptUploadDatasetReqMultipartFormDataAction with value set to v.

func (OptUploadDatasetReqMultipartFormDataAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptUploadDatasetReqMultipartFormDataAction) IsSet

IsSet returns true if OptUploadDatasetReqMultipartFormDataAction was set.

func (OptUploadDatasetReqMultipartFormDataAction) Or

Or returns value if set, or given parameter if does not.

func (*OptUploadDatasetReqMultipartFormDataAction) Reset

Reset unsets value.

func (*OptUploadDatasetReqMultipartFormDataAction) SetTo

SetTo sets value to v.

type OptimizationDirection

type OptimizationDirection string

Ref: #/components/schemas/OptimizationDirection

const (
	OptimizationDirectionMINIMIZE OptimizationDirection = "MINIMIZE"
	OptimizationDirectionMAXIMIZE OptimizationDirection = "MAXIMIZE"
	OptimizationDirectionNONE     OptimizationDirection = "NONE"
)

func (OptimizationDirection) AllValues

AllValues returns all OptimizationDirection values.

func (*OptimizationDirection) Decode

func (s *OptimizationDirection) Decode(d *jx.Decoder) error

Decode decodes OptimizationDirection from json.

func (OptimizationDirection) Encode

func (s OptimizationDirection) Encode(e *jx.Encoder)

Encode encodes OptimizationDirection as json.

func (OptimizationDirection) MarshalJSON

func (s OptimizationDirection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptimizationDirection) MarshalText

func (s OptimizationDirection) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OptimizationDirection) UnmarshalJSON

func (s *OptimizationDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OptimizationDirection) UnmarshalText

func (s *OptimizationDirection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OptimizationDirection) Validate

func (s OptimizationDirection) Validate() error

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithAttributes

func WithAttributes(attributes ...attribute.KeyValue) Option

WithAttributes specifies default otel attributes.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PostPromptVersionForbidden

type PostPromptVersionForbidden struct {
	Data io.Reader
}

func (PostPromptVersionForbidden) Read

func (s PostPromptVersionForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type PostPromptVersionRes

type PostPromptVersionRes interface {
	// contains filtered or unexported methods
}

type PostPromptVersionUnprocessableEntity

type PostPromptVersionUnprocessableEntity struct {
	Data io.Reader
}

func (PostPromptVersionUnprocessableEntity) Read

func (s PostPromptVersionUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type Project

type Project struct {
	Description OptNilString `json:"description"`
	ID          string       `json:"id"`
	Name        string       `json:"name"`
}

Ref: #/components/schemas/Project

func (*Project) Decode

func (s *Project) Decode(d *jx.Decoder) error

Decode decodes Project from json.

func (*Project) Encode

func (s *Project) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Project) GetDescription

func (s *Project) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*Project) GetID

func (s *Project) GetID() string

GetID returns the value of ID.

func (*Project) GetName

func (s *Project) GetName() string

GetName returns the value of Name.

func (*Project) MarshalJSON

func (s *Project) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Project) SetDescription

func (s *Project) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*Project) SetID

func (s *Project) SetID(val string)

SetID sets the value of ID.

func (*Project) SetName

func (s *Project) SetName(val string)

SetName sets the value of Name.

func (*Project) UnmarshalJSON

func (s *Project) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Project) Validate

func (s *Project) Validate() error

type Prompt

type Prompt struct {
	Description    OptNilString         `json:"description"`
	ID             string               `json:"id"`
	Metadata       OptNilPromptMetadata `json:"metadata"`
	Name           Identifier           `json:"name"`
	SourcePromptID OptNilString         `json:"source_prompt_id"`
}

Ref: #/components/schemas/Prompt

func (*Prompt) Decode

func (s *Prompt) Decode(d *jx.Decoder) error

Decode decodes Prompt from json.

func (*Prompt) Encode

func (s *Prompt) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Prompt) GetDescription

func (s *Prompt) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*Prompt) GetID

func (s *Prompt) GetID() string

GetID returns the value of ID.

func (*Prompt) GetMetadata

func (s *Prompt) GetMetadata() OptNilPromptMetadata

GetMetadata returns the value of Metadata.

func (*Prompt) GetName

func (s *Prompt) GetName() Identifier

GetName returns the value of Name.

func (*Prompt) GetSourcePromptID

func (s *Prompt) GetSourcePromptID() OptNilString

GetSourcePromptID returns the value of SourcePromptID.

func (*Prompt) MarshalJSON

func (s *Prompt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Prompt) SetDescription

func (s *Prompt) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*Prompt) SetID

func (s *Prompt) SetID(val string)

SetID sets the value of ID.

func (*Prompt) SetMetadata

func (s *Prompt) SetMetadata(val OptNilPromptMetadata)

SetMetadata sets the value of Metadata.

func (*Prompt) SetName

func (s *Prompt) SetName(val Identifier)

SetName sets the value of Name.

func (*Prompt) SetSourcePromptID

func (s *Prompt) SetSourcePromptID(val OptNilString)

SetSourcePromptID sets the value of SourcePromptID.

func (*Prompt) UnmarshalJSON

func (s *Prompt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Prompt) Validate

func (s *Prompt) Validate() error

type PromptAnthropicInvocationParameters

type PromptAnthropicInvocationParameters struct {
	Anthropic PromptAnthropicInvocationParametersContent `json:"anthropic"`
	Type      PromptAnthropicInvocationParametersType    `json:"type"`
}

Ref: #/components/schemas/PromptAnthropicInvocationParameters

func (*PromptAnthropicInvocationParameters) Decode

Decode decodes PromptAnthropicInvocationParameters from json.

func (*PromptAnthropicInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptAnthropicInvocationParameters) GetAnthropic

GetAnthropic returns the value of Anthropic.

func (*PromptAnthropicInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptAnthropicInvocationParameters) MarshalJSON

func (s *PromptAnthropicInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptAnthropicInvocationParameters) SetAnthropic

SetAnthropic sets the value of Anthropic.

func (*PromptAnthropicInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptAnthropicInvocationParameters) UnmarshalJSON

func (s *PromptAnthropicInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAnthropicInvocationParameters) Validate

type PromptAnthropicInvocationParametersContent

type PromptAnthropicInvocationParametersContent struct {
	MaxTokens     int                                                   `json:"max_tokens"`
	StopSequences []string                                              `json:"stop_sequences"`
	Temperature   OptFloat64                                            `json:"temperature"`
	Thinking      OptPromptAnthropicInvocationParametersContentThinking `json:"thinking"`
	TopP          OptFloat64                                            `json:"top_p"`
}

Ref: #/components/schemas/PromptAnthropicInvocationParametersContent

func (*PromptAnthropicInvocationParametersContent) Decode

Decode decodes PromptAnthropicInvocationParametersContent from json.

func (*PromptAnthropicInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptAnthropicInvocationParametersContent) GetMaxTokens

GetMaxTokens returns the value of MaxTokens.

func (*PromptAnthropicInvocationParametersContent) GetStopSequences

func (s *PromptAnthropicInvocationParametersContent) GetStopSequences() []string

GetStopSequences returns the value of StopSequences.

func (*PromptAnthropicInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptAnthropicInvocationParametersContent) GetThinking

GetThinking returns the value of Thinking.

func (*PromptAnthropicInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptAnthropicInvocationParametersContent) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PromptAnthropicInvocationParametersContent) SetMaxTokens

func (s *PromptAnthropicInvocationParametersContent) SetMaxTokens(val int)

SetMaxTokens sets the value of MaxTokens.

func (*PromptAnthropicInvocationParametersContent) SetStopSequences

func (s *PromptAnthropicInvocationParametersContent) SetStopSequences(val []string)

SetStopSequences sets the value of StopSequences.

func (*PromptAnthropicInvocationParametersContent) SetTemperature

SetTemperature sets the value of Temperature.

func (*PromptAnthropicInvocationParametersContent) SetThinking

SetThinking sets the value of Thinking.

func (*PromptAnthropicInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptAnthropicInvocationParametersContent) UnmarshalJSON

func (s *PromptAnthropicInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAnthropicInvocationParametersContent) Validate

type PromptAnthropicInvocationParametersContentThinking

type PromptAnthropicInvocationParametersContentThinking struct {
	Type                                  PromptAnthropicInvocationParametersContentThinkingType // switch on this field
	PromptAnthropicThinkingConfigDisabled PromptAnthropicThinkingConfigDisabled
	PromptAnthropicThinkingConfigEnabled  PromptAnthropicThinkingConfigEnabled
}

PromptAnthropicInvocationParametersContentThinking represents sum type.

func NewPromptAnthropicThinkingConfigDisabledPromptAnthropicInvocationParametersContentThinking

func NewPromptAnthropicThinkingConfigDisabledPromptAnthropicInvocationParametersContentThinking(v PromptAnthropicThinkingConfigDisabled) PromptAnthropicInvocationParametersContentThinking

NewPromptAnthropicThinkingConfigDisabledPromptAnthropicInvocationParametersContentThinking returns new PromptAnthropicInvocationParametersContentThinking from PromptAnthropicThinkingConfigDisabled.

func NewPromptAnthropicThinkingConfigEnabledPromptAnthropicInvocationParametersContentThinking

func NewPromptAnthropicThinkingConfigEnabledPromptAnthropicInvocationParametersContentThinking(v PromptAnthropicThinkingConfigEnabled) PromptAnthropicInvocationParametersContentThinking

NewPromptAnthropicThinkingConfigEnabledPromptAnthropicInvocationParametersContentThinking returns new PromptAnthropicInvocationParametersContentThinking from PromptAnthropicThinkingConfigEnabled.

func (*PromptAnthropicInvocationParametersContentThinking) Decode

Decode decodes PromptAnthropicInvocationParametersContentThinking from json.

func (PromptAnthropicInvocationParametersContentThinking) Encode

Encode encodes PromptAnthropicInvocationParametersContentThinking as json.

func (PromptAnthropicInvocationParametersContentThinking) GetPromptAnthropicThinkingConfigDisabled

func (s PromptAnthropicInvocationParametersContentThinking) GetPromptAnthropicThinkingConfigDisabled() (v PromptAnthropicThinkingConfigDisabled, ok bool)

GetPromptAnthropicThinkingConfigDisabled returns PromptAnthropicThinkingConfigDisabled and true boolean if PromptAnthropicInvocationParametersContentThinking is PromptAnthropicThinkingConfigDisabled.

func (PromptAnthropicInvocationParametersContentThinking) GetPromptAnthropicThinkingConfigEnabled

func (s PromptAnthropicInvocationParametersContentThinking) GetPromptAnthropicThinkingConfigEnabled() (v PromptAnthropicThinkingConfigEnabled, ok bool)

GetPromptAnthropicThinkingConfigEnabled returns PromptAnthropicThinkingConfigEnabled and true boolean if PromptAnthropicInvocationParametersContentThinking is PromptAnthropicThinkingConfigEnabled.

func (PromptAnthropicInvocationParametersContentThinking) IsPromptAnthropicThinkingConfigDisabled

func (s PromptAnthropicInvocationParametersContentThinking) IsPromptAnthropicThinkingConfigDisabled() bool

IsPromptAnthropicThinkingConfigDisabled reports whether PromptAnthropicInvocationParametersContentThinking is PromptAnthropicThinkingConfigDisabled.

func (PromptAnthropicInvocationParametersContentThinking) IsPromptAnthropicThinkingConfigEnabled

func (s PromptAnthropicInvocationParametersContentThinking) IsPromptAnthropicThinkingConfigEnabled() bool

IsPromptAnthropicThinkingConfigEnabled reports whether PromptAnthropicInvocationParametersContentThinking is PromptAnthropicThinkingConfigEnabled.

func (PromptAnthropicInvocationParametersContentThinking) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PromptAnthropicInvocationParametersContentThinking) SetPromptAnthropicThinkingConfigDisabled

SetPromptAnthropicThinkingConfigDisabled sets PromptAnthropicInvocationParametersContentThinking to PromptAnthropicThinkingConfigDisabled.

func (*PromptAnthropicInvocationParametersContentThinking) SetPromptAnthropicThinkingConfigEnabled

SetPromptAnthropicThinkingConfigEnabled sets PromptAnthropicInvocationParametersContentThinking to PromptAnthropicThinkingConfigEnabled.

func (*PromptAnthropicInvocationParametersContentThinking) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptAnthropicInvocationParametersContentThinking) Validate

type PromptAnthropicInvocationParametersContentThinkingType

type PromptAnthropicInvocationParametersContentThinkingType string

PromptAnthropicInvocationParametersContentThinkingType is oneOf type of PromptAnthropicInvocationParametersContentThinking.

const (
	PromptAnthropicThinkingConfigDisabledPromptAnthropicInvocationParametersContentThinking PromptAnthropicInvocationParametersContentThinkingType = "disabled"
	PromptAnthropicThinkingConfigEnabledPromptAnthropicInvocationParametersContentThinking  PromptAnthropicInvocationParametersContentThinkingType = "enabled"
)

Possible values for PromptAnthropicInvocationParametersContentThinkingType.

type PromptAnthropicInvocationParametersType

type PromptAnthropicInvocationParametersType string
const (
	PromptAnthropicInvocationParametersTypeAnthropic PromptAnthropicInvocationParametersType = "anthropic"
)

func (PromptAnthropicInvocationParametersType) AllValues

AllValues returns all PromptAnthropicInvocationParametersType values.

func (*PromptAnthropicInvocationParametersType) Decode

Decode decodes PromptAnthropicInvocationParametersType from json.

func (PromptAnthropicInvocationParametersType) Encode

Encode encodes PromptAnthropicInvocationParametersType as json.

func (PromptAnthropicInvocationParametersType) MarshalJSON

func (s PromptAnthropicInvocationParametersType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptAnthropicInvocationParametersType) MarshalText

func (s PromptAnthropicInvocationParametersType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptAnthropicInvocationParametersType) UnmarshalJSON

func (s *PromptAnthropicInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAnthropicInvocationParametersType) UnmarshalText

func (s *PromptAnthropicInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptAnthropicInvocationParametersType) Validate

type PromptAnthropicThinkingConfigDisabled

type PromptAnthropicThinkingConfigDisabled struct {
	Type PromptAnthropicThinkingConfigDisabledType `json:"type"`
}

Ref: #/components/schemas/PromptAnthropicThinkingConfigDisabled

func (*PromptAnthropicThinkingConfigDisabled) Decode

Decode decodes PromptAnthropicThinkingConfigDisabled from json.

func (*PromptAnthropicThinkingConfigDisabled) Encode

Encode implements json.Marshaler.

func (*PromptAnthropicThinkingConfigDisabled) GetType

GetType returns the value of Type.

func (*PromptAnthropicThinkingConfigDisabled) MarshalJSON

func (s *PromptAnthropicThinkingConfigDisabled) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptAnthropicThinkingConfigDisabled) SetType

SetType sets the value of Type.

func (*PromptAnthropicThinkingConfigDisabled) UnmarshalJSON

func (s *PromptAnthropicThinkingConfigDisabled) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAnthropicThinkingConfigDisabled) Validate

type PromptAnthropicThinkingConfigDisabledType

type PromptAnthropicThinkingConfigDisabledType string
const (
	PromptAnthropicThinkingConfigDisabledTypeDisabled PromptAnthropicThinkingConfigDisabledType = "disabled"
)

func (PromptAnthropicThinkingConfigDisabledType) AllValues

AllValues returns all PromptAnthropicThinkingConfigDisabledType values.

func (*PromptAnthropicThinkingConfigDisabledType) Decode

Decode decodes PromptAnthropicThinkingConfigDisabledType from json.

func (PromptAnthropicThinkingConfigDisabledType) Encode

Encode encodes PromptAnthropicThinkingConfigDisabledType as json.

func (PromptAnthropicThinkingConfigDisabledType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptAnthropicThinkingConfigDisabledType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptAnthropicThinkingConfigDisabledType) UnmarshalJSON

func (s *PromptAnthropicThinkingConfigDisabledType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAnthropicThinkingConfigDisabledType) UnmarshalText

func (s *PromptAnthropicThinkingConfigDisabledType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptAnthropicThinkingConfigDisabledType) Validate

type PromptAnthropicThinkingConfigEnabled

type PromptAnthropicThinkingConfigEnabled struct {
	BudgetTokens int                                      `json:"budget_tokens"`
	Type         PromptAnthropicThinkingConfigEnabledType `json:"type"`
}

Ref: #/components/schemas/PromptAnthropicThinkingConfigEnabled

func (*PromptAnthropicThinkingConfigEnabled) Decode

Decode decodes PromptAnthropicThinkingConfigEnabled from json.

func (*PromptAnthropicThinkingConfigEnabled) Encode

Encode implements json.Marshaler.

func (*PromptAnthropicThinkingConfigEnabled) GetBudgetTokens

func (s *PromptAnthropicThinkingConfigEnabled) GetBudgetTokens() int

GetBudgetTokens returns the value of BudgetTokens.

func (*PromptAnthropicThinkingConfigEnabled) GetType

GetType returns the value of Type.

func (*PromptAnthropicThinkingConfigEnabled) MarshalJSON

func (s *PromptAnthropicThinkingConfigEnabled) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptAnthropicThinkingConfigEnabled) SetBudgetTokens

func (s *PromptAnthropicThinkingConfigEnabled) SetBudgetTokens(val int)

SetBudgetTokens sets the value of BudgetTokens.

func (*PromptAnthropicThinkingConfigEnabled) SetType

SetType sets the value of Type.

func (*PromptAnthropicThinkingConfigEnabled) UnmarshalJSON

func (s *PromptAnthropicThinkingConfigEnabled) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAnthropicThinkingConfigEnabled) Validate

type PromptAnthropicThinkingConfigEnabledType

type PromptAnthropicThinkingConfigEnabledType string
const (
	PromptAnthropicThinkingConfigEnabledTypeEnabled PromptAnthropicThinkingConfigEnabledType = "enabled"
)

func (PromptAnthropicThinkingConfigEnabledType) AllValues

AllValues returns all PromptAnthropicThinkingConfigEnabledType values.

func (*PromptAnthropicThinkingConfigEnabledType) Decode

Decode decodes PromptAnthropicThinkingConfigEnabledType from json.

func (PromptAnthropicThinkingConfigEnabledType) Encode

Encode encodes PromptAnthropicThinkingConfigEnabledType as json.

func (PromptAnthropicThinkingConfigEnabledType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptAnthropicThinkingConfigEnabledType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptAnthropicThinkingConfigEnabledType) UnmarshalJSON

func (s *PromptAnthropicThinkingConfigEnabledType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAnthropicThinkingConfigEnabledType) UnmarshalText

func (s *PromptAnthropicThinkingConfigEnabledType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptAnthropicThinkingConfigEnabledType) Validate

type PromptAwsInvocationParameters

type PromptAwsInvocationParameters struct {
	AWS  PromptAwsInvocationParametersContent `json:"aws"`
	Type PromptAwsInvocationParametersType    `json:"type"`
}

Ref: #/components/schemas/PromptAwsInvocationParameters

func (*PromptAwsInvocationParameters) Decode

Decode decodes PromptAwsInvocationParameters from json.

func (*PromptAwsInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptAwsInvocationParameters) GetAWS

GetAWS returns the value of AWS.

func (*PromptAwsInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptAwsInvocationParameters) MarshalJSON

func (s *PromptAwsInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptAwsInvocationParameters) SetAWS

SetAWS sets the value of AWS.

func (*PromptAwsInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptAwsInvocationParameters) UnmarshalJSON

func (s *PromptAwsInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAwsInvocationParameters) Validate

func (s *PromptAwsInvocationParameters) Validate() error

type PromptAwsInvocationParametersContent

type PromptAwsInvocationParametersContent struct {
	MaxTokens   OptInt     `json:"max_tokens"`
	Temperature OptFloat64 `json:"temperature"`
	TopP        OptFloat64 `json:"top_p"`
}

Ref: #/components/schemas/PromptAwsInvocationParametersContent

func (*PromptAwsInvocationParametersContent) Decode

Decode decodes PromptAwsInvocationParametersContent from json.

func (*PromptAwsInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptAwsInvocationParametersContent) GetMaxTokens

func (s *PromptAwsInvocationParametersContent) GetMaxTokens() OptInt

GetMaxTokens returns the value of MaxTokens.

func (*PromptAwsInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptAwsInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptAwsInvocationParametersContent) MarshalJSON

func (s *PromptAwsInvocationParametersContent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptAwsInvocationParametersContent) SetMaxTokens

func (s *PromptAwsInvocationParametersContent) SetMaxTokens(val OptInt)

SetMaxTokens sets the value of MaxTokens.

func (*PromptAwsInvocationParametersContent) SetTemperature

func (s *PromptAwsInvocationParametersContent) SetTemperature(val OptFloat64)

SetTemperature sets the value of Temperature.

func (*PromptAwsInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptAwsInvocationParametersContent) UnmarshalJSON

func (s *PromptAwsInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAwsInvocationParametersContent) Validate

type PromptAwsInvocationParametersType

type PromptAwsInvocationParametersType string
const (
	PromptAwsInvocationParametersTypeAWS PromptAwsInvocationParametersType = "aws"
)

func (PromptAwsInvocationParametersType) AllValues

AllValues returns all PromptAwsInvocationParametersType values.

func (*PromptAwsInvocationParametersType) Decode

Decode decodes PromptAwsInvocationParametersType from json.

func (PromptAwsInvocationParametersType) Encode

Encode encodes PromptAwsInvocationParametersType as json.

func (PromptAwsInvocationParametersType) MarshalJSON

func (s PromptAwsInvocationParametersType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptAwsInvocationParametersType) MarshalText

func (s PromptAwsInvocationParametersType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptAwsInvocationParametersType) UnmarshalJSON

func (s *PromptAwsInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAwsInvocationParametersType) UnmarshalText

func (s *PromptAwsInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptAwsInvocationParametersType) Validate

type PromptAzureOpenAIInvocationParameters

type PromptAzureOpenAIInvocationParameters struct {
	AzureOpenai PromptAzureOpenAIInvocationParametersContent `json:"azure_openai"`
	Type        PromptAzureOpenAIInvocationParametersType    `json:"type"`
}

Ref: #/components/schemas/PromptAzureOpenAIInvocationParameters

func (*PromptAzureOpenAIInvocationParameters) Decode

Decode decodes PromptAzureOpenAIInvocationParameters from json.

func (*PromptAzureOpenAIInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptAzureOpenAIInvocationParameters) GetAzureOpenai

GetAzureOpenai returns the value of AzureOpenai.

func (*PromptAzureOpenAIInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptAzureOpenAIInvocationParameters) MarshalJSON

func (s *PromptAzureOpenAIInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptAzureOpenAIInvocationParameters) SetAzureOpenai

SetAzureOpenai sets the value of AzureOpenai.

func (*PromptAzureOpenAIInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptAzureOpenAIInvocationParameters) UnmarshalJSON

func (s *PromptAzureOpenAIInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAzureOpenAIInvocationParameters) Validate

type PromptAzureOpenAIInvocationParametersContent

type PromptAzureOpenAIInvocationParametersContent struct {
	FrequencyPenalty    OptFloat64                                                     `json:"frequency_penalty"`
	MaxCompletionTokens OptInt                                                         `json:"max_completion_tokens"`
	MaxTokens           OptInt                                                         `json:"max_tokens"`
	PresencePenalty     OptFloat64                                                     `json:"presence_penalty"`
	ReasoningEffort     OptPromptAzureOpenAIInvocationParametersContentReasoningEffort `json:"reasoning_effort"`
	Seed                OptInt                                                         `json:"seed"`
	Temperature         OptFloat64                                                     `json:"temperature"`
	TopP                OptFloat64                                                     `json:"top_p"`
}

Ref: #/components/schemas/PromptAzureOpenAIInvocationParametersContent

func (*PromptAzureOpenAIInvocationParametersContent) Decode

Decode decodes PromptAzureOpenAIInvocationParametersContent from json.

func (*PromptAzureOpenAIInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptAzureOpenAIInvocationParametersContent) GetFrequencyPenalty

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*PromptAzureOpenAIInvocationParametersContent) GetMaxCompletionTokens

func (s *PromptAzureOpenAIInvocationParametersContent) GetMaxCompletionTokens() OptInt

GetMaxCompletionTokens returns the value of MaxCompletionTokens.

func (*PromptAzureOpenAIInvocationParametersContent) GetMaxTokens

GetMaxTokens returns the value of MaxTokens.

func (*PromptAzureOpenAIInvocationParametersContent) GetPresencePenalty

GetPresencePenalty returns the value of PresencePenalty.

func (*PromptAzureOpenAIInvocationParametersContent) GetReasoningEffort

GetReasoningEffort returns the value of ReasoningEffort.

func (*PromptAzureOpenAIInvocationParametersContent) GetSeed

GetSeed returns the value of Seed.

func (*PromptAzureOpenAIInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptAzureOpenAIInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptAzureOpenAIInvocationParametersContent) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PromptAzureOpenAIInvocationParametersContent) SetFrequencyPenalty

func (s *PromptAzureOpenAIInvocationParametersContent) SetFrequencyPenalty(val OptFloat64)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*PromptAzureOpenAIInvocationParametersContent) SetMaxCompletionTokens

func (s *PromptAzureOpenAIInvocationParametersContent) SetMaxCompletionTokens(val OptInt)

SetMaxCompletionTokens sets the value of MaxCompletionTokens.

func (*PromptAzureOpenAIInvocationParametersContent) SetMaxTokens

SetMaxTokens sets the value of MaxTokens.

func (*PromptAzureOpenAIInvocationParametersContent) SetPresencePenalty

func (s *PromptAzureOpenAIInvocationParametersContent) SetPresencePenalty(val OptFloat64)

SetPresencePenalty sets the value of PresencePenalty.

func (*PromptAzureOpenAIInvocationParametersContent) SetReasoningEffort

SetReasoningEffort sets the value of ReasoningEffort.

func (*PromptAzureOpenAIInvocationParametersContent) SetSeed

SetSeed sets the value of Seed.

func (*PromptAzureOpenAIInvocationParametersContent) SetTemperature

SetTemperature sets the value of Temperature.

func (*PromptAzureOpenAIInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptAzureOpenAIInvocationParametersContent) UnmarshalJSON

func (s *PromptAzureOpenAIInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAzureOpenAIInvocationParametersContent) Validate

type PromptAzureOpenAIInvocationParametersContentReasoningEffort

type PromptAzureOpenAIInvocationParametersContentReasoningEffort string
const (
	PromptAzureOpenAIInvocationParametersContentReasoningEffortNone    PromptAzureOpenAIInvocationParametersContentReasoningEffort = "none"
	PromptAzureOpenAIInvocationParametersContentReasoningEffortMinimal PromptAzureOpenAIInvocationParametersContentReasoningEffort = "minimal"
	PromptAzureOpenAIInvocationParametersContentReasoningEffortLow     PromptAzureOpenAIInvocationParametersContentReasoningEffort = "low"
	PromptAzureOpenAIInvocationParametersContentReasoningEffortMedium  PromptAzureOpenAIInvocationParametersContentReasoningEffort = "medium"
	PromptAzureOpenAIInvocationParametersContentReasoningEffortHigh    PromptAzureOpenAIInvocationParametersContentReasoningEffort = "high"
	PromptAzureOpenAIInvocationParametersContentReasoningEffortXhigh   PromptAzureOpenAIInvocationParametersContentReasoningEffort = "xhigh"
)

func (PromptAzureOpenAIInvocationParametersContentReasoningEffort) AllValues

AllValues returns all PromptAzureOpenAIInvocationParametersContentReasoningEffort values.

func (*PromptAzureOpenAIInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptAzureOpenAIInvocationParametersContentReasoningEffort from json.

func (PromptAzureOpenAIInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptAzureOpenAIInvocationParametersContentReasoningEffort as json.

func (PromptAzureOpenAIInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptAzureOpenAIInvocationParametersContentReasoningEffort) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptAzureOpenAIInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAzureOpenAIInvocationParametersContentReasoningEffort) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptAzureOpenAIInvocationParametersContentReasoningEffort) Validate

type PromptAzureOpenAIInvocationParametersType

type PromptAzureOpenAIInvocationParametersType string
const (
	PromptAzureOpenAIInvocationParametersTypeAzureOpenai PromptAzureOpenAIInvocationParametersType = "azure_openai"
)

func (PromptAzureOpenAIInvocationParametersType) AllValues

AllValues returns all PromptAzureOpenAIInvocationParametersType values.

func (*PromptAzureOpenAIInvocationParametersType) Decode

Decode decodes PromptAzureOpenAIInvocationParametersType from json.

func (PromptAzureOpenAIInvocationParametersType) Encode

Encode encodes PromptAzureOpenAIInvocationParametersType as json.

func (PromptAzureOpenAIInvocationParametersType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptAzureOpenAIInvocationParametersType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptAzureOpenAIInvocationParametersType) UnmarshalJSON

func (s *PromptAzureOpenAIInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAzureOpenAIInvocationParametersType) UnmarshalText

func (s *PromptAzureOpenAIInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptAzureOpenAIInvocationParametersType) Validate

type PromptChatTemplate

type PromptChatTemplate struct {
	Messages []PromptMessage        `json:"messages"`
	Type     PromptChatTemplateType `json:"type"`
}

Ref: #/components/schemas/PromptChatTemplate

func (*PromptChatTemplate) Decode

func (s *PromptChatTemplate) Decode(d *jx.Decoder) error

Decode decodes PromptChatTemplate from json.

func (*PromptChatTemplate) Encode

func (s *PromptChatTemplate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptChatTemplate) GetMessages

func (s *PromptChatTemplate) GetMessages() []PromptMessage

GetMessages returns the value of Messages.

func (*PromptChatTemplate) GetType

GetType returns the value of Type.

func (*PromptChatTemplate) MarshalJSON

func (s *PromptChatTemplate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptChatTemplate) SetMessages

func (s *PromptChatTemplate) SetMessages(val []PromptMessage)

SetMessages sets the value of Messages.

func (*PromptChatTemplate) SetType

SetType sets the value of Type.

func (*PromptChatTemplate) UnmarshalJSON

func (s *PromptChatTemplate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptChatTemplate) Validate

func (s *PromptChatTemplate) Validate() error

type PromptChatTemplateType

type PromptChatTemplateType string
const (
	PromptChatTemplateTypeChat PromptChatTemplateType = "chat"
)

func (PromptChatTemplateType) AllValues

AllValues returns all PromptChatTemplateType values.

func (*PromptChatTemplateType) Decode

func (s *PromptChatTemplateType) Decode(d *jx.Decoder) error

Decode decodes PromptChatTemplateType from json.

func (PromptChatTemplateType) Encode

func (s PromptChatTemplateType) Encode(e *jx.Encoder)

Encode encodes PromptChatTemplateType as json.

func (PromptChatTemplateType) MarshalJSON

func (s PromptChatTemplateType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptChatTemplateType) MarshalText

func (s PromptChatTemplateType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptChatTemplateType) UnmarshalJSON

func (s *PromptChatTemplateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptChatTemplateType) UnmarshalText

func (s *PromptChatTemplateType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptChatTemplateType) Validate

func (s PromptChatTemplateType) Validate() error

type PromptData

type PromptData struct {
	Description    OptNilString             `json:"description"`
	Metadata       OptNilPromptDataMetadata `json:"metadata"`
	Name           Identifier               `json:"name"`
	SourcePromptID OptNilString             `json:"source_prompt_id"`
}

Ref: #/components/schemas/PromptData

func (*PromptData) Decode

func (s *PromptData) Decode(d *jx.Decoder) error

Decode decodes PromptData from json.

func (*PromptData) Encode

func (s *PromptData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptData) GetDescription

func (s *PromptData) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*PromptData) GetMetadata

func (s *PromptData) GetMetadata() OptNilPromptDataMetadata

GetMetadata returns the value of Metadata.

func (*PromptData) GetName

func (s *PromptData) GetName() Identifier

GetName returns the value of Name.

func (*PromptData) GetSourcePromptID

func (s *PromptData) GetSourcePromptID() OptNilString

GetSourcePromptID returns the value of SourcePromptID.

func (*PromptData) MarshalJSON

func (s *PromptData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptData) SetDescription

func (s *PromptData) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*PromptData) SetMetadata

func (s *PromptData) SetMetadata(val OptNilPromptDataMetadata)

SetMetadata sets the value of Metadata.

func (*PromptData) SetName

func (s *PromptData) SetName(val Identifier)

SetName sets the value of Name.

func (*PromptData) SetSourcePromptID

func (s *PromptData) SetSourcePromptID(val OptNilString)

SetSourcePromptID sets the value of SourcePromptID.

func (*PromptData) UnmarshalJSON

func (s *PromptData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptData) Validate

func (s *PromptData) Validate() error

type PromptDataMetadata

type PromptDataMetadata map[string]jx.Raw

func (*PromptDataMetadata) Decode

func (s *PromptDataMetadata) Decode(d *jx.Decoder) error

Decode decodes PromptDataMetadata from json.

func (PromptDataMetadata) Encode

func (s PromptDataMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (PromptDataMetadata) MarshalJSON

func (s PromptDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptDataMetadata) UnmarshalJSON

func (s *PromptDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PromptDeepSeekInvocationParameters

type PromptDeepSeekInvocationParameters struct {
	Deepseek PromptDeepSeekInvocationParametersContent `json:"deepseek"`
	Type     PromptDeepSeekInvocationParametersType    `json:"type"`
}

Ref: #/components/schemas/PromptDeepSeekInvocationParameters

func (*PromptDeepSeekInvocationParameters) Decode

Decode decodes PromptDeepSeekInvocationParameters from json.

func (*PromptDeepSeekInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptDeepSeekInvocationParameters) GetDeepseek

GetDeepseek returns the value of Deepseek.

func (*PromptDeepSeekInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptDeepSeekInvocationParameters) MarshalJSON

func (s *PromptDeepSeekInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptDeepSeekInvocationParameters) SetDeepseek

SetDeepseek sets the value of Deepseek.

func (*PromptDeepSeekInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptDeepSeekInvocationParameters) UnmarshalJSON

func (s *PromptDeepSeekInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptDeepSeekInvocationParameters) Validate

type PromptDeepSeekInvocationParametersContent

type PromptDeepSeekInvocationParametersContent struct {
	FrequencyPenalty    OptFloat64                                                  `json:"frequency_penalty"`
	MaxCompletionTokens OptInt                                                      `json:"max_completion_tokens"`
	MaxTokens           OptInt                                                      `json:"max_tokens"`
	PresencePenalty     OptFloat64                                                  `json:"presence_penalty"`
	ReasoningEffort     OptPromptDeepSeekInvocationParametersContentReasoningEffort `json:"reasoning_effort"`
	Seed                OptInt                                                      `json:"seed"`
	Temperature         OptFloat64                                                  `json:"temperature"`
	TopP                OptFloat64                                                  `json:"top_p"`
}

Ref: #/components/schemas/PromptDeepSeekInvocationParametersContent

func (*PromptDeepSeekInvocationParametersContent) Decode

Decode decodes PromptDeepSeekInvocationParametersContent from json.

func (*PromptDeepSeekInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptDeepSeekInvocationParametersContent) GetFrequencyPenalty

func (s *PromptDeepSeekInvocationParametersContent) GetFrequencyPenalty() OptFloat64

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*PromptDeepSeekInvocationParametersContent) GetMaxCompletionTokens

func (s *PromptDeepSeekInvocationParametersContent) GetMaxCompletionTokens() OptInt

GetMaxCompletionTokens returns the value of MaxCompletionTokens.

func (*PromptDeepSeekInvocationParametersContent) GetMaxTokens

GetMaxTokens returns the value of MaxTokens.

func (*PromptDeepSeekInvocationParametersContent) GetPresencePenalty

func (s *PromptDeepSeekInvocationParametersContent) GetPresencePenalty() OptFloat64

GetPresencePenalty returns the value of PresencePenalty.

func (*PromptDeepSeekInvocationParametersContent) GetReasoningEffort

GetReasoningEffort returns the value of ReasoningEffort.

func (*PromptDeepSeekInvocationParametersContent) GetSeed

GetSeed returns the value of Seed.

func (*PromptDeepSeekInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptDeepSeekInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptDeepSeekInvocationParametersContent) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PromptDeepSeekInvocationParametersContent) SetFrequencyPenalty

func (s *PromptDeepSeekInvocationParametersContent) SetFrequencyPenalty(val OptFloat64)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*PromptDeepSeekInvocationParametersContent) SetMaxCompletionTokens

func (s *PromptDeepSeekInvocationParametersContent) SetMaxCompletionTokens(val OptInt)

SetMaxCompletionTokens sets the value of MaxCompletionTokens.

func (*PromptDeepSeekInvocationParametersContent) SetMaxTokens

SetMaxTokens sets the value of MaxTokens.

func (*PromptDeepSeekInvocationParametersContent) SetPresencePenalty

func (s *PromptDeepSeekInvocationParametersContent) SetPresencePenalty(val OptFloat64)

SetPresencePenalty sets the value of PresencePenalty.

func (*PromptDeepSeekInvocationParametersContent) SetReasoningEffort

SetReasoningEffort sets the value of ReasoningEffort.

func (*PromptDeepSeekInvocationParametersContent) SetSeed

SetSeed sets the value of Seed.

func (*PromptDeepSeekInvocationParametersContent) SetTemperature

SetTemperature sets the value of Temperature.

func (*PromptDeepSeekInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptDeepSeekInvocationParametersContent) UnmarshalJSON

func (s *PromptDeepSeekInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptDeepSeekInvocationParametersContent) Validate

type PromptDeepSeekInvocationParametersContentReasoningEffort

type PromptDeepSeekInvocationParametersContentReasoningEffort string
const (
	PromptDeepSeekInvocationParametersContentReasoningEffortNone    PromptDeepSeekInvocationParametersContentReasoningEffort = "none"
	PromptDeepSeekInvocationParametersContentReasoningEffortMinimal PromptDeepSeekInvocationParametersContentReasoningEffort = "minimal"
	PromptDeepSeekInvocationParametersContentReasoningEffortLow     PromptDeepSeekInvocationParametersContentReasoningEffort = "low"
	PromptDeepSeekInvocationParametersContentReasoningEffortMedium  PromptDeepSeekInvocationParametersContentReasoningEffort = "medium"
	PromptDeepSeekInvocationParametersContentReasoningEffortHigh    PromptDeepSeekInvocationParametersContentReasoningEffort = "high"
	PromptDeepSeekInvocationParametersContentReasoningEffortXhigh   PromptDeepSeekInvocationParametersContentReasoningEffort = "xhigh"
)

func (PromptDeepSeekInvocationParametersContentReasoningEffort) AllValues

AllValues returns all PromptDeepSeekInvocationParametersContentReasoningEffort values.

func (*PromptDeepSeekInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptDeepSeekInvocationParametersContentReasoningEffort from json.

func (PromptDeepSeekInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptDeepSeekInvocationParametersContentReasoningEffort as json.

func (PromptDeepSeekInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptDeepSeekInvocationParametersContentReasoningEffort) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptDeepSeekInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptDeepSeekInvocationParametersContentReasoningEffort) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptDeepSeekInvocationParametersContentReasoningEffort) Validate

type PromptDeepSeekInvocationParametersType

type PromptDeepSeekInvocationParametersType string
const (
	PromptDeepSeekInvocationParametersTypeDeepseek PromptDeepSeekInvocationParametersType = "deepseek"
)

func (PromptDeepSeekInvocationParametersType) AllValues

AllValues returns all PromptDeepSeekInvocationParametersType values.

func (*PromptDeepSeekInvocationParametersType) Decode

Decode decodes PromptDeepSeekInvocationParametersType from json.

func (PromptDeepSeekInvocationParametersType) Encode

Encode encodes PromptDeepSeekInvocationParametersType as json.

func (PromptDeepSeekInvocationParametersType) MarshalJSON

func (s PromptDeepSeekInvocationParametersType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptDeepSeekInvocationParametersType) MarshalText

func (s PromptDeepSeekInvocationParametersType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptDeepSeekInvocationParametersType) UnmarshalJSON

func (s *PromptDeepSeekInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptDeepSeekInvocationParametersType) UnmarshalText

func (s *PromptDeepSeekInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptDeepSeekInvocationParametersType) Validate

type PromptGoogleInvocationParameters

type PromptGoogleInvocationParameters struct {
	Google PromptGoogleInvocationParametersContent `json:"google"`
	Type   PromptGoogleInvocationParametersType    `json:"type"`
}

Ref: #/components/schemas/PromptGoogleInvocationParameters

func (*PromptGoogleInvocationParameters) Decode

Decode decodes PromptGoogleInvocationParameters from json.

func (*PromptGoogleInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptGoogleInvocationParameters) GetGoogle

GetGoogle returns the value of Google.

func (*PromptGoogleInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptGoogleInvocationParameters) MarshalJSON

func (s *PromptGoogleInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptGoogleInvocationParameters) SetGoogle

SetGoogle sets the value of Google.

func (*PromptGoogleInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptGoogleInvocationParameters) UnmarshalJSON

func (s *PromptGoogleInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptGoogleInvocationParameters) Validate

type PromptGoogleInvocationParametersContent

type PromptGoogleInvocationParametersContent struct {
	FrequencyPenalty OptFloat64 `json:"frequency_penalty"`
	MaxOutputTokens  OptInt     `json:"max_output_tokens"`
	PresencePenalty  OptFloat64 `json:"presence_penalty"`
	StopSequences    []string   `json:"stop_sequences"`
	Temperature      OptFloat64 `json:"temperature"`
	TopK             OptInt     `json:"top_k"`
	TopP             OptFloat64 `json:"top_p"`
}

Ref: #/components/schemas/PromptGoogleInvocationParametersContent

func (*PromptGoogleInvocationParametersContent) Decode

Decode decodes PromptGoogleInvocationParametersContent from json.

func (*PromptGoogleInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptGoogleInvocationParametersContent) GetFrequencyPenalty

func (s *PromptGoogleInvocationParametersContent) GetFrequencyPenalty() OptFloat64

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*PromptGoogleInvocationParametersContent) GetMaxOutputTokens

func (s *PromptGoogleInvocationParametersContent) GetMaxOutputTokens() OptInt

GetMaxOutputTokens returns the value of MaxOutputTokens.

func (*PromptGoogleInvocationParametersContent) GetPresencePenalty

func (s *PromptGoogleInvocationParametersContent) GetPresencePenalty() OptFloat64

GetPresencePenalty returns the value of PresencePenalty.

func (*PromptGoogleInvocationParametersContent) GetStopSequences

func (s *PromptGoogleInvocationParametersContent) GetStopSequences() []string

GetStopSequences returns the value of StopSequences.

func (*PromptGoogleInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptGoogleInvocationParametersContent) GetTopK

GetTopK returns the value of TopK.

func (*PromptGoogleInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptGoogleInvocationParametersContent) MarshalJSON

func (s *PromptGoogleInvocationParametersContent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptGoogleInvocationParametersContent) SetFrequencyPenalty

func (s *PromptGoogleInvocationParametersContent) SetFrequencyPenalty(val OptFloat64)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*PromptGoogleInvocationParametersContent) SetMaxOutputTokens

func (s *PromptGoogleInvocationParametersContent) SetMaxOutputTokens(val OptInt)

SetMaxOutputTokens sets the value of MaxOutputTokens.

func (*PromptGoogleInvocationParametersContent) SetPresencePenalty

func (s *PromptGoogleInvocationParametersContent) SetPresencePenalty(val OptFloat64)

SetPresencePenalty sets the value of PresencePenalty.

func (*PromptGoogleInvocationParametersContent) SetStopSequences

func (s *PromptGoogleInvocationParametersContent) SetStopSequences(val []string)

SetStopSequences sets the value of StopSequences.

func (*PromptGoogleInvocationParametersContent) SetTemperature

func (s *PromptGoogleInvocationParametersContent) SetTemperature(val OptFloat64)

SetTemperature sets the value of Temperature.

func (*PromptGoogleInvocationParametersContent) SetTopK

SetTopK sets the value of TopK.

func (*PromptGoogleInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptGoogleInvocationParametersContent) UnmarshalJSON

func (s *PromptGoogleInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptGoogleInvocationParametersContent) Validate

type PromptGoogleInvocationParametersType

type PromptGoogleInvocationParametersType string
const (
	PromptGoogleInvocationParametersTypeGoogle PromptGoogleInvocationParametersType = "google"
)

func (PromptGoogleInvocationParametersType) AllValues

AllValues returns all PromptGoogleInvocationParametersType values.

func (*PromptGoogleInvocationParametersType) Decode

Decode decodes PromptGoogleInvocationParametersType from json.

func (PromptGoogleInvocationParametersType) Encode

Encode encodes PromptGoogleInvocationParametersType as json.

func (PromptGoogleInvocationParametersType) MarshalJSON

func (s PromptGoogleInvocationParametersType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptGoogleInvocationParametersType) MarshalText

func (s PromptGoogleInvocationParametersType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptGoogleInvocationParametersType) UnmarshalJSON

func (s *PromptGoogleInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptGoogleInvocationParametersType) UnmarshalText

func (s *PromptGoogleInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptGoogleInvocationParametersType) Validate

type PromptMessage

type PromptMessage struct {
	Content PromptMessageContent `json:"content"`
	Role    PromptMessageRole    `json:"role"`
}

Ref: #/components/schemas/PromptMessage

func (*PromptMessage) Decode

func (s *PromptMessage) Decode(d *jx.Decoder) error

Decode decodes PromptMessage from json.

func (*PromptMessage) Encode

func (s *PromptMessage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptMessage) GetContent

func (s *PromptMessage) GetContent() PromptMessageContent

GetContent returns the value of Content.

func (*PromptMessage) GetRole

func (s *PromptMessage) GetRole() PromptMessageRole

GetRole returns the value of Role.

func (*PromptMessage) MarshalJSON

func (s *PromptMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptMessage) SetContent

func (s *PromptMessage) SetContent(val PromptMessageContent)

SetContent sets the value of Content.

func (*PromptMessage) SetRole

func (s *PromptMessage) SetRole(val PromptMessageRole)

SetRole sets the value of Role.

func (*PromptMessage) UnmarshalJSON

func (s *PromptMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptMessage) Validate

func (s *PromptMessage) Validate() error

type PromptMessageContent

type PromptMessageContent struct {
	Type                           PromptMessageContentType // switch on this field
	String                         string
	PromptMessageContent1ItemArray []PromptMessageContent1Item
}

PromptMessageContent represents sum type.

func NewPromptMessageContent1ItemArrayPromptMessageContent

func NewPromptMessageContent1ItemArrayPromptMessageContent(v []PromptMessageContent1Item) PromptMessageContent

NewPromptMessageContent1ItemArrayPromptMessageContent returns new PromptMessageContent from []PromptMessageContent1Item.

func NewStringPromptMessageContent

func NewStringPromptMessageContent(v string) PromptMessageContent

NewStringPromptMessageContent returns new PromptMessageContent from string.

func (*PromptMessageContent) Decode

func (s *PromptMessageContent) Decode(d *jx.Decoder) error

Decode decodes PromptMessageContent from json.

func (PromptMessageContent) Encode

func (s PromptMessageContent) Encode(e *jx.Encoder)

Encode encodes PromptMessageContent as json.

func (PromptMessageContent) GetPromptMessageContent1ItemArray

func (s PromptMessageContent) GetPromptMessageContent1ItemArray() (v []PromptMessageContent1Item, ok bool)

GetPromptMessageContent1ItemArray returns []PromptMessageContent1Item and true boolean if PromptMessageContent is []PromptMessageContent1Item.

func (PromptMessageContent) GetString

func (s PromptMessageContent) GetString() (v string, ok bool)

GetString returns string and true boolean if PromptMessageContent is string.

func (PromptMessageContent) IsPromptMessageContent1ItemArray

func (s PromptMessageContent) IsPromptMessageContent1ItemArray() bool

IsPromptMessageContent1ItemArray reports whether PromptMessageContent is []PromptMessageContent1Item.

func (PromptMessageContent) IsString

func (s PromptMessageContent) IsString() bool

IsString reports whether PromptMessageContent is string.

func (PromptMessageContent) MarshalJSON

func (s PromptMessageContent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptMessageContent) SetPromptMessageContent1ItemArray

func (s *PromptMessageContent) SetPromptMessageContent1ItemArray(v []PromptMessageContent1Item)

SetPromptMessageContent1ItemArray sets PromptMessageContent to []PromptMessageContent1Item.

func (*PromptMessageContent) SetString

func (s *PromptMessageContent) SetString(v string)

SetString sets PromptMessageContent to string.

func (*PromptMessageContent) UnmarshalJSON

func (s *PromptMessageContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptMessageContent) Validate

func (s PromptMessageContent) Validate() error

type PromptMessageContent1Item

type PromptMessageContent1Item struct {
	Type                  PromptMessageContent1ItemType // switch on this field
	TextContentPart       TextContentPart
	ToolCallContentPart   ToolCallContentPart
	ToolResultContentPart ToolResultContentPart
}

PromptMessageContent1Item represents sum type.

func NewTextContentPartPromptMessageContent1Item

func NewTextContentPartPromptMessageContent1Item(v TextContentPart) PromptMessageContent1Item

NewTextContentPartPromptMessageContent1Item returns new PromptMessageContent1Item from TextContentPart.

func NewToolCallContentPartPromptMessageContent1Item

func NewToolCallContentPartPromptMessageContent1Item(v ToolCallContentPart) PromptMessageContent1Item

NewToolCallContentPartPromptMessageContent1Item returns new PromptMessageContent1Item from ToolCallContentPart.

func NewToolResultContentPartPromptMessageContent1Item

func NewToolResultContentPartPromptMessageContent1Item(v ToolResultContentPart) PromptMessageContent1Item

NewToolResultContentPartPromptMessageContent1Item returns new PromptMessageContent1Item from ToolResultContentPart.

func (*PromptMessageContent1Item) Decode

func (s *PromptMessageContent1Item) Decode(d *jx.Decoder) error

Decode decodes PromptMessageContent1Item from json.

func (PromptMessageContent1Item) Encode

func (s PromptMessageContent1Item) Encode(e *jx.Encoder)

Encode encodes PromptMessageContent1Item as json.

func (PromptMessageContent1Item) GetTextContentPart

func (s PromptMessageContent1Item) GetTextContentPart() (v TextContentPart, ok bool)

GetTextContentPart returns TextContentPart and true boolean if PromptMessageContent1Item is TextContentPart.

func (PromptMessageContent1Item) GetToolCallContentPart

func (s PromptMessageContent1Item) GetToolCallContentPart() (v ToolCallContentPart, ok bool)

GetToolCallContentPart returns ToolCallContentPart and true boolean if PromptMessageContent1Item is ToolCallContentPart.

func (PromptMessageContent1Item) GetToolResultContentPart

func (s PromptMessageContent1Item) GetToolResultContentPart() (v ToolResultContentPart, ok bool)

GetToolResultContentPart returns ToolResultContentPart and true boolean if PromptMessageContent1Item is ToolResultContentPart.

func (PromptMessageContent1Item) IsTextContentPart

func (s PromptMessageContent1Item) IsTextContentPart() bool

IsTextContentPart reports whether PromptMessageContent1Item is TextContentPart.

func (PromptMessageContent1Item) IsToolCallContentPart

func (s PromptMessageContent1Item) IsToolCallContentPart() bool

IsToolCallContentPart reports whether PromptMessageContent1Item is ToolCallContentPart.

func (PromptMessageContent1Item) IsToolResultContentPart

func (s PromptMessageContent1Item) IsToolResultContentPart() bool

IsToolResultContentPart reports whether PromptMessageContent1Item is ToolResultContentPart.

func (PromptMessageContent1Item) MarshalJSON

func (s PromptMessageContent1Item) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptMessageContent1Item) SetTextContentPart

func (s *PromptMessageContent1Item) SetTextContentPart(v TextContentPart)

SetTextContentPart sets PromptMessageContent1Item to TextContentPart.

func (*PromptMessageContent1Item) SetToolCallContentPart

func (s *PromptMessageContent1Item) SetToolCallContentPart(v ToolCallContentPart)

SetToolCallContentPart sets PromptMessageContent1Item to ToolCallContentPart.

func (*PromptMessageContent1Item) SetToolResultContentPart

func (s *PromptMessageContent1Item) SetToolResultContentPart(v ToolResultContentPart)

SetToolResultContentPart sets PromptMessageContent1Item to ToolResultContentPart.

func (*PromptMessageContent1Item) UnmarshalJSON

func (s *PromptMessageContent1Item) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptMessageContent1Item) Validate

func (s PromptMessageContent1Item) Validate() error

type PromptMessageContent1ItemType

type PromptMessageContent1ItemType string

PromptMessageContent1ItemType is oneOf type of PromptMessageContent1Item.

const (
	TextContentPartPromptMessageContent1Item       PromptMessageContent1ItemType = "text"
	ToolCallContentPartPromptMessageContent1Item   PromptMessageContent1ItemType = "tool_call"
	ToolResultContentPartPromptMessageContent1Item PromptMessageContent1ItemType = "tool_result"
)

Possible values for PromptMessageContent1ItemType.

type PromptMessageContentType

type PromptMessageContentType string

PromptMessageContentType is oneOf type of PromptMessageContent.

const (
	StringPromptMessageContent                         PromptMessageContentType = "string"
	PromptMessageContent1ItemArrayPromptMessageContent PromptMessageContentType = "[]PromptMessageContent1Item"
)

Possible values for PromptMessageContentType.

type PromptMessageRole

type PromptMessageRole string
const (
	PromptMessageRoleUser      PromptMessageRole = "user"
	PromptMessageRoleAssistant PromptMessageRole = "assistant"
	PromptMessageRoleModel     PromptMessageRole = "model"
	PromptMessageRoleAi        PromptMessageRole = "ai"
	PromptMessageRoleTool      PromptMessageRole = "tool"
	PromptMessageRoleSystem    PromptMessageRole = "system"
	PromptMessageRoleDeveloper PromptMessageRole = "developer"
)

func (PromptMessageRole) AllValues

func (PromptMessageRole) AllValues() []PromptMessageRole

AllValues returns all PromptMessageRole values.

func (*PromptMessageRole) Decode

func (s *PromptMessageRole) Decode(d *jx.Decoder) error

Decode decodes PromptMessageRole from json.

func (PromptMessageRole) Encode

func (s PromptMessageRole) Encode(e *jx.Encoder)

Encode encodes PromptMessageRole as json.

func (PromptMessageRole) MarshalJSON

func (s PromptMessageRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptMessageRole) MarshalText

func (s PromptMessageRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptMessageRole) UnmarshalJSON

func (s *PromptMessageRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptMessageRole) UnmarshalText

func (s *PromptMessageRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptMessageRole) Validate

func (s PromptMessageRole) Validate() error

type PromptMetadata

type PromptMetadata map[string]jx.Raw

func (*PromptMetadata) Decode

func (s *PromptMetadata) Decode(d *jx.Decoder) error

Decode decodes PromptMetadata from json.

func (PromptMetadata) Encode

func (s PromptMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (PromptMetadata) MarshalJSON

func (s PromptMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptMetadata) UnmarshalJSON

func (s *PromptMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PromptOllamaInvocationParameters

type PromptOllamaInvocationParameters struct {
	Ollama PromptOllamaInvocationParametersContent `json:"ollama"`
	Type   PromptOllamaInvocationParametersType    `json:"type"`
}

Ref: #/components/schemas/PromptOllamaInvocationParameters

func (*PromptOllamaInvocationParameters) Decode

Decode decodes PromptOllamaInvocationParameters from json.

func (*PromptOllamaInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptOllamaInvocationParameters) GetOllama

GetOllama returns the value of Ollama.

func (*PromptOllamaInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptOllamaInvocationParameters) MarshalJSON

func (s *PromptOllamaInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptOllamaInvocationParameters) SetOllama

SetOllama sets the value of Ollama.

func (*PromptOllamaInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptOllamaInvocationParameters) UnmarshalJSON

func (s *PromptOllamaInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOllamaInvocationParameters) Validate

type PromptOllamaInvocationParametersContent

type PromptOllamaInvocationParametersContent struct {
	FrequencyPenalty    OptFloat64                                                `json:"frequency_penalty"`
	MaxCompletionTokens OptInt                                                    `json:"max_completion_tokens"`
	MaxTokens           OptInt                                                    `json:"max_tokens"`
	PresencePenalty     OptFloat64                                                `json:"presence_penalty"`
	ReasoningEffort     OptPromptOllamaInvocationParametersContentReasoningEffort `json:"reasoning_effort"`
	Seed                OptInt                                                    `json:"seed"`
	Temperature         OptFloat64                                                `json:"temperature"`
	TopP                OptFloat64                                                `json:"top_p"`
}

Ref: #/components/schemas/PromptOllamaInvocationParametersContent

func (*PromptOllamaInvocationParametersContent) Decode

Decode decodes PromptOllamaInvocationParametersContent from json.

func (*PromptOllamaInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptOllamaInvocationParametersContent) GetFrequencyPenalty

func (s *PromptOllamaInvocationParametersContent) GetFrequencyPenalty() OptFloat64

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*PromptOllamaInvocationParametersContent) GetMaxCompletionTokens

func (s *PromptOllamaInvocationParametersContent) GetMaxCompletionTokens() OptInt

GetMaxCompletionTokens returns the value of MaxCompletionTokens.

func (*PromptOllamaInvocationParametersContent) GetMaxTokens

GetMaxTokens returns the value of MaxTokens.

func (*PromptOllamaInvocationParametersContent) GetPresencePenalty

func (s *PromptOllamaInvocationParametersContent) GetPresencePenalty() OptFloat64

GetPresencePenalty returns the value of PresencePenalty.

func (*PromptOllamaInvocationParametersContent) GetReasoningEffort

GetReasoningEffort returns the value of ReasoningEffort.

func (*PromptOllamaInvocationParametersContent) GetSeed

GetSeed returns the value of Seed.

func (*PromptOllamaInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptOllamaInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptOllamaInvocationParametersContent) MarshalJSON

func (s *PromptOllamaInvocationParametersContent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptOllamaInvocationParametersContent) SetFrequencyPenalty

func (s *PromptOllamaInvocationParametersContent) SetFrequencyPenalty(val OptFloat64)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*PromptOllamaInvocationParametersContent) SetMaxCompletionTokens

func (s *PromptOllamaInvocationParametersContent) SetMaxCompletionTokens(val OptInt)

SetMaxCompletionTokens sets the value of MaxCompletionTokens.

func (*PromptOllamaInvocationParametersContent) SetMaxTokens

func (s *PromptOllamaInvocationParametersContent) SetMaxTokens(val OptInt)

SetMaxTokens sets the value of MaxTokens.

func (*PromptOllamaInvocationParametersContent) SetPresencePenalty

func (s *PromptOllamaInvocationParametersContent) SetPresencePenalty(val OptFloat64)

SetPresencePenalty sets the value of PresencePenalty.

func (*PromptOllamaInvocationParametersContent) SetReasoningEffort

SetReasoningEffort sets the value of ReasoningEffort.

func (*PromptOllamaInvocationParametersContent) SetSeed

SetSeed sets the value of Seed.

func (*PromptOllamaInvocationParametersContent) SetTemperature

func (s *PromptOllamaInvocationParametersContent) SetTemperature(val OptFloat64)

SetTemperature sets the value of Temperature.

func (*PromptOllamaInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptOllamaInvocationParametersContent) UnmarshalJSON

func (s *PromptOllamaInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOllamaInvocationParametersContent) Validate

type PromptOllamaInvocationParametersContentReasoningEffort

type PromptOllamaInvocationParametersContentReasoningEffort string
const (
	PromptOllamaInvocationParametersContentReasoningEffortNone    PromptOllamaInvocationParametersContentReasoningEffort = "none"
	PromptOllamaInvocationParametersContentReasoningEffortMinimal PromptOllamaInvocationParametersContentReasoningEffort = "minimal"
	PromptOllamaInvocationParametersContentReasoningEffortLow     PromptOllamaInvocationParametersContentReasoningEffort = "low"
	PromptOllamaInvocationParametersContentReasoningEffortMedium  PromptOllamaInvocationParametersContentReasoningEffort = "medium"
	PromptOllamaInvocationParametersContentReasoningEffortHigh    PromptOllamaInvocationParametersContentReasoningEffort = "high"
	PromptOllamaInvocationParametersContentReasoningEffortXhigh   PromptOllamaInvocationParametersContentReasoningEffort = "xhigh"
)

func (PromptOllamaInvocationParametersContentReasoningEffort) AllValues

AllValues returns all PromptOllamaInvocationParametersContentReasoningEffort values.

func (*PromptOllamaInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptOllamaInvocationParametersContentReasoningEffort from json.

func (PromptOllamaInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptOllamaInvocationParametersContentReasoningEffort as json.

func (PromptOllamaInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptOllamaInvocationParametersContentReasoningEffort) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptOllamaInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOllamaInvocationParametersContentReasoningEffort) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptOllamaInvocationParametersContentReasoningEffort) Validate

type PromptOllamaInvocationParametersType

type PromptOllamaInvocationParametersType string
const (
	PromptOllamaInvocationParametersTypeOllama PromptOllamaInvocationParametersType = "ollama"
)

func (PromptOllamaInvocationParametersType) AllValues

AllValues returns all PromptOllamaInvocationParametersType values.

func (*PromptOllamaInvocationParametersType) Decode

Decode decodes PromptOllamaInvocationParametersType from json.

func (PromptOllamaInvocationParametersType) Encode

Encode encodes PromptOllamaInvocationParametersType as json.

func (PromptOllamaInvocationParametersType) MarshalJSON

func (s PromptOllamaInvocationParametersType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptOllamaInvocationParametersType) MarshalText

func (s PromptOllamaInvocationParametersType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptOllamaInvocationParametersType) UnmarshalJSON

func (s *PromptOllamaInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOllamaInvocationParametersType) UnmarshalText

func (s *PromptOllamaInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptOllamaInvocationParametersType) Validate

type PromptOpenAIInvocationParameters

type PromptOpenAIInvocationParameters struct {
	Openai PromptOpenAIInvocationParametersContent `json:"openai"`
	Type   PromptOpenAIInvocationParametersType    `json:"type"`
}

Ref: #/components/schemas/PromptOpenAIInvocationParameters

func (*PromptOpenAIInvocationParameters) Decode

Decode decodes PromptOpenAIInvocationParameters from json.

func (*PromptOpenAIInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptOpenAIInvocationParameters) GetOpenai

GetOpenai returns the value of Openai.

func (*PromptOpenAIInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptOpenAIInvocationParameters) MarshalJSON

func (s *PromptOpenAIInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptOpenAIInvocationParameters) SetOpenai

SetOpenai sets the value of Openai.

func (*PromptOpenAIInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptOpenAIInvocationParameters) UnmarshalJSON

func (s *PromptOpenAIInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOpenAIInvocationParameters) Validate

type PromptOpenAIInvocationParametersContent

type PromptOpenAIInvocationParametersContent struct {
	FrequencyPenalty    OptFloat64                                                `json:"frequency_penalty"`
	MaxCompletionTokens OptInt                                                    `json:"max_completion_tokens"`
	MaxTokens           OptInt                                                    `json:"max_tokens"`
	PresencePenalty     OptFloat64                                                `json:"presence_penalty"`
	ReasoningEffort     OptPromptOpenAIInvocationParametersContentReasoningEffort `json:"reasoning_effort"`
	Seed                OptInt                                                    `json:"seed"`
	Temperature         OptFloat64                                                `json:"temperature"`
	TopP                OptFloat64                                                `json:"top_p"`
}

Ref: #/components/schemas/PromptOpenAIInvocationParametersContent

func (*PromptOpenAIInvocationParametersContent) Decode

Decode decodes PromptOpenAIInvocationParametersContent from json.

func (*PromptOpenAIInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptOpenAIInvocationParametersContent) GetFrequencyPenalty

func (s *PromptOpenAIInvocationParametersContent) GetFrequencyPenalty() OptFloat64

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*PromptOpenAIInvocationParametersContent) GetMaxCompletionTokens

func (s *PromptOpenAIInvocationParametersContent) GetMaxCompletionTokens() OptInt

GetMaxCompletionTokens returns the value of MaxCompletionTokens.

func (*PromptOpenAIInvocationParametersContent) GetMaxTokens

GetMaxTokens returns the value of MaxTokens.

func (*PromptOpenAIInvocationParametersContent) GetPresencePenalty

func (s *PromptOpenAIInvocationParametersContent) GetPresencePenalty() OptFloat64

GetPresencePenalty returns the value of PresencePenalty.

func (*PromptOpenAIInvocationParametersContent) GetReasoningEffort

GetReasoningEffort returns the value of ReasoningEffort.

func (*PromptOpenAIInvocationParametersContent) GetSeed

GetSeed returns the value of Seed.

func (*PromptOpenAIInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptOpenAIInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptOpenAIInvocationParametersContent) MarshalJSON

func (s *PromptOpenAIInvocationParametersContent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptOpenAIInvocationParametersContent) SetFrequencyPenalty

func (s *PromptOpenAIInvocationParametersContent) SetFrequencyPenalty(val OptFloat64)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*PromptOpenAIInvocationParametersContent) SetMaxCompletionTokens

func (s *PromptOpenAIInvocationParametersContent) SetMaxCompletionTokens(val OptInt)

SetMaxCompletionTokens sets the value of MaxCompletionTokens.

func (*PromptOpenAIInvocationParametersContent) SetMaxTokens

func (s *PromptOpenAIInvocationParametersContent) SetMaxTokens(val OptInt)

SetMaxTokens sets the value of MaxTokens.

func (*PromptOpenAIInvocationParametersContent) SetPresencePenalty

func (s *PromptOpenAIInvocationParametersContent) SetPresencePenalty(val OptFloat64)

SetPresencePenalty sets the value of PresencePenalty.

func (*PromptOpenAIInvocationParametersContent) SetReasoningEffort

SetReasoningEffort sets the value of ReasoningEffort.

func (*PromptOpenAIInvocationParametersContent) SetSeed

SetSeed sets the value of Seed.

func (*PromptOpenAIInvocationParametersContent) SetTemperature

func (s *PromptOpenAIInvocationParametersContent) SetTemperature(val OptFloat64)

SetTemperature sets the value of Temperature.

func (*PromptOpenAIInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptOpenAIInvocationParametersContent) UnmarshalJSON

func (s *PromptOpenAIInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOpenAIInvocationParametersContent) Validate

type PromptOpenAIInvocationParametersContentReasoningEffort

type PromptOpenAIInvocationParametersContentReasoningEffort string
const (
	PromptOpenAIInvocationParametersContentReasoningEffortNone    PromptOpenAIInvocationParametersContentReasoningEffort = "none"
	PromptOpenAIInvocationParametersContentReasoningEffortMinimal PromptOpenAIInvocationParametersContentReasoningEffort = "minimal"
	PromptOpenAIInvocationParametersContentReasoningEffortLow     PromptOpenAIInvocationParametersContentReasoningEffort = "low"
	PromptOpenAIInvocationParametersContentReasoningEffortMedium  PromptOpenAIInvocationParametersContentReasoningEffort = "medium"
	PromptOpenAIInvocationParametersContentReasoningEffortHigh    PromptOpenAIInvocationParametersContentReasoningEffort = "high"
	PromptOpenAIInvocationParametersContentReasoningEffortXhigh   PromptOpenAIInvocationParametersContentReasoningEffort = "xhigh"
)

func (PromptOpenAIInvocationParametersContentReasoningEffort) AllValues

AllValues returns all PromptOpenAIInvocationParametersContentReasoningEffort values.

func (*PromptOpenAIInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptOpenAIInvocationParametersContentReasoningEffort from json.

func (PromptOpenAIInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptOpenAIInvocationParametersContentReasoningEffort as json.

func (PromptOpenAIInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptOpenAIInvocationParametersContentReasoningEffort) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptOpenAIInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOpenAIInvocationParametersContentReasoningEffort) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptOpenAIInvocationParametersContentReasoningEffort) Validate

type PromptOpenAIInvocationParametersType

type PromptOpenAIInvocationParametersType string
const (
	PromptOpenAIInvocationParametersTypeOpenai PromptOpenAIInvocationParametersType = "openai"
)

func (PromptOpenAIInvocationParametersType) AllValues

AllValues returns all PromptOpenAIInvocationParametersType values.

func (*PromptOpenAIInvocationParametersType) Decode

Decode decodes PromptOpenAIInvocationParametersType from json.

func (PromptOpenAIInvocationParametersType) Encode

Encode encodes PromptOpenAIInvocationParametersType as json.

func (PromptOpenAIInvocationParametersType) MarshalJSON

func (s PromptOpenAIInvocationParametersType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptOpenAIInvocationParametersType) MarshalText

func (s PromptOpenAIInvocationParametersType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptOpenAIInvocationParametersType) UnmarshalJSON

func (s *PromptOpenAIInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptOpenAIInvocationParametersType) UnmarshalText

func (s *PromptOpenAIInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptOpenAIInvocationParametersType) Validate

type PromptResponseFormatJSONSchema

type PromptResponseFormatJSONSchema struct {
	JSONSchema PromptResponseFormatJSONSchemaDefinition `json:"json_schema"`
	Type       PromptResponseFormatJSONSchemaType       `json:"type"`
}

Ref: #/components/schemas/PromptResponseFormatJSONSchema

func (*PromptResponseFormatJSONSchema) Decode

Decode decodes PromptResponseFormatJSONSchema from json.

func (*PromptResponseFormatJSONSchema) Encode

Encode implements json.Marshaler.

func (*PromptResponseFormatJSONSchema) GetJSONSchema

GetJSONSchema returns the value of JSONSchema.

func (*PromptResponseFormatJSONSchema) GetType

GetType returns the value of Type.

func (*PromptResponseFormatJSONSchema) MarshalJSON

func (s *PromptResponseFormatJSONSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptResponseFormatJSONSchema) SetJSONSchema

SetJSONSchema sets the value of JSONSchema.

func (*PromptResponseFormatJSONSchema) SetType

SetType sets the value of Type.

func (*PromptResponseFormatJSONSchema) UnmarshalJSON

func (s *PromptResponseFormatJSONSchema) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptResponseFormatJSONSchema) Validate

func (s *PromptResponseFormatJSONSchema) Validate() error

type PromptResponseFormatJSONSchemaDefinition

type PromptResponseFormatJSONSchemaDefinition struct {
	Description OptString                                         `json:"description"`
	Name        string                                            `json:"name"`
	Schema      OptPromptResponseFormatJSONSchemaDefinitionSchema `json:"schema"`
	Strict      OptBool                                           `json:"strict"`
}

Ref: #/components/schemas/PromptResponseFormatJSONSchemaDefinition

func (*PromptResponseFormatJSONSchemaDefinition) Decode

Decode decodes PromptResponseFormatJSONSchemaDefinition from json.

func (*PromptResponseFormatJSONSchemaDefinition) Encode

Encode implements json.Marshaler.

func (*PromptResponseFormatJSONSchemaDefinition) GetDescription

GetDescription returns the value of Description.

func (*PromptResponseFormatJSONSchemaDefinition) GetName

GetName returns the value of Name.

func (*PromptResponseFormatJSONSchemaDefinition) GetSchema

GetSchema returns the value of Schema.

func (*PromptResponseFormatJSONSchemaDefinition) GetStrict

GetStrict returns the value of Strict.

func (*PromptResponseFormatJSONSchemaDefinition) MarshalJSON

func (s *PromptResponseFormatJSONSchemaDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptResponseFormatJSONSchemaDefinition) SetDescription

func (s *PromptResponseFormatJSONSchemaDefinition) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*PromptResponseFormatJSONSchemaDefinition) SetName

SetName sets the value of Name.

func (*PromptResponseFormatJSONSchemaDefinition) SetSchema

SetSchema sets the value of Schema.

func (*PromptResponseFormatJSONSchemaDefinition) SetStrict

SetStrict sets the value of Strict.

func (*PromptResponseFormatJSONSchemaDefinition) UnmarshalJSON

func (s *PromptResponseFormatJSONSchemaDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PromptResponseFormatJSONSchemaDefinitionSchema

type PromptResponseFormatJSONSchemaDefinitionSchema map[string]jx.Raw

func (*PromptResponseFormatJSONSchemaDefinitionSchema) Decode

Decode decodes PromptResponseFormatJSONSchemaDefinitionSchema from json.

func (PromptResponseFormatJSONSchemaDefinitionSchema) Encode

Encode implements json.Marshaler.

func (PromptResponseFormatJSONSchemaDefinitionSchema) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PromptResponseFormatJSONSchemaDefinitionSchema) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PromptResponseFormatJSONSchemaType

type PromptResponseFormatJSONSchemaType string
const (
	PromptResponseFormatJSONSchemaTypeJSONSchema PromptResponseFormatJSONSchemaType = "json_schema"
)

func (PromptResponseFormatJSONSchemaType) AllValues

AllValues returns all PromptResponseFormatJSONSchemaType values.

func (*PromptResponseFormatJSONSchemaType) Decode

Decode decodes PromptResponseFormatJSONSchemaType from json.

func (PromptResponseFormatJSONSchemaType) Encode

Encode encodes PromptResponseFormatJSONSchemaType as json.

func (PromptResponseFormatJSONSchemaType) MarshalJSON

func (s PromptResponseFormatJSONSchemaType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptResponseFormatJSONSchemaType) MarshalText

func (s PromptResponseFormatJSONSchemaType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptResponseFormatJSONSchemaType) UnmarshalJSON

func (s *PromptResponseFormatJSONSchemaType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptResponseFormatJSONSchemaType) UnmarshalText

func (s *PromptResponseFormatJSONSchemaType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptResponseFormatJSONSchemaType) Validate

type PromptStringTemplate

type PromptStringTemplate struct {
	Template string                   `json:"template"`
	Type     PromptStringTemplateType `json:"type"`
}

Ref: #/components/schemas/PromptStringTemplate

func (*PromptStringTemplate) Decode

func (s *PromptStringTemplate) Decode(d *jx.Decoder) error

Decode decodes PromptStringTemplate from json.

func (*PromptStringTemplate) Encode

func (s *PromptStringTemplate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptStringTemplate) GetTemplate

func (s *PromptStringTemplate) GetTemplate() string

GetTemplate returns the value of Template.

func (*PromptStringTemplate) GetType

GetType returns the value of Type.

func (*PromptStringTemplate) MarshalJSON

func (s *PromptStringTemplate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptStringTemplate) SetTemplate

func (s *PromptStringTemplate) SetTemplate(val string)

SetTemplate sets the value of Template.

func (*PromptStringTemplate) SetType

SetType sets the value of Type.

func (*PromptStringTemplate) UnmarshalJSON

func (s *PromptStringTemplate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptStringTemplate) Validate

func (s *PromptStringTemplate) Validate() error

type PromptStringTemplateType

type PromptStringTemplateType string
const (
	PromptStringTemplateTypeString PromptStringTemplateType = "string"
)

func (PromptStringTemplateType) AllValues

AllValues returns all PromptStringTemplateType values.

func (*PromptStringTemplateType) Decode

func (s *PromptStringTemplateType) Decode(d *jx.Decoder) error

Decode decodes PromptStringTemplateType from json.

func (PromptStringTemplateType) Encode

func (s PromptStringTemplateType) Encode(e *jx.Encoder)

Encode encodes PromptStringTemplateType as json.

func (PromptStringTemplateType) MarshalJSON

func (s PromptStringTemplateType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptStringTemplateType) MarshalText

func (s PromptStringTemplateType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptStringTemplateType) UnmarshalJSON

func (s *PromptStringTemplateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptStringTemplateType) UnmarshalText

func (s *PromptStringTemplateType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptStringTemplateType) Validate

func (s PromptStringTemplateType) Validate() error

type PromptTemplateFormat

type PromptTemplateFormat string

Ref: #/components/schemas/PromptTemplateFormat

const (
	PromptTemplateFormatMUSTACHE PromptTemplateFormat = "MUSTACHE"
	PromptTemplateFormatFSTRING  PromptTemplateFormat = "F_STRING"
	PromptTemplateFormatNONE     PromptTemplateFormat = "NONE"
)

func (PromptTemplateFormat) AllValues

AllValues returns all PromptTemplateFormat values.

func (*PromptTemplateFormat) Decode

func (s *PromptTemplateFormat) Decode(d *jx.Decoder) error

Decode decodes PromptTemplateFormat from json.

func (PromptTemplateFormat) Encode

func (s PromptTemplateFormat) Encode(e *jx.Encoder)

Encode encodes PromptTemplateFormat as json.

func (PromptTemplateFormat) MarshalJSON

func (s PromptTemplateFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptTemplateFormat) MarshalText

func (s PromptTemplateFormat) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptTemplateFormat) UnmarshalJSON

func (s *PromptTemplateFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptTemplateFormat) UnmarshalText

func (s *PromptTemplateFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptTemplateFormat) Validate

func (s PromptTemplateFormat) Validate() error

type PromptTemplateType

type PromptTemplateType string

Ref: #/components/schemas/PromptTemplateType

const (
	PromptTemplateTypeSTR  PromptTemplateType = "STR"
	PromptTemplateTypeCHAT PromptTemplateType = "CHAT"
)

func (PromptTemplateType) AllValues

func (PromptTemplateType) AllValues() []PromptTemplateType

AllValues returns all PromptTemplateType values.

func (*PromptTemplateType) Decode

func (s *PromptTemplateType) Decode(d *jx.Decoder) error

Decode decodes PromptTemplateType from json.

func (PromptTemplateType) Encode

func (s PromptTemplateType) Encode(e *jx.Encoder)

Encode encodes PromptTemplateType as json.

func (PromptTemplateType) MarshalJSON

func (s PromptTemplateType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptTemplateType) MarshalText

func (s PromptTemplateType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptTemplateType) UnmarshalJSON

func (s *PromptTemplateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptTemplateType) UnmarshalText

func (s *PromptTemplateType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptTemplateType) Validate

func (s PromptTemplateType) Validate() error

type PromptToolChoiceNone

type PromptToolChoiceNone struct {
	Type PromptToolChoiceNoneType `json:"type"`
}

Ref: #/components/schemas/PromptToolChoiceNone

func (*PromptToolChoiceNone) Decode

func (s *PromptToolChoiceNone) Decode(d *jx.Decoder) error

Decode decodes PromptToolChoiceNone from json.

func (*PromptToolChoiceNone) Encode

func (s *PromptToolChoiceNone) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptToolChoiceNone) GetType

GetType returns the value of Type.

func (*PromptToolChoiceNone) MarshalJSON

func (s *PromptToolChoiceNone) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolChoiceNone) SetType

SetType sets the value of Type.

func (*PromptToolChoiceNone) UnmarshalJSON

func (s *PromptToolChoiceNone) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceNone) Validate

func (s *PromptToolChoiceNone) Validate() error

type PromptToolChoiceNoneType

type PromptToolChoiceNoneType string
const (
	PromptToolChoiceNoneTypeNone PromptToolChoiceNoneType = "none"
)

func (PromptToolChoiceNoneType) AllValues

AllValues returns all PromptToolChoiceNoneType values.

func (*PromptToolChoiceNoneType) Decode

func (s *PromptToolChoiceNoneType) Decode(d *jx.Decoder) error

Decode decodes PromptToolChoiceNoneType from json.

func (PromptToolChoiceNoneType) Encode

func (s PromptToolChoiceNoneType) Encode(e *jx.Encoder)

Encode encodes PromptToolChoiceNoneType as json.

func (PromptToolChoiceNoneType) MarshalJSON

func (s PromptToolChoiceNoneType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptToolChoiceNoneType) MarshalText

func (s PromptToolChoiceNoneType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptToolChoiceNoneType) UnmarshalJSON

func (s *PromptToolChoiceNoneType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceNoneType) UnmarshalText

func (s *PromptToolChoiceNoneType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptToolChoiceNoneType) Validate

func (s PromptToolChoiceNoneType) Validate() error

type PromptToolChoiceOneOrMore

type PromptToolChoiceOneOrMore struct {
	Type PromptToolChoiceOneOrMoreType `json:"type"`
}

Ref: #/components/schemas/PromptToolChoiceOneOrMore

func (*PromptToolChoiceOneOrMore) Decode

func (s *PromptToolChoiceOneOrMore) Decode(d *jx.Decoder) error

Decode decodes PromptToolChoiceOneOrMore from json.

func (*PromptToolChoiceOneOrMore) Encode

func (s *PromptToolChoiceOneOrMore) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptToolChoiceOneOrMore) GetType

GetType returns the value of Type.

func (*PromptToolChoiceOneOrMore) MarshalJSON

func (s *PromptToolChoiceOneOrMore) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolChoiceOneOrMore) SetType

SetType sets the value of Type.

func (*PromptToolChoiceOneOrMore) UnmarshalJSON

func (s *PromptToolChoiceOneOrMore) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceOneOrMore) Validate

func (s *PromptToolChoiceOneOrMore) Validate() error

type PromptToolChoiceOneOrMoreType

type PromptToolChoiceOneOrMoreType string
const (
	PromptToolChoiceOneOrMoreTypeOneOrMore PromptToolChoiceOneOrMoreType = "one_or_more"
)

func (PromptToolChoiceOneOrMoreType) AllValues

AllValues returns all PromptToolChoiceOneOrMoreType values.

func (*PromptToolChoiceOneOrMoreType) Decode

Decode decodes PromptToolChoiceOneOrMoreType from json.

func (PromptToolChoiceOneOrMoreType) Encode

Encode encodes PromptToolChoiceOneOrMoreType as json.

func (PromptToolChoiceOneOrMoreType) MarshalJSON

func (s PromptToolChoiceOneOrMoreType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptToolChoiceOneOrMoreType) MarshalText

func (s PromptToolChoiceOneOrMoreType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptToolChoiceOneOrMoreType) UnmarshalJSON

func (s *PromptToolChoiceOneOrMoreType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceOneOrMoreType) UnmarshalText

func (s *PromptToolChoiceOneOrMoreType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptToolChoiceOneOrMoreType) Validate

func (s PromptToolChoiceOneOrMoreType) Validate() error

type PromptToolChoiceSpecificFunctionTool

type PromptToolChoiceSpecificFunctionTool struct {
	FunctionName string                                   `json:"function_name"`
	Type         PromptToolChoiceSpecificFunctionToolType `json:"type"`
}

Ref: #/components/schemas/PromptToolChoiceSpecificFunctionTool

func (*PromptToolChoiceSpecificFunctionTool) Decode

Decode decodes PromptToolChoiceSpecificFunctionTool from json.

func (*PromptToolChoiceSpecificFunctionTool) Encode

Encode implements json.Marshaler.

func (*PromptToolChoiceSpecificFunctionTool) GetFunctionName

func (s *PromptToolChoiceSpecificFunctionTool) GetFunctionName() string

GetFunctionName returns the value of FunctionName.

func (*PromptToolChoiceSpecificFunctionTool) GetType

GetType returns the value of Type.

func (*PromptToolChoiceSpecificFunctionTool) MarshalJSON

func (s *PromptToolChoiceSpecificFunctionTool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolChoiceSpecificFunctionTool) SetFunctionName

func (s *PromptToolChoiceSpecificFunctionTool) SetFunctionName(val string)

SetFunctionName sets the value of FunctionName.

func (*PromptToolChoiceSpecificFunctionTool) SetType

SetType sets the value of Type.

func (*PromptToolChoiceSpecificFunctionTool) UnmarshalJSON

func (s *PromptToolChoiceSpecificFunctionTool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceSpecificFunctionTool) Validate

type PromptToolChoiceSpecificFunctionToolType

type PromptToolChoiceSpecificFunctionToolType string
const (
	PromptToolChoiceSpecificFunctionToolTypeSpecificFunction PromptToolChoiceSpecificFunctionToolType = "specific_function"
)

func (PromptToolChoiceSpecificFunctionToolType) AllValues

AllValues returns all PromptToolChoiceSpecificFunctionToolType values.

func (*PromptToolChoiceSpecificFunctionToolType) Decode

Decode decodes PromptToolChoiceSpecificFunctionToolType from json.

func (PromptToolChoiceSpecificFunctionToolType) Encode

Encode encodes PromptToolChoiceSpecificFunctionToolType as json.

func (PromptToolChoiceSpecificFunctionToolType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptToolChoiceSpecificFunctionToolType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptToolChoiceSpecificFunctionToolType) UnmarshalJSON

func (s *PromptToolChoiceSpecificFunctionToolType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceSpecificFunctionToolType) UnmarshalText

func (s *PromptToolChoiceSpecificFunctionToolType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptToolChoiceSpecificFunctionToolType) Validate

type PromptToolChoiceZeroOrMore

type PromptToolChoiceZeroOrMore struct {
	Type PromptToolChoiceZeroOrMoreType `json:"type"`
}

Ref: #/components/schemas/PromptToolChoiceZeroOrMore

func (*PromptToolChoiceZeroOrMore) Decode

Decode decodes PromptToolChoiceZeroOrMore from json.

func (*PromptToolChoiceZeroOrMore) Encode

func (s *PromptToolChoiceZeroOrMore) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptToolChoiceZeroOrMore) GetType

GetType returns the value of Type.

func (*PromptToolChoiceZeroOrMore) MarshalJSON

func (s *PromptToolChoiceZeroOrMore) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolChoiceZeroOrMore) SetType

SetType sets the value of Type.

func (*PromptToolChoiceZeroOrMore) UnmarshalJSON

func (s *PromptToolChoiceZeroOrMore) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceZeroOrMore) Validate

func (s *PromptToolChoiceZeroOrMore) Validate() error

type PromptToolChoiceZeroOrMoreType

type PromptToolChoiceZeroOrMoreType string
const (
	PromptToolChoiceZeroOrMoreTypeZeroOrMore PromptToolChoiceZeroOrMoreType = "zero_or_more"
)

func (PromptToolChoiceZeroOrMoreType) AllValues

AllValues returns all PromptToolChoiceZeroOrMoreType values.

func (*PromptToolChoiceZeroOrMoreType) Decode

Decode decodes PromptToolChoiceZeroOrMoreType from json.

func (PromptToolChoiceZeroOrMoreType) Encode

Encode encodes PromptToolChoiceZeroOrMoreType as json.

func (PromptToolChoiceZeroOrMoreType) MarshalJSON

func (s PromptToolChoiceZeroOrMoreType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptToolChoiceZeroOrMoreType) MarshalText

func (s PromptToolChoiceZeroOrMoreType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptToolChoiceZeroOrMoreType) UnmarshalJSON

func (s *PromptToolChoiceZeroOrMoreType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolChoiceZeroOrMoreType) UnmarshalText

func (s *PromptToolChoiceZeroOrMoreType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptToolChoiceZeroOrMoreType) Validate

type PromptToolFunction

type PromptToolFunction struct {
	Function PromptToolFunctionDefinition `json:"function"`
	Type     PromptToolFunctionType       `json:"type"`
}

Ref: #/components/schemas/PromptToolFunction

func (*PromptToolFunction) Decode

func (s *PromptToolFunction) Decode(d *jx.Decoder) error

Decode decodes PromptToolFunction from json.

func (*PromptToolFunction) Encode

func (s *PromptToolFunction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptToolFunction) GetFunction

GetFunction returns the value of Function.

func (*PromptToolFunction) GetType

GetType returns the value of Type.

func (*PromptToolFunction) MarshalJSON

func (s *PromptToolFunction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolFunction) SetFunction

SetFunction sets the value of Function.

func (*PromptToolFunction) SetType

SetType sets the value of Type.

func (*PromptToolFunction) UnmarshalJSON

func (s *PromptToolFunction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolFunction) Validate

func (s *PromptToolFunction) Validate() error

type PromptToolFunctionDefinition

type PromptToolFunctionDefinition struct {
	Description OptString                                 `json:"description"`
	Name        string                                    `json:"name"`
	Parameters  OptPromptToolFunctionDefinitionParameters `json:"parameters"`
	Strict      OptBool                                   `json:"strict"`
}

Ref: #/components/schemas/PromptToolFunctionDefinition

func (*PromptToolFunctionDefinition) Decode

Decode decodes PromptToolFunctionDefinition from json.

func (*PromptToolFunctionDefinition) Encode

func (s *PromptToolFunctionDefinition) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptToolFunctionDefinition) GetDescription

func (s *PromptToolFunctionDefinition) GetDescription() OptString

GetDescription returns the value of Description.

func (*PromptToolFunctionDefinition) GetName

func (s *PromptToolFunctionDefinition) GetName() string

GetName returns the value of Name.

func (*PromptToolFunctionDefinition) GetParameters

GetParameters returns the value of Parameters.

func (*PromptToolFunctionDefinition) GetStrict

func (s *PromptToolFunctionDefinition) GetStrict() OptBool

GetStrict returns the value of Strict.

func (*PromptToolFunctionDefinition) MarshalJSON

func (s *PromptToolFunctionDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolFunctionDefinition) SetDescription

func (s *PromptToolFunctionDefinition) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*PromptToolFunctionDefinition) SetName

func (s *PromptToolFunctionDefinition) SetName(val string)

SetName sets the value of Name.

func (*PromptToolFunctionDefinition) SetParameters

SetParameters sets the value of Parameters.

func (*PromptToolFunctionDefinition) SetStrict

func (s *PromptToolFunctionDefinition) SetStrict(val OptBool)

SetStrict sets the value of Strict.

func (*PromptToolFunctionDefinition) UnmarshalJSON

func (s *PromptToolFunctionDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PromptToolFunctionDefinitionParameters

type PromptToolFunctionDefinitionParameters map[string]jx.Raw

func (*PromptToolFunctionDefinitionParameters) Decode

Decode decodes PromptToolFunctionDefinitionParameters from json.

func (PromptToolFunctionDefinitionParameters) Encode

Encode implements json.Marshaler.

func (PromptToolFunctionDefinitionParameters) MarshalJSON

func (s PromptToolFunctionDefinitionParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolFunctionDefinitionParameters) UnmarshalJSON

func (s *PromptToolFunctionDefinitionParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PromptToolFunctionType

type PromptToolFunctionType string
const (
	PromptToolFunctionTypeFunction PromptToolFunctionType = "function"
)

func (PromptToolFunctionType) AllValues

AllValues returns all PromptToolFunctionType values.

func (*PromptToolFunctionType) Decode

func (s *PromptToolFunctionType) Decode(d *jx.Decoder) error

Decode decodes PromptToolFunctionType from json.

func (PromptToolFunctionType) Encode

func (s PromptToolFunctionType) Encode(e *jx.Encoder)

Encode encodes PromptToolFunctionType as json.

func (PromptToolFunctionType) MarshalJSON

func (s PromptToolFunctionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptToolFunctionType) MarshalText

func (s PromptToolFunctionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptToolFunctionType) UnmarshalJSON

func (s *PromptToolFunctionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolFunctionType) UnmarshalText

func (s *PromptToolFunctionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptToolFunctionType) Validate

func (s PromptToolFunctionType) Validate() error

type PromptTools

type PromptTools struct {
	DisableParallelToolCalls OptBool                  `json:"disable_parallel_tool_calls"`
	ToolChoice               OptPromptToolsToolChoice `json:"tool_choice"`
	Tools                    []PromptToolsToolsItem   `json:"tools"`
	Type                     PromptToolsType          `json:"type"`
}

Ref: #/components/schemas/PromptTools

func (*PromptTools) Decode

func (s *PromptTools) Decode(d *jx.Decoder) error

Decode decodes PromptTools from json.

func (*PromptTools) Encode

func (s *PromptTools) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptTools) GetDisableParallelToolCalls

func (s *PromptTools) GetDisableParallelToolCalls() OptBool

GetDisableParallelToolCalls returns the value of DisableParallelToolCalls.

func (*PromptTools) GetToolChoice

func (s *PromptTools) GetToolChoice() OptPromptToolsToolChoice

GetToolChoice returns the value of ToolChoice.

func (*PromptTools) GetTools

func (s *PromptTools) GetTools() []PromptToolsToolsItem

GetTools returns the value of Tools.

func (*PromptTools) GetType

func (s *PromptTools) GetType() PromptToolsType

GetType returns the value of Type.

func (*PromptTools) MarshalJSON

func (s *PromptTools) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptTools) SetDisableParallelToolCalls

func (s *PromptTools) SetDisableParallelToolCalls(val OptBool)

SetDisableParallelToolCalls sets the value of DisableParallelToolCalls.

func (*PromptTools) SetToolChoice

func (s *PromptTools) SetToolChoice(val OptPromptToolsToolChoice)

SetToolChoice sets the value of ToolChoice.

func (*PromptTools) SetTools

func (s *PromptTools) SetTools(val []PromptToolsToolsItem)

SetTools sets the value of Tools.

func (*PromptTools) SetType

func (s *PromptTools) SetType(val PromptToolsType)

SetType sets the value of Type.

func (*PromptTools) UnmarshalJSON

func (s *PromptTools) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptTools) Validate

func (s *PromptTools) Validate() error

type PromptToolsToolChoice

type PromptToolsToolChoice struct {
	Type                                 PromptToolsToolChoiceType // switch on this field
	PromptToolChoiceNone                 PromptToolChoiceNone
	PromptToolChoiceZeroOrMore           PromptToolChoiceZeroOrMore
	PromptToolChoiceOneOrMore            PromptToolChoiceOneOrMore
	PromptToolChoiceSpecificFunctionTool PromptToolChoiceSpecificFunctionTool
}

PromptToolsToolChoice represents sum type.

func NewPromptToolChoiceNonePromptToolsToolChoice

func NewPromptToolChoiceNonePromptToolsToolChoice(v PromptToolChoiceNone) PromptToolsToolChoice

NewPromptToolChoiceNonePromptToolsToolChoice returns new PromptToolsToolChoice from PromptToolChoiceNone.

func NewPromptToolChoiceOneOrMorePromptToolsToolChoice

func NewPromptToolChoiceOneOrMorePromptToolsToolChoice(v PromptToolChoiceOneOrMore) PromptToolsToolChoice

NewPromptToolChoiceOneOrMorePromptToolsToolChoice returns new PromptToolsToolChoice from PromptToolChoiceOneOrMore.

func NewPromptToolChoiceSpecificFunctionToolPromptToolsToolChoice

func NewPromptToolChoiceSpecificFunctionToolPromptToolsToolChoice(v PromptToolChoiceSpecificFunctionTool) PromptToolsToolChoice

NewPromptToolChoiceSpecificFunctionToolPromptToolsToolChoice returns new PromptToolsToolChoice from PromptToolChoiceSpecificFunctionTool.

func NewPromptToolChoiceZeroOrMorePromptToolsToolChoice

func NewPromptToolChoiceZeroOrMorePromptToolsToolChoice(v PromptToolChoiceZeroOrMore) PromptToolsToolChoice

NewPromptToolChoiceZeroOrMorePromptToolsToolChoice returns new PromptToolsToolChoice from PromptToolChoiceZeroOrMore.

func (*PromptToolsToolChoice) Decode

func (s *PromptToolsToolChoice) Decode(d *jx.Decoder) error

Decode decodes PromptToolsToolChoice from json.

func (PromptToolsToolChoice) Encode

func (s PromptToolsToolChoice) Encode(e *jx.Encoder)

Encode encodes PromptToolsToolChoice as json.

func (PromptToolsToolChoice) GetPromptToolChoiceNone

func (s PromptToolsToolChoice) GetPromptToolChoiceNone() (v PromptToolChoiceNone, ok bool)

GetPromptToolChoiceNone returns PromptToolChoiceNone and true boolean if PromptToolsToolChoice is PromptToolChoiceNone.

func (PromptToolsToolChoice) GetPromptToolChoiceOneOrMore

func (s PromptToolsToolChoice) GetPromptToolChoiceOneOrMore() (v PromptToolChoiceOneOrMore, ok bool)

GetPromptToolChoiceOneOrMore returns PromptToolChoiceOneOrMore and true boolean if PromptToolsToolChoice is PromptToolChoiceOneOrMore.

func (PromptToolsToolChoice) GetPromptToolChoiceSpecificFunctionTool

func (s PromptToolsToolChoice) GetPromptToolChoiceSpecificFunctionTool() (v PromptToolChoiceSpecificFunctionTool, ok bool)

GetPromptToolChoiceSpecificFunctionTool returns PromptToolChoiceSpecificFunctionTool and true boolean if PromptToolsToolChoice is PromptToolChoiceSpecificFunctionTool.

func (PromptToolsToolChoice) GetPromptToolChoiceZeroOrMore

func (s PromptToolsToolChoice) GetPromptToolChoiceZeroOrMore() (v PromptToolChoiceZeroOrMore, ok bool)

GetPromptToolChoiceZeroOrMore returns PromptToolChoiceZeroOrMore and true boolean if PromptToolsToolChoice is PromptToolChoiceZeroOrMore.

func (PromptToolsToolChoice) IsPromptToolChoiceNone

func (s PromptToolsToolChoice) IsPromptToolChoiceNone() bool

IsPromptToolChoiceNone reports whether PromptToolsToolChoice is PromptToolChoiceNone.

func (PromptToolsToolChoice) IsPromptToolChoiceOneOrMore

func (s PromptToolsToolChoice) IsPromptToolChoiceOneOrMore() bool

IsPromptToolChoiceOneOrMore reports whether PromptToolsToolChoice is PromptToolChoiceOneOrMore.

func (PromptToolsToolChoice) IsPromptToolChoiceSpecificFunctionTool

func (s PromptToolsToolChoice) IsPromptToolChoiceSpecificFunctionTool() bool

IsPromptToolChoiceSpecificFunctionTool reports whether PromptToolsToolChoice is PromptToolChoiceSpecificFunctionTool.

func (PromptToolsToolChoice) IsPromptToolChoiceZeroOrMore

func (s PromptToolsToolChoice) IsPromptToolChoiceZeroOrMore() bool

IsPromptToolChoiceZeroOrMore reports whether PromptToolsToolChoice is PromptToolChoiceZeroOrMore.

func (PromptToolsToolChoice) MarshalJSON

func (s PromptToolsToolChoice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolsToolChoice) SetPromptToolChoiceNone

func (s *PromptToolsToolChoice) SetPromptToolChoiceNone(v PromptToolChoiceNone)

SetPromptToolChoiceNone sets PromptToolsToolChoice to PromptToolChoiceNone.

func (*PromptToolsToolChoice) SetPromptToolChoiceOneOrMore

func (s *PromptToolsToolChoice) SetPromptToolChoiceOneOrMore(v PromptToolChoiceOneOrMore)

SetPromptToolChoiceOneOrMore sets PromptToolsToolChoice to PromptToolChoiceOneOrMore.

func (*PromptToolsToolChoice) SetPromptToolChoiceSpecificFunctionTool

func (s *PromptToolsToolChoice) SetPromptToolChoiceSpecificFunctionTool(v PromptToolChoiceSpecificFunctionTool)

SetPromptToolChoiceSpecificFunctionTool sets PromptToolsToolChoice to PromptToolChoiceSpecificFunctionTool.

func (*PromptToolsToolChoice) SetPromptToolChoiceZeroOrMore

func (s *PromptToolsToolChoice) SetPromptToolChoiceZeroOrMore(v PromptToolChoiceZeroOrMore)

SetPromptToolChoiceZeroOrMore sets PromptToolsToolChoice to PromptToolChoiceZeroOrMore.

func (*PromptToolsToolChoice) UnmarshalJSON

func (s *PromptToolsToolChoice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptToolsToolChoice) Validate

func (s PromptToolsToolChoice) Validate() error

type PromptToolsToolChoiceType

type PromptToolsToolChoiceType string

PromptToolsToolChoiceType is oneOf type of PromptToolsToolChoice.

const (
	PromptToolChoiceNonePromptToolsToolChoice                 PromptToolsToolChoiceType = "none"
	PromptToolChoiceZeroOrMorePromptToolsToolChoice           PromptToolsToolChoiceType = "zero_or_more"
	PromptToolChoiceOneOrMorePromptToolsToolChoice            PromptToolsToolChoiceType = "one_or_more"
	PromptToolChoiceSpecificFunctionToolPromptToolsToolChoice PromptToolsToolChoiceType = "specific_function"
)

Possible values for PromptToolsToolChoiceType.

type PromptToolsToolsItem

type PromptToolsToolsItem struct {
	Type               PromptToolsToolsItemType // switch on this field
	PromptToolFunction PromptToolFunction
}

PromptToolsToolsItem represents sum type.

func NewPromptToolFunctionPromptToolsToolsItem

func NewPromptToolFunctionPromptToolsToolsItem(v PromptToolFunction) PromptToolsToolsItem

NewPromptToolFunctionPromptToolsToolsItem returns new PromptToolsToolsItem from PromptToolFunction.

func (*PromptToolsToolsItem) Decode

func (s *PromptToolsToolsItem) Decode(d *jx.Decoder) error

Decode decodes PromptToolsToolsItem from json.

func (PromptToolsToolsItem) Encode

func (s PromptToolsToolsItem) Encode(e *jx.Encoder)

Encode encodes PromptToolsToolsItem as json.

func (PromptToolsToolsItem) GetPromptToolFunction

func (s PromptToolsToolsItem) GetPromptToolFunction() (v PromptToolFunction, ok bool)

GetPromptToolFunction returns PromptToolFunction and true boolean if PromptToolsToolsItem is PromptToolFunction.

func (PromptToolsToolsItem) IsPromptToolFunction

func (s PromptToolsToolsItem) IsPromptToolFunction() bool

IsPromptToolFunction reports whether PromptToolsToolsItem is PromptToolFunction.

func (PromptToolsToolsItem) MarshalJSON

func (s PromptToolsToolsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptToolsToolsItem) SetPromptToolFunction

func (s *PromptToolsToolsItem) SetPromptToolFunction(v PromptToolFunction)

SetPromptToolFunction sets PromptToolsToolsItem to PromptToolFunction.

func (*PromptToolsToolsItem) UnmarshalJSON

func (s *PromptToolsToolsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptToolsToolsItem) Validate

func (s PromptToolsToolsItem) Validate() error

type PromptToolsToolsItemType

type PromptToolsToolsItemType string

PromptToolsToolsItemType is oneOf type of PromptToolsToolsItem.

const (
	PromptToolFunctionPromptToolsToolsItem PromptToolsToolsItemType = "function"
)

Possible values for PromptToolsToolsItemType.

type PromptToolsType

type PromptToolsType string
const (
	PromptToolsTypeTools PromptToolsType = "tools"
)

func (PromptToolsType) AllValues

func (PromptToolsType) AllValues() []PromptToolsType

AllValues returns all PromptToolsType values.

func (*PromptToolsType) Decode

func (s *PromptToolsType) Decode(d *jx.Decoder) error

Decode decodes PromptToolsType from json.

func (PromptToolsType) Encode

func (s PromptToolsType) Encode(e *jx.Encoder)

Encode encodes PromptToolsType as json.

func (PromptToolsType) MarshalJSON

func (s PromptToolsType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptToolsType) MarshalText

func (s PromptToolsType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptToolsType) UnmarshalJSON

func (s *PromptToolsType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptToolsType) UnmarshalText

func (s *PromptToolsType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptToolsType) Validate

func (s PromptToolsType) Validate() error

type PromptVersion

type PromptVersion struct {
	Description          OptNilString                      `json:"description"`
	ID                   string                            `json:"id"`
	InvocationParameters PromptVersionInvocationParameters `json:"invocation_parameters"`
	ModelName            string                            `json:"model_name"`
	ModelProvider        ModelProvider                     `json:"model_provider"`
	ResponseFormat       OptNilPromptVersionResponseFormat `json:"response_format"`
	Template             PromptVersionTemplate             `json:"template"`
	TemplateFormat       PromptTemplateFormat              `json:"template_format"`
	TemplateType         PromptTemplateType                `json:"template_type"`
	Tools                OptPromptTools                    `json:"tools"`
}

Ref: #/components/schemas/PromptVersion

func (*PromptVersion) Decode

func (s *PromptVersion) Decode(d *jx.Decoder) error

Decode decodes PromptVersion from json.

func (*PromptVersion) Encode

func (s *PromptVersion) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptVersion) GetDescription

func (s *PromptVersion) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*PromptVersion) GetID

func (s *PromptVersion) GetID() string

GetID returns the value of ID.

func (*PromptVersion) GetInvocationParameters

func (s *PromptVersion) GetInvocationParameters() PromptVersionInvocationParameters

GetInvocationParameters returns the value of InvocationParameters.

func (*PromptVersion) GetModelName

func (s *PromptVersion) GetModelName() string

GetModelName returns the value of ModelName.

func (*PromptVersion) GetModelProvider

func (s *PromptVersion) GetModelProvider() ModelProvider

GetModelProvider returns the value of ModelProvider.

func (*PromptVersion) GetResponseFormat

func (s *PromptVersion) GetResponseFormat() OptNilPromptVersionResponseFormat

GetResponseFormat returns the value of ResponseFormat.

func (*PromptVersion) GetTemplate

func (s *PromptVersion) GetTemplate() PromptVersionTemplate

GetTemplate returns the value of Template.

func (*PromptVersion) GetTemplateFormat

func (s *PromptVersion) GetTemplateFormat() PromptTemplateFormat

GetTemplateFormat returns the value of TemplateFormat.

func (*PromptVersion) GetTemplateType

func (s *PromptVersion) GetTemplateType() PromptTemplateType

GetTemplateType returns the value of TemplateType.

func (*PromptVersion) GetTools

func (s *PromptVersion) GetTools() OptPromptTools

GetTools returns the value of Tools.

func (*PromptVersion) MarshalJSON

func (s *PromptVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersion) SetDescription

func (s *PromptVersion) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*PromptVersion) SetID

func (s *PromptVersion) SetID(val string)

SetID sets the value of ID.

func (*PromptVersion) SetInvocationParameters

func (s *PromptVersion) SetInvocationParameters(val PromptVersionInvocationParameters)

SetInvocationParameters sets the value of InvocationParameters.

func (*PromptVersion) SetModelName

func (s *PromptVersion) SetModelName(val string)

SetModelName sets the value of ModelName.

func (*PromptVersion) SetModelProvider

func (s *PromptVersion) SetModelProvider(val ModelProvider)

SetModelProvider sets the value of ModelProvider.

func (*PromptVersion) SetResponseFormat

func (s *PromptVersion) SetResponseFormat(val OptNilPromptVersionResponseFormat)

SetResponseFormat sets the value of ResponseFormat.

func (*PromptVersion) SetTemplate

func (s *PromptVersion) SetTemplate(val PromptVersionTemplate)

SetTemplate sets the value of Template.

func (*PromptVersion) SetTemplateFormat

func (s *PromptVersion) SetTemplateFormat(val PromptTemplateFormat)

SetTemplateFormat sets the value of TemplateFormat.

func (*PromptVersion) SetTemplateType

func (s *PromptVersion) SetTemplateType(val PromptTemplateType)

SetTemplateType sets the value of TemplateType.

func (*PromptVersion) SetTools

func (s *PromptVersion) SetTools(val OptPromptTools)

SetTools sets the value of Tools.

func (*PromptVersion) UnmarshalJSON

func (s *PromptVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptVersion) Validate

func (s *PromptVersion) Validate() error

type PromptVersionData

type PromptVersionData struct {
	Description          OptNilString                          `json:"description"`
	InvocationParameters PromptVersionDataInvocationParameters `json:"invocation_parameters"`
	ModelName            string                                `json:"model_name"`
	ModelProvider        ModelProvider                         `json:"model_provider"`
	ResponseFormat       OptNilPromptVersionDataResponseFormat `json:"response_format"`
	Template             PromptVersionDataTemplate             `json:"template"`
	TemplateFormat       PromptTemplateFormat                  `json:"template_format"`
	TemplateType         PromptTemplateType                    `json:"template_type"`
	Tools                OptPromptTools                        `json:"tools"`
}

Ref: #/components/schemas/PromptVersionData

func (*PromptVersionData) Decode

func (s *PromptVersionData) Decode(d *jx.Decoder) error

Decode decodes PromptVersionData from json.

func (*PromptVersionData) Encode

func (s *PromptVersionData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptVersionData) GetDescription

func (s *PromptVersionData) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*PromptVersionData) GetInvocationParameters

func (s *PromptVersionData) GetInvocationParameters() PromptVersionDataInvocationParameters

GetInvocationParameters returns the value of InvocationParameters.

func (*PromptVersionData) GetModelName

func (s *PromptVersionData) GetModelName() string

GetModelName returns the value of ModelName.

func (*PromptVersionData) GetModelProvider

func (s *PromptVersionData) GetModelProvider() ModelProvider

GetModelProvider returns the value of ModelProvider.

func (*PromptVersionData) GetResponseFormat

GetResponseFormat returns the value of ResponseFormat.

func (*PromptVersionData) GetTemplate

GetTemplate returns the value of Template.

func (*PromptVersionData) GetTemplateFormat

func (s *PromptVersionData) GetTemplateFormat() PromptTemplateFormat

GetTemplateFormat returns the value of TemplateFormat.

func (*PromptVersionData) GetTemplateType

func (s *PromptVersionData) GetTemplateType() PromptTemplateType

GetTemplateType returns the value of TemplateType.

func (*PromptVersionData) GetTools

func (s *PromptVersionData) GetTools() OptPromptTools

GetTools returns the value of Tools.

func (*PromptVersionData) MarshalJSON

func (s *PromptVersionData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionData) SetDescription

func (s *PromptVersionData) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*PromptVersionData) SetInvocationParameters

func (s *PromptVersionData) SetInvocationParameters(val PromptVersionDataInvocationParameters)

SetInvocationParameters sets the value of InvocationParameters.

func (*PromptVersionData) SetModelName

func (s *PromptVersionData) SetModelName(val string)

SetModelName sets the value of ModelName.

func (*PromptVersionData) SetModelProvider

func (s *PromptVersionData) SetModelProvider(val ModelProvider)

SetModelProvider sets the value of ModelProvider.

func (*PromptVersionData) SetResponseFormat

func (s *PromptVersionData) SetResponseFormat(val OptNilPromptVersionDataResponseFormat)

SetResponseFormat sets the value of ResponseFormat.

func (*PromptVersionData) SetTemplate

func (s *PromptVersionData) SetTemplate(val PromptVersionDataTemplate)

SetTemplate sets the value of Template.

func (*PromptVersionData) SetTemplateFormat

func (s *PromptVersionData) SetTemplateFormat(val PromptTemplateFormat)

SetTemplateFormat sets the value of TemplateFormat.

func (*PromptVersionData) SetTemplateType

func (s *PromptVersionData) SetTemplateType(val PromptTemplateType)

SetTemplateType sets the value of TemplateType.

func (*PromptVersionData) SetTools

func (s *PromptVersionData) SetTools(val OptPromptTools)

SetTools sets the value of Tools.

func (*PromptVersionData) UnmarshalJSON

func (s *PromptVersionData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptVersionData) Validate

func (s *PromptVersionData) Validate() error

type PromptVersionDataInvocationParameters

type PromptVersionDataInvocationParameters struct {
	Type                                  PromptVersionDataInvocationParametersType // switch on this field
	PromptOpenAIInvocationParameters      PromptOpenAIInvocationParameters
	PromptAzureOpenAIInvocationParameters PromptAzureOpenAIInvocationParameters
	PromptAnthropicInvocationParameters   PromptAnthropicInvocationParameters
	PromptGoogleInvocationParameters      PromptGoogleInvocationParameters
	PromptDeepSeekInvocationParameters    PromptDeepSeekInvocationParameters
	PromptXAIInvocationParameters         PromptXAIInvocationParameters
	PromptOllamaInvocationParameters      PromptOllamaInvocationParameters
	PromptAwsInvocationParameters         PromptAwsInvocationParameters
}

PromptVersionDataInvocationParameters represents sum type.

func NewPromptAnthropicInvocationParametersPromptVersionDataInvocationParameters

func NewPromptAnthropicInvocationParametersPromptVersionDataInvocationParameters(v PromptAnthropicInvocationParameters) PromptVersionDataInvocationParameters

NewPromptAnthropicInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptAnthropicInvocationParameters.

func NewPromptAwsInvocationParametersPromptVersionDataInvocationParameters

func NewPromptAwsInvocationParametersPromptVersionDataInvocationParameters(v PromptAwsInvocationParameters) PromptVersionDataInvocationParameters

NewPromptAwsInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptAwsInvocationParameters.

func NewPromptAzureOpenAIInvocationParametersPromptVersionDataInvocationParameters

func NewPromptAzureOpenAIInvocationParametersPromptVersionDataInvocationParameters(v PromptAzureOpenAIInvocationParameters) PromptVersionDataInvocationParameters

NewPromptAzureOpenAIInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptAzureOpenAIInvocationParameters.

func NewPromptDeepSeekInvocationParametersPromptVersionDataInvocationParameters

func NewPromptDeepSeekInvocationParametersPromptVersionDataInvocationParameters(v PromptDeepSeekInvocationParameters) PromptVersionDataInvocationParameters

NewPromptDeepSeekInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptDeepSeekInvocationParameters.

func NewPromptGoogleInvocationParametersPromptVersionDataInvocationParameters

func NewPromptGoogleInvocationParametersPromptVersionDataInvocationParameters(v PromptGoogleInvocationParameters) PromptVersionDataInvocationParameters

NewPromptGoogleInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptGoogleInvocationParameters.

func NewPromptOllamaInvocationParametersPromptVersionDataInvocationParameters

func NewPromptOllamaInvocationParametersPromptVersionDataInvocationParameters(v PromptOllamaInvocationParameters) PromptVersionDataInvocationParameters

NewPromptOllamaInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptOllamaInvocationParameters.

func NewPromptOpenAIInvocationParametersPromptVersionDataInvocationParameters

func NewPromptOpenAIInvocationParametersPromptVersionDataInvocationParameters(v PromptOpenAIInvocationParameters) PromptVersionDataInvocationParameters

NewPromptOpenAIInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptOpenAIInvocationParameters.

func NewPromptXAIInvocationParametersPromptVersionDataInvocationParameters

func NewPromptXAIInvocationParametersPromptVersionDataInvocationParameters(v PromptXAIInvocationParameters) PromptVersionDataInvocationParameters

NewPromptXAIInvocationParametersPromptVersionDataInvocationParameters returns new PromptVersionDataInvocationParameters from PromptXAIInvocationParameters.

func (*PromptVersionDataInvocationParameters) Decode

Decode decodes PromptVersionDataInvocationParameters from json.

func (PromptVersionDataInvocationParameters) Encode

Encode encodes PromptVersionDataInvocationParameters as json.

func (PromptVersionDataInvocationParameters) GetPromptAnthropicInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptAnthropicInvocationParameters() (v PromptAnthropicInvocationParameters, ok bool)

GetPromptAnthropicInvocationParameters returns PromptAnthropicInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptAnthropicInvocationParameters.

func (PromptVersionDataInvocationParameters) GetPromptAwsInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptAwsInvocationParameters() (v PromptAwsInvocationParameters, ok bool)

GetPromptAwsInvocationParameters returns PromptAwsInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptAwsInvocationParameters.

func (PromptVersionDataInvocationParameters) GetPromptAzureOpenAIInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptAzureOpenAIInvocationParameters() (v PromptAzureOpenAIInvocationParameters, ok bool)

GetPromptAzureOpenAIInvocationParameters returns PromptAzureOpenAIInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptAzureOpenAIInvocationParameters.

func (PromptVersionDataInvocationParameters) GetPromptDeepSeekInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptDeepSeekInvocationParameters() (v PromptDeepSeekInvocationParameters, ok bool)

GetPromptDeepSeekInvocationParameters returns PromptDeepSeekInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptDeepSeekInvocationParameters.

func (PromptVersionDataInvocationParameters) GetPromptGoogleInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptGoogleInvocationParameters() (v PromptGoogleInvocationParameters, ok bool)

GetPromptGoogleInvocationParameters returns PromptGoogleInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptGoogleInvocationParameters.

func (PromptVersionDataInvocationParameters) GetPromptOllamaInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptOllamaInvocationParameters() (v PromptOllamaInvocationParameters, ok bool)

GetPromptOllamaInvocationParameters returns PromptOllamaInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptOllamaInvocationParameters.

func (PromptVersionDataInvocationParameters) GetPromptOpenAIInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptOpenAIInvocationParameters() (v PromptOpenAIInvocationParameters, ok bool)

GetPromptOpenAIInvocationParameters returns PromptOpenAIInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptOpenAIInvocationParameters.

func (PromptVersionDataInvocationParameters) GetPromptXAIInvocationParameters

func (s PromptVersionDataInvocationParameters) GetPromptXAIInvocationParameters() (v PromptXAIInvocationParameters, ok bool)

GetPromptXAIInvocationParameters returns PromptXAIInvocationParameters and true boolean if PromptVersionDataInvocationParameters is PromptXAIInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptAnthropicInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptAnthropicInvocationParameters() bool

IsPromptAnthropicInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptAnthropicInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptAwsInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptAwsInvocationParameters() bool

IsPromptAwsInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptAwsInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptAzureOpenAIInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptAzureOpenAIInvocationParameters() bool

IsPromptAzureOpenAIInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptAzureOpenAIInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptDeepSeekInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptDeepSeekInvocationParameters() bool

IsPromptDeepSeekInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptDeepSeekInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptGoogleInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptGoogleInvocationParameters() bool

IsPromptGoogleInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptGoogleInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptOllamaInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptOllamaInvocationParameters() bool

IsPromptOllamaInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptOllamaInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptOpenAIInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptOpenAIInvocationParameters() bool

IsPromptOpenAIInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptOpenAIInvocationParameters.

func (PromptVersionDataInvocationParameters) IsPromptXAIInvocationParameters

func (s PromptVersionDataInvocationParameters) IsPromptXAIInvocationParameters() bool

IsPromptXAIInvocationParameters reports whether PromptVersionDataInvocationParameters is PromptXAIInvocationParameters.

func (PromptVersionDataInvocationParameters) MarshalJSON

func (s PromptVersionDataInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionDataInvocationParameters) SetPromptAnthropicInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptAnthropicInvocationParameters(v PromptAnthropicInvocationParameters)

SetPromptAnthropicInvocationParameters sets PromptVersionDataInvocationParameters to PromptAnthropicInvocationParameters.

func (*PromptVersionDataInvocationParameters) SetPromptAwsInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptAwsInvocationParameters(v PromptAwsInvocationParameters)

SetPromptAwsInvocationParameters sets PromptVersionDataInvocationParameters to PromptAwsInvocationParameters.

func (*PromptVersionDataInvocationParameters) SetPromptAzureOpenAIInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptAzureOpenAIInvocationParameters(v PromptAzureOpenAIInvocationParameters)

SetPromptAzureOpenAIInvocationParameters sets PromptVersionDataInvocationParameters to PromptAzureOpenAIInvocationParameters.

func (*PromptVersionDataInvocationParameters) SetPromptDeepSeekInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptDeepSeekInvocationParameters(v PromptDeepSeekInvocationParameters)

SetPromptDeepSeekInvocationParameters sets PromptVersionDataInvocationParameters to PromptDeepSeekInvocationParameters.

func (*PromptVersionDataInvocationParameters) SetPromptGoogleInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptGoogleInvocationParameters(v PromptGoogleInvocationParameters)

SetPromptGoogleInvocationParameters sets PromptVersionDataInvocationParameters to PromptGoogleInvocationParameters.

func (*PromptVersionDataInvocationParameters) SetPromptOllamaInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptOllamaInvocationParameters(v PromptOllamaInvocationParameters)

SetPromptOllamaInvocationParameters sets PromptVersionDataInvocationParameters to PromptOllamaInvocationParameters.

func (*PromptVersionDataInvocationParameters) SetPromptOpenAIInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptOpenAIInvocationParameters(v PromptOpenAIInvocationParameters)

SetPromptOpenAIInvocationParameters sets PromptVersionDataInvocationParameters to PromptOpenAIInvocationParameters.

func (*PromptVersionDataInvocationParameters) SetPromptXAIInvocationParameters

func (s *PromptVersionDataInvocationParameters) SetPromptXAIInvocationParameters(v PromptXAIInvocationParameters)

SetPromptXAIInvocationParameters sets PromptVersionDataInvocationParameters to PromptXAIInvocationParameters.

func (*PromptVersionDataInvocationParameters) UnmarshalJSON

func (s *PromptVersionDataInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptVersionDataInvocationParameters) Validate

type PromptVersionDataInvocationParametersType

type PromptVersionDataInvocationParametersType string

PromptVersionDataInvocationParametersType is oneOf type of PromptVersionDataInvocationParameters.

const (
	PromptOpenAIInvocationParametersPromptVersionDataInvocationParameters      PromptVersionDataInvocationParametersType = "openai"
	PromptAzureOpenAIInvocationParametersPromptVersionDataInvocationParameters PromptVersionDataInvocationParametersType = "azure_openai"
	PromptAnthropicInvocationParametersPromptVersionDataInvocationParameters   PromptVersionDataInvocationParametersType = "anthropic"
	PromptGoogleInvocationParametersPromptVersionDataInvocationParameters      PromptVersionDataInvocationParametersType = "google"
	PromptDeepSeekInvocationParametersPromptVersionDataInvocationParameters    PromptVersionDataInvocationParametersType = "deepseek"
	PromptXAIInvocationParametersPromptVersionDataInvocationParameters         PromptVersionDataInvocationParametersType = "xai"
	PromptOllamaInvocationParametersPromptVersionDataInvocationParameters      PromptVersionDataInvocationParametersType = "ollama"
	PromptAwsInvocationParametersPromptVersionDataInvocationParameters         PromptVersionDataInvocationParametersType = "aws"
)

Possible values for PromptVersionDataInvocationParametersType.

type PromptVersionDataResponseFormat

type PromptVersionDataResponseFormat struct {
	Type                           PromptVersionDataResponseFormatType // switch on this field
	PromptResponseFormatJSONSchema PromptResponseFormatJSONSchema
}

PromptVersionDataResponseFormat represents sum type.

func NewPromptResponseFormatJSONSchemaPromptVersionDataResponseFormat

func NewPromptResponseFormatJSONSchemaPromptVersionDataResponseFormat(v PromptResponseFormatJSONSchema) PromptVersionDataResponseFormat

NewPromptResponseFormatJSONSchemaPromptVersionDataResponseFormat returns new PromptVersionDataResponseFormat from PromptResponseFormatJSONSchema.

func (*PromptVersionDataResponseFormat) Decode

Decode decodes PromptVersionDataResponseFormat from json.

func (PromptVersionDataResponseFormat) Encode

Encode encodes PromptVersionDataResponseFormat as json.

func (PromptVersionDataResponseFormat) GetPromptResponseFormatJSONSchema

func (s PromptVersionDataResponseFormat) GetPromptResponseFormatJSONSchema() (v PromptResponseFormatJSONSchema, ok bool)

GetPromptResponseFormatJSONSchema returns PromptResponseFormatJSONSchema and true boolean if PromptVersionDataResponseFormat is PromptResponseFormatJSONSchema.

func (PromptVersionDataResponseFormat) IsPromptResponseFormatJSONSchema

func (s PromptVersionDataResponseFormat) IsPromptResponseFormatJSONSchema() bool

IsPromptResponseFormatJSONSchema reports whether PromptVersionDataResponseFormat is PromptResponseFormatJSONSchema.

func (PromptVersionDataResponseFormat) MarshalJSON

func (s PromptVersionDataResponseFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionDataResponseFormat) SetPromptResponseFormatJSONSchema

func (s *PromptVersionDataResponseFormat) SetPromptResponseFormatJSONSchema(v PromptResponseFormatJSONSchema)

SetPromptResponseFormatJSONSchema sets PromptVersionDataResponseFormat to PromptResponseFormatJSONSchema.

func (*PromptVersionDataResponseFormat) UnmarshalJSON

func (s *PromptVersionDataResponseFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptVersionDataResponseFormat) Validate

type PromptVersionDataResponseFormatType

type PromptVersionDataResponseFormatType string

PromptVersionDataResponseFormatType is oneOf type of PromptVersionDataResponseFormat.

const (
	PromptResponseFormatJSONSchemaPromptVersionDataResponseFormat PromptVersionDataResponseFormatType = "json_schema"
)

Possible values for PromptVersionDataResponseFormatType.

type PromptVersionDataTemplate

type PromptVersionDataTemplate struct {
	Type                 PromptVersionDataTemplateType // switch on this field
	PromptChatTemplate   PromptChatTemplate
	PromptStringTemplate PromptStringTemplate
}

PromptVersionDataTemplate represents sum type.

func NewPromptChatTemplatePromptVersionDataTemplate

func NewPromptChatTemplatePromptVersionDataTemplate(v PromptChatTemplate) PromptVersionDataTemplate

NewPromptChatTemplatePromptVersionDataTemplate returns new PromptVersionDataTemplate from PromptChatTemplate.

func NewPromptStringTemplatePromptVersionDataTemplate

func NewPromptStringTemplatePromptVersionDataTemplate(v PromptStringTemplate) PromptVersionDataTemplate

NewPromptStringTemplatePromptVersionDataTemplate returns new PromptVersionDataTemplate from PromptStringTemplate.

func (*PromptVersionDataTemplate) Decode

func (s *PromptVersionDataTemplate) Decode(d *jx.Decoder) error

Decode decodes PromptVersionDataTemplate from json.

func (PromptVersionDataTemplate) Encode

func (s PromptVersionDataTemplate) Encode(e *jx.Encoder)

Encode encodes PromptVersionDataTemplate as json.

func (PromptVersionDataTemplate) GetPromptChatTemplate

func (s PromptVersionDataTemplate) GetPromptChatTemplate() (v PromptChatTemplate, ok bool)

GetPromptChatTemplate returns PromptChatTemplate and true boolean if PromptVersionDataTemplate is PromptChatTemplate.

func (PromptVersionDataTemplate) GetPromptStringTemplate

func (s PromptVersionDataTemplate) GetPromptStringTemplate() (v PromptStringTemplate, ok bool)

GetPromptStringTemplate returns PromptStringTemplate and true boolean if PromptVersionDataTemplate is PromptStringTemplate.

func (PromptVersionDataTemplate) IsPromptChatTemplate

func (s PromptVersionDataTemplate) IsPromptChatTemplate() bool

IsPromptChatTemplate reports whether PromptVersionDataTemplate is PromptChatTemplate.

func (PromptVersionDataTemplate) IsPromptStringTemplate

func (s PromptVersionDataTemplate) IsPromptStringTemplate() bool

IsPromptStringTemplate reports whether PromptVersionDataTemplate is PromptStringTemplate.

func (PromptVersionDataTemplate) MarshalJSON

func (s PromptVersionDataTemplate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionDataTemplate) SetPromptChatTemplate

func (s *PromptVersionDataTemplate) SetPromptChatTemplate(v PromptChatTemplate)

SetPromptChatTemplate sets PromptVersionDataTemplate to PromptChatTemplate.

func (*PromptVersionDataTemplate) SetPromptStringTemplate

func (s *PromptVersionDataTemplate) SetPromptStringTemplate(v PromptStringTemplate)

SetPromptStringTemplate sets PromptVersionDataTemplate to PromptStringTemplate.

func (*PromptVersionDataTemplate) UnmarshalJSON

func (s *PromptVersionDataTemplate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptVersionDataTemplate) Validate

func (s PromptVersionDataTemplate) Validate() error

type PromptVersionDataTemplateType

type PromptVersionDataTemplateType string

PromptVersionDataTemplateType is oneOf type of PromptVersionDataTemplate.

const (
	PromptChatTemplatePromptVersionDataTemplate   PromptVersionDataTemplateType = "chat"
	PromptStringTemplatePromptVersionDataTemplate PromptVersionDataTemplateType = "string"
)

Possible values for PromptVersionDataTemplateType.

type PromptVersionInvocationParameters

type PromptVersionInvocationParameters struct {
	Type                                  PromptVersionInvocationParametersType // switch on this field
	PromptOpenAIInvocationParameters      PromptOpenAIInvocationParameters
	PromptAzureOpenAIInvocationParameters PromptAzureOpenAIInvocationParameters
	PromptAnthropicInvocationParameters   PromptAnthropicInvocationParameters
	PromptGoogleInvocationParameters      PromptGoogleInvocationParameters
	PromptDeepSeekInvocationParameters    PromptDeepSeekInvocationParameters
	PromptXAIInvocationParameters         PromptXAIInvocationParameters
	PromptOllamaInvocationParameters      PromptOllamaInvocationParameters
	PromptAwsInvocationParameters         PromptAwsInvocationParameters
}

PromptVersionInvocationParameters represents sum type.

func NewPromptAnthropicInvocationParametersPromptVersionInvocationParameters

func NewPromptAnthropicInvocationParametersPromptVersionInvocationParameters(v PromptAnthropicInvocationParameters) PromptVersionInvocationParameters

NewPromptAnthropicInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptAnthropicInvocationParameters.

func NewPromptAwsInvocationParametersPromptVersionInvocationParameters

func NewPromptAwsInvocationParametersPromptVersionInvocationParameters(v PromptAwsInvocationParameters) PromptVersionInvocationParameters

NewPromptAwsInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptAwsInvocationParameters.

func NewPromptAzureOpenAIInvocationParametersPromptVersionInvocationParameters

func NewPromptAzureOpenAIInvocationParametersPromptVersionInvocationParameters(v PromptAzureOpenAIInvocationParameters) PromptVersionInvocationParameters

NewPromptAzureOpenAIInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptAzureOpenAIInvocationParameters.

func NewPromptDeepSeekInvocationParametersPromptVersionInvocationParameters

func NewPromptDeepSeekInvocationParametersPromptVersionInvocationParameters(v PromptDeepSeekInvocationParameters) PromptVersionInvocationParameters

NewPromptDeepSeekInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptDeepSeekInvocationParameters.

func NewPromptGoogleInvocationParametersPromptVersionInvocationParameters

func NewPromptGoogleInvocationParametersPromptVersionInvocationParameters(v PromptGoogleInvocationParameters) PromptVersionInvocationParameters

NewPromptGoogleInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptGoogleInvocationParameters.

func NewPromptOllamaInvocationParametersPromptVersionInvocationParameters

func NewPromptOllamaInvocationParametersPromptVersionInvocationParameters(v PromptOllamaInvocationParameters) PromptVersionInvocationParameters

NewPromptOllamaInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptOllamaInvocationParameters.

func NewPromptOpenAIInvocationParametersPromptVersionInvocationParameters

func NewPromptOpenAIInvocationParametersPromptVersionInvocationParameters(v PromptOpenAIInvocationParameters) PromptVersionInvocationParameters

NewPromptOpenAIInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptOpenAIInvocationParameters.

func NewPromptXAIInvocationParametersPromptVersionInvocationParameters

func NewPromptXAIInvocationParametersPromptVersionInvocationParameters(v PromptXAIInvocationParameters) PromptVersionInvocationParameters

NewPromptXAIInvocationParametersPromptVersionInvocationParameters returns new PromptVersionInvocationParameters from PromptXAIInvocationParameters.

func (*PromptVersionInvocationParameters) Decode

Decode decodes PromptVersionInvocationParameters from json.

func (PromptVersionInvocationParameters) Encode

Encode encodes PromptVersionInvocationParameters as json.

func (PromptVersionInvocationParameters) GetPromptAnthropicInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptAnthropicInvocationParameters() (v PromptAnthropicInvocationParameters, ok bool)

GetPromptAnthropicInvocationParameters returns PromptAnthropicInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptAnthropicInvocationParameters.

func (PromptVersionInvocationParameters) GetPromptAwsInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptAwsInvocationParameters() (v PromptAwsInvocationParameters, ok bool)

GetPromptAwsInvocationParameters returns PromptAwsInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptAwsInvocationParameters.

func (PromptVersionInvocationParameters) GetPromptAzureOpenAIInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptAzureOpenAIInvocationParameters() (v PromptAzureOpenAIInvocationParameters, ok bool)

GetPromptAzureOpenAIInvocationParameters returns PromptAzureOpenAIInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptAzureOpenAIInvocationParameters.

func (PromptVersionInvocationParameters) GetPromptDeepSeekInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptDeepSeekInvocationParameters() (v PromptDeepSeekInvocationParameters, ok bool)

GetPromptDeepSeekInvocationParameters returns PromptDeepSeekInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptDeepSeekInvocationParameters.

func (PromptVersionInvocationParameters) GetPromptGoogleInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptGoogleInvocationParameters() (v PromptGoogleInvocationParameters, ok bool)

GetPromptGoogleInvocationParameters returns PromptGoogleInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptGoogleInvocationParameters.

func (PromptVersionInvocationParameters) GetPromptOllamaInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptOllamaInvocationParameters() (v PromptOllamaInvocationParameters, ok bool)

GetPromptOllamaInvocationParameters returns PromptOllamaInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptOllamaInvocationParameters.

func (PromptVersionInvocationParameters) GetPromptOpenAIInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptOpenAIInvocationParameters() (v PromptOpenAIInvocationParameters, ok bool)

GetPromptOpenAIInvocationParameters returns PromptOpenAIInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptOpenAIInvocationParameters.

func (PromptVersionInvocationParameters) GetPromptXAIInvocationParameters

func (s PromptVersionInvocationParameters) GetPromptXAIInvocationParameters() (v PromptXAIInvocationParameters, ok bool)

GetPromptXAIInvocationParameters returns PromptXAIInvocationParameters and true boolean if PromptVersionInvocationParameters is PromptXAIInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptAnthropicInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptAnthropicInvocationParameters() bool

IsPromptAnthropicInvocationParameters reports whether PromptVersionInvocationParameters is PromptAnthropicInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptAwsInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptAwsInvocationParameters() bool

IsPromptAwsInvocationParameters reports whether PromptVersionInvocationParameters is PromptAwsInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptAzureOpenAIInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptAzureOpenAIInvocationParameters() bool

IsPromptAzureOpenAIInvocationParameters reports whether PromptVersionInvocationParameters is PromptAzureOpenAIInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptDeepSeekInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptDeepSeekInvocationParameters() bool

IsPromptDeepSeekInvocationParameters reports whether PromptVersionInvocationParameters is PromptDeepSeekInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptGoogleInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptGoogleInvocationParameters() bool

IsPromptGoogleInvocationParameters reports whether PromptVersionInvocationParameters is PromptGoogleInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptOllamaInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptOllamaInvocationParameters() bool

IsPromptOllamaInvocationParameters reports whether PromptVersionInvocationParameters is PromptOllamaInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptOpenAIInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptOpenAIInvocationParameters() bool

IsPromptOpenAIInvocationParameters reports whether PromptVersionInvocationParameters is PromptOpenAIInvocationParameters.

func (PromptVersionInvocationParameters) IsPromptXAIInvocationParameters

func (s PromptVersionInvocationParameters) IsPromptXAIInvocationParameters() bool

IsPromptXAIInvocationParameters reports whether PromptVersionInvocationParameters is PromptXAIInvocationParameters.

func (PromptVersionInvocationParameters) MarshalJSON

func (s PromptVersionInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionInvocationParameters) SetPromptAnthropicInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptAnthropicInvocationParameters(v PromptAnthropicInvocationParameters)

SetPromptAnthropicInvocationParameters sets PromptVersionInvocationParameters to PromptAnthropicInvocationParameters.

func (*PromptVersionInvocationParameters) SetPromptAwsInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptAwsInvocationParameters(v PromptAwsInvocationParameters)

SetPromptAwsInvocationParameters sets PromptVersionInvocationParameters to PromptAwsInvocationParameters.

func (*PromptVersionInvocationParameters) SetPromptAzureOpenAIInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptAzureOpenAIInvocationParameters(v PromptAzureOpenAIInvocationParameters)

SetPromptAzureOpenAIInvocationParameters sets PromptVersionInvocationParameters to PromptAzureOpenAIInvocationParameters.

func (*PromptVersionInvocationParameters) SetPromptDeepSeekInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptDeepSeekInvocationParameters(v PromptDeepSeekInvocationParameters)

SetPromptDeepSeekInvocationParameters sets PromptVersionInvocationParameters to PromptDeepSeekInvocationParameters.

func (*PromptVersionInvocationParameters) SetPromptGoogleInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptGoogleInvocationParameters(v PromptGoogleInvocationParameters)

SetPromptGoogleInvocationParameters sets PromptVersionInvocationParameters to PromptGoogleInvocationParameters.

func (*PromptVersionInvocationParameters) SetPromptOllamaInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptOllamaInvocationParameters(v PromptOllamaInvocationParameters)

SetPromptOllamaInvocationParameters sets PromptVersionInvocationParameters to PromptOllamaInvocationParameters.

func (*PromptVersionInvocationParameters) SetPromptOpenAIInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptOpenAIInvocationParameters(v PromptOpenAIInvocationParameters)

SetPromptOpenAIInvocationParameters sets PromptVersionInvocationParameters to PromptOpenAIInvocationParameters.

func (*PromptVersionInvocationParameters) SetPromptXAIInvocationParameters

func (s *PromptVersionInvocationParameters) SetPromptXAIInvocationParameters(v PromptXAIInvocationParameters)

SetPromptXAIInvocationParameters sets PromptVersionInvocationParameters to PromptXAIInvocationParameters.

func (*PromptVersionInvocationParameters) UnmarshalJSON

func (s *PromptVersionInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptVersionInvocationParameters) Validate

type PromptVersionInvocationParametersType

type PromptVersionInvocationParametersType string

PromptVersionInvocationParametersType is oneOf type of PromptVersionInvocationParameters.

const (
	PromptOpenAIInvocationParametersPromptVersionInvocationParameters      PromptVersionInvocationParametersType = "openai"
	PromptAzureOpenAIInvocationParametersPromptVersionInvocationParameters PromptVersionInvocationParametersType = "azure_openai"
	PromptAnthropicInvocationParametersPromptVersionInvocationParameters   PromptVersionInvocationParametersType = "anthropic"
	PromptGoogleInvocationParametersPromptVersionInvocationParameters      PromptVersionInvocationParametersType = "google"
	PromptDeepSeekInvocationParametersPromptVersionInvocationParameters    PromptVersionInvocationParametersType = "deepseek"
	PromptXAIInvocationParametersPromptVersionInvocationParameters         PromptVersionInvocationParametersType = "xai"
	PromptOllamaInvocationParametersPromptVersionInvocationParameters      PromptVersionInvocationParametersType = "ollama"
	PromptAwsInvocationParametersPromptVersionInvocationParameters         PromptVersionInvocationParametersType = "aws"
)

Possible values for PromptVersionInvocationParametersType.

type PromptVersionResponseFormat

type PromptVersionResponseFormat struct {
	Type                           PromptVersionResponseFormatType // switch on this field
	PromptResponseFormatJSONSchema PromptResponseFormatJSONSchema
}

PromptVersionResponseFormat represents sum type.

func NewPromptResponseFormatJSONSchemaPromptVersionResponseFormat

func NewPromptResponseFormatJSONSchemaPromptVersionResponseFormat(v PromptResponseFormatJSONSchema) PromptVersionResponseFormat

NewPromptResponseFormatJSONSchemaPromptVersionResponseFormat returns new PromptVersionResponseFormat from PromptResponseFormatJSONSchema.

func (*PromptVersionResponseFormat) Decode

Decode decodes PromptVersionResponseFormat from json.

func (PromptVersionResponseFormat) Encode

func (s PromptVersionResponseFormat) Encode(e *jx.Encoder)

Encode encodes PromptVersionResponseFormat as json.

func (PromptVersionResponseFormat) GetPromptResponseFormatJSONSchema

func (s PromptVersionResponseFormat) GetPromptResponseFormatJSONSchema() (v PromptResponseFormatJSONSchema, ok bool)

GetPromptResponseFormatJSONSchema returns PromptResponseFormatJSONSchema and true boolean if PromptVersionResponseFormat is PromptResponseFormatJSONSchema.

func (PromptVersionResponseFormat) IsPromptResponseFormatJSONSchema

func (s PromptVersionResponseFormat) IsPromptResponseFormatJSONSchema() bool

IsPromptResponseFormatJSONSchema reports whether PromptVersionResponseFormat is PromptResponseFormatJSONSchema.

func (PromptVersionResponseFormat) MarshalJSON

func (s PromptVersionResponseFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionResponseFormat) SetPromptResponseFormatJSONSchema

func (s *PromptVersionResponseFormat) SetPromptResponseFormatJSONSchema(v PromptResponseFormatJSONSchema)

SetPromptResponseFormatJSONSchema sets PromptVersionResponseFormat to PromptResponseFormatJSONSchema.

func (*PromptVersionResponseFormat) UnmarshalJSON

func (s *PromptVersionResponseFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptVersionResponseFormat) Validate

func (s PromptVersionResponseFormat) Validate() error

type PromptVersionResponseFormatType

type PromptVersionResponseFormatType string

PromptVersionResponseFormatType is oneOf type of PromptVersionResponseFormat.

const (
	PromptResponseFormatJSONSchemaPromptVersionResponseFormat PromptVersionResponseFormatType = "json_schema"
)

Possible values for PromptVersionResponseFormatType.

type PromptVersionTag

type PromptVersionTag struct {
	Description OptNilString `json:"description"`
	ID          string       `json:"id"`
	Name        Identifier   `json:"name"`
}

Ref: #/components/schemas/PromptVersionTag

func (*PromptVersionTag) Decode

func (s *PromptVersionTag) Decode(d *jx.Decoder) error

Decode decodes PromptVersionTag from json.

func (*PromptVersionTag) Encode

func (s *PromptVersionTag) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptVersionTag) GetDescription

func (s *PromptVersionTag) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*PromptVersionTag) GetID

func (s *PromptVersionTag) GetID() string

GetID returns the value of ID.

func (*PromptVersionTag) GetName

func (s *PromptVersionTag) GetName() Identifier

GetName returns the value of Name.

func (*PromptVersionTag) MarshalJSON

func (s *PromptVersionTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionTag) SetDescription

func (s *PromptVersionTag) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*PromptVersionTag) SetID

func (s *PromptVersionTag) SetID(val string)

SetID sets the value of ID.

func (*PromptVersionTag) SetName

func (s *PromptVersionTag) SetName(val Identifier)

SetName sets the value of Name.

func (*PromptVersionTag) UnmarshalJSON

func (s *PromptVersionTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptVersionTag) Validate

func (s *PromptVersionTag) Validate() error

type PromptVersionTagData

type PromptVersionTagData struct {
	Description OptNilString `json:"description"`
	Name        Identifier   `json:"name"`
}

Ref: #/components/schemas/PromptVersionTagData

func (*PromptVersionTagData) Decode

func (s *PromptVersionTagData) Decode(d *jx.Decoder) error

Decode decodes PromptVersionTagData from json.

func (*PromptVersionTagData) Encode

func (s *PromptVersionTagData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptVersionTagData) GetDescription

func (s *PromptVersionTagData) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*PromptVersionTagData) GetName

func (s *PromptVersionTagData) GetName() Identifier

GetName returns the value of Name.

func (*PromptVersionTagData) MarshalJSON

func (s *PromptVersionTagData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionTagData) SetDescription

func (s *PromptVersionTagData) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*PromptVersionTagData) SetName

func (s *PromptVersionTagData) SetName(val Identifier)

SetName sets the value of Name.

func (*PromptVersionTagData) UnmarshalJSON

func (s *PromptVersionTagData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptVersionTagData) Validate

func (s *PromptVersionTagData) Validate() error

type PromptVersionTemplate

type PromptVersionTemplate struct {
	Type                 PromptVersionTemplateType // switch on this field
	PromptChatTemplate   PromptChatTemplate
	PromptStringTemplate PromptStringTemplate
}

PromptVersionTemplate represents sum type.

func NewPromptChatTemplatePromptVersionTemplate

func NewPromptChatTemplatePromptVersionTemplate(v PromptChatTemplate) PromptVersionTemplate

NewPromptChatTemplatePromptVersionTemplate returns new PromptVersionTemplate from PromptChatTemplate.

func NewPromptStringTemplatePromptVersionTemplate

func NewPromptStringTemplatePromptVersionTemplate(v PromptStringTemplate) PromptVersionTemplate

NewPromptStringTemplatePromptVersionTemplate returns new PromptVersionTemplate from PromptStringTemplate.

func (*PromptVersionTemplate) Decode

func (s *PromptVersionTemplate) Decode(d *jx.Decoder) error

Decode decodes PromptVersionTemplate from json.

func (PromptVersionTemplate) Encode

func (s PromptVersionTemplate) Encode(e *jx.Encoder)

Encode encodes PromptVersionTemplate as json.

func (PromptVersionTemplate) GetPromptChatTemplate

func (s PromptVersionTemplate) GetPromptChatTemplate() (v PromptChatTemplate, ok bool)

GetPromptChatTemplate returns PromptChatTemplate and true boolean if PromptVersionTemplate is PromptChatTemplate.

func (PromptVersionTemplate) GetPromptStringTemplate

func (s PromptVersionTemplate) GetPromptStringTemplate() (v PromptStringTemplate, ok bool)

GetPromptStringTemplate returns PromptStringTemplate and true boolean if PromptVersionTemplate is PromptStringTemplate.

func (PromptVersionTemplate) IsPromptChatTemplate

func (s PromptVersionTemplate) IsPromptChatTemplate() bool

IsPromptChatTemplate reports whether PromptVersionTemplate is PromptChatTemplate.

func (PromptVersionTemplate) IsPromptStringTemplate

func (s PromptVersionTemplate) IsPromptStringTemplate() bool

IsPromptStringTemplate reports whether PromptVersionTemplate is PromptStringTemplate.

func (PromptVersionTemplate) MarshalJSON

func (s PromptVersionTemplate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptVersionTemplate) SetPromptChatTemplate

func (s *PromptVersionTemplate) SetPromptChatTemplate(v PromptChatTemplate)

SetPromptChatTemplate sets PromptVersionTemplate to PromptChatTemplate.

func (*PromptVersionTemplate) SetPromptStringTemplate

func (s *PromptVersionTemplate) SetPromptStringTemplate(v PromptStringTemplate)

SetPromptStringTemplate sets PromptVersionTemplate to PromptStringTemplate.

func (*PromptVersionTemplate) UnmarshalJSON

func (s *PromptVersionTemplate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PromptVersionTemplate) Validate

func (s PromptVersionTemplate) Validate() error

type PromptVersionTemplateType

type PromptVersionTemplateType string

PromptVersionTemplateType is oneOf type of PromptVersionTemplate.

const (
	PromptChatTemplatePromptVersionTemplate   PromptVersionTemplateType = "chat"
	PromptStringTemplatePromptVersionTemplate PromptVersionTemplateType = "string"
)

Possible values for PromptVersionTemplateType.

type PromptXAIInvocationParameters

type PromptXAIInvocationParameters struct {
	Type PromptXAIInvocationParametersType    `json:"type"`
	Xai  PromptXAIInvocationParametersContent `json:"xai"`
}

Ref: #/components/schemas/PromptXAIInvocationParameters

func (*PromptXAIInvocationParameters) Decode

Decode decodes PromptXAIInvocationParameters from json.

func (*PromptXAIInvocationParameters) Encode

Encode implements json.Marshaler.

func (*PromptXAIInvocationParameters) GetType

GetType returns the value of Type.

func (*PromptXAIInvocationParameters) GetXai

GetXai returns the value of Xai.

func (*PromptXAIInvocationParameters) MarshalJSON

func (s *PromptXAIInvocationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptXAIInvocationParameters) SetType

SetType sets the value of Type.

func (*PromptXAIInvocationParameters) SetXai

SetXai sets the value of Xai.

func (*PromptXAIInvocationParameters) UnmarshalJSON

func (s *PromptXAIInvocationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptXAIInvocationParameters) Validate

func (s *PromptXAIInvocationParameters) Validate() error

type PromptXAIInvocationParametersContent

type PromptXAIInvocationParametersContent struct {
	FrequencyPenalty    OptFloat64                                             `json:"frequency_penalty"`
	MaxCompletionTokens OptInt                                                 `json:"max_completion_tokens"`
	MaxTokens           OptInt                                                 `json:"max_tokens"`
	PresencePenalty     OptFloat64                                             `json:"presence_penalty"`
	ReasoningEffort     OptPromptXAIInvocationParametersContentReasoningEffort `json:"reasoning_effort"`
	Seed                OptInt                                                 `json:"seed"`
	Temperature         OptFloat64                                             `json:"temperature"`
	TopP                OptFloat64                                             `json:"top_p"`
}

Ref: #/components/schemas/PromptXAIInvocationParametersContent

func (*PromptXAIInvocationParametersContent) Decode

Decode decodes PromptXAIInvocationParametersContent from json.

func (*PromptXAIInvocationParametersContent) Encode

Encode implements json.Marshaler.

func (*PromptXAIInvocationParametersContent) GetFrequencyPenalty

func (s *PromptXAIInvocationParametersContent) GetFrequencyPenalty() OptFloat64

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*PromptXAIInvocationParametersContent) GetMaxCompletionTokens

func (s *PromptXAIInvocationParametersContent) GetMaxCompletionTokens() OptInt

GetMaxCompletionTokens returns the value of MaxCompletionTokens.

func (*PromptXAIInvocationParametersContent) GetMaxTokens

func (s *PromptXAIInvocationParametersContent) GetMaxTokens() OptInt

GetMaxTokens returns the value of MaxTokens.

func (*PromptXAIInvocationParametersContent) GetPresencePenalty

func (s *PromptXAIInvocationParametersContent) GetPresencePenalty() OptFloat64

GetPresencePenalty returns the value of PresencePenalty.

func (*PromptXAIInvocationParametersContent) GetReasoningEffort

GetReasoningEffort returns the value of ReasoningEffort.

func (*PromptXAIInvocationParametersContent) GetSeed

GetSeed returns the value of Seed.

func (*PromptXAIInvocationParametersContent) GetTemperature

GetTemperature returns the value of Temperature.

func (*PromptXAIInvocationParametersContent) GetTopP

GetTopP returns the value of TopP.

func (*PromptXAIInvocationParametersContent) MarshalJSON

func (s *PromptXAIInvocationParametersContent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptXAIInvocationParametersContent) SetFrequencyPenalty

func (s *PromptXAIInvocationParametersContent) SetFrequencyPenalty(val OptFloat64)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*PromptXAIInvocationParametersContent) SetMaxCompletionTokens

func (s *PromptXAIInvocationParametersContent) SetMaxCompletionTokens(val OptInt)

SetMaxCompletionTokens sets the value of MaxCompletionTokens.

func (*PromptXAIInvocationParametersContent) SetMaxTokens

func (s *PromptXAIInvocationParametersContent) SetMaxTokens(val OptInt)

SetMaxTokens sets the value of MaxTokens.

func (*PromptXAIInvocationParametersContent) SetPresencePenalty

func (s *PromptXAIInvocationParametersContent) SetPresencePenalty(val OptFloat64)

SetPresencePenalty sets the value of PresencePenalty.

func (*PromptXAIInvocationParametersContent) SetReasoningEffort

SetReasoningEffort sets the value of ReasoningEffort.

func (*PromptXAIInvocationParametersContent) SetSeed

SetSeed sets the value of Seed.

func (*PromptXAIInvocationParametersContent) SetTemperature

func (s *PromptXAIInvocationParametersContent) SetTemperature(val OptFloat64)

SetTemperature sets the value of Temperature.

func (*PromptXAIInvocationParametersContent) SetTopP

SetTopP sets the value of TopP.

func (*PromptXAIInvocationParametersContent) UnmarshalJSON

func (s *PromptXAIInvocationParametersContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptXAIInvocationParametersContent) Validate

type PromptXAIInvocationParametersContentReasoningEffort

type PromptXAIInvocationParametersContentReasoningEffort string
const (
	PromptXAIInvocationParametersContentReasoningEffortNone    PromptXAIInvocationParametersContentReasoningEffort = "none"
	PromptXAIInvocationParametersContentReasoningEffortMinimal PromptXAIInvocationParametersContentReasoningEffort = "minimal"
	PromptXAIInvocationParametersContentReasoningEffortLow     PromptXAIInvocationParametersContentReasoningEffort = "low"
	PromptXAIInvocationParametersContentReasoningEffortMedium  PromptXAIInvocationParametersContentReasoningEffort = "medium"
	PromptXAIInvocationParametersContentReasoningEffortHigh    PromptXAIInvocationParametersContentReasoningEffort = "high"
	PromptXAIInvocationParametersContentReasoningEffortXhigh   PromptXAIInvocationParametersContentReasoningEffort = "xhigh"
)

func (PromptXAIInvocationParametersContentReasoningEffort) AllValues

AllValues returns all PromptXAIInvocationParametersContentReasoningEffort values.

func (*PromptXAIInvocationParametersContentReasoningEffort) Decode

Decode decodes PromptXAIInvocationParametersContentReasoningEffort from json.

func (PromptXAIInvocationParametersContentReasoningEffort) Encode

Encode encodes PromptXAIInvocationParametersContentReasoningEffort as json.

func (PromptXAIInvocationParametersContentReasoningEffort) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PromptXAIInvocationParametersContentReasoningEffort) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PromptXAIInvocationParametersContentReasoningEffort) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptXAIInvocationParametersContentReasoningEffort) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptXAIInvocationParametersContentReasoningEffort) Validate

type PromptXAIInvocationParametersType

type PromptXAIInvocationParametersType string
const (
	PromptXAIInvocationParametersTypeXai PromptXAIInvocationParametersType = "xai"
)

func (PromptXAIInvocationParametersType) AllValues

AllValues returns all PromptXAIInvocationParametersType values.

func (*PromptXAIInvocationParametersType) Decode

Decode decodes PromptXAIInvocationParametersType from json.

func (PromptXAIInvocationParametersType) Encode

Encode encodes PromptXAIInvocationParametersType as json.

func (PromptXAIInvocationParametersType) MarshalJSON

func (s PromptXAIInvocationParametersType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptXAIInvocationParametersType) MarshalText

func (s PromptXAIInvocationParametersType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptXAIInvocationParametersType) UnmarshalJSON

func (s *PromptXAIInvocationParametersType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptXAIInvocationParametersType) UnmarshalText

func (s *PromptXAIInvocationParametersType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptXAIInvocationParametersType) Validate

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationGroup

func (r Route) OperationGroup() string

OperationGroup returns the x-ogen-operation-group value.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type SessionAnnotation

type SessionAnnotation struct {
	// The kind of annotator used for the annotation.
	AnnotatorKind SessionAnnotationAnnotatorKind `json:"annotator_kind"`
	CreatedAt     time.Time                      `json:"created_at"`
	ID            string                         `json:"id"`
	// The identifier of the annotation. If provided, the annotation will be updated if it already exists.
	Identifier OptString `json:"identifier"`
	// Metadata for the annotation.
	Metadata OptNilSessionAnnotationMetadata `json:"metadata"`
	// The name of the annotation.
	Name string `json:"name"`
	// The result of the annotation.
	Result OptAnnotationResult `json:"result"`
	// Session ID.
	SessionID string                  `json:"session_id"`
	Source    SessionAnnotationSource `json:"source"`
	UpdatedAt time.Time               `json:"updated_at"`
	UserID    NilString               `json:"user_id"`
}

Ref: #/components/schemas/SessionAnnotation

func (*SessionAnnotation) Decode

func (s *SessionAnnotation) Decode(d *jx.Decoder) error

Decode decodes SessionAnnotation from json.

func (*SessionAnnotation) Encode

func (s *SessionAnnotation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionAnnotation) GetAnnotatorKind

func (s *SessionAnnotation) GetAnnotatorKind() SessionAnnotationAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*SessionAnnotation) GetCreatedAt

func (s *SessionAnnotation) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*SessionAnnotation) GetID

func (s *SessionAnnotation) GetID() string

GetID returns the value of ID.

func (*SessionAnnotation) GetIdentifier

func (s *SessionAnnotation) GetIdentifier() OptString

GetIdentifier returns the value of Identifier.

func (*SessionAnnotation) GetMetadata

GetMetadata returns the value of Metadata.

func (*SessionAnnotation) GetName

func (s *SessionAnnotation) GetName() string

GetName returns the value of Name.

func (*SessionAnnotation) GetResult

func (s *SessionAnnotation) GetResult() OptAnnotationResult

GetResult returns the value of Result.

func (*SessionAnnotation) GetSessionID

func (s *SessionAnnotation) GetSessionID() string

GetSessionID returns the value of SessionID.

func (*SessionAnnotation) GetSource

GetSource returns the value of Source.

func (*SessionAnnotation) GetUpdatedAt

func (s *SessionAnnotation) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*SessionAnnotation) GetUserID

func (s *SessionAnnotation) GetUserID() NilString

GetUserID returns the value of UserID.

func (*SessionAnnotation) MarshalJSON

func (s *SessionAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionAnnotation) SetAnnotatorKind

func (s *SessionAnnotation) SetAnnotatorKind(val SessionAnnotationAnnotatorKind)

SetAnnotatorKind sets the value of AnnotatorKind.

func (*SessionAnnotation) SetCreatedAt

func (s *SessionAnnotation) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*SessionAnnotation) SetID

func (s *SessionAnnotation) SetID(val string)

SetID sets the value of ID.

func (*SessionAnnotation) SetIdentifier

func (s *SessionAnnotation) SetIdentifier(val OptString)

SetIdentifier sets the value of Identifier.

func (*SessionAnnotation) SetMetadata

SetMetadata sets the value of Metadata.

func (*SessionAnnotation) SetName

func (s *SessionAnnotation) SetName(val string)

SetName sets the value of Name.

func (*SessionAnnotation) SetResult

func (s *SessionAnnotation) SetResult(val OptAnnotationResult)

SetResult sets the value of Result.

func (*SessionAnnotation) SetSessionID

func (s *SessionAnnotation) SetSessionID(val string)

SetSessionID sets the value of SessionID.

func (*SessionAnnotation) SetSource

func (s *SessionAnnotation) SetSource(val SessionAnnotationSource)

SetSource sets the value of Source.

func (*SessionAnnotation) SetUpdatedAt

func (s *SessionAnnotation) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*SessionAnnotation) SetUserID

func (s *SessionAnnotation) SetUserID(val NilString)

SetUserID sets the value of UserID.

func (*SessionAnnotation) UnmarshalJSON

func (s *SessionAnnotation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionAnnotation) Validate

func (s *SessionAnnotation) Validate() error

type SessionAnnotationAnnotatorKind

type SessionAnnotationAnnotatorKind string

The kind of annotator used for the annotation.

const (
	SessionAnnotationAnnotatorKindLLM   SessionAnnotationAnnotatorKind = "LLM"
	SessionAnnotationAnnotatorKindCODE  SessionAnnotationAnnotatorKind = "CODE"
	SessionAnnotationAnnotatorKindHUMAN SessionAnnotationAnnotatorKind = "HUMAN"
)

func (SessionAnnotationAnnotatorKind) AllValues

AllValues returns all SessionAnnotationAnnotatorKind values.

func (*SessionAnnotationAnnotatorKind) Decode

Decode decodes SessionAnnotationAnnotatorKind from json.

func (SessionAnnotationAnnotatorKind) Encode

Encode encodes SessionAnnotationAnnotatorKind as json.

func (SessionAnnotationAnnotatorKind) MarshalJSON

func (s SessionAnnotationAnnotatorKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SessionAnnotationAnnotatorKind) MarshalText

func (s SessionAnnotationAnnotatorKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SessionAnnotationAnnotatorKind) UnmarshalJSON

func (s *SessionAnnotationAnnotatorKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionAnnotationAnnotatorKind) UnmarshalText

func (s *SessionAnnotationAnnotatorKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SessionAnnotationAnnotatorKind) Validate

type SessionAnnotationData

type SessionAnnotationData struct {
	// The kind of annotator used for the annotation.
	AnnotatorKind SessionAnnotationDataAnnotatorKind `json:"annotator_kind"`
	// The identifier of the annotation. If provided, the annotation will be updated if it already exists.
	Identifier OptString `json:"identifier"`
	// Metadata for the annotation.
	Metadata OptNilSessionAnnotationDataMetadata `json:"metadata"`
	// The name of the annotation.
	Name string `json:"name"`
	// The result of the annotation.
	Result OptAnnotationResult `json:"result"`
	// Session ID.
	SessionID string `json:"session_id"`
}

Ref: #/components/schemas/SessionAnnotationData

func (*SessionAnnotationData) Decode

func (s *SessionAnnotationData) Decode(d *jx.Decoder) error

Decode decodes SessionAnnotationData from json.

func (*SessionAnnotationData) Encode

func (s *SessionAnnotationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionAnnotationData) GetAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*SessionAnnotationData) GetIdentifier

func (s *SessionAnnotationData) GetIdentifier() OptString

GetIdentifier returns the value of Identifier.

func (*SessionAnnotationData) GetMetadata

GetMetadata returns the value of Metadata.

func (*SessionAnnotationData) GetName

func (s *SessionAnnotationData) GetName() string

GetName returns the value of Name.

func (*SessionAnnotationData) GetResult

GetResult returns the value of Result.

func (*SessionAnnotationData) GetSessionID

func (s *SessionAnnotationData) GetSessionID() string

GetSessionID returns the value of SessionID.

func (*SessionAnnotationData) MarshalJSON

func (s *SessionAnnotationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionAnnotationData) SetAnnotatorKind

SetAnnotatorKind sets the value of AnnotatorKind.

func (*SessionAnnotationData) SetIdentifier

func (s *SessionAnnotationData) SetIdentifier(val OptString)

SetIdentifier sets the value of Identifier.

func (*SessionAnnotationData) SetMetadata

SetMetadata sets the value of Metadata.

func (*SessionAnnotationData) SetName

func (s *SessionAnnotationData) SetName(val string)

SetName sets the value of Name.

func (*SessionAnnotationData) SetResult

func (s *SessionAnnotationData) SetResult(val OptAnnotationResult)

SetResult sets the value of Result.

func (*SessionAnnotationData) SetSessionID

func (s *SessionAnnotationData) SetSessionID(val string)

SetSessionID sets the value of SessionID.

func (*SessionAnnotationData) UnmarshalJSON

func (s *SessionAnnotationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionAnnotationData) Validate

func (s *SessionAnnotationData) Validate() error

type SessionAnnotationDataAnnotatorKind

type SessionAnnotationDataAnnotatorKind string

The kind of annotator used for the annotation.

const (
	SessionAnnotationDataAnnotatorKindLLM   SessionAnnotationDataAnnotatorKind = "LLM"
	SessionAnnotationDataAnnotatorKindCODE  SessionAnnotationDataAnnotatorKind = "CODE"
	SessionAnnotationDataAnnotatorKindHUMAN SessionAnnotationDataAnnotatorKind = "HUMAN"
)

func (SessionAnnotationDataAnnotatorKind) AllValues

AllValues returns all SessionAnnotationDataAnnotatorKind values.

func (*SessionAnnotationDataAnnotatorKind) Decode

Decode decodes SessionAnnotationDataAnnotatorKind from json.

func (SessionAnnotationDataAnnotatorKind) Encode

Encode encodes SessionAnnotationDataAnnotatorKind as json.

func (SessionAnnotationDataAnnotatorKind) MarshalJSON

func (s SessionAnnotationDataAnnotatorKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SessionAnnotationDataAnnotatorKind) MarshalText

func (s SessionAnnotationDataAnnotatorKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SessionAnnotationDataAnnotatorKind) UnmarshalJSON

func (s *SessionAnnotationDataAnnotatorKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionAnnotationDataAnnotatorKind) UnmarshalText

func (s *SessionAnnotationDataAnnotatorKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SessionAnnotationDataAnnotatorKind) Validate

type SessionAnnotationDataMetadata

type SessionAnnotationDataMetadata map[string]jx.Raw

Metadata for the annotation.

func (*SessionAnnotationDataMetadata) Decode

Decode decodes SessionAnnotationDataMetadata from json.

func (SessionAnnotationDataMetadata) Encode

Encode implements json.Marshaler.

func (SessionAnnotationDataMetadata) MarshalJSON

func (s SessionAnnotationDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionAnnotationDataMetadata) UnmarshalJSON

func (s *SessionAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionAnnotationMetadata

type SessionAnnotationMetadata map[string]jx.Raw

Metadata for the annotation.

func (*SessionAnnotationMetadata) Decode

func (s *SessionAnnotationMetadata) Decode(d *jx.Decoder) error

Decode decodes SessionAnnotationMetadata from json.

func (SessionAnnotationMetadata) Encode

func (s SessionAnnotationMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SessionAnnotationMetadata) MarshalJSON

func (s SessionAnnotationMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionAnnotationMetadata) UnmarshalJSON

func (s *SessionAnnotationMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionAnnotationSource

type SessionAnnotationSource string
const (
	SessionAnnotationSourceAPI SessionAnnotationSource = "API"
	SessionAnnotationSourceAPP SessionAnnotationSource = "APP"
)

func (SessionAnnotationSource) AllValues

AllValues returns all SessionAnnotationSource values.

func (*SessionAnnotationSource) Decode

func (s *SessionAnnotationSource) Decode(d *jx.Decoder) error

Decode decodes SessionAnnotationSource from json.

func (SessionAnnotationSource) Encode

func (s SessionAnnotationSource) Encode(e *jx.Encoder)

Encode encodes SessionAnnotationSource as json.

func (SessionAnnotationSource) MarshalJSON

func (s SessionAnnotationSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SessionAnnotationSource) MarshalText

func (s SessionAnnotationSource) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SessionAnnotationSource) UnmarshalJSON

func (s *SessionAnnotationSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionAnnotationSource) UnmarshalText

func (s *SessionAnnotationSource) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SessionAnnotationSource) Validate

func (s SessionAnnotationSource) Validate() error

type SessionAnnotationsResponseBody

type SessionAnnotationsResponseBody struct {
	Data       []SessionAnnotation `json:"data"`
	NextCursor NilString           `json:"next_cursor"`
}

Ref: #/components/schemas/SessionAnnotationsResponseBody

func (*SessionAnnotationsResponseBody) Decode

Decode decodes SessionAnnotationsResponseBody from json.

func (*SessionAnnotationsResponseBody) Encode

Encode implements json.Marshaler.

func (*SessionAnnotationsResponseBody) GetData

GetData returns the value of Data.

func (*SessionAnnotationsResponseBody) GetNextCursor

func (s *SessionAnnotationsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*SessionAnnotationsResponseBody) MarshalJSON

func (s *SessionAnnotationsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionAnnotationsResponseBody) SetData

SetData sets the value of Data.

func (*SessionAnnotationsResponseBody) SetNextCursor

func (s *SessionAnnotationsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*SessionAnnotationsResponseBody) UnmarshalJSON

func (s *SessionAnnotationsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionAnnotationsResponseBody) Validate

func (s *SessionAnnotationsResponseBody) Validate() error

type Span

type Span struct {
	// Span attributes.
	Attributes OptSpanAttributes `json:"attributes"`
	// Span context containing trace_id and span_id.
	Context SpanContext `json:"context"`
	// End time of the span.
	EndTime time.Time `json:"end_time"`
	// Span events.
	Events []SpanEvent `json:"events"`
	// Span Global ID, distinct from the OpenTelemetry span ID.
	ID OptString `json:"id"`
	// Name of the span operation.
	Name string `json:"name"`
	// OpenTelemetry span ID of the parent span.
	ParentID OptNilString `json:"parent_id"`
	// Type of work that the span encapsulates.
	SpanKind string `json:"span_kind"`
	// Start time of the span.
	StartTime time.Time `json:"start_time"`
	// Status code of the span.
	StatusCode string `json:"status_code"`
	// Status message.
	StatusMessage OptString `json:"status_message"`
}

Ref: #/components/schemas/Span

func (*Span) Decode

func (s *Span) Decode(d *jx.Decoder) error

Decode decodes Span from json.

func (*Span) Encode

func (s *Span) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Span) GetAttributes

func (s *Span) GetAttributes() OptSpanAttributes

GetAttributes returns the value of Attributes.

func (*Span) GetContext

func (s *Span) GetContext() SpanContext

GetContext returns the value of Context.

func (*Span) GetEndTime

func (s *Span) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*Span) GetEvents

func (s *Span) GetEvents() []SpanEvent

GetEvents returns the value of Events.

func (*Span) GetID

func (s *Span) GetID() OptString

GetID returns the value of ID.

func (*Span) GetName

func (s *Span) GetName() string

GetName returns the value of Name.

func (*Span) GetParentID

func (s *Span) GetParentID() OptNilString

GetParentID returns the value of ParentID.

func (*Span) GetSpanKind

func (s *Span) GetSpanKind() string

GetSpanKind returns the value of SpanKind.

func (*Span) GetStartTime

func (s *Span) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*Span) GetStatusCode

func (s *Span) GetStatusCode() string

GetStatusCode returns the value of StatusCode.

func (*Span) GetStatusMessage

func (s *Span) GetStatusMessage() OptString

GetStatusMessage returns the value of StatusMessage.

func (*Span) MarshalJSON

func (s *Span) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Span) SetAttributes

func (s *Span) SetAttributes(val OptSpanAttributes)

SetAttributes sets the value of Attributes.

func (*Span) SetContext

func (s *Span) SetContext(val SpanContext)

SetContext sets the value of Context.

func (*Span) SetEndTime

func (s *Span) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*Span) SetEvents

func (s *Span) SetEvents(val []SpanEvent)

SetEvents sets the value of Events.

func (*Span) SetID

func (s *Span) SetID(val OptString)

SetID sets the value of ID.

func (*Span) SetName

func (s *Span) SetName(val string)

SetName sets the value of Name.

func (*Span) SetParentID

func (s *Span) SetParentID(val OptNilString)

SetParentID sets the value of ParentID.

func (*Span) SetSpanKind

func (s *Span) SetSpanKind(val string)

SetSpanKind sets the value of SpanKind.

func (*Span) SetStartTime

func (s *Span) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*Span) SetStatusCode

func (s *Span) SetStatusCode(val string)

SetStatusCode sets the value of StatusCode.

func (*Span) SetStatusMessage

func (s *Span) SetStatusMessage(val OptString)

SetStatusMessage sets the value of StatusMessage.

func (*Span) UnmarshalJSON

func (s *Span) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanAnnotation

type SpanAnnotation struct {
	// The kind of annotator used for the annotation.
	AnnotatorKind SpanAnnotationAnnotatorKind `json:"annotator_kind"`
	CreatedAt     time.Time                   `json:"created_at"`
	ID            string                      `json:"id"`
	// The identifier of the annotation. If provided, the annotation will be updated if it already exists.
	Identifier OptString `json:"identifier"`
	// Metadata for the annotation.
	Metadata OptNilSpanAnnotationMetadata `json:"metadata"`
	// The name of the annotation.
	Name string `json:"name"`
	// The result of the annotation.
	Result OptAnnotationResult  `json:"result"`
	Source SpanAnnotationSource `json:"source"`
	// OpenTelemetry Span ID (hex format w/o 0x prefix).
	SpanID    string    `json:"span_id"`
	UpdatedAt time.Time `json:"updated_at"`
	UserID    NilString `json:"user_id"`
}

Ref: #/components/schemas/SpanAnnotation

func (*SpanAnnotation) Decode

func (s *SpanAnnotation) Decode(d *jx.Decoder) error

Decode decodes SpanAnnotation from json.

func (*SpanAnnotation) Encode

func (s *SpanAnnotation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpanAnnotation) GetAnnotatorKind

func (s *SpanAnnotation) GetAnnotatorKind() SpanAnnotationAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*SpanAnnotation) GetCreatedAt

func (s *SpanAnnotation) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*SpanAnnotation) GetID

func (s *SpanAnnotation) GetID() string

GetID returns the value of ID.

func (*SpanAnnotation) GetIdentifier

func (s *SpanAnnotation) GetIdentifier() OptString

GetIdentifier returns the value of Identifier.

func (*SpanAnnotation) GetMetadata

GetMetadata returns the value of Metadata.

func (*SpanAnnotation) GetName

func (s *SpanAnnotation) GetName() string

GetName returns the value of Name.

func (*SpanAnnotation) GetResult

func (s *SpanAnnotation) GetResult() OptAnnotationResult

GetResult returns the value of Result.

func (*SpanAnnotation) GetSource

func (s *SpanAnnotation) GetSource() SpanAnnotationSource

GetSource returns the value of Source.

func (*SpanAnnotation) GetSpanID

func (s *SpanAnnotation) GetSpanID() string

GetSpanID returns the value of SpanID.

func (*SpanAnnotation) GetUpdatedAt

func (s *SpanAnnotation) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*SpanAnnotation) GetUserID

func (s *SpanAnnotation) GetUserID() NilString

GetUserID returns the value of UserID.

func (*SpanAnnotation) MarshalJSON

func (s *SpanAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanAnnotation) SetAnnotatorKind

func (s *SpanAnnotation) SetAnnotatorKind(val SpanAnnotationAnnotatorKind)

SetAnnotatorKind sets the value of AnnotatorKind.

func (*SpanAnnotation) SetCreatedAt

func (s *SpanAnnotation) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*SpanAnnotation) SetID

func (s *SpanAnnotation) SetID(val string)

SetID sets the value of ID.

func (*SpanAnnotation) SetIdentifier

func (s *SpanAnnotation) SetIdentifier(val OptString)

SetIdentifier sets the value of Identifier.

func (*SpanAnnotation) SetMetadata

func (s *SpanAnnotation) SetMetadata(val OptNilSpanAnnotationMetadata)

SetMetadata sets the value of Metadata.

func (*SpanAnnotation) SetName

func (s *SpanAnnotation) SetName(val string)

SetName sets the value of Name.

func (*SpanAnnotation) SetResult

func (s *SpanAnnotation) SetResult(val OptAnnotationResult)

SetResult sets the value of Result.

func (*SpanAnnotation) SetSource

func (s *SpanAnnotation) SetSource(val SpanAnnotationSource)

SetSource sets the value of Source.

func (*SpanAnnotation) SetSpanID

func (s *SpanAnnotation) SetSpanID(val string)

SetSpanID sets the value of SpanID.

func (*SpanAnnotation) SetUpdatedAt

func (s *SpanAnnotation) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*SpanAnnotation) SetUserID

func (s *SpanAnnotation) SetUserID(val NilString)

SetUserID sets the value of UserID.

func (*SpanAnnotation) UnmarshalJSON

func (s *SpanAnnotation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanAnnotation) Validate

func (s *SpanAnnotation) Validate() error

type SpanAnnotationAnnotatorKind

type SpanAnnotationAnnotatorKind string

The kind of annotator used for the annotation.

const (
	SpanAnnotationAnnotatorKindLLM   SpanAnnotationAnnotatorKind = "LLM"
	SpanAnnotationAnnotatorKindCODE  SpanAnnotationAnnotatorKind = "CODE"
	SpanAnnotationAnnotatorKindHUMAN SpanAnnotationAnnotatorKind = "HUMAN"
)

func (SpanAnnotationAnnotatorKind) AllValues

AllValues returns all SpanAnnotationAnnotatorKind values.

func (*SpanAnnotationAnnotatorKind) Decode

Decode decodes SpanAnnotationAnnotatorKind from json.

func (SpanAnnotationAnnotatorKind) Encode

func (s SpanAnnotationAnnotatorKind) Encode(e *jx.Encoder)

Encode encodes SpanAnnotationAnnotatorKind as json.

func (SpanAnnotationAnnotatorKind) MarshalJSON

func (s SpanAnnotationAnnotatorKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpanAnnotationAnnotatorKind) MarshalText

func (s SpanAnnotationAnnotatorKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpanAnnotationAnnotatorKind) UnmarshalJSON

func (s *SpanAnnotationAnnotatorKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanAnnotationAnnotatorKind) UnmarshalText

func (s *SpanAnnotationAnnotatorKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpanAnnotationAnnotatorKind) Validate

func (s SpanAnnotationAnnotatorKind) Validate() error

type SpanAnnotationData

type SpanAnnotationData struct {
	// The kind of annotator used for the annotation.
	AnnotatorKind SpanAnnotationDataAnnotatorKind `json:"annotator_kind"`
	// The identifier of the annotation. If provided, the annotation will be updated if it already exists.
	Identifier OptString `json:"identifier"`
	// Metadata for the annotation.
	Metadata OptNilSpanAnnotationDataMetadata `json:"metadata"`
	// The name of the annotation.
	Name string `json:"name"`
	// The result of the annotation.
	Result OptAnnotationResult `json:"result"`
	// OpenTelemetry Span ID (hex format w/o 0x prefix).
	SpanID string `json:"span_id"`
}

Ref: #/components/schemas/SpanAnnotationData

func (*SpanAnnotationData) Decode

func (s *SpanAnnotationData) Decode(d *jx.Decoder) error

Decode decodes SpanAnnotationData from json.

func (*SpanAnnotationData) Encode

func (s *SpanAnnotationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpanAnnotationData) GetAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*SpanAnnotationData) GetIdentifier

func (s *SpanAnnotationData) GetIdentifier() OptString

GetIdentifier returns the value of Identifier.

func (*SpanAnnotationData) GetMetadata

GetMetadata returns the value of Metadata.

func (*SpanAnnotationData) GetName

func (s *SpanAnnotationData) GetName() string

GetName returns the value of Name.

func (*SpanAnnotationData) GetResult

func (s *SpanAnnotationData) GetResult() OptAnnotationResult

GetResult returns the value of Result.

func (*SpanAnnotationData) GetSpanID

func (s *SpanAnnotationData) GetSpanID() string

GetSpanID returns the value of SpanID.

func (*SpanAnnotationData) MarshalJSON

func (s *SpanAnnotationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanAnnotationData) SetAnnotatorKind

func (s *SpanAnnotationData) SetAnnotatorKind(val SpanAnnotationDataAnnotatorKind)

SetAnnotatorKind sets the value of AnnotatorKind.

func (*SpanAnnotationData) SetIdentifier

func (s *SpanAnnotationData) SetIdentifier(val OptString)

SetIdentifier sets the value of Identifier.

func (*SpanAnnotationData) SetMetadata

SetMetadata sets the value of Metadata.

func (*SpanAnnotationData) SetName

func (s *SpanAnnotationData) SetName(val string)

SetName sets the value of Name.

func (*SpanAnnotationData) SetResult

func (s *SpanAnnotationData) SetResult(val OptAnnotationResult)

SetResult sets the value of Result.

func (*SpanAnnotationData) SetSpanID

func (s *SpanAnnotationData) SetSpanID(val string)

SetSpanID sets the value of SpanID.

func (*SpanAnnotationData) UnmarshalJSON

func (s *SpanAnnotationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanAnnotationData) Validate

func (s *SpanAnnotationData) Validate() error

type SpanAnnotationDataAnnotatorKind

type SpanAnnotationDataAnnotatorKind string

The kind of annotator used for the annotation.

const (
	SpanAnnotationDataAnnotatorKindLLM   SpanAnnotationDataAnnotatorKind = "LLM"
	SpanAnnotationDataAnnotatorKindCODE  SpanAnnotationDataAnnotatorKind = "CODE"
	SpanAnnotationDataAnnotatorKindHUMAN SpanAnnotationDataAnnotatorKind = "HUMAN"
)

func (SpanAnnotationDataAnnotatorKind) AllValues

AllValues returns all SpanAnnotationDataAnnotatorKind values.

func (*SpanAnnotationDataAnnotatorKind) Decode

Decode decodes SpanAnnotationDataAnnotatorKind from json.

func (SpanAnnotationDataAnnotatorKind) Encode

Encode encodes SpanAnnotationDataAnnotatorKind as json.

func (SpanAnnotationDataAnnotatorKind) MarshalJSON

func (s SpanAnnotationDataAnnotatorKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpanAnnotationDataAnnotatorKind) MarshalText

func (s SpanAnnotationDataAnnotatorKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpanAnnotationDataAnnotatorKind) UnmarshalJSON

func (s *SpanAnnotationDataAnnotatorKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanAnnotationDataAnnotatorKind) UnmarshalText

func (s *SpanAnnotationDataAnnotatorKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpanAnnotationDataAnnotatorKind) Validate

type SpanAnnotationDataMetadata

type SpanAnnotationDataMetadata map[string]jx.Raw

Metadata for the annotation.

func (*SpanAnnotationDataMetadata) Decode

Decode decodes SpanAnnotationDataMetadata from json.

func (SpanAnnotationDataMetadata) Encode

func (s SpanAnnotationDataMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SpanAnnotationDataMetadata) MarshalJSON

func (s SpanAnnotationDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanAnnotationDataMetadata) UnmarshalJSON

func (s *SpanAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanAnnotationMetadata

type SpanAnnotationMetadata map[string]jx.Raw

Metadata for the annotation.

func (*SpanAnnotationMetadata) Decode

func (s *SpanAnnotationMetadata) Decode(d *jx.Decoder) error

Decode decodes SpanAnnotationMetadata from json.

func (SpanAnnotationMetadata) Encode

func (s SpanAnnotationMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SpanAnnotationMetadata) MarshalJSON

func (s SpanAnnotationMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanAnnotationMetadata) UnmarshalJSON

func (s *SpanAnnotationMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanAnnotationSource

type SpanAnnotationSource string
const (
	SpanAnnotationSourceAPI SpanAnnotationSource = "API"
	SpanAnnotationSourceAPP SpanAnnotationSource = "APP"
)

func (SpanAnnotationSource) AllValues

AllValues returns all SpanAnnotationSource values.

func (*SpanAnnotationSource) Decode

func (s *SpanAnnotationSource) Decode(d *jx.Decoder) error

Decode decodes SpanAnnotationSource from json.

func (SpanAnnotationSource) Encode

func (s SpanAnnotationSource) Encode(e *jx.Encoder)

Encode encodes SpanAnnotationSource as json.

func (SpanAnnotationSource) MarshalJSON

func (s SpanAnnotationSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpanAnnotationSource) MarshalText

func (s SpanAnnotationSource) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpanAnnotationSource) UnmarshalJSON

func (s *SpanAnnotationSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanAnnotationSource) UnmarshalText

func (s *SpanAnnotationSource) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpanAnnotationSource) Validate

func (s SpanAnnotationSource) Validate() error

type SpanAnnotationsResponseBody

type SpanAnnotationsResponseBody struct {
	Data       []SpanAnnotation `json:"data"`
	NextCursor NilString        `json:"next_cursor"`
}

Ref: #/components/schemas/SpanAnnotationsResponseBody

func (*SpanAnnotationsResponseBody) Decode

Decode decodes SpanAnnotationsResponseBody from json.

func (*SpanAnnotationsResponseBody) Encode

func (s *SpanAnnotationsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpanAnnotationsResponseBody) GetData

GetData returns the value of Data.

func (*SpanAnnotationsResponseBody) GetNextCursor

func (s *SpanAnnotationsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*SpanAnnotationsResponseBody) MarshalJSON

func (s *SpanAnnotationsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanAnnotationsResponseBody) SetData

func (s *SpanAnnotationsResponseBody) SetData(val []SpanAnnotation)

SetData sets the value of Data.

func (*SpanAnnotationsResponseBody) SetNextCursor

func (s *SpanAnnotationsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*SpanAnnotationsResponseBody) UnmarshalJSON

func (s *SpanAnnotationsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanAnnotationsResponseBody) Validate

func (s *SpanAnnotationsResponseBody) Validate() error

type SpanAttributes

type SpanAttributes map[string]jx.Raw

Span attributes.

func (*SpanAttributes) Decode

func (s *SpanAttributes) Decode(d *jx.Decoder) error

Decode decodes SpanAttributes from json.

func (SpanAttributes) Encode

func (s SpanAttributes) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SpanAttributes) MarshalJSON

func (s SpanAttributes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanAttributes) UnmarshalJSON

func (s *SpanAttributes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanContext

type SpanContext struct {
	// OpenTelemetry span ID.
	SpanID string `json:"span_id"`
	// OpenTelemetry trace ID.
	TraceID string `json:"trace_id"`
}

Ref: #/components/schemas/SpanContext

func (*SpanContext) Decode

func (s *SpanContext) Decode(d *jx.Decoder) error

Decode decodes SpanContext from json.

func (*SpanContext) Encode

func (s *SpanContext) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpanContext) GetSpanID

func (s *SpanContext) GetSpanID() string

GetSpanID returns the value of SpanID.

func (*SpanContext) GetTraceID

func (s *SpanContext) GetTraceID() string

GetTraceID returns the value of TraceID.

func (*SpanContext) MarshalJSON

func (s *SpanContext) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanContext) SetSpanID

func (s *SpanContext) SetSpanID(val string)

SetSpanID sets the value of SpanID.

func (*SpanContext) SetTraceID

func (s *SpanContext) SetTraceID(val string)

SetTraceID sets the value of TraceID.

func (*SpanContext) UnmarshalJSON

func (s *SpanContext) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanDocumentAnnotationData

type SpanDocumentAnnotationData struct {
	// The kind of annotator used for the annotation.
	AnnotatorKind SpanDocumentAnnotationDataAnnotatorKind `json:"annotator_kind"`
	// A 0 based index of the document. E.x. the first document during retrieval is 0.
	DocumentPosition int `json:"document_position"`
	// The identifier of the annotation. If provided, the annotation will be updated if it already exists.
	Identifier OptString `json:"identifier"`
	// Metadata for the annotation.
	Metadata OptNilSpanDocumentAnnotationDataMetadata `json:"metadata"`
	// The name of the annotation.
	Name string `json:"name"`
	// The result of the annotation.
	Result OptAnnotationResult `json:"result"`
	// OpenTelemetry Span ID (hex format w/o 0x prefix).
	SpanID string `json:"span_id"`
}

Ref: #/components/schemas/SpanDocumentAnnotationData

func (*SpanDocumentAnnotationData) Decode

Decode decodes SpanDocumentAnnotationData from json.

func (*SpanDocumentAnnotationData) Encode

func (s *SpanDocumentAnnotationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpanDocumentAnnotationData) GetAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*SpanDocumentAnnotationData) GetDocumentPosition

func (s *SpanDocumentAnnotationData) GetDocumentPosition() int

GetDocumentPosition returns the value of DocumentPosition.

func (*SpanDocumentAnnotationData) GetIdentifier

func (s *SpanDocumentAnnotationData) GetIdentifier() OptString

GetIdentifier returns the value of Identifier.

func (*SpanDocumentAnnotationData) GetMetadata

GetMetadata returns the value of Metadata.

func (*SpanDocumentAnnotationData) GetName

func (s *SpanDocumentAnnotationData) GetName() string

GetName returns the value of Name.

func (*SpanDocumentAnnotationData) GetResult

GetResult returns the value of Result.

func (*SpanDocumentAnnotationData) GetSpanID

func (s *SpanDocumentAnnotationData) GetSpanID() string

GetSpanID returns the value of SpanID.

func (*SpanDocumentAnnotationData) MarshalJSON

func (s *SpanDocumentAnnotationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanDocumentAnnotationData) SetAnnotatorKind

SetAnnotatorKind sets the value of AnnotatorKind.

func (*SpanDocumentAnnotationData) SetDocumentPosition

func (s *SpanDocumentAnnotationData) SetDocumentPosition(val int)

SetDocumentPosition sets the value of DocumentPosition.

func (*SpanDocumentAnnotationData) SetIdentifier

func (s *SpanDocumentAnnotationData) SetIdentifier(val OptString)

SetIdentifier sets the value of Identifier.

func (*SpanDocumentAnnotationData) SetMetadata

SetMetadata sets the value of Metadata.

func (*SpanDocumentAnnotationData) SetName

func (s *SpanDocumentAnnotationData) SetName(val string)

SetName sets the value of Name.

func (*SpanDocumentAnnotationData) SetResult

SetResult sets the value of Result.

func (*SpanDocumentAnnotationData) SetSpanID

func (s *SpanDocumentAnnotationData) SetSpanID(val string)

SetSpanID sets the value of SpanID.

func (*SpanDocumentAnnotationData) UnmarshalJSON

func (s *SpanDocumentAnnotationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanDocumentAnnotationData) Validate

func (s *SpanDocumentAnnotationData) Validate() error

type SpanDocumentAnnotationDataAnnotatorKind

type SpanDocumentAnnotationDataAnnotatorKind string

The kind of annotator used for the annotation.

const (
	SpanDocumentAnnotationDataAnnotatorKindLLM   SpanDocumentAnnotationDataAnnotatorKind = "LLM"
	SpanDocumentAnnotationDataAnnotatorKindCODE  SpanDocumentAnnotationDataAnnotatorKind = "CODE"
	SpanDocumentAnnotationDataAnnotatorKindHUMAN SpanDocumentAnnotationDataAnnotatorKind = "HUMAN"
)

func (SpanDocumentAnnotationDataAnnotatorKind) AllValues

AllValues returns all SpanDocumentAnnotationDataAnnotatorKind values.

func (*SpanDocumentAnnotationDataAnnotatorKind) Decode

Decode decodes SpanDocumentAnnotationDataAnnotatorKind from json.

func (SpanDocumentAnnotationDataAnnotatorKind) Encode

Encode encodes SpanDocumentAnnotationDataAnnotatorKind as json.

func (SpanDocumentAnnotationDataAnnotatorKind) MarshalJSON

func (s SpanDocumentAnnotationDataAnnotatorKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpanDocumentAnnotationDataAnnotatorKind) MarshalText

func (s SpanDocumentAnnotationDataAnnotatorKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpanDocumentAnnotationDataAnnotatorKind) UnmarshalJSON

func (s *SpanDocumentAnnotationDataAnnotatorKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanDocumentAnnotationDataAnnotatorKind) UnmarshalText

func (s *SpanDocumentAnnotationDataAnnotatorKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpanDocumentAnnotationDataAnnotatorKind) Validate

type SpanDocumentAnnotationDataMetadata

type SpanDocumentAnnotationDataMetadata map[string]jx.Raw

Metadata for the annotation.

func (*SpanDocumentAnnotationDataMetadata) Decode

Decode decodes SpanDocumentAnnotationDataMetadata from json.

func (SpanDocumentAnnotationDataMetadata) Encode

Encode implements json.Marshaler.

func (SpanDocumentAnnotationDataMetadata) MarshalJSON

func (s SpanDocumentAnnotationDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanDocumentAnnotationDataMetadata) UnmarshalJSON

func (s *SpanDocumentAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanEvent

type SpanEvent struct {
	// Event attributes.
	Attributes OptSpanEventAttributes `json:"attributes"`
	// Name of the event.
	Name string `json:"name"`
	// When the event occurred.
	Timestamp time.Time `json:"timestamp"`
}

Ref: #/components/schemas/SpanEvent

func (*SpanEvent) Decode

func (s *SpanEvent) Decode(d *jx.Decoder) error

Decode decodes SpanEvent from json.

func (*SpanEvent) Encode

func (s *SpanEvent) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpanEvent) GetAttributes

func (s *SpanEvent) GetAttributes() OptSpanEventAttributes

GetAttributes returns the value of Attributes.

func (*SpanEvent) GetName

func (s *SpanEvent) GetName() string

GetName returns the value of Name.

func (*SpanEvent) GetTimestamp

func (s *SpanEvent) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*SpanEvent) MarshalJSON

func (s *SpanEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanEvent) SetAttributes

func (s *SpanEvent) SetAttributes(val OptSpanEventAttributes)

SetAttributes sets the value of Attributes.

func (*SpanEvent) SetName

func (s *SpanEvent) SetName(val string)

SetName sets the value of Name.

func (*SpanEvent) SetTimestamp

func (s *SpanEvent) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*SpanEvent) UnmarshalJSON

func (s *SpanEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanEventAttributes

type SpanEventAttributes map[string]jx.Raw

Event attributes.

func (*SpanEventAttributes) Decode

func (s *SpanEventAttributes) Decode(d *jx.Decoder) error

Decode decodes SpanEventAttributes from json.

func (SpanEventAttributes) Encode

func (s SpanEventAttributes) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SpanEventAttributes) MarshalJSON

func (s SpanEventAttributes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanEventAttributes) UnmarshalJSON

func (s *SpanEventAttributes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanNoteData

type SpanNoteData struct {
	// The note text to add to the span.
	Note string `json:"note"`
	// OpenTelemetry Span ID (hex format w/o 0x prefix).
	SpanID string `json:"span_id"`
}

Ref: #/components/schemas/SpanNoteData

func (*SpanNoteData) Decode

func (s *SpanNoteData) Decode(d *jx.Decoder) error

Decode decodes SpanNoteData from json.

func (*SpanNoteData) Encode

func (s *SpanNoteData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpanNoteData) GetNote

func (s *SpanNoteData) GetNote() string

GetNote returns the value of Note.

func (*SpanNoteData) GetSpanID

func (s *SpanNoteData) GetSpanID() string

GetSpanID returns the value of SpanID.

func (*SpanNoteData) MarshalJSON

func (s *SpanNoteData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanNoteData) SetNote

func (s *SpanNoteData) SetNote(val string)

SetNote sets the value of Note.

func (*SpanNoteData) SetSpanID

func (s *SpanNoteData) SetSpanID(val string)

SetSpanID sets the value of SpanID.

func (*SpanNoteData) UnmarshalJSON

func (s *SpanNoteData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpanNoteData) Validate

func (s *SpanNoteData) Validate() error

type SpansResponseBody

type SpansResponseBody struct {
	Data       []Span    `json:"data"`
	NextCursor NilString `json:"next_cursor"`
}

Ref: #/components/schemas/SpansResponseBody

func (*SpansResponseBody) Decode

func (s *SpansResponseBody) Decode(d *jx.Decoder) error

Decode decodes SpansResponseBody from json.

func (*SpansResponseBody) Encode

func (s *SpansResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpansResponseBody) GetData

func (s *SpansResponseBody) GetData() []Span

GetData returns the value of Data.

func (*SpansResponseBody) GetNextCursor

func (s *SpansResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*SpansResponseBody) MarshalJSON

func (s *SpansResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpansResponseBody) SetData

func (s *SpansResponseBody) SetData(val []Span)

SetData sets the value of Data.

func (*SpansResponseBody) SetNextCursor

func (s *SpansResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*SpansResponseBody) UnmarshalJSON

func (s *SpansResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpansResponseBody) Validate

func (s *SpansResponseBody) Validate() error

type TextContentPart

type TextContentPart struct {
	Text string              `json:"text"`
	Type TextContentPartType `json:"type"`
}

Ref: #/components/schemas/TextContentPart

func (*TextContentPart) Decode

func (s *TextContentPart) Decode(d *jx.Decoder) error

Decode decodes TextContentPart from json.

func (*TextContentPart) Encode

func (s *TextContentPart) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TextContentPart) GetText

func (s *TextContentPart) GetText() string

GetText returns the value of Text.

func (*TextContentPart) GetType

func (s *TextContentPart) GetType() TextContentPartType

GetType returns the value of Type.

func (*TextContentPart) MarshalJSON

func (s *TextContentPart) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TextContentPart) SetText

func (s *TextContentPart) SetText(val string)

SetText sets the value of Text.

func (*TextContentPart) SetType

func (s *TextContentPart) SetType(val TextContentPartType)

SetType sets the value of Type.

func (*TextContentPart) UnmarshalJSON

func (s *TextContentPart) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TextContentPart) Validate

func (s *TextContentPart) Validate() error

type TextContentPartType

type TextContentPartType string
const (
	TextContentPartTypeText TextContentPartType = "text"
)

func (TextContentPartType) AllValues

AllValues returns all TextContentPartType values.

func (*TextContentPartType) Decode

func (s *TextContentPartType) Decode(d *jx.Decoder) error

Decode decodes TextContentPartType from json.

func (TextContentPartType) Encode

func (s TextContentPartType) Encode(e *jx.Encoder)

Encode encodes TextContentPartType as json.

func (TextContentPartType) MarshalJSON

func (s TextContentPartType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TextContentPartType) MarshalText

func (s TextContentPartType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TextContentPartType) UnmarshalJSON

func (s *TextContentPartType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TextContentPartType) UnmarshalText

func (s *TextContentPartType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TextContentPartType) Validate

func (s TextContentPartType) Validate() error

type ToolCallContentPart

type ToolCallContentPart struct {
	ToolCall   ToolCallContentPartToolCall `json:"tool_call"`
	ToolCallID string                      `json:"tool_call_id"`
	Type       ToolCallContentPartType     `json:"type"`
}

Ref: #/components/schemas/ToolCallContentPart

func (*ToolCallContentPart) Decode

func (s *ToolCallContentPart) Decode(d *jx.Decoder) error

Decode decodes ToolCallContentPart from json.

func (*ToolCallContentPart) Encode

func (s *ToolCallContentPart) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ToolCallContentPart) GetToolCall

GetToolCall returns the value of ToolCall.

func (*ToolCallContentPart) GetToolCallID

func (s *ToolCallContentPart) GetToolCallID() string

GetToolCallID returns the value of ToolCallID.

func (*ToolCallContentPart) GetType

GetType returns the value of Type.

func (*ToolCallContentPart) MarshalJSON

func (s *ToolCallContentPart) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ToolCallContentPart) SetToolCall

SetToolCall sets the value of ToolCall.

func (*ToolCallContentPart) SetToolCallID

func (s *ToolCallContentPart) SetToolCallID(val string)

SetToolCallID sets the value of ToolCallID.

func (*ToolCallContentPart) SetType

SetType sets the value of Type.

func (*ToolCallContentPart) UnmarshalJSON

func (s *ToolCallContentPart) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ToolCallContentPart) Validate

func (s *ToolCallContentPart) Validate() error

type ToolCallContentPartToolCall

type ToolCallContentPartToolCall struct {
	Type             ToolCallContentPartToolCallType // switch on this field
	ToolCallFunction ToolCallFunction
}

ToolCallContentPartToolCall represents sum type.

func NewToolCallFunctionToolCallContentPartToolCall

func NewToolCallFunctionToolCallContentPartToolCall(v ToolCallFunction) ToolCallContentPartToolCall

NewToolCallFunctionToolCallContentPartToolCall returns new ToolCallContentPartToolCall from ToolCallFunction.

func (*ToolCallContentPartToolCall) Decode

Decode decodes ToolCallContentPartToolCall from json.

func (ToolCallContentPartToolCall) Encode

func (s ToolCallContentPartToolCall) Encode(e *jx.Encoder)

Encode encodes ToolCallContentPartToolCall as json.

func (ToolCallContentPartToolCall) GetToolCallFunction

func (s ToolCallContentPartToolCall) GetToolCallFunction() (v ToolCallFunction, ok bool)

GetToolCallFunction returns ToolCallFunction and true boolean if ToolCallContentPartToolCall is ToolCallFunction.

func (ToolCallContentPartToolCall) IsToolCallFunction

func (s ToolCallContentPartToolCall) IsToolCallFunction() bool

IsToolCallFunction reports whether ToolCallContentPartToolCall is ToolCallFunction.

func (ToolCallContentPartToolCall) MarshalJSON

func (s ToolCallContentPartToolCall) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ToolCallContentPartToolCall) SetToolCallFunction

func (s *ToolCallContentPartToolCall) SetToolCallFunction(v ToolCallFunction)

SetToolCallFunction sets ToolCallContentPartToolCall to ToolCallFunction.

func (*ToolCallContentPartToolCall) UnmarshalJSON

func (s *ToolCallContentPartToolCall) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ToolCallContentPartToolCall) Validate

func (s ToolCallContentPartToolCall) Validate() error

type ToolCallContentPartToolCallType

type ToolCallContentPartToolCallType string

ToolCallContentPartToolCallType is oneOf type of ToolCallContentPartToolCall.

const (
	ToolCallFunctionToolCallContentPartToolCall ToolCallContentPartToolCallType = "function"
)

Possible values for ToolCallContentPartToolCallType.

type ToolCallContentPartType

type ToolCallContentPartType string
const (
	ToolCallContentPartTypeToolCall ToolCallContentPartType = "tool_call"
)

func (ToolCallContentPartType) AllValues

AllValues returns all ToolCallContentPartType values.

func (*ToolCallContentPartType) Decode

func (s *ToolCallContentPartType) Decode(d *jx.Decoder) error

Decode decodes ToolCallContentPartType from json.

func (ToolCallContentPartType) Encode

func (s ToolCallContentPartType) Encode(e *jx.Encoder)

Encode encodes ToolCallContentPartType as json.

func (ToolCallContentPartType) MarshalJSON

func (s ToolCallContentPartType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ToolCallContentPartType) MarshalText

func (s ToolCallContentPartType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ToolCallContentPartType) UnmarshalJSON

func (s *ToolCallContentPartType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ToolCallContentPartType) UnmarshalText

func (s *ToolCallContentPartType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ToolCallContentPartType) Validate

func (s ToolCallContentPartType) Validate() error

type ToolCallFunction

type ToolCallFunction struct {
	Arguments string               `json:"arguments"`
	Name      string               `json:"name"`
	Type      ToolCallFunctionType `json:"type"`
}

Ref: #/components/schemas/ToolCallFunction

func (*ToolCallFunction) Decode

func (s *ToolCallFunction) Decode(d *jx.Decoder) error

Decode decodes ToolCallFunction from json.

func (*ToolCallFunction) Encode

func (s *ToolCallFunction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ToolCallFunction) GetArguments

func (s *ToolCallFunction) GetArguments() string

GetArguments returns the value of Arguments.

func (*ToolCallFunction) GetName

func (s *ToolCallFunction) GetName() string

GetName returns the value of Name.

func (*ToolCallFunction) GetType

GetType returns the value of Type.

func (*ToolCallFunction) MarshalJSON

func (s *ToolCallFunction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ToolCallFunction) SetArguments

func (s *ToolCallFunction) SetArguments(val string)

SetArguments sets the value of Arguments.

func (*ToolCallFunction) SetName

func (s *ToolCallFunction) SetName(val string)

SetName sets the value of Name.

func (*ToolCallFunction) SetType

func (s *ToolCallFunction) SetType(val ToolCallFunctionType)

SetType sets the value of Type.

func (*ToolCallFunction) UnmarshalJSON

func (s *ToolCallFunction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ToolCallFunction) Validate

func (s *ToolCallFunction) Validate() error

type ToolCallFunctionType

type ToolCallFunctionType string
const (
	ToolCallFunctionTypeFunction ToolCallFunctionType = "function"
)

func (ToolCallFunctionType) AllValues

AllValues returns all ToolCallFunctionType values.

func (*ToolCallFunctionType) Decode

func (s *ToolCallFunctionType) Decode(d *jx.Decoder) error

Decode decodes ToolCallFunctionType from json.

func (ToolCallFunctionType) Encode

func (s ToolCallFunctionType) Encode(e *jx.Encoder)

Encode encodes ToolCallFunctionType as json.

func (ToolCallFunctionType) MarshalJSON

func (s ToolCallFunctionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ToolCallFunctionType) MarshalText

func (s ToolCallFunctionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ToolCallFunctionType) UnmarshalJSON

func (s *ToolCallFunctionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ToolCallFunctionType) UnmarshalText

func (s *ToolCallFunctionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ToolCallFunctionType) Validate

func (s ToolCallFunctionType) Validate() error

type ToolResultContentPart

type ToolResultContentPart struct {
	ToolCallID string                             `json:"tool_call_id"`
	ToolResult NilToolResultContentPartToolResult `json:"tool_result"`
	Type       ToolResultContentPartType          `json:"type"`
}

Ref: #/components/schemas/ToolResultContentPart

func (*ToolResultContentPart) Decode

func (s *ToolResultContentPart) Decode(d *jx.Decoder) error

Decode decodes ToolResultContentPart from json.

func (*ToolResultContentPart) Encode

func (s *ToolResultContentPart) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ToolResultContentPart) GetToolCallID

func (s *ToolResultContentPart) GetToolCallID() string

GetToolCallID returns the value of ToolCallID.

func (*ToolResultContentPart) GetToolResult

GetToolResult returns the value of ToolResult.

func (*ToolResultContentPart) GetType

GetType returns the value of Type.

func (*ToolResultContentPart) MarshalJSON

func (s *ToolResultContentPart) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ToolResultContentPart) SetToolCallID

func (s *ToolResultContentPart) SetToolCallID(val string)

SetToolCallID sets the value of ToolCallID.

func (*ToolResultContentPart) SetToolResult

SetToolResult sets the value of ToolResult.

func (*ToolResultContentPart) SetType

SetType sets the value of Type.

func (*ToolResultContentPart) UnmarshalJSON

func (s *ToolResultContentPart) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ToolResultContentPart) Validate

func (s *ToolResultContentPart) Validate() error

type ToolResultContentPartToolResult

type ToolResultContentPartToolResult struct {
	Type                             ToolResultContentPartToolResultType // switch on this field
	Bool                             bool
	Int                              int
	Float64                          float64
	String                           string
	ToolResultContentPartToolResult4 ToolResultContentPartToolResult4
	AnyArray                         []jx.Raw
}

ToolResultContentPartToolResult represents sum type.

func NewAnyArrayToolResultContentPartToolResult

func NewAnyArrayToolResultContentPartToolResult(v []jx.Raw) ToolResultContentPartToolResult

NewAnyArrayToolResultContentPartToolResult returns new ToolResultContentPartToolResult from []jx.Raw.

func NewBoolToolResultContentPartToolResult

func NewBoolToolResultContentPartToolResult(v bool) ToolResultContentPartToolResult

NewBoolToolResultContentPartToolResult returns new ToolResultContentPartToolResult from bool.

func NewFloat64ToolResultContentPartToolResult

func NewFloat64ToolResultContentPartToolResult(v float64) ToolResultContentPartToolResult

NewFloat64ToolResultContentPartToolResult returns new ToolResultContentPartToolResult from float64.

func NewIntToolResultContentPartToolResult

func NewIntToolResultContentPartToolResult(v int) ToolResultContentPartToolResult

NewIntToolResultContentPartToolResult returns new ToolResultContentPartToolResult from int.

func NewStringToolResultContentPartToolResult

func NewStringToolResultContentPartToolResult(v string) ToolResultContentPartToolResult

NewStringToolResultContentPartToolResult returns new ToolResultContentPartToolResult from string.

func NewToolResultContentPartToolResult4ToolResultContentPartToolResult

func NewToolResultContentPartToolResult4ToolResultContentPartToolResult(v ToolResultContentPartToolResult4) ToolResultContentPartToolResult

NewToolResultContentPartToolResult4ToolResultContentPartToolResult returns new ToolResultContentPartToolResult from ToolResultContentPartToolResult4.

func (*ToolResultContentPartToolResult) Decode

Decode decodes ToolResultContentPartToolResult from json.

func (ToolResultContentPartToolResult) Encode

Encode encodes ToolResultContentPartToolResult as json.

func (ToolResultContentPartToolResult) GetAnyArray

func (s ToolResultContentPartToolResult) GetAnyArray() (v []jx.Raw, ok bool)

GetAnyArray returns []jx.Raw and true boolean if ToolResultContentPartToolResult is []jx.Raw.

func (ToolResultContentPartToolResult) GetBool

func (s ToolResultContentPartToolResult) GetBool() (v bool, ok bool)

GetBool returns bool and true boolean if ToolResultContentPartToolResult is bool.

func (ToolResultContentPartToolResult) GetFloat64

func (s ToolResultContentPartToolResult) GetFloat64() (v float64, ok bool)

GetFloat64 returns float64 and true boolean if ToolResultContentPartToolResult is float64.

func (ToolResultContentPartToolResult) GetInt

func (s ToolResultContentPartToolResult) GetInt() (v int, ok bool)

GetInt returns int and true boolean if ToolResultContentPartToolResult is int.

func (ToolResultContentPartToolResult) GetString

func (s ToolResultContentPartToolResult) GetString() (v string, ok bool)

GetString returns string and true boolean if ToolResultContentPartToolResult is string.

func (ToolResultContentPartToolResult) GetToolResultContentPartToolResult4

func (s ToolResultContentPartToolResult) GetToolResultContentPartToolResult4() (v ToolResultContentPartToolResult4, ok bool)

GetToolResultContentPartToolResult4 returns ToolResultContentPartToolResult4 and true boolean if ToolResultContentPartToolResult is ToolResultContentPartToolResult4.

func (ToolResultContentPartToolResult) IsAnyArray

func (s ToolResultContentPartToolResult) IsAnyArray() bool

IsAnyArray reports whether ToolResultContentPartToolResult is []jx.Raw.

func (ToolResultContentPartToolResult) IsBool

IsBool reports whether ToolResultContentPartToolResult is bool.

func (ToolResultContentPartToolResult) IsFloat64

func (s ToolResultContentPartToolResult) IsFloat64() bool

IsFloat64 reports whether ToolResultContentPartToolResult is float64.

func (ToolResultContentPartToolResult) IsInt

IsInt reports whether ToolResultContentPartToolResult is int.

func (ToolResultContentPartToolResult) IsString

IsString reports whether ToolResultContentPartToolResult is string.

func (ToolResultContentPartToolResult) IsToolResultContentPartToolResult4

func (s ToolResultContentPartToolResult) IsToolResultContentPartToolResult4() bool

IsToolResultContentPartToolResult4 reports whether ToolResultContentPartToolResult is ToolResultContentPartToolResult4.

func (ToolResultContentPartToolResult) MarshalJSON

func (s ToolResultContentPartToolResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ToolResultContentPartToolResult) SetAnyArray

func (s *ToolResultContentPartToolResult) SetAnyArray(v []jx.Raw)

SetAnyArray sets ToolResultContentPartToolResult to []jx.Raw.

func (*ToolResultContentPartToolResult) SetBool

func (s *ToolResultContentPartToolResult) SetBool(v bool)

SetBool sets ToolResultContentPartToolResult to bool.

func (*ToolResultContentPartToolResult) SetFloat64

func (s *ToolResultContentPartToolResult) SetFloat64(v float64)

SetFloat64 sets ToolResultContentPartToolResult to float64.

func (*ToolResultContentPartToolResult) SetInt

func (s *ToolResultContentPartToolResult) SetInt(v int)

SetInt sets ToolResultContentPartToolResult to int.

func (*ToolResultContentPartToolResult) SetString

func (s *ToolResultContentPartToolResult) SetString(v string)

SetString sets ToolResultContentPartToolResult to string.

func (*ToolResultContentPartToolResult) SetToolResultContentPartToolResult4

func (s *ToolResultContentPartToolResult) SetToolResultContentPartToolResult4(v ToolResultContentPartToolResult4)

SetToolResultContentPartToolResult4 sets ToolResultContentPartToolResult to ToolResultContentPartToolResult4.

func (*ToolResultContentPartToolResult) UnmarshalJSON

func (s *ToolResultContentPartToolResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ToolResultContentPartToolResult) Validate

type ToolResultContentPartToolResult4

type ToolResultContentPartToolResult4 map[string]jx.Raw

func (*ToolResultContentPartToolResult4) Decode

Decode decodes ToolResultContentPartToolResult4 from json.

func (ToolResultContentPartToolResult4) Encode

Encode implements json.Marshaler.

func (ToolResultContentPartToolResult4) MarshalJSON

func (s ToolResultContentPartToolResult4) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ToolResultContentPartToolResult4) UnmarshalJSON

func (s *ToolResultContentPartToolResult4) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ToolResultContentPartToolResultType

type ToolResultContentPartToolResultType string

ToolResultContentPartToolResultType is oneOf type of ToolResultContentPartToolResult.

const (
	BoolToolResultContentPartToolResult                             ToolResultContentPartToolResultType = "bool"
	IntToolResultContentPartToolResult                              ToolResultContentPartToolResultType = "int"
	Float64ToolResultContentPartToolResult                          ToolResultContentPartToolResultType = "float64"
	StringToolResultContentPartToolResult                           ToolResultContentPartToolResultType = "string"
	ToolResultContentPartToolResult4ToolResultContentPartToolResult ToolResultContentPartToolResultType = "ToolResultContentPartToolResult4"
	AnyArrayToolResultContentPartToolResult                         ToolResultContentPartToolResultType = "[]jx.Raw"
)

Possible values for ToolResultContentPartToolResultType.

type ToolResultContentPartType

type ToolResultContentPartType string
const (
	ToolResultContentPartTypeToolResult ToolResultContentPartType = "tool_result"
)

func (ToolResultContentPartType) AllValues

AllValues returns all ToolResultContentPartType values.

func (*ToolResultContentPartType) Decode

func (s *ToolResultContentPartType) Decode(d *jx.Decoder) error

Decode decodes ToolResultContentPartType from json.

func (ToolResultContentPartType) Encode

func (s ToolResultContentPartType) Encode(e *jx.Encoder)

Encode encodes ToolResultContentPartType as json.

func (ToolResultContentPartType) MarshalJSON

func (s ToolResultContentPartType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ToolResultContentPartType) MarshalText

func (s ToolResultContentPartType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ToolResultContentPartType) UnmarshalJSON

func (s *ToolResultContentPartType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ToolResultContentPartType) UnmarshalText

func (s *ToolResultContentPartType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ToolResultContentPartType) Validate

func (s ToolResultContentPartType) Validate() error

type TraceAnnotation

type TraceAnnotation struct {
	// The kind of annotator used for the annotation.
	AnnotatorKind TraceAnnotationAnnotatorKind `json:"annotator_kind"`
	CreatedAt     time.Time                    `json:"created_at"`
	ID            string                       `json:"id"`
	// The identifier of the annotation. If provided, the annotation will be updated if it already exists.
	Identifier OptString `json:"identifier"`
	// Metadata for the annotation.
	Metadata OptNilTraceAnnotationMetadata `json:"metadata"`
	// The name of the annotation.
	Name string `json:"name"`
	// The result of the annotation.
	Result OptAnnotationResult   `json:"result"`
	Source TraceAnnotationSource `json:"source"`
	// OpenTelemetry Trace ID (hex format w/o 0x prefix).
	TraceID   string    `json:"trace_id"`
	UpdatedAt time.Time `json:"updated_at"`
	UserID    NilString `json:"user_id"`
}

Ref: #/components/schemas/TraceAnnotation

func (*TraceAnnotation) Decode

func (s *TraceAnnotation) Decode(d *jx.Decoder) error

Decode decodes TraceAnnotation from json.

func (*TraceAnnotation) Encode

func (s *TraceAnnotation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TraceAnnotation) GetAnnotatorKind

func (s *TraceAnnotation) GetAnnotatorKind() TraceAnnotationAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*TraceAnnotation) GetCreatedAt

func (s *TraceAnnotation) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*TraceAnnotation) GetID

func (s *TraceAnnotation) GetID() string

GetID returns the value of ID.

func (*TraceAnnotation) GetIdentifier

func (s *TraceAnnotation) GetIdentifier() OptString

GetIdentifier returns the value of Identifier.

func (*TraceAnnotation) GetMetadata

GetMetadata returns the value of Metadata.

func (*TraceAnnotation) GetName

func (s *TraceAnnotation) GetName() string

GetName returns the value of Name.

func (*TraceAnnotation) GetResult

func (s *TraceAnnotation) GetResult() OptAnnotationResult

GetResult returns the value of Result.

func (*TraceAnnotation) GetSource

func (s *TraceAnnotation) GetSource() TraceAnnotationSource

GetSource returns the value of Source.

func (*TraceAnnotation) GetTraceID

func (s *TraceAnnotation) GetTraceID() string

GetTraceID returns the value of TraceID.

func (*TraceAnnotation) GetUpdatedAt

func (s *TraceAnnotation) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*TraceAnnotation) GetUserID

func (s *TraceAnnotation) GetUserID() NilString

GetUserID returns the value of UserID.

func (*TraceAnnotation) MarshalJSON

func (s *TraceAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceAnnotation) SetAnnotatorKind

func (s *TraceAnnotation) SetAnnotatorKind(val TraceAnnotationAnnotatorKind)

SetAnnotatorKind sets the value of AnnotatorKind.

func (*TraceAnnotation) SetCreatedAt

func (s *TraceAnnotation) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*TraceAnnotation) SetID

func (s *TraceAnnotation) SetID(val string)

SetID sets the value of ID.

func (*TraceAnnotation) SetIdentifier

func (s *TraceAnnotation) SetIdentifier(val OptString)

SetIdentifier sets the value of Identifier.

func (*TraceAnnotation) SetMetadata

func (s *TraceAnnotation) SetMetadata(val OptNilTraceAnnotationMetadata)

SetMetadata sets the value of Metadata.

func (*TraceAnnotation) SetName

func (s *TraceAnnotation) SetName(val string)

SetName sets the value of Name.

func (*TraceAnnotation) SetResult

func (s *TraceAnnotation) SetResult(val OptAnnotationResult)

SetResult sets the value of Result.

func (*TraceAnnotation) SetSource

func (s *TraceAnnotation) SetSource(val TraceAnnotationSource)

SetSource sets the value of Source.

func (*TraceAnnotation) SetTraceID

func (s *TraceAnnotation) SetTraceID(val string)

SetTraceID sets the value of TraceID.

func (*TraceAnnotation) SetUpdatedAt

func (s *TraceAnnotation) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*TraceAnnotation) SetUserID

func (s *TraceAnnotation) SetUserID(val NilString)

SetUserID sets the value of UserID.

func (*TraceAnnotation) UnmarshalJSON

func (s *TraceAnnotation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TraceAnnotation) Validate

func (s *TraceAnnotation) Validate() error

type TraceAnnotationAnnotatorKind

type TraceAnnotationAnnotatorKind string

The kind of annotator used for the annotation.

const (
	TraceAnnotationAnnotatorKindLLM   TraceAnnotationAnnotatorKind = "LLM"
	TraceAnnotationAnnotatorKindCODE  TraceAnnotationAnnotatorKind = "CODE"
	TraceAnnotationAnnotatorKindHUMAN TraceAnnotationAnnotatorKind = "HUMAN"
)

func (TraceAnnotationAnnotatorKind) AllValues

AllValues returns all TraceAnnotationAnnotatorKind values.

func (*TraceAnnotationAnnotatorKind) Decode

Decode decodes TraceAnnotationAnnotatorKind from json.

func (TraceAnnotationAnnotatorKind) Encode

Encode encodes TraceAnnotationAnnotatorKind as json.

func (TraceAnnotationAnnotatorKind) MarshalJSON

func (s TraceAnnotationAnnotatorKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TraceAnnotationAnnotatorKind) MarshalText

func (s TraceAnnotationAnnotatorKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TraceAnnotationAnnotatorKind) UnmarshalJSON

func (s *TraceAnnotationAnnotatorKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TraceAnnotationAnnotatorKind) UnmarshalText

func (s *TraceAnnotationAnnotatorKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TraceAnnotationAnnotatorKind) Validate

func (s TraceAnnotationAnnotatorKind) Validate() error

type TraceAnnotationData

type TraceAnnotationData struct {
	// The kind of annotator used for the annotation.
	AnnotatorKind TraceAnnotationDataAnnotatorKind `json:"annotator_kind"`
	// The identifier of the annotation. If provided, the annotation will be updated if it already exists.
	Identifier OptString `json:"identifier"`
	// Metadata for the annotation.
	Metadata OptNilTraceAnnotationDataMetadata `json:"metadata"`
	// The name of the annotation.
	Name string `json:"name"`
	// The result of the annotation.
	Result OptAnnotationResult `json:"result"`
	// OpenTelemetry Trace ID (hex format w/o 0x prefix).
	TraceID string `json:"trace_id"`
}

Ref: #/components/schemas/TraceAnnotationData

func (*TraceAnnotationData) Decode

func (s *TraceAnnotationData) Decode(d *jx.Decoder) error

Decode decodes TraceAnnotationData from json.

func (*TraceAnnotationData) Encode

func (s *TraceAnnotationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TraceAnnotationData) GetAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*TraceAnnotationData) GetIdentifier

func (s *TraceAnnotationData) GetIdentifier() OptString

GetIdentifier returns the value of Identifier.

func (*TraceAnnotationData) GetMetadata

GetMetadata returns the value of Metadata.

func (*TraceAnnotationData) GetName

func (s *TraceAnnotationData) GetName() string

GetName returns the value of Name.

func (*TraceAnnotationData) GetResult

GetResult returns the value of Result.

func (*TraceAnnotationData) GetTraceID

func (s *TraceAnnotationData) GetTraceID() string

GetTraceID returns the value of TraceID.

func (*TraceAnnotationData) MarshalJSON

func (s *TraceAnnotationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceAnnotationData) SetAnnotatorKind

func (s *TraceAnnotationData) SetAnnotatorKind(val TraceAnnotationDataAnnotatorKind)

SetAnnotatorKind sets the value of AnnotatorKind.

func (*TraceAnnotationData) SetIdentifier

func (s *TraceAnnotationData) SetIdentifier(val OptString)

SetIdentifier sets the value of Identifier.

func (*TraceAnnotationData) SetMetadata

SetMetadata sets the value of Metadata.

func (*TraceAnnotationData) SetName

func (s *TraceAnnotationData) SetName(val string)

SetName sets the value of Name.

func (*TraceAnnotationData) SetResult

func (s *TraceAnnotationData) SetResult(val OptAnnotationResult)

SetResult sets the value of Result.

func (*TraceAnnotationData) SetTraceID

func (s *TraceAnnotationData) SetTraceID(val string)

SetTraceID sets the value of TraceID.

func (*TraceAnnotationData) UnmarshalJSON

func (s *TraceAnnotationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TraceAnnotationData) Validate

func (s *TraceAnnotationData) Validate() error

type TraceAnnotationDataAnnotatorKind

type TraceAnnotationDataAnnotatorKind string

The kind of annotator used for the annotation.

const (
	TraceAnnotationDataAnnotatorKindLLM   TraceAnnotationDataAnnotatorKind = "LLM"
	TraceAnnotationDataAnnotatorKindCODE  TraceAnnotationDataAnnotatorKind = "CODE"
	TraceAnnotationDataAnnotatorKindHUMAN TraceAnnotationDataAnnotatorKind = "HUMAN"
)

func (TraceAnnotationDataAnnotatorKind) AllValues

AllValues returns all TraceAnnotationDataAnnotatorKind values.

func (*TraceAnnotationDataAnnotatorKind) Decode

Decode decodes TraceAnnotationDataAnnotatorKind from json.

func (TraceAnnotationDataAnnotatorKind) Encode

Encode encodes TraceAnnotationDataAnnotatorKind as json.

func (TraceAnnotationDataAnnotatorKind) MarshalJSON

func (s TraceAnnotationDataAnnotatorKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TraceAnnotationDataAnnotatorKind) MarshalText

func (s TraceAnnotationDataAnnotatorKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TraceAnnotationDataAnnotatorKind) UnmarshalJSON

func (s *TraceAnnotationDataAnnotatorKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TraceAnnotationDataAnnotatorKind) UnmarshalText

func (s *TraceAnnotationDataAnnotatorKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TraceAnnotationDataAnnotatorKind) Validate

type TraceAnnotationDataMetadata

type TraceAnnotationDataMetadata map[string]jx.Raw

Metadata for the annotation.

func (*TraceAnnotationDataMetadata) Decode

Decode decodes TraceAnnotationDataMetadata from json.

func (TraceAnnotationDataMetadata) Encode

func (s TraceAnnotationDataMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (TraceAnnotationDataMetadata) MarshalJSON

func (s TraceAnnotationDataMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceAnnotationDataMetadata) UnmarshalJSON

func (s *TraceAnnotationDataMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TraceAnnotationMetadata

type TraceAnnotationMetadata map[string]jx.Raw

Metadata for the annotation.

func (*TraceAnnotationMetadata) Decode

func (s *TraceAnnotationMetadata) Decode(d *jx.Decoder) error

Decode decodes TraceAnnotationMetadata from json.

func (TraceAnnotationMetadata) Encode

func (s TraceAnnotationMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (TraceAnnotationMetadata) MarshalJSON

func (s TraceAnnotationMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceAnnotationMetadata) UnmarshalJSON

func (s *TraceAnnotationMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TraceAnnotationSource

type TraceAnnotationSource string
const (
	TraceAnnotationSourceAPI TraceAnnotationSource = "API"
	TraceAnnotationSourceAPP TraceAnnotationSource = "APP"
)

func (TraceAnnotationSource) AllValues

AllValues returns all TraceAnnotationSource values.

func (*TraceAnnotationSource) Decode

func (s *TraceAnnotationSource) Decode(d *jx.Decoder) error

Decode decodes TraceAnnotationSource from json.

func (TraceAnnotationSource) Encode

func (s TraceAnnotationSource) Encode(e *jx.Encoder)

Encode encodes TraceAnnotationSource as json.

func (TraceAnnotationSource) MarshalJSON

func (s TraceAnnotationSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TraceAnnotationSource) MarshalText

func (s TraceAnnotationSource) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TraceAnnotationSource) UnmarshalJSON

func (s *TraceAnnotationSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TraceAnnotationSource) UnmarshalText

func (s *TraceAnnotationSource) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TraceAnnotationSource) Validate

func (s TraceAnnotationSource) Validate() error

type TraceAnnotationsResponseBody

type TraceAnnotationsResponseBody struct {
	Data       []TraceAnnotation `json:"data"`
	NextCursor NilString         `json:"next_cursor"`
}

Ref: #/components/schemas/TraceAnnotationsResponseBody

func (*TraceAnnotationsResponseBody) Decode

Decode decodes TraceAnnotationsResponseBody from json.

func (*TraceAnnotationsResponseBody) Encode

func (s *TraceAnnotationsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TraceAnnotationsResponseBody) GetData

GetData returns the value of Data.

func (*TraceAnnotationsResponseBody) GetNextCursor

func (s *TraceAnnotationsResponseBody) GetNextCursor() NilString

GetNextCursor returns the value of NextCursor.

func (*TraceAnnotationsResponseBody) MarshalJSON

func (s *TraceAnnotationsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceAnnotationsResponseBody) SetData

SetData sets the value of Data.

func (*TraceAnnotationsResponseBody) SetNextCursor

func (s *TraceAnnotationsResponseBody) SetNextCursor(val NilString)

SetNextCursor sets the value of NextCursor.

func (*TraceAnnotationsResponseBody) UnmarshalJSON

func (s *TraceAnnotationsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TraceAnnotationsResponseBody) Validate

func (s *TraceAnnotationsResponseBody) Validate() error

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) AddEvaluations

AddEvaluations implements addEvaluations operation.

Add span, trace, or document evaluations.

POST /v1/evaluations

func (UnimplementedHandler) AnnotateSessions

AnnotateSessions implements annotateSessions operation.

Create session annotations.

POST /v1/session_annotations

func (UnimplementedHandler) AnnotateSpanDocuments

AnnotateSpanDocuments implements annotateSpanDocuments operation.

Annotate Span Documents.

POST /v1/document_annotations

func (UnimplementedHandler) AnnotateSpans

AnnotateSpans implements annotateSpans operation.

Create span annotations.

POST /v1/span_annotations

func (UnimplementedHandler) AnnotateTraces

AnnotateTraces implements annotateTraces operation.

Create trace annotations.

POST /v1/trace_annotations

func (UnimplementedHandler) CreateAnnotationConfigV1AnnotationConfigsPost

func (UnimplementedHandler) CreateAnnotationConfigV1AnnotationConfigsPost(ctx context.Context, req CreateAnnotationConfigData) (r CreateAnnotationConfigV1AnnotationConfigsPostRes, _ error)

CreateAnnotationConfigV1AnnotationConfigsPost implements create_annotation_config_v1_annotation_configs_post operation.

Create an annotation configuration.

POST /v1/annotation_configs

func (UnimplementedHandler) CreateExperiment

CreateExperiment implements createExperiment operation.

Create experiment on a dataset.

POST /v1/datasets/{dataset_id}/experiments

func (UnimplementedHandler) CreateExperimentRun

CreateExperimentRun implements createExperimentRun operation.

Create run for an experiment.

POST /v1/experiments/{experiment_id}/runs

func (UnimplementedHandler) CreateProject

CreateProject implements createProject operation.

Create a new project with the specified configuration.

POST /v1/projects

func (UnimplementedHandler) CreatePromptVersionTag

CreatePromptVersionTag implements createPromptVersionTag operation.

Add a new tag to a specific prompt version. Tags help identify and categorize different versions of a prompt.

POST /v1/prompt_versions/{prompt_version_id}/tags

func (UnimplementedHandler) CreateSpanNote

CreateSpanNote implements createSpanNote operation.

Add a note annotation to a span. Notes are special annotations that allow multiple entries per span (unlike regular annotations which are unique by name and identifier). Each note gets a unique timestamp-based identifier.

POST /v1/span_notes

func (UnimplementedHandler) CreateSpans

CreateSpans implements createSpans operation.

Submit spans to be inserted into a project. If any spans are invalid or duplicates, no spans will be inserted.

POST /v1/projects/{project_identifier}/spans

func (UnimplementedHandler) CreateUser

CreateUser implements createUser operation.

Create a new user with the specified configuration.

POST /v1/users

func (UnimplementedHandler) DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete

DeleteAnnotationConfigV1AnnotationConfigsConfigIDDelete implements delete_annotation_config_v1_annotation_configs__config_id__delete operation.

Delete an annotation configuration.

DELETE /v1/annotation_configs/{config_id}

func (UnimplementedHandler) DeleteDatasetById

DeleteDatasetById implements deleteDatasetById operation.

Delete dataset by ID.

DELETE /v1/datasets/{id}

func (UnimplementedHandler) DeleteExperiment

DeleteExperiment implements deleteExperiment operation.

Delete experiment by ID.

DELETE /v1/experiments/{experiment_id}

func (UnimplementedHandler) DeleteProject

DeleteProject implements deleteProject operation.

Delete an existing project and all its associated data. The project identifier is either project ID or project name. The default project cannot be deleted. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

DELETE /v1/projects/{project_identifier}

func (UnimplementedHandler) DeleteSpan

DeleteSpan implements deleteSpan operation.

Delete a single span by identifier. **Important**: This operation deletes ONLY the specified span itself and does NOT delete its descendants/children. All child spans will remain in the trace and become orphaned (their parent_id will point to a non-existent span). Behavior: - Deletes only the target span (preserves all descendant spans) - If this was the last span in the trace, the trace record is also deleted - If the deleted span had a parent, its cumulative metrics (error count, token counts) are subtracted from all ancestor spans in the chain **Note**: This operation is irreversible and may create orphaned spans.

DELETE /v1/spans/{span_identifier}

func (UnimplementedHandler) DeleteTrace

DeleteTrace implements deleteTrace operation.

Delete an entire trace by its identifier. The identifier can be either: 1. A Relay node ID (base64-encoded) 2. An OpenTelemetry trace_id (hex string) This will permanently remove all spans in the trace and their associated data.

DELETE /v1/traces/{trace_identifier}

func (UnimplementedHandler) DeleteUser

DeleteUser implements deleteUser operation.

Delete an existing user by their unique GlobalID.

DELETE /v1/users/{user_id}

func (UnimplementedHandler) GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet

GetAnnotationConfigByNameOrIDV1AnnotationConfigsConfigIdentifierGet implements get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get operation.

Get an annotation configuration by ID or name.

GET /v1/annotation_configs/{config_identifier}

func (UnimplementedHandler) GetDataset

GetDataset implements getDataset operation.

Get dataset by ID.

GET /v1/datasets/{id}

func (UnimplementedHandler) GetDatasetCsv

GetDatasetCsv implements getDatasetCsv operation.

Download dataset examples as CSV file.

GET /v1/datasets/{id}/csv

func (UnimplementedHandler) GetDatasetExamples

GetDatasetExamples implements getDatasetExamples operation.

Get examples from a dataset.

GET /v1/datasets/{id}/examples

func (UnimplementedHandler) GetDatasetJSONLOpenAIEvals

GetDatasetJSONLOpenAIEvals implements getDatasetJSONLOpenAIEvals operation.

Download dataset examples as OpenAI evals JSONL file.

GET /v1/datasets/{id}/jsonl/openai_evals

func (UnimplementedHandler) GetDatasetJSONLOpenAIFineTuning

GetDatasetJSONLOpenAIFineTuning implements getDatasetJSONLOpenAIFineTuning operation.

Download dataset examples as OpenAI fine-tuning JSONL file.

GET /v1/datasets/{id}/jsonl/openai_ft

func (UnimplementedHandler) GetEvaluations

GetEvaluations implements getEvaluations operation.

Get span, trace, or document evaluations from a project.

GET /v1/evaluations

func (UnimplementedHandler) GetExperiment

GetExperiment implements getExperiment operation.

Get experiment by ID.

GET /v1/experiments/{experiment_id}

func (UnimplementedHandler) GetExperimentCSV

GetExperimentCSV implements getExperimentCSV operation.

Download experiment runs as a CSV file.

GET /v1/experiments/{experiment_id}/csv

func (UnimplementedHandler) GetExperimentJSON

GetExperimentJSON implements getExperimentJSON operation.

Download experiment runs as a JSON file.

GET /v1/experiments/{experiment_id}/json

func (UnimplementedHandler) GetIncompleteExperimentEvaluations

GetIncompleteExperimentEvaluations implements getIncompleteExperimentEvaluations operation.

Get experiment runs that have incomplete evaluations. Returns runs with: - Missing evaluations (evaluator has not been run) - Failed evaluations (evaluator ran but has errors) Args: experiment_id: The ID of the experiment evaluation_name: List of evaluation names to check (required, at least one) cursor: Cursor for pagination limit: Maximum number of results to return Returns: Paginated list of runs with incomplete evaluations.

GET /v1/experiments/{experiment_id}/incomplete-evaluations

func (UnimplementedHandler) GetIncompleteExperimentRuns

GetIncompleteExperimentRuns implements getIncompleteExperimentRuns operation.

Get runs that need to be completed for this experiment. Returns all incomplete runs, including both missing runs (not yet attempted) and failed runs (attempted but have errors). Args: experiment_id: The ID of the experiment cursor: Cursor for pagination limit: Maximum number of results to return Returns: Paginated list of incomplete runs grouped by dataset example, with repetition numbers that need to be run.

GET /v1/experiments/{experiment_id}/incomplete-runs

func (UnimplementedHandler) GetProject

GetProject implements getProject operation.

Retrieve a specific project using its unique identifier: either project ID or project name. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

GET /v1/projects/{project_identifier}

func (UnimplementedHandler) GetProjects

GetProjects implements getProjects operation.

Retrieve a paginated list of all projects in the system.

GET /v1/projects

func (UnimplementedHandler) GetPromptVersionByPromptVersionId

GetPromptVersionByPromptVersionId implements getPromptVersionByPromptVersionId operation.

Retrieve a specific prompt version using its unique identifier. A prompt version contains the actual template and configuration.

GET /v1/prompt_versions/{prompt_version_id}

func (UnimplementedHandler) GetPromptVersionByTagName

GetPromptVersionByTagName implements getPromptVersionByTagName operation.

Retrieve a specific prompt version using its tag name. Tags are used to identify specific versions of a prompt.

GET /v1/prompts/{prompt_identifier}/tags/{tag_name}

func (UnimplementedHandler) GetPromptVersionLatest

GetPromptVersionLatest implements getPromptVersionLatest operation.

Retrieve the most recent version of a specific prompt.

GET /v1/prompts/{prompt_identifier}/latest

func (UnimplementedHandler) GetPromptVersionTags

GetPromptVersionTags implements getPromptVersionTags operation.

Retrieve all tags associated with a specific prompt version. Tags are used to identify and categorize different versions of a prompt.

GET /v1/prompt_versions/{prompt_version_id}/tags

func (UnimplementedHandler) GetPrompts

GetPrompts implements getPrompts operation.

Retrieve a paginated list of all prompts in the system. A prompt can have multiple versions.

GET /v1/prompts

func (UnimplementedHandler) GetSpans

func (UnimplementedHandler) GetSpans(ctx context.Context, params GetSpansParams) (r GetSpansRes, _ error)

GetSpans implements getSpans operation.

Return spans within a project filtered by time range. Supports cursor-based pagination.

GET /v1/projects/{project_identifier}/spans

func (UnimplementedHandler) GetUsers

func (UnimplementedHandler) GetUsers(ctx context.Context, params GetUsersParams) (r GetUsersRes, _ error)

GetUsers implements getUsers operation.

Retrieve a paginated list of all users in the system.

GET /v1/users

func (UnimplementedHandler) ListAnnotationConfigsV1AnnotationConfigsGet

ListAnnotationConfigsV1AnnotationConfigsGet implements list_annotation_configs_v1_annotation_configs_get operation.

Retrieve a paginated list of all annotation configurations in the system.

GET /v1/annotation_configs

func (UnimplementedHandler) ListDatasetVersionsByDatasetId

ListDatasetVersionsByDatasetId implements listDatasetVersionsByDatasetId operation.

List dataset versions.

GET /v1/datasets/{id}/versions

func (UnimplementedHandler) ListDatasets

ListDatasets implements listDatasets operation.

List datasets.

GET /v1/datasets

func (UnimplementedHandler) ListExperimentRuns

ListExperimentRuns implements listExperimentRuns operation.

Retrieve a paginated list of runs for an experiment.

GET /v1/experiments/{experiment_id}/runs

func (UnimplementedHandler) ListExperiments

ListExperiments implements listExperiments operation.

Retrieve a paginated list of experiments for the specified dataset.

GET /v1/datasets/{dataset_id}/experiments

func (UnimplementedHandler) ListPromptVersions

ListPromptVersions implements listPromptVersions operation.

Retrieve all versions of a specific prompt with pagination support. Each prompt can have multiple versions with different configurations.

GET /v1/prompts/{prompt_identifier}/versions

func (UnimplementedHandler) ListSessionAnnotationsBySessionIds

ListSessionAnnotationsBySessionIds implements listSessionAnnotationsBySessionIds operation.

Get session annotations for a list of session_ids.

GET /v1/projects/{project_identifier}/session_annotations

func (UnimplementedHandler) ListSpanAnnotationsBySpanIds

ListSpanAnnotationsBySpanIds implements listSpanAnnotationsBySpanIds operation.

Get span annotations for a list of span_ids.

GET /v1/projects/{project_identifier}/span_annotations

func (UnimplementedHandler) ListTraceAnnotationsByTraceIds

ListTraceAnnotationsByTraceIds implements listTraceAnnotationsByTraceIds operation.

Get trace annotations for a list of trace_ids.

GET /v1/projects/{project_identifier}/trace_annotations

func (UnimplementedHandler) PostPromptVersion

PostPromptVersion implements postPromptVersion operation.

Create a new prompt and its initial version. A prompt can have multiple versions.

POST /v1/prompts

func (UnimplementedHandler) UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut

UpdateAnnotationConfigV1AnnotationConfigsConfigIDPut implements update_annotation_config_v1_annotation_configs__config_id__put operation.

Update an annotation configuration.

PUT /v1/annotation_configs/{config_id}

func (UnimplementedHandler) UpdateProject

UpdateProject implements updateProject operation.

Update an existing project with new configuration. Project names cannot be changed. The project identifier is either project ID or project name. Note: When using a project name as the identifier,

it cannot contain slash (/), question mark (?), or pound sign (#) characters.

PUT /v1/projects/{project_identifier}

func (UnimplementedHandler) UploadDataset

UploadDataset implements uploadDataset operation.

Upload dataset from JSON, CSV, or PyArrow.

POST /v1/datasets/upload

func (UnimplementedHandler) UpsertExperimentEvaluation

UpsertExperimentEvaluation implements upsertExperimentEvaluation operation.

Create or update evaluation for an experiment run.

POST /v1/experiment_evaluations

type UpdateAnnotationConfigResponseBody

type UpdateAnnotationConfigResponseBody struct {
	Data UpdateAnnotationConfigResponseBodyData `json:"data"`
}

Ref: #/components/schemas/UpdateAnnotationConfigResponseBody

func (*UpdateAnnotationConfigResponseBody) Decode

Decode decodes UpdateAnnotationConfigResponseBody from json.

func (*UpdateAnnotationConfigResponseBody) Encode

Encode implements json.Marshaler.

func (*UpdateAnnotationConfigResponseBody) GetData

GetData returns the value of Data.

func (*UpdateAnnotationConfigResponseBody) MarshalJSON

func (s *UpdateAnnotationConfigResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateAnnotationConfigResponseBody) SetData

SetData sets the value of Data.

func (*UpdateAnnotationConfigResponseBody) UnmarshalJSON

func (s *UpdateAnnotationConfigResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateAnnotationConfigResponseBody) Validate

type UpdateAnnotationConfigResponseBodyData

type UpdateAnnotationConfigResponseBodyData struct {
	Type                        UpdateAnnotationConfigResponseBodyDataType // switch on this field
	CategoricalAnnotationConfig CategoricalAnnotationConfig
	ContinuousAnnotationConfig  ContinuousAnnotationConfig
	FreeformAnnotationConfig    FreeformAnnotationConfig
}

UpdateAnnotationConfigResponseBodyData represents sum type.

func NewCategoricalAnnotationConfigUpdateAnnotationConfigResponseBodyData

func NewCategoricalAnnotationConfigUpdateAnnotationConfigResponseBodyData(v CategoricalAnnotationConfig) UpdateAnnotationConfigResponseBodyData

NewCategoricalAnnotationConfigUpdateAnnotationConfigResponseBodyData returns new UpdateAnnotationConfigResponseBodyData from CategoricalAnnotationConfig.

func NewContinuousAnnotationConfigUpdateAnnotationConfigResponseBodyData

func NewContinuousAnnotationConfigUpdateAnnotationConfigResponseBodyData(v ContinuousAnnotationConfig) UpdateAnnotationConfigResponseBodyData

NewContinuousAnnotationConfigUpdateAnnotationConfigResponseBodyData returns new UpdateAnnotationConfigResponseBodyData from ContinuousAnnotationConfig.

func NewFreeformAnnotationConfigUpdateAnnotationConfigResponseBodyData

func NewFreeformAnnotationConfigUpdateAnnotationConfigResponseBodyData(v FreeformAnnotationConfig) UpdateAnnotationConfigResponseBodyData

NewFreeformAnnotationConfigUpdateAnnotationConfigResponseBodyData returns new UpdateAnnotationConfigResponseBodyData from FreeformAnnotationConfig.

func (*UpdateAnnotationConfigResponseBodyData) Decode

Decode decodes UpdateAnnotationConfigResponseBodyData from json.

func (UpdateAnnotationConfigResponseBodyData) Encode

Encode encodes UpdateAnnotationConfigResponseBodyData as json.

func (UpdateAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig

func (s UpdateAnnotationConfigResponseBodyData) GetCategoricalAnnotationConfig() (v CategoricalAnnotationConfig, ok bool)

GetCategoricalAnnotationConfig returns CategoricalAnnotationConfig and true boolean if UpdateAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (UpdateAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig

func (s UpdateAnnotationConfigResponseBodyData) GetContinuousAnnotationConfig() (v ContinuousAnnotationConfig, ok bool)

GetContinuousAnnotationConfig returns ContinuousAnnotationConfig and true boolean if UpdateAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (UpdateAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig

func (s UpdateAnnotationConfigResponseBodyData) GetFreeformAnnotationConfig() (v FreeformAnnotationConfig, ok bool)

GetFreeformAnnotationConfig returns FreeformAnnotationConfig and true boolean if UpdateAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (UpdateAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig

func (s UpdateAnnotationConfigResponseBodyData) IsCategoricalAnnotationConfig() bool

IsCategoricalAnnotationConfig reports whether UpdateAnnotationConfigResponseBodyData is CategoricalAnnotationConfig.

func (UpdateAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig

func (s UpdateAnnotationConfigResponseBodyData) IsContinuousAnnotationConfig() bool

IsContinuousAnnotationConfig reports whether UpdateAnnotationConfigResponseBodyData is ContinuousAnnotationConfig.

func (UpdateAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig

func (s UpdateAnnotationConfigResponseBodyData) IsFreeformAnnotationConfig() bool

IsFreeformAnnotationConfig reports whether UpdateAnnotationConfigResponseBodyData is FreeformAnnotationConfig.

func (UpdateAnnotationConfigResponseBodyData) MarshalJSON

func (s UpdateAnnotationConfigResponseBodyData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig

func (s *UpdateAnnotationConfigResponseBodyData) SetCategoricalAnnotationConfig(v CategoricalAnnotationConfig)

SetCategoricalAnnotationConfig sets UpdateAnnotationConfigResponseBodyData to CategoricalAnnotationConfig.

func (*UpdateAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig

func (s *UpdateAnnotationConfigResponseBodyData) SetContinuousAnnotationConfig(v ContinuousAnnotationConfig)

SetContinuousAnnotationConfig sets UpdateAnnotationConfigResponseBodyData to ContinuousAnnotationConfig.

func (*UpdateAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig

func (s *UpdateAnnotationConfigResponseBodyData) SetFreeformAnnotationConfig(v FreeformAnnotationConfig)

SetFreeformAnnotationConfig sets UpdateAnnotationConfigResponseBodyData to FreeformAnnotationConfig.

func (*UpdateAnnotationConfigResponseBodyData) UnmarshalJSON

func (s *UpdateAnnotationConfigResponseBodyData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (UpdateAnnotationConfigResponseBodyData) Validate

type UpdateAnnotationConfigResponseBodyDataType

type UpdateAnnotationConfigResponseBodyDataType string

UpdateAnnotationConfigResponseBodyDataType is oneOf type of UpdateAnnotationConfigResponseBodyData.

const (
	CategoricalAnnotationConfigUpdateAnnotationConfigResponseBodyData UpdateAnnotationConfigResponseBodyDataType = "CATEGORICAL"
	ContinuousAnnotationConfigUpdateAnnotationConfigResponseBodyData  UpdateAnnotationConfigResponseBodyDataType = "CONTINUOUS"
	FreeformAnnotationConfigUpdateAnnotationConfigResponseBodyData    UpdateAnnotationConfigResponseBodyDataType = "FREEFORM"
)

Possible values for UpdateAnnotationConfigResponseBodyDataType.

type UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutForbidden

type UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutForbidden struct {
	Data io.Reader
}

func (UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutForbidden) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutParams

type UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutParams struct {
	// ID of the annotation configuration.
	ConfigID string
}

UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutParams is parameters of update_annotation_config_v1_annotation_configs__config_id__put operation.

type UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutRes

type UpdateAnnotationConfigV1AnnotationConfigsConfigIDPutRes interface {
	// contains filtered or unexported methods
}

type UpdateProjectForbidden

type UpdateProjectForbidden struct {
	Data io.Reader
}

func (UpdateProjectForbidden) Read

func (s UpdateProjectForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UpdateProjectNotFound

type UpdateProjectNotFound struct {
	Data io.Reader
}

func (UpdateProjectNotFound) Read

func (s UpdateProjectNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UpdateProjectParams

type UpdateProjectParams struct {
	// The project identifier: either project ID or project name. If using a project name, it cannot
	// contain slash (/), question mark (?), or pound sign (#) characters.
	ProjectIdentifier string
}

UpdateProjectParams is parameters of updateProject operation.

type UpdateProjectRequestBody

type UpdateProjectRequestBody struct {
	Description OptNilString `json:"description"`
}

Ref: #/components/schemas/UpdateProjectRequestBody

func (*UpdateProjectRequestBody) Decode

func (s *UpdateProjectRequestBody) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectRequestBody from json.

func (*UpdateProjectRequestBody) Encode

func (s *UpdateProjectRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateProjectRequestBody) GetDescription

func (s *UpdateProjectRequestBody) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*UpdateProjectRequestBody) MarshalJSON

func (s *UpdateProjectRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateProjectRequestBody) SetDescription

func (s *UpdateProjectRequestBody) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*UpdateProjectRequestBody) UnmarshalJSON

func (s *UpdateProjectRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateProjectRes

type UpdateProjectRes interface {
	// contains filtered or unexported methods
}

type UpdateProjectResponseBody

type UpdateProjectResponseBody struct {
	Data Project `json:"data"`
}

Ref: #/components/schemas/UpdateProjectResponseBody

func (*UpdateProjectResponseBody) Decode

func (s *UpdateProjectResponseBody) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectResponseBody from json.

func (*UpdateProjectResponseBody) Encode

func (s *UpdateProjectResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateProjectResponseBody) GetData

func (s *UpdateProjectResponseBody) GetData() Project

GetData returns the value of Data.

func (*UpdateProjectResponseBody) MarshalJSON

func (s *UpdateProjectResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateProjectResponseBody) SetData

func (s *UpdateProjectResponseBody) SetData(val Project)

SetData sets the value of Data.

func (*UpdateProjectResponseBody) UnmarshalJSON

func (s *UpdateProjectResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateProjectResponseBody) Validate

func (s *UpdateProjectResponseBody) Validate() error

type UpdateProjectUnprocessableEntity

type UpdateProjectUnprocessableEntity struct {
	Data io.Reader
}

func (UpdateProjectUnprocessableEntity) Read

func (s UpdateProjectUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UploadDatasetConflict

type UploadDatasetConflict struct {
	Data io.Reader
}

func (UploadDatasetConflict) Read

func (s UploadDatasetConflict) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UploadDatasetData

type UploadDatasetData struct {
	DatasetID string `json:"dataset_id"`
	VersionID string `json:"version_id"`
}

Ref: #/components/schemas/UploadDatasetData

func (*UploadDatasetData) Decode

func (s *UploadDatasetData) Decode(d *jx.Decoder) error

Decode decodes UploadDatasetData from json.

func (*UploadDatasetData) Encode

func (s *UploadDatasetData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UploadDatasetData) GetDatasetID

func (s *UploadDatasetData) GetDatasetID() string

GetDatasetID returns the value of DatasetID.

func (*UploadDatasetData) GetVersionID

func (s *UploadDatasetData) GetVersionID() string

GetVersionID returns the value of VersionID.

func (*UploadDatasetData) MarshalJSON

func (s *UploadDatasetData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatasetData) SetDatasetID

func (s *UploadDatasetData) SetDatasetID(val string)

SetDatasetID sets the value of DatasetID.

func (*UploadDatasetData) SetVersionID

func (s *UploadDatasetData) SetVersionID(val string)

SetVersionID sets the value of VersionID.

func (*UploadDatasetData) UnmarshalJSON

func (s *UploadDatasetData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadDatasetForbidden

type UploadDatasetForbidden struct {
	Data io.Reader
}

func (UploadDatasetForbidden) Read

func (s UploadDatasetForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UploadDatasetParams

type UploadDatasetParams struct {
	// If true, fulfill request synchronously and return JSON containing dataset_id.
	Sync OptBool `json:",omitempty,omitzero"`
}

UploadDatasetParams is parameters of uploadDataset operation.

type UploadDatasetReq

type UploadDatasetReq interface {
	// contains filtered or unexported methods
}

type UploadDatasetReqApplicationJSON

type UploadDatasetReqApplicationJSON struct {
	Action      OptUploadDatasetReqApplicationJSONAction      `json:"action"`
	Description OptString                                     `json:"description"`
	Inputs      []UploadDatasetReqApplicationJSONInputsItem   `json:"inputs"`
	Metadata    []UploadDatasetReqApplicationJSONMetadataItem `json:"metadata"`
	Name        string                                        `json:"name"`
	Outputs     []UploadDatasetReqApplicationJSONOutputsItem  `json:"outputs"`
	// Split per example: string, string array, or null.
	Splits []NilUploadDatasetReqApplicationJSONSplitsItem `json:"splits"`
}

func (*UploadDatasetReqApplicationJSON) Decode

Decode decodes UploadDatasetReqApplicationJSON from json.

func (*UploadDatasetReqApplicationJSON) Encode

Encode implements json.Marshaler.

func (*UploadDatasetReqApplicationJSON) GetAction

GetAction returns the value of Action.

func (*UploadDatasetReqApplicationJSON) GetDescription

func (s *UploadDatasetReqApplicationJSON) GetDescription() OptString

GetDescription returns the value of Description.

func (*UploadDatasetReqApplicationJSON) GetInputs

GetInputs returns the value of Inputs.

func (*UploadDatasetReqApplicationJSON) GetMetadata

GetMetadata returns the value of Metadata.

func (*UploadDatasetReqApplicationJSON) GetName

GetName returns the value of Name.

func (*UploadDatasetReqApplicationJSON) GetOutputs

GetOutputs returns the value of Outputs.

func (*UploadDatasetReqApplicationJSON) GetSplits

GetSplits returns the value of Splits.

func (*UploadDatasetReqApplicationJSON) MarshalJSON

func (s *UploadDatasetReqApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatasetReqApplicationJSON) SetAction

SetAction sets the value of Action.

func (*UploadDatasetReqApplicationJSON) SetDescription

func (s *UploadDatasetReqApplicationJSON) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*UploadDatasetReqApplicationJSON) SetInputs

SetInputs sets the value of Inputs.

func (*UploadDatasetReqApplicationJSON) SetMetadata

SetMetadata sets the value of Metadata.

func (*UploadDatasetReqApplicationJSON) SetName

func (s *UploadDatasetReqApplicationJSON) SetName(val string)

SetName sets the value of Name.

func (*UploadDatasetReqApplicationJSON) SetOutputs

SetOutputs sets the value of Outputs.

func (*UploadDatasetReqApplicationJSON) SetSplits

SetSplits sets the value of Splits.

func (*UploadDatasetReqApplicationJSON) UnmarshalJSON

func (s *UploadDatasetReqApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UploadDatasetReqApplicationJSON) Validate

func (s *UploadDatasetReqApplicationJSON) Validate() error

type UploadDatasetReqApplicationJSONAction

type UploadDatasetReqApplicationJSONAction string
const (
	UploadDatasetReqApplicationJSONActionCreate UploadDatasetReqApplicationJSONAction = "create"
	UploadDatasetReqApplicationJSONActionAppend UploadDatasetReqApplicationJSONAction = "append"
)

func (UploadDatasetReqApplicationJSONAction) AllValues

AllValues returns all UploadDatasetReqApplicationJSONAction values.

func (*UploadDatasetReqApplicationJSONAction) Decode

Decode decodes UploadDatasetReqApplicationJSONAction from json.

func (UploadDatasetReqApplicationJSONAction) Encode

Encode encodes UploadDatasetReqApplicationJSONAction as json.

func (UploadDatasetReqApplicationJSONAction) MarshalJSON

func (s UploadDatasetReqApplicationJSONAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UploadDatasetReqApplicationJSONAction) MarshalText

func (s UploadDatasetReqApplicationJSONAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UploadDatasetReqApplicationJSONAction) UnmarshalJSON

func (s *UploadDatasetReqApplicationJSONAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UploadDatasetReqApplicationJSONAction) UnmarshalText

func (s *UploadDatasetReqApplicationJSONAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UploadDatasetReqApplicationJSONAction) Validate

type UploadDatasetReqApplicationJSONInputsItem

type UploadDatasetReqApplicationJSONInputsItem struct{}

func (*UploadDatasetReqApplicationJSONInputsItem) Decode

Decode decodes UploadDatasetReqApplicationJSONInputsItem from json.

func (*UploadDatasetReqApplicationJSONInputsItem) Encode

Encode implements json.Marshaler.

func (*UploadDatasetReqApplicationJSONInputsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatasetReqApplicationJSONInputsItem) UnmarshalJSON

func (s *UploadDatasetReqApplicationJSONInputsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadDatasetReqApplicationJSONMetadataItem

type UploadDatasetReqApplicationJSONMetadataItem struct{}

func (*UploadDatasetReqApplicationJSONMetadataItem) Decode

Decode decodes UploadDatasetReqApplicationJSONMetadataItem from json.

func (*UploadDatasetReqApplicationJSONMetadataItem) Encode

Encode implements json.Marshaler.

func (*UploadDatasetReqApplicationJSONMetadataItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatasetReqApplicationJSONMetadataItem) UnmarshalJSON

func (s *UploadDatasetReqApplicationJSONMetadataItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadDatasetReqApplicationJSONOutputsItem

type UploadDatasetReqApplicationJSONOutputsItem struct{}

func (*UploadDatasetReqApplicationJSONOutputsItem) Decode

Decode decodes UploadDatasetReqApplicationJSONOutputsItem from json.

func (*UploadDatasetReqApplicationJSONOutputsItem) Encode

Encode implements json.Marshaler.

func (*UploadDatasetReqApplicationJSONOutputsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatasetReqApplicationJSONOutputsItem) UnmarshalJSON

func (s *UploadDatasetReqApplicationJSONOutputsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadDatasetReqApplicationJSONSplitsItem

type UploadDatasetReqApplicationJSONSplitsItem struct {
	Type        UploadDatasetReqApplicationJSONSplitsItemType // switch on this field
	String      string
	StringArray []string
}

UploadDatasetReqApplicationJSONSplitsItem represents sum type.

func NewStringArrayUploadDatasetReqApplicationJSONSplitsItem

func NewStringArrayUploadDatasetReqApplicationJSONSplitsItem(v []string) UploadDatasetReqApplicationJSONSplitsItem

NewStringArrayUploadDatasetReqApplicationJSONSplitsItem returns new UploadDatasetReqApplicationJSONSplitsItem from []string.

func NewStringUploadDatasetReqApplicationJSONSplitsItem

func NewStringUploadDatasetReqApplicationJSONSplitsItem(v string) UploadDatasetReqApplicationJSONSplitsItem

NewStringUploadDatasetReqApplicationJSONSplitsItem returns new UploadDatasetReqApplicationJSONSplitsItem from string.

func (*UploadDatasetReqApplicationJSONSplitsItem) Decode

Decode decodes UploadDatasetReqApplicationJSONSplitsItem from json.

func (UploadDatasetReqApplicationJSONSplitsItem) Encode

Encode encodes UploadDatasetReqApplicationJSONSplitsItem as json.

func (UploadDatasetReqApplicationJSONSplitsItem) GetString

GetString returns string and true boolean if UploadDatasetReqApplicationJSONSplitsItem is string.

func (UploadDatasetReqApplicationJSONSplitsItem) GetStringArray

func (s UploadDatasetReqApplicationJSONSplitsItem) GetStringArray() (v []string, ok bool)

GetStringArray returns []string and true boolean if UploadDatasetReqApplicationJSONSplitsItem is []string.

func (UploadDatasetReqApplicationJSONSplitsItem) IsString

IsString reports whether UploadDatasetReqApplicationJSONSplitsItem is string.

func (UploadDatasetReqApplicationJSONSplitsItem) IsStringArray

IsStringArray reports whether UploadDatasetReqApplicationJSONSplitsItem is []string.

func (UploadDatasetReqApplicationJSONSplitsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatasetReqApplicationJSONSplitsItem) SetString

SetString sets UploadDatasetReqApplicationJSONSplitsItem to string.

func (*UploadDatasetReqApplicationJSONSplitsItem) SetStringArray

func (s *UploadDatasetReqApplicationJSONSplitsItem) SetStringArray(v []string)

SetStringArray sets UploadDatasetReqApplicationJSONSplitsItem to []string.

func (*UploadDatasetReqApplicationJSONSplitsItem) UnmarshalJSON

func (s *UploadDatasetReqApplicationJSONSplitsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (UploadDatasetReqApplicationJSONSplitsItem) Validate

type UploadDatasetReqApplicationJSONSplitsItemType

type UploadDatasetReqApplicationJSONSplitsItemType string

UploadDatasetReqApplicationJSONSplitsItemType is oneOf type of UploadDatasetReqApplicationJSONSplitsItem.

const (
	StringUploadDatasetReqApplicationJSONSplitsItem      UploadDatasetReqApplicationJSONSplitsItemType = "string"
	StringArrayUploadDatasetReqApplicationJSONSplitsItem UploadDatasetReqApplicationJSONSplitsItemType = "[]string"
)

Possible values for UploadDatasetReqApplicationJSONSplitsItemType.

type UploadDatasetReqEmptyBody

type UploadDatasetReqEmptyBody struct{}

type UploadDatasetReqMultipartFormData

type UploadDatasetReqMultipartFormData struct {
	Action       OptUploadDatasetReqMultipartFormDataAction `json:"action"`
	Description  OptString                                  `json:"description"`
	File         ht.MultipartFile                           `json:"file"`
	InputKeys    []string                                   `json:"input_keys[]"`
	MetadataKeys []string                                   `json:"metadata_keys[]"`
	Name         string                                     `json:"name"`
	OutputKeys   []string                                   `json:"output_keys[]"`
	// Column names for auto-assigning examples to splits.
	SplitKeys []string `json:"split_keys[]"`
}

func (*UploadDatasetReqMultipartFormData) GetAction

GetAction returns the value of Action.

func (*UploadDatasetReqMultipartFormData) GetDescription

func (s *UploadDatasetReqMultipartFormData) GetDescription() OptString

GetDescription returns the value of Description.

func (*UploadDatasetReqMultipartFormData) GetFile

GetFile returns the value of File.

func (*UploadDatasetReqMultipartFormData) GetInputKeys

func (s *UploadDatasetReqMultipartFormData) GetInputKeys() []string

GetInputKeys returns the value of InputKeys.

func (*UploadDatasetReqMultipartFormData) GetMetadataKeys

func (s *UploadDatasetReqMultipartFormData) GetMetadataKeys() []string

GetMetadataKeys returns the value of MetadataKeys.

func (*UploadDatasetReqMultipartFormData) GetName

GetName returns the value of Name.

func (*UploadDatasetReqMultipartFormData) GetOutputKeys

func (s *UploadDatasetReqMultipartFormData) GetOutputKeys() []string

GetOutputKeys returns the value of OutputKeys.

func (*UploadDatasetReqMultipartFormData) GetSplitKeys

func (s *UploadDatasetReqMultipartFormData) GetSplitKeys() []string

GetSplitKeys returns the value of SplitKeys.

func (*UploadDatasetReqMultipartFormData) SetAction

SetAction sets the value of Action.

func (*UploadDatasetReqMultipartFormData) SetDescription

func (s *UploadDatasetReqMultipartFormData) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*UploadDatasetReqMultipartFormData) SetFile

SetFile sets the value of File.

func (*UploadDatasetReqMultipartFormData) SetInputKeys

func (s *UploadDatasetReqMultipartFormData) SetInputKeys(val []string)

SetInputKeys sets the value of InputKeys.

func (*UploadDatasetReqMultipartFormData) SetMetadataKeys

func (s *UploadDatasetReqMultipartFormData) SetMetadataKeys(val []string)

SetMetadataKeys sets the value of MetadataKeys.

func (*UploadDatasetReqMultipartFormData) SetName

func (s *UploadDatasetReqMultipartFormData) SetName(val string)

SetName sets the value of Name.

func (*UploadDatasetReqMultipartFormData) SetOutputKeys

func (s *UploadDatasetReqMultipartFormData) SetOutputKeys(val []string)

SetOutputKeys sets the value of OutputKeys.

func (*UploadDatasetReqMultipartFormData) SetSplitKeys

func (s *UploadDatasetReqMultipartFormData) SetSplitKeys(val []string)

SetSplitKeys sets the value of SplitKeys.

func (*UploadDatasetReqMultipartFormData) Validate

type UploadDatasetReqMultipartFormDataAction

type UploadDatasetReqMultipartFormDataAction string
const (
	UploadDatasetReqMultipartFormDataActionCreate UploadDatasetReqMultipartFormDataAction = "create"
	UploadDatasetReqMultipartFormDataActionAppend UploadDatasetReqMultipartFormDataAction = "append"
)

func (UploadDatasetReqMultipartFormDataAction) AllValues

AllValues returns all UploadDatasetReqMultipartFormDataAction values.

func (UploadDatasetReqMultipartFormDataAction) MarshalText

func (s UploadDatasetReqMultipartFormDataAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UploadDatasetReqMultipartFormDataAction) UnmarshalText

func (s *UploadDatasetReqMultipartFormDataAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UploadDatasetReqMultipartFormDataAction) Validate

type UploadDatasetRes

type UploadDatasetRes interface {
	// contains filtered or unexported methods
}

type UploadDatasetResponseBody

type UploadDatasetResponseBody struct {
	Data UploadDatasetData `json:"data"`
}

Ref: #/components/schemas/UploadDatasetResponseBody

func (*UploadDatasetResponseBody) Decode

func (s *UploadDatasetResponseBody) Decode(d *jx.Decoder) error

Decode decodes UploadDatasetResponseBody from json.

func (*UploadDatasetResponseBody) Encode

func (s *UploadDatasetResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UploadDatasetResponseBody) GetData

GetData returns the value of Data.

func (*UploadDatasetResponseBody) MarshalJSON

func (s *UploadDatasetResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatasetResponseBody) SetData

SetData sets the value of Data.

func (*UploadDatasetResponseBody) UnmarshalJSON

func (s *UploadDatasetResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadDatasetUnprocessableEntity

type UploadDatasetUnprocessableEntity struct {
	Data io.Reader
}

func (UploadDatasetUnprocessableEntity) Read

func (s UploadDatasetUnprocessableEntity) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UpsertExperimentEvaluationForbidden

type UpsertExperimentEvaluationForbidden struct {
	Data io.Reader
}

func (UpsertExperimentEvaluationForbidden) Read

func (s UpsertExperimentEvaluationForbidden) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UpsertExperimentEvaluationNotFound

type UpsertExperimentEvaluationNotFound struct {
	Data io.Reader
}

func (UpsertExperimentEvaluationNotFound) Read

func (s UpsertExperimentEvaluationNotFound) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type UpsertExperimentEvaluationRequestBody

type UpsertExperimentEvaluationRequestBody struct {
	// The kind of annotator used for the evaluation.
	AnnotatorKind UpsertExperimentEvaluationRequestBodyAnnotatorKind `json:"annotator_kind"`
	// The end time of the evaluation in ISO format.
	EndTime time.Time `json:"end_time"`
	// Error message if the evaluation encountered an error. Either result or error must be provided.
	Error OptNilString `json:"error"`
	// The ID of the experiment run being evaluated.
	ExperimentRunID string `json:"experiment_run_id"`
	// Metadata for the evaluation.
	Metadata OptNilUpsertExperimentEvaluationRequestBodyMetadata `json:"metadata"`
	// The name of the evaluation.
	Name string `json:"name"`
	// The result of the evaluation. Either result or error must be provided.
	Result OptExperimentEvaluationResult `json:"result"`
	// The start time of the evaluation in ISO format.
	StartTime time.Time `json:"start_time"`
	// Optional trace ID for tracking.
	TraceID OptNilString `json:"trace_id"`
}

Ref: #/components/schemas/UpsertExperimentEvaluationRequestBody

func (*UpsertExperimentEvaluationRequestBody) Decode

Decode decodes UpsertExperimentEvaluationRequestBody from json.

func (*UpsertExperimentEvaluationRequestBody) Encode

Encode implements json.Marshaler.

func (*UpsertExperimentEvaluationRequestBody) GetAnnotatorKind

GetAnnotatorKind returns the value of AnnotatorKind.

func (*UpsertExperimentEvaluationRequestBody) GetEndTime

GetEndTime returns the value of EndTime.

func (*UpsertExperimentEvaluationRequestBody) GetError

GetError returns the value of Error.

func (*UpsertExperimentEvaluationRequestBody) GetExperimentRunID

func (s *UpsertExperimentEvaluationRequestBody) GetExperimentRunID() string

GetExperimentRunID returns the value of ExperimentRunID.

func (*UpsertExperimentEvaluationRequestBody) GetMetadata

GetMetadata returns the value of Metadata.

func (*UpsertExperimentEvaluationRequestBody) GetName

GetName returns the value of Name.

func (*UpsertExperimentEvaluationRequestBody) GetResult

GetResult returns the value of Result.

func (*UpsertExperimentEvaluationRequestBody) GetStartTime

GetStartTime returns the value of StartTime.

func (*UpsertExperimentEvaluationRequestBody) GetTraceID

GetTraceID returns the value of TraceID.

func (*UpsertExperimentEvaluationRequestBody) MarshalJSON

func (s *UpsertExperimentEvaluationRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpsertExperimentEvaluationRequestBody) SetAnnotatorKind

SetAnnotatorKind sets the value of AnnotatorKind.

func (*UpsertExperimentEvaluationRequestBody) SetEndTime

func (s *UpsertExperimentEvaluationRequestBody) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*UpsertExperimentEvaluationRequestBody) SetError

SetError sets the value of Error.

func (*UpsertExperimentEvaluationRequestBody) SetExperimentRunID

func (s *UpsertExperimentEvaluationRequestBody) SetExperimentRunID(val string)

SetExperimentRunID sets the value of ExperimentRunID.

func (*UpsertExperimentEvaluationRequestBody) SetMetadata

SetMetadata sets the value of Metadata.

func (*UpsertExperimentEvaluationRequestBody) SetName

SetName sets the value of Name.

func (*UpsertExperimentEvaluationRequestBody) SetResult

SetResult sets the value of Result.

func (*UpsertExperimentEvaluationRequestBody) SetStartTime

func (s *UpsertExperimentEvaluationRequestBody) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*UpsertExperimentEvaluationRequestBody) SetTraceID

SetTraceID sets the value of TraceID.

func (*UpsertExperimentEvaluationRequestBody) UnmarshalJSON

func (s *UpsertExperimentEvaluationRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpsertExperimentEvaluationRequestBody) Validate

type UpsertExperimentEvaluationRequestBodyAnnotatorKind

type UpsertExperimentEvaluationRequestBodyAnnotatorKind string

The kind of annotator used for the evaluation.

const (
	UpsertExperimentEvaluationRequestBodyAnnotatorKindLLM   UpsertExperimentEvaluationRequestBodyAnnotatorKind = "LLM"
	UpsertExperimentEvaluationRequestBodyAnnotatorKindCODE  UpsertExperimentEvaluationRequestBodyAnnotatorKind = "CODE"
	UpsertExperimentEvaluationRequestBodyAnnotatorKindHUMAN UpsertExperimentEvaluationRequestBodyAnnotatorKind = "HUMAN"
)

func (UpsertExperimentEvaluationRequestBodyAnnotatorKind) AllValues

AllValues returns all UpsertExperimentEvaluationRequestBodyAnnotatorKind values.

func (*UpsertExperimentEvaluationRequestBodyAnnotatorKind) Decode

Decode decodes UpsertExperimentEvaluationRequestBodyAnnotatorKind from json.

func (UpsertExperimentEvaluationRequestBodyAnnotatorKind) Encode

Encode encodes UpsertExperimentEvaluationRequestBodyAnnotatorKind as json.

func (UpsertExperimentEvaluationRequestBodyAnnotatorKind) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpsertExperimentEvaluationRequestBodyAnnotatorKind) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpsertExperimentEvaluationRequestBodyAnnotatorKind) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpsertExperimentEvaluationRequestBodyAnnotatorKind) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpsertExperimentEvaluationRequestBodyAnnotatorKind) Validate

type UpsertExperimentEvaluationRequestBodyMetadata

type UpsertExperimentEvaluationRequestBodyMetadata map[string]jx.Raw

Metadata for the evaluation.

func (*UpsertExperimentEvaluationRequestBodyMetadata) Decode

Decode decodes UpsertExperimentEvaluationRequestBodyMetadata from json.

func (UpsertExperimentEvaluationRequestBodyMetadata) Encode

Encode implements json.Marshaler.

func (UpsertExperimentEvaluationRequestBodyMetadata) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UpsertExperimentEvaluationRequestBodyMetadata) UnmarshalJSON

func (s *UpsertExperimentEvaluationRequestBodyMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpsertExperimentEvaluationRes

type UpsertExperimentEvaluationRes interface {
	// contains filtered or unexported methods
}

type UpsertExperimentEvaluationResponseBody

type UpsertExperimentEvaluationResponseBody struct {
	Data UpsertExperimentEvaluationResponseBodyData `json:"data"`
}

Ref: #/components/schemas/UpsertExperimentEvaluationResponseBody

func (*UpsertExperimentEvaluationResponseBody) Decode

Decode decodes UpsertExperimentEvaluationResponseBody from json.

func (*UpsertExperimentEvaluationResponseBody) Encode

Encode implements json.Marshaler.

func (*UpsertExperimentEvaluationResponseBody) GetData

GetData returns the value of Data.

func (*UpsertExperimentEvaluationResponseBody) MarshalJSON

func (s *UpsertExperimentEvaluationResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpsertExperimentEvaluationResponseBody) SetData

SetData sets the value of Data.

func (*UpsertExperimentEvaluationResponseBody) UnmarshalJSON

func (s *UpsertExperimentEvaluationResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpsertExperimentEvaluationResponseBodyData

type UpsertExperimentEvaluationResponseBodyData struct {
	// The ID of the upserted experiment evaluation.
	ID string `json:"id"`
}

Ref: #/components/schemas/UpsertExperimentEvaluationResponseBodyData

func (*UpsertExperimentEvaluationResponseBodyData) Decode

Decode decodes UpsertExperimentEvaluationResponseBodyData from json.

func (*UpsertExperimentEvaluationResponseBodyData) Encode

Encode implements json.Marshaler.

func (*UpsertExperimentEvaluationResponseBodyData) GetID

GetID returns the value of ID.

func (*UpsertExperimentEvaluationResponseBodyData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UpsertExperimentEvaluationResponseBodyData) SetID

SetID sets the value of ID.

func (*UpsertExperimentEvaluationResponseBodyData) UnmarshalJSON

func (s *UpsertExperimentEvaluationResponseBodyData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ValidationError

type ValidationError struct {
	Loc  []ValidationErrorLocItem `json:"loc"`
	Msg  string                   `json:"msg"`
	Type string                   `json:"type"`
}

Ref: #/components/schemas/ValidationError

func (*ValidationError) Decode

func (s *ValidationError) Decode(d *jx.Decoder) error

Decode decodes ValidationError from json.

func (*ValidationError) Encode

func (s *ValidationError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ValidationError) GetLoc

GetLoc returns the value of Loc.

func (*ValidationError) GetMsg

func (s *ValidationError) GetMsg() string

GetMsg returns the value of Msg.

func (*ValidationError) GetType

func (s *ValidationError) GetType() string

GetType returns the value of Type.

func (*ValidationError) MarshalJSON

func (s *ValidationError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidationError) SetLoc

func (s *ValidationError) SetLoc(val []ValidationErrorLocItem)

SetLoc sets the value of Loc.

func (*ValidationError) SetMsg

func (s *ValidationError) SetMsg(val string)

SetMsg sets the value of Msg.

func (*ValidationError) SetType

func (s *ValidationError) SetType(val string)

SetType sets the value of Type.

func (*ValidationError) UnmarshalJSON

func (s *ValidationError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ValidationError) Validate

func (s *ValidationError) Validate() error

type ValidationErrorLocItem

type ValidationErrorLocItem struct {
	Type   ValidationErrorLocItemType // switch on this field
	String string
	Int    int
}

ValidationErrorLocItem represents sum type.

func NewIntValidationErrorLocItem

func NewIntValidationErrorLocItem(v int) ValidationErrorLocItem

NewIntValidationErrorLocItem returns new ValidationErrorLocItem from int.

func NewStringValidationErrorLocItem

func NewStringValidationErrorLocItem(v string) ValidationErrorLocItem

NewStringValidationErrorLocItem returns new ValidationErrorLocItem from string.

func (*ValidationErrorLocItem) Decode

func (s *ValidationErrorLocItem) Decode(d *jx.Decoder) error

Decode decodes ValidationErrorLocItem from json.

func (ValidationErrorLocItem) Encode

func (s ValidationErrorLocItem) Encode(e *jx.Encoder)

Encode encodes ValidationErrorLocItem as json.

func (ValidationErrorLocItem) GetInt

func (s ValidationErrorLocItem) GetInt() (v int, ok bool)

GetInt returns int and true boolean if ValidationErrorLocItem is int.

func (ValidationErrorLocItem) GetString

func (s ValidationErrorLocItem) GetString() (v string, ok bool)

GetString returns string and true boolean if ValidationErrorLocItem is string.

func (ValidationErrorLocItem) IsInt

func (s ValidationErrorLocItem) IsInt() bool

IsInt reports whether ValidationErrorLocItem is int.

func (ValidationErrorLocItem) IsString

func (s ValidationErrorLocItem) IsString() bool

IsString reports whether ValidationErrorLocItem is string.

func (ValidationErrorLocItem) MarshalJSON

func (s ValidationErrorLocItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidationErrorLocItem) SetInt

func (s *ValidationErrorLocItem) SetInt(v int)

SetInt sets ValidationErrorLocItem to int.

func (*ValidationErrorLocItem) SetString

func (s *ValidationErrorLocItem) SetString(v string)

SetString sets ValidationErrorLocItem to string.

func (*ValidationErrorLocItem) UnmarshalJSON

func (s *ValidationErrorLocItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ValidationErrorLocItemType

type ValidationErrorLocItemType string

ValidationErrorLocItemType is oneOf type of ValidationErrorLocItem.

const (
	StringValidationErrorLocItem ValidationErrorLocItemType = "string"
	IntValidationErrorLocItem    ValidationErrorLocItemType = "int"
)

Possible values for ValidationErrorLocItemType.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL