Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AgentV2Info
- func (s *AgentV2Info) Decode(d *jx.Decoder) error
- func (s *AgentV2Info) Encode(e *jx.Encoder)
- func (s *AgentV2Info) GetColor() jx.Raw
- func (s *AgentV2Info) GetDescription() OptString
- func (s *AgentV2Info) GetHidden() bool
- func (s *AgentV2Info) GetID() string
- func (s *AgentV2Info) GetMode() AgentV2InfoMode
- func (s *AgentV2Info) GetModel() OptNilAgentV2InfoModel
- func (s *AgentV2Info) GetPermissions() PermissionV2Ruleset
- func (s *AgentV2Info) GetRequest() AgentV2InfoRequest
- func (s *AgentV2Info) GetSteps() OptInt
- func (s *AgentV2Info) GetSystem() OptString
- func (s *AgentV2Info) MarshalJSON() ([]byte, error)
- func (s *AgentV2Info) SetColor(val jx.Raw)
- func (s *AgentV2Info) SetDescription(val OptString)
- func (s *AgentV2Info) SetHidden(val bool)
- func (s *AgentV2Info) SetID(val string)
- func (s *AgentV2Info) SetMode(val AgentV2InfoMode)
- func (s *AgentV2Info) SetModel(val OptNilAgentV2InfoModel)
- func (s *AgentV2Info) SetPermissions(val PermissionV2Ruleset)
- func (s *AgentV2Info) SetRequest(val AgentV2InfoRequest)
- func (s *AgentV2Info) SetSteps(val OptInt)
- func (s *AgentV2Info) SetSystem(val OptString)
- func (s *AgentV2Info) UnmarshalJSON(data []byte) error
- func (s *AgentV2Info) Validate() error
- type AgentV2InfoMode
- func (AgentV2InfoMode) AllValues() []AgentV2InfoMode
- func (s *AgentV2InfoMode) Decode(d *jx.Decoder) error
- func (s AgentV2InfoMode) Encode(e *jx.Encoder)
- func (s AgentV2InfoMode) MarshalJSON() ([]byte, error)
- func (s AgentV2InfoMode) MarshalText() ([]byte, error)
- func (s *AgentV2InfoMode) UnmarshalJSON(data []byte) error
- func (s *AgentV2InfoMode) UnmarshalText(data []byte) error
- func (s AgentV2InfoMode) Validate() error
- type AgentV2InfoModel
- func (s *AgentV2InfoModel) Decode(d *jx.Decoder) error
- func (s *AgentV2InfoModel) Encode(e *jx.Encoder)
- func (s *AgentV2InfoModel) GetID() string
- func (s *AgentV2InfoModel) GetProviderID() string
- func (s *AgentV2InfoModel) GetVariant() OptNilString
- func (s *AgentV2InfoModel) MarshalJSON() ([]byte, error)
- func (s *AgentV2InfoModel) SetID(val string)
- func (s *AgentV2InfoModel) SetProviderID(val string)
- func (s *AgentV2InfoModel) SetVariant(val OptNilString)
- func (s *AgentV2InfoModel) UnmarshalJSON(data []byte) error
- type AgentV2InfoRequest
- func (s *AgentV2InfoRequest) Decode(d *jx.Decoder) error
- func (s *AgentV2InfoRequest) Encode(e *jx.Encoder)
- func (s *AgentV2InfoRequest) GetBody() AgentV2InfoRequestBody
- func (s *AgentV2InfoRequest) GetHeaders() AgentV2InfoRequestHeaders
- func (s *AgentV2InfoRequest) MarshalJSON() ([]byte, error)
- func (s *AgentV2InfoRequest) SetBody(val AgentV2InfoRequestBody)
- func (s *AgentV2InfoRequest) SetHeaders(val AgentV2InfoRequestHeaders)
- func (s *AgentV2InfoRequest) UnmarshalJSON(data []byte) error
- type AgentV2InfoRequestBody
- type AgentV2InfoRequestHeaders
- type Client
- func (c *Client) SessionCreate(ctx context.Context, request OptSessionCreateReq, params SessionCreateParams) (SessionCreateRes, error)
- func (c *Client) SessionMessage(ctx context.Context, request *SessionMessageReq, params SessionMessageParams) (SessionMessageRes, error)
- func (c *Client) SessionMessages(ctx context.Context, params SessionMessagesParams) (SessionMessagesRes, error)
- func (c *Client) V2AgentList(ctx context.Context, params V2AgentListParams) (V2AgentListRes, error)
- func (c *Client) V2HealthGet(ctx context.Context) (V2HealthGetRes, error)
- func (c *Client) V2ModelList(ctx context.Context, params V2ModelListParams) (V2ModelListRes, error)
- func (c *Client) V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (V2PermissionRequestListRes, error)
- func (c *Client) V2ProviderList(ctx context.Context, params V2ProviderListParams) (V2ProviderListRes, error)
- func (c *Client) V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (V2QuestionRequestListRes, error)
- func (c *Client) V2SessionContext(ctx context.Context, params V2SessionContextParams) (V2SessionContextRes, error)
- func (c *Client) V2SessionList(ctx context.Context, params V2SessionListParams) (V2SessionListRes, error)
- func (c *Client) V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (V2SessionMessagesRes, error)
- func (c *Client) V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (V2SessionPermissionListRes, error)
- func (c *Client) V2SessionPermissionReply(ctx context.Context, request *V2SessionPermissionReplyReq, ...) (V2SessionPermissionReplyRes, error)
- func (c *Client) V2SessionPrompt(ctx context.Context, request *V2SessionPromptReq, params V2SessionPromptParams) (V2SessionPromptRes, error)
- func (c *Client) V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (V2SessionQuestionRejectRes, error)
- func (c *Client) V2SessionQuestionReply(ctx context.Context, request *QuestionV2Reply, ...) (V2SessionQuestionReplyRes, error)
- func (c *Client) V2SessionWait(ctx context.Context, params V2SessionWaitParams) (V2SessionWaitRes, error)
- type ClientOption
- type ConflictError
- func (s *ConflictError) Decode(d *jx.Decoder) error
- func (s *ConflictError) Encode(e *jx.Encoder)
- func (s *ConflictError) GetMessage() string
- func (s *ConflictError) GetResource() OptString
- func (s *ConflictError) GetTag() ConflictErrorTag
- func (s *ConflictError) MarshalJSON() ([]byte, error)
- func (s *ConflictError) SetMessage(val string)
- func (s *ConflictError) SetResource(val OptString)
- func (s *ConflictError) SetTag(val ConflictErrorTag)
- func (s *ConflictError) UnmarshalJSON(data []byte) error
- func (s *ConflictError) Validate() error
- type ConflictErrorTag
- func (ConflictErrorTag) AllValues() []ConflictErrorTag
- func (s *ConflictErrorTag) Decode(d *jx.Decoder) error
- func (s ConflictErrorTag) Encode(e *jx.Encoder)
- func (s ConflictErrorTag) MarshalJSON() ([]byte, error)
- func (s ConflictErrorTag) MarshalText() ([]byte, error)
- func (s *ConflictErrorTag) UnmarshalJSON(data []byte) error
- func (s *ConflictErrorTag) UnmarshalText(data []byte) error
- func (s ConflictErrorTag) Validate() error
- type ErrorHandler
- type Handler
- type InvalidRequestError
- func (s *InvalidRequestError) Decode(d *jx.Decoder) error
- func (s *InvalidRequestError) Encode(e *jx.Encoder)
- func (s *InvalidRequestError) GetField() OptString
- func (s *InvalidRequestError) GetKind() OptString
- func (s *InvalidRequestError) GetMessage() string
- func (s *InvalidRequestError) GetTag() InvalidRequestErrorTag
- func (s *InvalidRequestError) MarshalJSON() ([]byte, error)
- func (s *InvalidRequestError) SetField(val OptString)
- func (s *InvalidRequestError) SetKind(val OptString)
- func (s *InvalidRequestError) SetMessage(val string)
- func (s *InvalidRequestError) SetTag(val InvalidRequestErrorTag)
- func (s *InvalidRequestError) UnmarshalJSON(data []byte) error
- func (s *InvalidRequestError) Validate() error
- type InvalidRequestErrorTag
- func (InvalidRequestErrorTag) AllValues() []InvalidRequestErrorTag
- func (s *InvalidRequestErrorTag) Decode(d *jx.Decoder) error
- func (s InvalidRequestErrorTag) Encode(e *jx.Encoder)
- func (s InvalidRequestErrorTag) MarshalJSON() ([]byte, error)
- func (s InvalidRequestErrorTag) MarshalText() ([]byte, error)
- func (s *InvalidRequestErrorTag) UnmarshalJSON(data []byte) error
- func (s *InvalidRequestErrorTag) UnmarshalText(data []byte) error
- func (s InvalidRequestErrorTag) Validate() error
- type Invoker
- type Labeler
- type LocationInfo
- func (s *LocationInfo) Decode(d *jx.Decoder) error
- func (s *LocationInfo) Encode(e *jx.Encoder)
- func (s *LocationInfo) GetDirectory() string
- func (s *LocationInfo) GetProject() LocationInfoProject
- func (s *LocationInfo) GetWorkspaceID() OptNilString
- func (s *LocationInfo) MarshalJSON() ([]byte, error)
- func (s *LocationInfo) SetDirectory(val string)
- func (s *LocationInfo) SetProject(val LocationInfoProject)
- func (s *LocationInfo) SetWorkspaceID(val OptNilString)
- func (s *LocationInfo) UnmarshalJSON(data []byte) error
- func (s *LocationInfo) Validate() error
- type LocationInfoProject
- func (s *LocationInfoProject) Decode(d *jx.Decoder) error
- func (s *LocationInfoProject) Encode(e *jx.Encoder)
- func (s *LocationInfoProject) GetDirectory() string
- func (s *LocationInfoProject) GetID() string
- func (s *LocationInfoProject) MarshalJSON() ([]byte, error)
- func (s *LocationInfoProject) SetDirectory(val string)
- func (s *LocationInfoProject) SetID(val string)
- func (s *LocationInfoProject) UnmarshalJSON(data []byte) error
- type LocationRef
- func (s *LocationRef) Decode(d *jx.Decoder) error
- func (s *LocationRef) Encode(e *jx.Encoder)
- func (s *LocationRef) GetDirectory() string
- func (s *LocationRef) GetWorkspaceID() OptNilString
- func (s *LocationRef) MarshalJSON() ([]byte, error)
- func (s *LocationRef) SetDirectory(val string)
- func (s *LocationRef) SetWorkspaceID(val OptNilString)
- func (s *LocationRef) UnmarshalJSON(data []byte) error
- func (s *LocationRef) Validate() error
- type Middleware
- type ModelV2Info
- func (s *ModelV2Info) Decode(d *jx.Decoder) error
- func (s *ModelV2Info) Encode(e *jx.Encoder)
- func (s *ModelV2Info) GetAPI() jx.Raw
- func (s *ModelV2Info) GetCapabilities() ModelV2InfoCapabilities
- func (s *ModelV2Info) GetCost() []ModelV2InfoCostItem
- func (s *ModelV2Info) GetEnabled() bool
- func (s *ModelV2Info) GetFamily() OptNilString
- func (s *ModelV2Info) GetID() string
- func (s *ModelV2Info) GetLimit() ModelV2InfoLimit
- func (s *ModelV2Info) GetName() string
- func (s *ModelV2Info) GetProviderID() string
- func (s *ModelV2Info) GetRequest() ModelV2InfoRequest
- func (s *ModelV2Info) GetStatus() ModelV2InfoStatus
- func (s *ModelV2Info) GetTime() ModelV2InfoTime
- func (s *ModelV2Info) GetVariants() []ModelV2InfoVariantsItem
- func (s *ModelV2Info) MarshalJSON() ([]byte, error)
- func (s *ModelV2Info) SetAPI(val jx.Raw)
- func (s *ModelV2Info) SetCapabilities(val ModelV2InfoCapabilities)
- func (s *ModelV2Info) SetCost(val []ModelV2InfoCostItem)
- func (s *ModelV2Info) SetEnabled(val bool)
- func (s *ModelV2Info) SetFamily(val OptNilString)
- func (s *ModelV2Info) SetID(val string)
- func (s *ModelV2Info) SetLimit(val ModelV2InfoLimit)
- func (s *ModelV2Info) SetName(val string)
- func (s *ModelV2Info) SetProviderID(val string)
- func (s *ModelV2Info) SetRequest(val ModelV2InfoRequest)
- func (s *ModelV2Info) SetStatus(val ModelV2InfoStatus)
- func (s *ModelV2Info) SetTime(val ModelV2InfoTime)
- func (s *ModelV2Info) SetVariants(val []ModelV2InfoVariantsItem)
- func (s *ModelV2Info) UnmarshalJSON(data []byte) error
- func (s *ModelV2Info) Validate() error
- type ModelV2InfoCapabilities
- func (s *ModelV2InfoCapabilities) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoCapabilities) Encode(e *jx.Encoder)
- func (s *ModelV2InfoCapabilities) GetInput() []string
- func (s *ModelV2InfoCapabilities) GetOutput() []string
- func (s *ModelV2InfoCapabilities) GetTools() bool
- func (s *ModelV2InfoCapabilities) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoCapabilities) SetInput(val []string)
- func (s *ModelV2InfoCapabilities) SetOutput(val []string)
- func (s *ModelV2InfoCapabilities) SetTools(val bool)
- func (s *ModelV2InfoCapabilities) UnmarshalJSON(data []byte) error
- func (s *ModelV2InfoCapabilities) Validate() error
- type ModelV2InfoCostItem
- func (s *ModelV2InfoCostItem) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoCostItem) Encode(e *jx.Encoder)
- func (s *ModelV2InfoCostItem) GetCache() ModelV2InfoCostItemCache
- func (s *ModelV2InfoCostItem) GetInput() NilFloat64
- func (s *ModelV2InfoCostItem) GetOutput() float64
- func (s *ModelV2InfoCostItem) GetTier() OptModelV2InfoCostItemTier
- func (s *ModelV2InfoCostItem) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoCostItem) SetCache(val ModelV2InfoCostItemCache)
- func (s *ModelV2InfoCostItem) SetInput(val NilFloat64)
- func (s *ModelV2InfoCostItem) SetOutput(val float64)
- func (s *ModelV2InfoCostItem) SetTier(val OptModelV2InfoCostItemTier)
- func (s *ModelV2InfoCostItem) UnmarshalJSON(data []byte) error
- func (s *ModelV2InfoCostItem) Validate() error
- type ModelV2InfoCostItemCache
- func (s *ModelV2InfoCostItemCache) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoCostItemCache) Encode(e *jx.Encoder)
- func (s *ModelV2InfoCostItemCache) GetRead() float64
- func (s *ModelV2InfoCostItemCache) GetWrite() float64
- func (s *ModelV2InfoCostItemCache) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoCostItemCache) SetRead(val float64)
- func (s *ModelV2InfoCostItemCache) SetWrite(val float64)
- func (s *ModelV2InfoCostItemCache) UnmarshalJSON(data []byte) error
- func (s *ModelV2InfoCostItemCache) Validate() error
- type ModelV2InfoCostItemTier
- func (s *ModelV2InfoCostItemTier) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoCostItemTier) Encode(e *jx.Encoder)
- func (s *ModelV2InfoCostItemTier) GetSize() int
- func (s *ModelV2InfoCostItemTier) GetType() ModelV2InfoCostItemTierType
- func (s *ModelV2InfoCostItemTier) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoCostItemTier) SetSize(val int)
- func (s *ModelV2InfoCostItemTier) SetType(val ModelV2InfoCostItemTierType)
- func (s *ModelV2InfoCostItemTier) UnmarshalJSON(data []byte) error
- func (s *ModelV2InfoCostItemTier) Validate() error
- type ModelV2InfoCostItemTierType
- func (ModelV2InfoCostItemTierType) AllValues() []ModelV2InfoCostItemTierType
- func (s *ModelV2InfoCostItemTierType) Decode(d *jx.Decoder) error
- func (s ModelV2InfoCostItemTierType) Encode(e *jx.Encoder)
- func (s ModelV2InfoCostItemTierType) MarshalJSON() ([]byte, error)
- func (s ModelV2InfoCostItemTierType) MarshalText() ([]byte, error)
- func (s *ModelV2InfoCostItemTierType) UnmarshalJSON(data []byte) error
- func (s *ModelV2InfoCostItemTierType) UnmarshalText(data []byte) error
- func (s ModelV2InfoCostItemTierType) Validate() error
- type ModelV2InfoLimit
- func (s *ModelV2InfoLimit) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoLimit) Encode(e *jx.Encoder)
- func (s *ModelV2InfoLimit) GetContext() int
- func (s *ModelV2InfoLimit) GetInput() OptNilInt
- func (s *ModelV2InfoLimit) GetOutput() int
- func (s *ModelV2InfoLimit) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoLimit) SetContext(val int)
- func (s *ModelV2InfoLimit) SetInput(val OptNilInt)
- func (s *ModelV2InfoLimit) SetOutput(val int)
- func (s *ModelV2InfoLimit) UnmarshalJSON(data []byte) error
- type ModelV2InfoRequest
- func (s *ModelV2InfoRequest) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoRequest) Encode(e *jx.Encoder)
- func (s *ModelV2InfoRequest) GetBody() ModelV2InfoRequestBody
- func (s *ModelV2InfoRequest) GetGeneration() OptModelV2InfoRequestGeneration
- func (s *ModelV2InfoRequest) GetHeaders() ModelV2InfoRequestHeaders
- func (s *ModelV2InfoRequest) GetOptions() *ModelV2InfoRequestOptions
- func (s *ModelV2InfoRequest) GetVariant() OptNilString
- func (s *ModelV2InfoRequest) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoRequest) SetBody(val ModelV2InfoRequestBody)
- func (s *ModelV2InfoRequest) SetGeneration(val OptModelV2InfoRequestGeneration)
- func (s *ModelV2InfoRequest) SetHeaders(val ModelV2InfoRequestHeaders)
- func (s *ModelV2InfoRequest) SetOptions(val *ModelV2InfoRequestOptions)
- func (s *ModelV2InfoRequest) SetVariant(val OptNilString)
- func (s *ModelV2InfoRequest) UnmarshalJSON(data []byte) error
- type ModelV2InfoRequestBody
- type ModelV2InfoRequestGeneration
- func (s *ModelV2InfoRequestGeneration) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoRequestGeneration) Encode(e *jx.Encoder)
- func (s *ModelV2InfoRequestGeneration) GetFrequencyPenalty() jx.Raw
- func (s *ModelV2InfoRequestGeneration) GetMaxTokens() jx.Raw
- func (s *ModelV2InfoRequestGeneration) GetPresencePenalty() jx.Raw
- func (s *ModelV2InfoRequestGeneration) GetSeed() jx.Raw
- func (s *ModelV2InfoRequestGeneration) GetStop() []string
- func (s *ModelV2InfoRequestGeneration) GetTemperature() jx.Raw
- func (s *ModelV2InfoRequestGeneration) GetTopK() jx.Raw
- func (s *ModelV2InfoRequestGeneration) GetTopP() jx.Raw
- func (s *ModelV2InfoRequestGeneration) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoRequestGeneration) SetFrequencyPenalty(val jx.Raw)
- func (s *ModelV2InfoRequestGeneration) SetMaxTokens(val jx.Raw)
- func (s *ModelV2InfoRequestGeneration) SetPresencePenalty(val jx.Raw)
- func (s *ModelV2InfoRequestGeneration) SetSeed(val jx.Raw)
- func (s *ModelV2InfoRequestGeneration) SetStop(val []string)
- func (s *ModelV2InfoRequestGeneration) SetTemperature(val jx.Raw)
- func (s *ModelV2InfoRequestGeneration) SetTopK(val jx.Raw)
- func (s *ModelV2InfoRequestGeneration) SetTopP(val jx.Raw)
- func (s *ModelV2InfoRequestGeneration) UnmarshalJSON(data []byte) error
- type ModelV2InfoRequestHeaders
- type ModelV2InfoRequestOptions
- type ModelV2InfoStatus
- func (ModelV2InfoStatus) AllValues() []ModelV2InfoStatus
- func (s *ModelV2InfoStatus) Decode(d *jx.Decoder) error
- func (s ModelV2InfoStatus) Encode(e *jx.Encoder)
- func (s ModelV2InfoStatus) MarshalJSON() ([]byte, error)
- func (s ModelV2InfoStatus) MarshalText() ([]byte, error)
- func (s *ModelV2InfoStatus) UnmarshalJSON(data []byte) error
- func (s *ModelV2InfoStatus) UnmarshalText(data []byte) error
- func (s ModelV2InfoStatus) Validate() error
- type ModelV2InfoTime
- func (s *ModelV2InfoTime) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoTime) Encode(e *jx.Encoder)
- func (s *ModelV2InfoTime) GetReleased() jx.Raw
- func (s *ModelV2InfoTime) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoTime) SetReleased(val jx.Raw)
- func (s *ModelV2InfoTime) UnmarshalJSON(data []byte) error
- type ModelV2InfoVariantsItem
- func (s *ModelV2InfoVariantsItem) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoVariantsItem) Encode(e *jx.Encoder)
- func (s *ModelV2InfoVariantsItem) GetBody() ModelV2InfoVariantsItemBody
- func (s *ModelV2InfoVariantsItem) GetGeneration() OptModelV2InfoVariantsItemGeneration
- func (s *ModelV2InfoVariantsItem) GetHeaders() ModelV2InfoVariantsItemHeaders
- func (s *ModelV2InfoVariantsItem) GetID() string
- func (s *ModelV2InfoVariantsItem) GetOptions() *ModelV2InfoVariantsItemOptions
- func (s *ModelV2InfoVariantsItem) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoVariantsItem) SetBody(val ModelV2InfoVariantsItemBody)
- func (s *ModelV2InfoVariantsItem) SetGeneration(val OptModelV2InfoVariantsItemGeneration)
- func (s *ModelV2InfoVariantsItem) SetHeaders(val ModelV2InfoVariantsItemHeaders)
- func (s *ModelV2InfoVariantsItem) SetID(val string)
- func (s *ModelV2InfoVariantsItem) SetOptions(val *ModelV2InfoVariantsItemOptions)
- func (s *ModelV2InfoVariantsItem) UnmarshalJSON(data []byte) error
- type ModelV2InfoVariantsItemBody
- type ModelV2InfoVariantsItemGeneration
- func (s *ModelV2InfoVariantsItemGeneration) Decode(d *jx.Decoder) error
- func (s *ModelV2InfoVariantsItemGeneration) Encode(e *jx.Encoder)
- func (s *ModelV2InfoVariantsItemGeneration) GetFrequencyPenalty() jx.Raw
- func (s *ModelV2InfoVariantsItemGeneration) GetMaxTokens() jx.Raw
- func (s *ModelV2InfoVariantsItemGeneration) GetPresencePenalty() jx.Raw
- func (s *ModelV2InfoVariantsItemGeneration) GetSeed() jx.Raw
- func (s *ModelV2InfoVariantsItemGeneration) GetStop() []string
- func (s *ModelV2InfoVariantsItemGeneration) GetTemperature() jx.Raw
- func (s *ModelV2InfoVariantsItemGeneration) GetTopK() jx.Raw
- func (s *ModelV2InfoVariantsItemGeneration) GetTopP() jx.Raw
- func (s *ModelV2InfoVariantsItemGeneration) MarshalJSON() ([]byte, error)
- func (s *ModelV2InfoVariantsItemGeneration) SetFrequencyPenalty(val jx.Raw)
- func (s *ModelV2InfoVariantsItemGeneration) SetMaxTokens(val jx.Raw)
- func (s *ModelV2InfoVariantsItemGeneration) SetPresencePenalty(val jx.Raw)
- func (s *ModelV2InfoVariantsItemGeneration) SetSeed(val jx.Raw)
- func (s *ModelV2InfoVariantsItemGeneration) SetStop(val []string)
- func (s *ModelV2InfoVariantsItemGeneration) SetTemperature(val jx.Raw)
- func (s *ModelV2InfoVariantsItemGeneration) SetTopK(val jx.Raw)
- func (s *ModelV2InfoVariantsItemGeneration) SetTopP(val jx.Raw)
- func (s *ModelV2InfoVariantsItemGeneration) UnmarshalJSON(data []byte) error
- type ModelV2InfoVariantsItemHeaders
- type ModelV2InfoVariantsItemOptions
- type NilFloat64
- func (o *NilFloat64) Decode(d *jx.Decoder) error
- func (o NilFloat64) Encode(e *jx.Encoder)
- func (o NilFloat64) Get() (v float64, ok bool)
- func (o NilFloat64) IsNull() bool
- func (s NilFloat64) MarshalJSON() ([]byte, error)
- func (o NilFloat64) Or(d float64) float64
- func (o *NilFloat64) SetTo(v float64)
- func (o *NilFloat64) SetToNull()
- func (s *NilFloat64) UnmarshalJSON(data []byte) error
- type OperationName
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptModelV2InfoCostItemTier
- func (o *OptModelV2InfoCostItemTier) Decode(d *jx.Decoder) error
- func (o OptModelV2InfoCostItemTier) Encode(e *jx.Encoder)
- func (o OptModelV2InfoCostItemTier) Get() (v ModelV2InfoCostItemTier, ok bool)
- func (o OptModelV2InfoCostItemTier) IsSet() bool
- func (s OptModelV2InfoCostItemTier) MarshalJSON() ([]byte, error)
- func (o OptModelV2InfoCostItemTier) Or(d ModelV2InfoCostItemTier) ModelV2InfoCostItemTier
- func (o *OptModelV2InfoCostItemTier) Reset()
- func (o *OptModelV2InfoCostItemTier) SetTo(v ModelV2InfoCostItemTier)
- func (s *OptModelV2InfoCostItemTier) UnmarshalJSON(data []byte) error
- type OptModelV2InfoRequestGeneration
- func (o *OptModelV2InfoRequestGeneration) Decode(d *jx.Decoder) error
- func (o OptModelV2InfoRequestGeneration) Encode(e *jx.Encoder)
- func (o OptModelV2InfoRequestGeneration) Get() (v ModelV2InfoRequestGeneration, ok bool)
- func (o OptModelV2InfoRequestGeneration) IsSet() bool
- func (s OptModelV2InfoRequestGeneration) MarshalJSON() ([]byte, error)
- func (o OptModelV2InfoRequestGeneration) Or(d ModelV2InfoRequestGeneration) ModelV2InfoRequestGeneration
- func (o *OptModelV2InfoRequestGeneration) Reset()
- func (o *OptModelV2InfoRequestGeneration) SetTo(v ModelV2InfoRequestGeneration)
- func (s *OptModelV2InfoRequestGeneration) UnmarshalJSON(data []byte) error
- type OptModelV2InfoVariantsItemGeneration
- func (o *OptModelV2InfoVariantsItemGeneration) Decode(d *jx.Decoder) error
- func (o OptModelV2InfoVariantsItemGeneration) Encode(e *jx.Encoder)
- func (o OptModelV2InfoVariantsItemGeneration) Get() (v ModelV2InfoVariantsItemGeneration, ok bool)
- func (o OptModelV2InfoVariantsItemGeneration) IsSet() bool
- func (s OptModelV2InfoVariantsItemGeneration) MarshalJSON() ([]byte, error)
- func (o OptModelV2InfoVariantsItemGeneration) Or(d ModelV2InfoVariantsItemGeneration) ModelV2InfoVariantsItemGeneration
- func (o *OptModelV2InfoVariantsItemGeneration) Reset()
- func (o *OptModelV2InfoVariantsItemGeneration) SetTo(v ModelV2InfoVariantsItemGeneration)
- func (s *OptModelV2InfoVariantsItemGeneration) UnmarshalJSON(data []byte) error
- type OptNilAgentV2InfoModel
- func (o *OptNilAgentV2InfoModel) Decode(d *jx.Decoder) error
- func (o OptNilAgentV2InfoModel) Encode(e *jx.Encoder)
- func (o OptNilAgentV2InfoModel) Get() (v AgentV2InfoModel, ok bool)
- func (o OptNilAgentV2InfoModel) IsEmpty() bool
- func (o OptNilAgentV2InfoModel) IsNull() bool
- func (o OptNilAgentV2InfoModel) IsSet() bool
- func (s OptNilAgentV2InfoModel) MarshalJSON() ([]byte, error)
- func (o OptNilAgentV2InfoModel) Or(d AgentV2InfoModel) AgentV2InfoModel
- func (o *OptNilAgentV2InfoModel) Reset()
- func (o *OptNilAgentV2InfoModel) SetTo(v AgentV2InfoModel)
- func (o *OptNilAgentV2InfoModel) SetToNull()
- func (s *OptNilAgentV2InfoModel) UnmarshalJSON(data []byte) error
- type OptNilFloat64
- func (o *OptNilFloat64) Decode(d *jx.Decoder) error
- func (o OptNilFloat64) Encode(e *jx.Encoder)
- func (o OptNilFloat64) Get() (v float64, ok bool)
- func (o OptNilFloat64) IsEmpty() bool
- func (o OptNilFloat64) IsNull() bool
- func (o OptNilFloat64) IsSet() bool
- func (s OptNilFloat64) MarshalJSON() ([]byte, error)
- func (o OptNilFloat64) Or(d float64) float64
- func (o *OptNilFloat64) Reset()
- func (o *OptNilFloat64) SetTo(v float64)
- func (o *OptNilFloat64) SetToNull()
- func (s *OptNilFloat64) UnmarshalJSON(data []byte) error
- type OptNilInt
- func (o *OptNilInt) Decode(d *jx.Decoder) error
- func (o OptNilInt) Encode(e *jx.Encoder)
- func (o OptNilInt) Get() (v int, ok bool)
- func (o OptNilInt) IsEmpty() bool
- func (o OptNilInt) IsNull() bool
- func (o OptNilInt) IsSet() bool
- func (s OptNilInt) MarshalJSON() ([]byte, error)
- func (o OptNilInt) Or(d int) int
- func (o *OptNilInt) Reset()
- func (o *OptNilInt) SetTo(v int)
- func (o *OptNilInt) SetToNull()
- func (s *OptNilInt) UnmarshalJSON(data []byte) error
- type OptNilSessionCreateReqModel
- func (o *OptNilSessionCreateReqModel) Decode(d *jx.Decoder) error
- func (o OptNilSessionCreateReqModel) Encode(e *jx.Encoder)
- func (o OptNilSessionCreateReqModel) Get() (v SessionCreateReqModel, ok bool)
- func (o OptNilSessionCreateReqModel) IsEmpty() bool
- func (o OptNilSessionCreateReqModel) IsNull() bool
- func (o OptNilSessionCreateReqModel) IsSet() bool
- func (s OptNilSessionCreateReqModel) MarshalJSON() ([]byte, error)
- func (o OptNilSessionCreateReqModel) Or(d SessionCreateReqModel) SessionCreateReqModel
- func (o *OptNilSessionCreateReqModel) Reset()
- func (o *OptNilSessionCreateReqModel) SetTo(v SessionCreateReqModel)
- func (o *OptNilSessionCreateReqModel) SetToNull()
- func (s *OptNilSessionCreateReqModel) UnmarshalJSON(data []byte) error
- type OptNilSessionModel
- func (o *OptNilSessionModel) Decode(d *jx.Decoder) error
- func (o OptNilSessionModel) Encode(e *jx.Encoder)
- func (o OptNilSessionModel) Get() (v SessionModel, ok bool)
- func (o OptNilSessionModel) IsEmpty() bool
- func (o OptNilSessionModel) IsNull() bool
- func (o OptNilSessionModel) IsSet() bool
- func (s OptNilSessionModel) MarshalJSON() ([]byte, error)
- func (o OptNilSessionModel) Or(d SessionModel) SessionModel
- func (o *OptNilSessionModel) Reset()
- func (o *OptNilSessionModel) SetTo(v SessionModel)
- func (o *OptNilSessionModel) SetToNull()
- func (s *OptNilSessionModel) UnmarshalJSON(data []byte) error
- type OptNilSessionV2InfoModel
- func (o *OptNilSessionV2InfoModel) Decode(d *jx.Decoder) error
- func (o OptNilSessionV2InfoModel) Encode(e *jx.Encoder)
- func (o OptNilSessionV2InfoModel) Get() (v SessionV2InfoModel, ok bool)
- func (o OptNilSessionV2InfoModel) IsEmpty() bool
- func (o OptNilSessionV2InfoModel) IsNull() bool
- func (o OptNilSessionV2InfoModel) IsSet() bool
- func (s OptNilSessionV2InfoModel) MarshalJSON() ([]byte, error)
- func (o OptNilSessionV2InfoModel) Or(d SessionV2InfoModel) SessionV2InfoModel
- func (o *OptNilSessionV2InfoModel) Reset()
- func (o *OptNilSessionV2InfoModel) SetTo(v SessionV2InfoModel)
- func (o *OptNilSessionV2InfoModel) SetToNull()
- func (s *OptNilSessionV2InfoModel) UnmarshalJSON(data []byte) error
- type OptNilString
- func (o *OptNilString) Decode(d *jx.Decoder) error
- func (o OptNilString) Encode(e *jx.Encoder)
- func (o OptNilString) Get() (v string, ok bool)
- func (o OptNilString) IsEmpty() bool
- func (o OptNilString) IsNull() bool
- func (o OptNilString) IsSet() bool
- func (s OptNilString) MarshalJSON() ([]byte, error)
- func (o OptNilString) Or(d string) string
- func (o *OptNilString) Reset()
- func (o *OptNilString) SetTo(v string)
- func (o *OptNilString) SetToNull()
- func (s *OptNilString) UnmarshalJSON(data []byte) error
- type OptPermissionV2Source
- func (o *OptPermissionV2Source) Decode(d *jx.Decoder) error
- func (o OptPermissionV2Source) Encode(e *jx.Encoder)
- func (o OptPermissionV2Source) Get() (v PermissionV2Source, ok bool)
- func (o OptPermissionV2Source) IsSet() bool
- func (s OptPermissionV2Source) MarshalJSON() ([]byte, error)
- func (o OptPermissionV2Source) Or(d PermissionV2Source) PermissionV2Source
- func (o *OptPermissionV2Source) Reset()
- func (o *OptPermissionV2Source) SetTo(v PermissionV2Source)
- func (s *OptPermissionV2Source) UnmarshalJSON(data []byte) error
- type OptPromptSource
- func (o *OptPromptSource) Decode(d *jx.Decoder) error
- func (o OptPromptSource) Encode(e *jx.Encoder)
- func (o OptPromptSource) Get() (v PromptSource, ok bool)
- func (o OptPromptSource) IsSet() bool
- func (s OptPromptSource) MarshalJSON() ([]byte, error)
- func (o OptPromptSource) Or(d PromptSource) PromptSource
- func (o *OptPromptSource) Reset()
- func (o *OptPromptSource) SetTo(v PromptSource)
- func (s *OptPromptSource) UnmarshalJSON(data []byte) error
- type OptQuestionV2Tool
- func (o *OptQuestionV2Tool) Decode(d *jx.Decoder) error
- func (o OptQuestionV2Tool) Encode(e *jx.Encoder)
- func (o OptQuestionV2Tool) Get() (v QuestionV2Tool, ok bool)
- func (o OptQuestionV2Tool) IsSet() bool
- func (s OptQuestionV2Tool) MarshalJSON() ([]byte, error)
- func (o OptQuestionV2Tool) Or(d QuestionV2Tool) QuestionV2Tool
- func (o *OptQuestionV2Tool) Reset()
- func (o *OptQuestionV2Tool) SetTo(v QuestionV2Tool)
- func (s *OptQuestionV2Tool) UnmarshalJSON(data []byte) error
- type OptSessionCreateReq
- func (o *OptSessionCreateReq) Decode(d *jx.Decoder) error
- func (o OptSessionCreateReq) Encode(e *jx.Encoder)
- func (o OptSessionCreateReq) Get() (v SessionCreateReq, ok bool)
- func (o OptSessionCreateReq) IsSet() bool
- func (s OptSessionCreateReq) MarshalJSON() ([]byte, error)
- func (o OptSessionCreateReq) Or(d SessionCreateReq) SessionCreateReq
- func (o *OptSessionCreateReq) Reset()
- func (o *OptSessionCreateReq) SetTo(v SessionCreateReq)
- func (s *OptSessionCreateReq) UnmarshalJSON(data []byte) error
- type OptSessionRevert
- func (o *OptSessionRevert) Decode(d *jx.Decoder) error
- func (o OptSessionRevert) Encode(e *jx.Encoder)
- func (o OptSessionRevert) Get() (v SessionRevert, ok bool)
- func (o OptSessionRevert) IsSet() bool
- func (s OptSessionRevert) MarshalJSON() ([]byte, error)
- func (o OptSessionRevert) Or(d SessionRevert) SessionRevert
- func (o *OptSessionRevert) Reset()
- func (o *OptSessionRevert) SetTo(v SessionRevert)
- func (s *OptSessionRevert) UnmarshalJSON(data []byte) error
- type OptSessionShare
- func (o *OptSessionShare) Decode(d *jx.Decoder) error
- func (o OptSessionShare) Encode(e *jx.Encoder)
- func (o OptSessionShare) Get() (v SessionShare, ok bool)
- func (o OptSessionShare) IsSet() bool
- func (s OptSessionShare) MarshalJSON() ([]byte, error)
- func (o OptSessionShare) Or(d SessionShare) SessionShare
- func (o *OptSessionShare) Reset()
- func (o *OptSessionShare) SetTo(v SessionShare)
- func (s *OptSessionShare) UnmarshalJSON(data []byte) error
- type OptSessionSummary
- func (o *OptSessionSummary) Decode(d *jx.Decoder) error
- func (o OptSessionSummary) Encode(e *jx.Encoder)
- func (o OptSessionSummary) Get() (v SessionSummary, ok bool)
- func (o OptSessionSummary) IsSet() bool
- func (s OptSessionSummary) MarshalJSON() ([]byte, error)
- func (o OptSessionSummary) Or(d SessionSummary) SessionSummary
- func (o *OptSessionSummary) Reset()
- func (o *OptSessionSummary) SetTo(v SessionSummary)
- func (s *OptSessionSummary) UnmarshalJSON(data []byte) error
- type OptSessionTokens
- func (o *OptSessionTokens) Decode(d *jx.Decoder) error
- func (o OptSessionTokens) Encode(e *jx.Encoder)
- func (o OptSessionTokens) Get() (v SessionTokens, ok bool)
- func (o OptSessionTokens) IsSet() bool
- func (s OptSessionTokens) MarshalJSON() ([]byte, error)
- func (o OptSessionTokens) Or(d SessionTokens) SessionTokens
- func (o *OptSessionTokens) Reset()
- func (o *OptSessionTokens) SetTo(v SessionTokens)
- func (s *OptSessionTokens) UnmarshalJSON(data []byte) error
- type OptSnapshotFileDiffStatus
- func (o *OptSnapshotFileDiffStatus) Decode(d *jx.Decoder) error
- func (o OptSnapshotFileDiffStatus) Encode(e *jx.Encoder)
- func (o OptSnapshotFileDiffStatus) Get() (v SnapshotFileDiffStatus, ok bool)
- func (o OptSnapshotFileDiffStatus) IsSet() bool
- func (s OptSnapshotFileDiffStatus) MarshalJSON() ([]byte, error)
- func (o OptSnapshotFileDiffStatus) Or(d SnapshotFileDiffStatus) SnapshotFileDiffStatus
- func (o *OptSnapshotFileDiffStatus) Reset()
- func (o *OptSnapshotFileDiffStatus) SetTo(v SnapshotFileDiffStatus)
- func (s *OptSnapshotFileDiffStatus) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptV2AgentListLocation
- type OptV2ModelListLocation
- type OptV2PermissionRequestListLocation
- func (o OptV2PermissionRequestListLocation) Get() (v V2PermissionRequestListLocation, ok bool)
- func (o OptV2PermissionRequestListLocation) IsSet() bool
- func (o OptV2PermissionRequestListLocation) Or(d V2PermissionRequestListLocation) V2PermissionRequestListLocation
- func (o *OptV2PermissionRequestListLocation) Reset()
- func (o *OptV2PermissionRequestListLocation) SetTo(v V2PermissionRequestListLocation)
- type OptV2ProviderListLocation
- func (o OptV2ProviderListLocation) Get() (v V2ProviderListLocation, ok bool)
- func (o OptV2ProviderListLocation) IsSet() bool
- func (o OptV2ProviderListLocation) Or(d V2ProviderListLocation) V2ProviderListLocation
- func (o *OptV2ProviderListLocation) Reset()
- func (o *OptV2ProviderListLocation) SetTo(v V2ProviderListLocation)
- type OptV2QuestionRequestListLocation
- func (o OptV2QuestionRequestListLocation) Get() (v V2QuestionRequestListLocation, ok bool)
- func (o OptV2QuestionRequestListLocation) IsSet() bool
- func (o OptV2QuestionRequestListLocation) Or(d V2QuestionRequestListLocation) V2QuestionRequestListLocation
- func (o *OptV2QuestionRequestListLocation) Reset()
- func (o *OptV2QuestionRequestListLocation) SetTo(v V2QuestionRequestListLocation)
- type OptV2SessionListOrder
- type OptV2SessionMessagesOrder
- func (o OptV2SessionMessagesOrder) Get() (v V2SessionMessagesOrder, ok bool)
- func (o OptV2SessionMessagesOrder) IsSet() bool
- func (o OptV2SessionMessagesOrder) Or(d V2SessionMessagesOrder) V2SessionMessagesOrder
- func (o *OptV2SessionMessagesOrder) Reset()
- func (o *OptV2SessionMessagesOrder) SetTo(v V2SessionMessagesOrder)
- type OptV2SessionPromptReqDelivery
- func (o *OptV2SessionPromptReqDelivery) Decode(d *jx.Decoder) error
- func (o OptV2SessionPromptReqDelivery) Encode(e *jx.Encoder)
- func (o OptV2SessionPromptReqDelivery) Get() (v V2SessionPromptReqDelivery, ok bool)
- func (o OptV2SessionPromptReqDelivery) IsSet() bool
- func (s OptV2SessionPromptReqDelivery) MarshalJSON() ([]byte, error)
- func (o OptV2SessionPromptReqDelivery) Or(d V2SessionPromptReqDelivery) V2SessionPromptReqDelivery
- func (o *OptV2SessionPromptReqDelivery) Reset()
- func (o *OptV2SessionPromptReqDelivery) SetTo(v V2SessionPromptReqDelivery)
- func (s *OptV2SessionPromptReqDelivery) UnmarshalJSON(data []byte) error
- type Option
- type PermissionAction
- func (PermissionAction) AllValues() []PermissionAction
- func (s *PermissionAction) Decode(d *jx.Decoder) error
- func (s PermissionAction) Encode(e *jx.Encoder)
- func (s PermissionAction) MarshalJSON() ([]byte, error)
- func (s PermissionAction) MarshalText() ([]byte, error)
- func (s *PermissionAction) UnmarshalJSON(data []byte) error
- func (s *PermissionAction) UnmarshalText(data []byte) error
- func (s PermissionAction) Validate() error
- type PermissionRule
- func (s *PermissionRule) Decode(d *jx.Decoder) error
- func (s *PermissionRule) Encode(e *jx.Encoder)
- func (s *PermissionRule) GetAction() PermissionAction
- func (s *PermissionRule) GetPattern() string
- func (s *PermissionRule) GetPermission() string
- func (s *PermissionRule) MarshalJSON() ([]byte, error)
- func (s *PermissionRule) SetAction(val PermissionAction)
- func (s *PermissionRule) SetPattern(val string)
- func (s *PermissionRule) SetPermission(val string)
- func (s *PermissionRule) UnmarshalJSON(data []byte) error
- func (s *PermissionRule) Validate() error
- type PermissionRuleset
- type PermissionV2Effect
- func (PermissionV2Effect) AllValues() []PermissionV2Effect
- func (s *PermissionV2Effect) Decode(d *jx.Decoder) error
- func (s PermissionV2Effect) Encode(e *jx.Encoder)
- func (s PermissionV2Effect) MarshalJSON() ([]byte, error)
- func (s PermissionV2Effect) MarshalText() ([]byte, error)
- func (s *PermissionV2Effect) UnmarshalJSON(data []byte) error
- func (s *PermissionV2Effect) UnmarshalText(data []byte) error
- func (s PermissionV2Effect) Validate() error
- type PermissionV2Reply
- func (PermissionV2Reply) AllValues() []PermissionV2Reply
- func (s *PermissionV2Reply) Decode(d *jx.Decoder) error
- func (s PermissionV2Reply) Encode(e *jx.Encoder)
- func (s PermissionV2Reply) MarshalJSON() ([]byte, error)
- func (s PermissionV2Reply) MarshalText() ([]byte, error)
- func (s *PermissionV2Reply) UnmarshalJSON(data []byte) error
- func (s *PermissionV2Reply) UnmarshalText(data []byte) error
- func (s PermissionV2Reply) Validate() error
- type PermissionV2Request
- func (s *PermissionV2Request) Decode(d *jx.Decoder) error
- func (s *PermissionV2Request) Encode(e *jx.Encoder)
- func (s *PermissionV2Request) GetAction() string
- func (s *PermissionV2Request) GetID() string
- func (s *PermissionV2Request) GetMetadata() *PermissionV2RequestMetadata
- func (s *PermissionV2Request) GetResources() []string
- func (s *PermissionV2Request) GetSave() []string
- func (s *PermissionV2Request) GetSessionID() string
- func (s *PermissionV2Request) GetSource() OptPermissionV2Source
- func (s *PermissionV2Request) MarshalJSON() ([]byte, error)
- func (s *PermissionV2Request) SetAction(val string)
- func (s *PermissionV2Request) SetID(val string)
- func (s *PermissionV2Request) SetMetadata(val *PermissionV2RequestMetadata)
- func (s *PermissionV2Request) SetResources(val []string)
- func (s *PermissionV2Request) SetSave(val []string)
- func (s *PermissionV2Request) SetSessionID(val string)
- func (s *PermissionV2Request) SetSource(val OptPermissionV2Source)
- func (s *PermissionV2Request) UnmarshalJSON(data []byte) error
- func (s *PermissionV2Request) Validate() error
- type PermissionV2RequestMetadata
- type PermissionV2Rule
- func (s *PermissionV2Rule) Decode(d *jx.Decoder) error
- func (s *PermissionV2Rule) Encode(e *jx.Encoder)
- func (s *PermissionV2Rule) GetAction() string
- func (s *PermissionV2Rule) GetEffect() PermissionV2Effect
- func (s *PermissionV2Rule) GetResource() string
- func (s *PermissionV2Rule) MarshalJSON() ([]byte, error)
- func (s *PermissionV2Rule) SetAction(val string)
- func (s *PermissionV2Rule) SetEffect(val PermissionV2Effect)
- func (s *PermissionV2Rule) SetResource(val string)
- func (s *PermissionV2Rule) UnmarshalJSON(data []byte) error
- func (s *PermissionV2Rule) Validate() error
- type PermissionV2Ruleset
- type PermissionV2Source
- func (s *PermissionV2Source) Decode(d *jx.Decoder) error
- func (s *PermissionV2Source) Encode(e *jx.Encoder)
- func (s *PermissionV2Source) GetCallID() string
- func (s *PermissionV2Source) GetMessageID() string
- func (s *PermissionV2Source) GetType() PermissionV2SourceType
- func (s *PermissionV2Source) MarshalJSON() ([]byte, error)
- func (s *PermissionV2Source) SetCallID(val string)
- func (s *PermissionV2Source) SetMessageID(val string)
- func (s *PermissionV2Source) SetType(val PermissionV2SourceType)
- func (s *PermissionV2Source) UnmarshalJSON(data []byte) error
- func (s *PermissionV2Source) Validate() error
- type PermissionV2SourceType
- func (PermissionV2SourceType) AllValues() []PermissionV2SourceType
- func (s *PermissionV2SourceType) Decode(d *jx.Decoder) error
- func (s PermissionV2SourceType) Encode(e *jx.Encoder)
- func (s PermissionV2SourceType) MarshalJSON() ([]byte, error)
- func (s PermissionV2SourceType) MarshalText() ([]byte, error)
- func (s *PermissionV2SourceType) UnmarshalJSON(data []byte) error
- func (s *PermissionV2SourceType) UnmarshalText(data []byte) error
- func (s PermissionV2SourceType) Validate() error
- type Prompt
- func (s *Prompt) Decode(d *jx.Decoder) error
- func (s *Prompt) Encode(e *jx.Encoder)
- func (s *Prompt) GetAgents() []PromptAgentAttachment
- func (s *Prompt) GetFiles() []PromptFileAttachment
- func (s *Prompt) GetReferences() []PromptReferenceAttachment
- func (s *Prompt) GetText() string
- func (s *Prompt) MarshalJSON() ([]byte, error)
- func (s *Prompt) SetAgents(val []PromptAgentAttachment)
- func (s *Prompt) SetFiles(val []PromptFileAttachment)
- func (s *Prompt) SetReferences(val []PromptReferenceAttachment)
- func (s *Prompt) SetText(val string)
- func (s *Prompt) UnmarshalJSON(data []byte) error
- func (s *Prompt) Validate() error
- type PromptAgentAttachment
- func (s *PromptAgentAttachment) Decode(d *jx.Decoder) error
- func (s *PromptAgentAttachment) Encode(e *jx.Encoder)
- func (s *PromptAgentAttachment) GetName() string
- func (s *PromptAgentAttachment) GetSource() OptPromptSource
- func (s *PromptAgentAttachment) MarshalJSON() ([]byte, error)
- func (s *PromptAgentAttachment) SetName(val string)
- func (s *PromptAgentAttachment) SetSource(val OptPromptSource)
- func (s *PromptAgentAttachment) UnmarshalJSON(data []byte) error
- func (s *PromptAgentAttachment) Validate() error
- type PromptFileAttachment
- func (s *PromptFileAttachment) Decode(d *jx.Decoder) error
- func (s *PromptFileAttachment) Encode(e *jx.Encoder)
- func (s *PromptFileAttachment) GetDescription() OptString
- func (s *PromptFileAttachment) GetMime() string
- func (s *PromptFileAttachment) GetName() OptString
- func (s *PromptFileAttachment) GetSource() OptPromptSource
- func (s *PromptFileAttachment) GetURI() string
- func (s *PromptFileAttachment) MarshalJSON() ([]byte, error)
- func (s *PromptFileAttachment) SetDescription(val OptString)
- func (s *PromptFileAttachment) SetMime(val string)
- func (s *PromptFileAttachment) SetName(val OptString)
- func (s *PromptFileAttachment) SetSource(val OptPromptSource)
- func (s *PromptFileAttachment) SetURI(val string)
- func (s *PromptFileAttachment) UnmarshalJSON(data []byte) error
- func (s *PromptFileAttachment) Validate() error
- type PromptReferenceAttachment
- func (s *PromptReferenceAttachment) Decode(d *jx.Decoder) error
- func (s *PromptReferenceAttachment) Encode(e *jx.Encoder)
- func (s *PromptReferenceAttachment) GetBranch() OptString
- func (s *PromptReferenceAttachment) GetKind() PromptReferenceAttachmentKind
- func (s *PromptReferenceAttachment) GetName() string
- func (s *PromptReferenceAttachment) GetProblem() OptString
- func (s *PromptReferenceAttachment) GetRepository() OptString
- func (s *PromptReferenceAttachment) GetSource() OptPromptSource
- func (s *PromptReferenceAttachment) GetTarget() OptString
- func (s *PromptReferenceAttachment) GetTargetUri() OptString
- func (s *PromptReferenceAttachment) GetURI() OptString
- func (s *PromptReferenceAttachment) MarshalJSON() ([]byte, error)
- func (s *PromptReferenceAttachment) SetBranch(val OptString)
- func (s *PromptReferenceAttachment) SetKind(val PromptReferenceAttachmentKind)
- func (s *PromptReferenceAttachment) SetName(val string)
- func (s *PromptReferenceAttachment) SetProblem(val OptString)
- func (s *PromptReferenceAttachment) SetRepository(val OptString)
- func (s *PromptReferenceAttachment) SetSource(val OptPromptSource)
- func (s *PromptReferenceAttachment) SetTarget(val OptString)
- func (s *PromptReferenceAttachment) SetTargetUri(val OptString)
- func (s *PromptReferenceAttachment) SetURI(val OptString)
- func (s *PromptReferenceAttachment) UnmarshalJSON(data []byte) error
- func (s *PromptReferenceAttachment) Validate() error
- type PromptReferenceAttachmentKind
- func (PromptReferenceAttachmentKind) AllValues() []PromptReferenceAttachmentKind
- func (s *PromptReferenceAttachmentKind) Decode(d *jx.Decoder) error
- func (s PromptReferenceAttachmentKind) Encode(e *jx.Encoder)
- func (s PromptReferenceAttachmentKind) MarshalJSON() ([]byte, error)
- func (s PromptReferenceAttachmentKind) MarshalText() ([]byte, error)
- func (s *PromptReferenceAttachmentKind) UnmarshalJSON(data []byte) error
- func (s *PromptReferenceAttachmentKind) UnmarshalText(data []byte) error
- func (s PromptReferenceAttachmentKind) Validate() error
- type PromptSource
- func (s *PromptSource) Decode(d *jx.Decoder) error
- func (s *PromptSource) Encode(e *jx.Encoder)
- func (s *PromptSource) GetEnd() float64
- func (s *PromptSource) GetStart() float64
- func (s *PromptSource) GetText() string
- func (s *PromptSource) MarshalJSON() ([]byte, error)
- func (s *PromptSource) SetEnd(val float64)
- func (s *PromptSource) SetStart(val float64)
- func (s *PromptSource) SetText(val string)
- func (s *PromptSource) UnmarshalJSON(data []byte) error
- func (s *PromptSource) Validate() error
- type ProviderV2Info
- func (s *ProviderV2Info) Decode(d *jx.Decoder) error
- func (s *ProviderV2Info) Encode(e *jx.Encoder)
- func (s *ProviderV2Info) GetAPI() jx.Raw
- func (s *ProviderV2Info) GetEnabled() jx.Raw
- func (s *ProviderV2Info) GetEnv() []string
- func (s *ProviderV2Info) GetID() string
- func (s *ProviderV2Info) GetName() string
- func (s *ProviderV2Info) GetRequest() ProviderV2InfoRequest
- func (s *ProviderV2Info) MarshalJSON() ([]byte, error)
- func (s *ProviderV2Info) SetAPI(val jx.Raw)
- func (s *ProviderV2Info) SetEnabled(val jx.Raw)
- func (s *ProviderV2Info) SetEnv(val []string)
- func (s *ProviderV2Info) SetID(val string)
- func (s *ProviderV2Info) SetName(val string)
- func (s *ProviderV2Info) SetRequest(val ProviderV2InfoRequest)
- func (s *ProviderV2Info) UnmarshalJSON(data []byte) error
- func (s *ProviderV2Info) Validate() error
- type ProviderV2InfoRequest
- func (s *ProviderV2InfoRequest) Decode(d *jx.Decoder) error
- func (s *ProviderV2InfoRequest) Encode(e *jx.Encoder)
- func (s *ProviderV2InfoRequest) GetBody() ProviderV2InfoRequestBody
- func (s *ProviderV2InfoRequest) GetHeaders() ProviderV2InfoRequestHeaders
- func (s *ProviderV2InfoRequest) MarshalJSON() ([]byte, error)
- func (s *ProviderV2InfoRequest) SetBody(val ProviderV2InfoRequestBody)
- func (s *ProviderV2InfoRequest) SetHeaders(val ProviderV2InfoRequestHeaders)
- func (s *ProviderV2InfoRequest) UnmarshalJSON(data []byte) error
- type ProviderV2InfoRequestBody
- type ProviderV2InfoRequestHeaders
- type QuestionV2Answer
- type QuestionV2Info
- func (s *QuestionV2Info) Decode(d *jx.Decoder) error
- func (s *QuestionV2Info) Encode(e *jx.Encoder)
- func (s *QuestionV2Info) GetCustom() OptBool
- func (s *QuestionV2Info) GetHeader() string
- func (s *QuestionV2Info) GetMultiple() OptBool
- func (s *QuestionV2Info) GetOptions() []QuestionV2Option
- func (s *QuestionV2Info) GetQuestion() string
- func (s *QuestionV2Info) MarshalJSON() ([]byte, error)
- func (s *QuestionV2Info) SetCustom(val OptBool)
- func (s *QuestionV2Info) SetHeader(val string)
- func (s *QuestionV2Info) SetMultiple(val OptBool)
- func (s *QuestionV2Info) SetOptions(val []QuestionV2Option)
- func (s *QuestionV2Info) SetQuestion(val string)
- func (s *QuestionV2Info) UnmarshalJSON(data []byte) error
- func (s *QuestionV2Info) Validate() error
- type QuestionV2Option
- func (s *QuestionV2Option) Decode(d *jx.Decoder) error
- func (s *QuestionV2Option) Encode(e *jx.Encoder)
- func (s *QuestionV2Option) GetDescription() string
- func (s *QuestionV2Option) GetLabel() string
- func (s *QuestionV2Option) MarshalJSON() ([]byte, error)
- func (s *QuestionV2Option) SetDescription(val string)
- func (s *QuestionV2Option) SetLabel(val string)
- func (s *QuestionV2Option) UnmarshalJSON(data []byte) error
- type QuestionV2Reply
- func (s *QuestionV2Reply) Decode(d *jx.Decoder) error
- func (s *QuestionV2Reply) Encode(e *jx.Encoder)
- func (s *QuestionV2Reply) GetAnswers() []QuestionV2Answer
- func (s *QuestionV2Reply) MarshalJSON() ([]byte, error)
- func (s *QuestionV2Reply) SetAnswers(val []QuestionV2Answer)
- func (s *QuestionV2Reply) UnmarshalJSON(data []byte) error
- func (s *QuestionV2Reply) Validate() error
- type QuestionV2Request
- func (s *QuestionV2Request) Decode(d *jx.Decoder) error
- func (s *QuestionV2Request) Encode(e *jx.Encoder)
- func (s *QuestionV2Request) GetID() string
- func (s *QuestionV2Request) GetQuestions() []QuestionV2Info
- func (s *QuestionV2Request) GetSessionID() string
- func (s *QuestionV2Request) GetTool() OptQuestionV2Tool
- func (s *QuestionV2Request) MarshalJSON() ([]byte, error)
- func (s *QuestionV2Request) SetID(val string)
- func (s *QuestionV2Request) SetQuestions(val []QuestionV2Info)
- func (s *QuestionV2Request) SetSessionID(val string)
- func (s *QuestionV2Request) SetTool(val OptQuestionV2Tool)
- func (s *QuestionV2Request) UnmarshalJSON(data []byte) error
- func (s *QuestionV2Request) Validate() error
- type QuestionV2Tool
- func (s *QuestionV2Tool) Decode(d *jx.Decoder) error
- func (s *QuestionV2Tool) Encode(e *jx.Encoder)
- func (s *QuestionV2Tool) GetCallID() string
- func (s *QuestionV2Tool) GetMessageID() string
- func (s *QuestionV2Tool) MarshalJSON() ([]byte, error)
- func (s *QuestionV2Tool) SetCallID(val string)
- func (s *QuestionV2Tool) SetMessageID(val string)
- func (s *QuestionV2Tool) UnmarshalJSON(data []byte) error
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type ServiceUnavailableError
- func (s *ServiceUnavailableError) Decode(d *jx.Decoder) error
- func (s *ServiceUnavailableError) Encode(e *jx.Encoder)
- func (s *ServiceUnavailableError) GetMessage() string
- func (s *ServiceUnavailableError) GetService() OptString
- func (s *ServiceUnavailableError) GetTag() ServiceUnavailableErrorTag
- func (s *ServiceUnavailableError) MarshalJSON() ([]byte, error)
- func (s *ServiceUnavailableError) SetMessage(val string)
- func (s *ServiceUnavailableError) SetService(val OptString)
- func (s *ServiceUnavailableError) SetTag(val ServiceUnavailableErrorTag)
- func (s *ServiceUnavailableError) UnmarshalJSON(data []byte) error
- func (s *ServiceUnavailableError) Validate() error
- type ServiceUnavailableErrorTag
- func (ServiceUnavailableErrorTag) AllValues() []ServiceUnavailableErrorTag
- func (s *ServiceUnavailableErrorTag) Decode(d *jx.Decoder) error
- func (s ServiceUnavailableErrorTag) Encode(e *jx.Encoder)
- func (s ServiceUnavailableErrorTag) MarshalJSON() ([]byte, error)
- func (s ServiceUnavailableErrorTag) MarshalText() ([]byte, error)
- func (s *ServiceUnavailableErrorTag) UnmarshalJSON(data []byte) error
- func (s *ServiceUnavailableErrorTag) UnmarshalText(data []byte) error
- func (s ServiceUnavailableErrorTag) Validate() error
- type Session
- func (s *Session) Decode(d *jx.Decoder) error
- func (s *Session) Encode(e *jx.Encoder)
- func (s *Session) GetAgent() OptNilString
- func (s *Session) GetCost() OptFloat64
- func (s *Session) GetDirectory() string
- func (s *Session) GetID() string
- func (s *Session) GetMetadata() *SessionMetadata
- func (s *Session) GetModel() OptNilSessionModel
- func (s *Session) GetParentID() OptString
- func (s *Session) GetPath() OptString
- func (s *Session) GetPermission() PermissionRuleset
- func (s *Session) GetProjectID() string
- func (s *Session) GetRevert() OptSessionRevert
- func (s *Session) GetShare() OptSessionShare
- func (s *Session) GetSlug() string
- func (s *Session) GetSummary() OptSessionSummary
- func (s *Session) GetTime() SessionTime
- func (s *Session) GetTitle() string
- func (s *Session) GetTokens() OptSessionTokens
- func (s *Session) GetVersion() string
- func (s *Session) GetWorkspaceID() OptNilString
- func (s *Session) MarshalJSON() ([]byte, error)
- func (s *Session) SetAgent(val OptNilString)
- func (s *Session) SetCost(val OptFloat64)
- func (s *Session) SetDirectory(val string)
- func (s *Session) SetID(val string)
- func (s *Session) SetMetadata(val *SessionMetadata)
- func (s *Session) SetModel(val OptNilSessionModel)
- func (s *Session) SetParentID(val OptString)
- func (s *Session) SetPath(val OptString)
- func (s *Session) SetPermission(val PermissionRuleset)
- func (s *Session) SetProjectID(val string)
- func (s *Session) SetRevert(val OptSessionRevert)
- func (s *Session) SetShare(val OptSessionShare)
- func (s *Session) SetSlug(val string)
- func (s *Session) SetSummary(val OptSessionSummary)
- func (s *Session) SetTime(val SessionTime)
- func (s *Session) SetTitle(val string)
- func (s *Session) SetTokens(val OptSessionTokens)
- func (s *Session) SetVersion(val string)
- func (s *Session) SetWorkspaceID(val OptNilString)
- func (s *Session) UnmarshalJSON(data []byte) error
- func (s *Session) Validate() error
- type SessionCreateBadRequestApplicationJSON
- func (s *SessionCreateBadRequestApplicationJSON) Decode(d *jx.Decoder) error
- func (s SessionCreateBadRequestApplicationJSON) Encode(e *jx.Encoder)
- func (s SessionCreateBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *SessionCreateBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
- type SessionCreateParams
- type SessionCreateReq
- func (s *SessionCreateReq) Decode(d *jx.Decoder) error
- func (s *SessionCreateReq) Encode(e *jx.Encoder)
- func (s *SessionCreateReq) GetAgent() OptNilString
- func (s *SessionCreateReq) GetMetadata() *SessionCreateReqMetadata
- func (s *SessionCreateReq) GetModel() OptNilSessionCreateReqModel
- func (s *SessionCreateReq) GetParentID() OptString
- func (s *SessionCreateReq) GetPermission() PermissionRuleset
- func (s *SessionCreateReq) GetTitle() OptString
- func (s *SessionCreateReq) GetWorkspaceID() OptNilString
- func (s *SessionCreateReq) MarshalJSON() ([]byte, error)
- func (s *SessionCreateReq) SetAgent(val OptNilString)
- func (s *SessionCreateReq) SetMetadata(val *SessionCreateReqMetadata)
- func (s *SessionCreateReq) SetModel(val OptNilSessionCreateReqModel)
- func (s *SessionCreateReq) SetParentID(val OptString)
- func (s *SessionCreateReq) SetPermission(val PermissionRuleset)
- func (s *SessionCreateReq) SetTitle(val OptString)
- func (s *SessionCreateReq) SetWorkspaceID(val OptNilString)
- func (s *SessionCreateReq) UnmarshalJSON(data []byte) error
- func (s *SessionCreateReq) Validate() error
- type SessionCreateReqMetadata
- type SessionCreateReqModel
- func (s *SessionCreateReqModel) Decode(d *jx.Decoder) error
- func (s *SessionCreateReqModel) Encode(e *jx.Encoder)
- func (s *SessionCreateReqModel) GetID() string
- func (s *SessionCreateReqModel) GetProviderID() string
- func (s *SessionCreateReqModel) GetVariant() OptNilString
- func (s *SessionCreateReqModel) MarshalJSON() ([]byte, error)
- func (s *SessionCreateReqModel) SetID(val string)
- func (s *SessionCreateReqModel) SetProviderID(val string)
- func (s *SessionCreateReqModel) SetVariant(val OptNilString)
- func (s *SessionCreateReqModel) UnmarshalJSON(data []byte) error
- type SessionCreateRes
- type SessionInputAdmitted
- func (s *SessionInputAdmitted) Decode(d *jx.Decoder) error
- func (s *SessionInputAdmitted) Encode(e *jx.Encoder)
- func (s *SessionInputAdmitted) GetAdmittedSeq() int
- func (s *SessionInputAdmitted) GetDelivery() SessionInputAdmittedDelivery
- func (s *SessionInputAdmitted) GetID() string
- func (s *SessionInputAdmitted) GetPromotedSeq() OptInt
- func (s *SessionInputAdmitted) GetPrompt() Prompt
- func (s *SessionInputAdmitted) GetSessionID() string
- func (s *SessionInputAdmitted) GetTimeCreated() float64
- func (s *SessionInputAdmitted) MarshalJSON() ([]byte, error)
- func (s *SessionInputAdmitted) SetAdmittedSeq(val int)
- func (s *SessionInputAdmitted) SetDelivery(val SessionInputAdmittedDelivery)
- func (s *SessionInputAdmitted) SetID(val string)
- func (s *SessionInputAdmitted) SetPromotedSeq(val OptInt)
- func (s *SessionInputAdmitted) SetPrompt(val Prompt)
- func (s *SessionInputAdmitted) SetSessionID(val string)
- func (s *SessionInputAdmitted) SetTimeCreated(val float64)
- func (s *SessionInputAdmitted) UnmarshalJSON(data []byte) error
- func (s *SessionInputAdmitted) Validate() error
- type SessionInputAdmittedDelivery
- func (SessionInputAdmittedDelivery) AllValues() []SessionInputAdmittedDelivery
- func (s *SessionInputAdmittedDelivery) Decode(d *jx.Decoder) error
- func (s SessionInputAdmittedDelivery) Encode(e *jx.Encoder)
- func (s SessionInputAdmittedDelivery) MarshalJSON() ([]byte, error)
- func (s SessionInputAdmittedDelivery) MarshalText() ([]byte, error)
- func (s *SessionInputAdmittedDelivery) UnmarshalJSON(data []byte) error
- func (s *SessionInputAdmittedDelivery) UnmarshalText(data []byte) error
- func (s SessionInputAdmittedDelivery) Validate() error
- type SessionMessage
- type SessionMessageBadRequestApplicationJSON
- func (s *SessionMessageBadRequestApplicationJSON) Decode(d *jx.Decoder) error
- func (s SessionMessageBadRequestApplicationJSON) Encode(e *jx.Encoder)
- func (s SessionMessageBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *SessionMessageBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
- type SessionMessageNotFoundApplicationJSON
- func (s *SessionMessageNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s SessionMessageNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s SessionMessageNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *SessionMessageNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type SessionMessageOK
- func (s *SessionMessageOK) Decode(d *jx.Decoder) error
- func (s *SessionMessageOK) Encode(e *jx.Encoder)
- func (s *SessionMessageOK) GetAdditionalProps() SessionMessageOKAdditional
- func (s *SessionMessageOK) GetInfo() SessionMessageOKInfo
- func (s *SessionMessageOK) MarshalJSON() ([]byte, error)
- func (s *SessionMessageOK) SetAdditionalProps(val SessionMessageOKAdditional)
- func (s *SessionMessageOK) SetInfo(val SessionMessageOKInfo)
- func (s *SessionMessageOK) UnmarshalJSON(data []byte) error
- type SessionMessageOKAdditional
- type SessionMessageOKInfo
- func (s *SessionMessageOKInfo) Decode(d *jx.Decoder) error
- func (s *SessionMessageOKInfo) Encode(e *jx.Encoder)
- func (s *SessionMessageOKInfo) GetAdditionalProps() SessionMessageOKInfoAdditional
- func (s *SessionMessageOKInfo) GetID() string
- func (s *SessionMessageOKInfo) GetRole() string
- func (s *SessionMessageOKInfo) MarshalJSON() ([]byte, error)
- func (s *SessionMessageOKInfo) SetAdditionalProps(val SessionMessageOKInfoAdditional)
- func (s *SessionMessageOKInfo) SetID(val string)
- func (s *SessionMessageOKInfo) SetRole(val string)
- func (s *SessionMessageOKInfo) UnmarshalJSON(data []byte) error
- type SessionMessageOKInfoAdditional
- type SessionMessageParams
- type SessionMessageReq
- func (s *SessionMessageReq) Decode(d *jx.Decoder) error
- func (s *SessionMessageReq) Encode(e *jx.Encoder)
- func (s *SessionMessageReq) GetAgent() OptString
- func (s *SessionMessageReq) GetMessageID() OptString
- func (s *SessionMessageReq) GetParts() []SessionMessageReqPartsItem
- func (s *SessionMessageReq) MarshalJSON() ([]byte, error)
- func (s *SessionMessageReq) SetAgent(val OptString)
- func (s *SessionMessageReq) SetMessageID(val OptString)
- func (s *SessionMessageReq) SetParts(val []SessionMessageReqPartsItem)
- func (s *SessionMessageReq) UnmarshalJSON(data []byte) error
- func (s *SessionMessageReq) Validate() error
- type SessionMessageReqPartsItem
- func (s *SessionMessageReqPartsItem) Decode(d *jx.Decoder) error
- func (s *SessionMessageReqPartsItem) Encode(e *jx.Encoder)
- func (s *SessionMessageReqPartsItem) GetAdditionalProps() SessionMessageReqPartsItemAdditional
- func (s *SessionMessageReqPartsItem) GetID() OptString
- func (s *SessionMessageReqPartsItem) GetName() OptString
- func (s *SessionMessageReqPartsItem) GetText() OptString
- func (s *SessionMessageReqPartsItem) GetType() string
- func (s *SessionMessageReqPartsItem) MarshalJSON() ([]byte, error)
- func (s *SessionMessageReqPartsItem) SetAdditionalProps(val SessionMessageReqPartsItemAdditional)
- func (s *SessionMessageReqPartsItem) SetID(val OptString)
- func (s *SessionMessageReqPartsItem) SetName(val OptString)
- func (s *SessionMessageReqPartsItem) SetText(val OptString)
- func (s *SessionMessageReqPartsItem) SetType(val string)
- func (s *SessionMessageReqPartsItem) UnmarshalJSON(data []byte) error
- type SessionMessageReqPartsItemAdditional
- type SessionMessageRes
- type SessionMessagesBadRequestApplicationJSON
- func (s *SessionMessagesBadRequestApplicationJSON) Decode(d *jx.Decoder) error
- func (s SessionMessagesBadRequestApplicationJSON) Encode(e *jx.Encoder)
- func (s SessionMessagesBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *SessionMessagesBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
- type SessionMessagesNotFoundApplicationJSON
- func (s *SessionMessagesNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s SessionMessagesNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s SessionMessagesNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *SessionMessagesNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type SessionMessagesOKApplicationJSON
- func (s *SessionMessagesOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s SessionMessagesOKApplicationJSON) Encode(e *jx.Encoder)
- func (s SessionMessagesOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *SessionMessagesOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s SessionMessagesOKApplicationJSON) Validate() error
- type SessionMessagesOKItem
- func (s *SessionMessagesOKItem) Decode(d *jx.Decoder) error
- func (s *SessionMessagesOKItem) Encode(e *jx.Encoder)
- func (s *SessionMessagesOKItem) GetAdditionalProps() SessionMessagesOKItemAdditional
- func (s *SessionMessagesOKItem) GetInfo() SessionMessagesOKItemInfo
- func (s *SessionMessagesOKItem) GetParts() []SessionMessagesOKItemPartsItem
- func (s *SessionMessagesOKItem) MarshalJSON() ([]byte, error)
- func (s *SessionMessagesOKItem) SetAdditionalProps(val SessionMessagesOKItemAdditional)
- func (s *SessionMessagesOKItem) SetInfo(val SessionMessagesOKItemInfo)
- func (s *SessionMessagesOKItem) SetParts(val []SessionMessagesOKItemPartsItem)
- func (s *SessionMessagesOKItem) UnmarshalJSON(data []byte) error
- func (s *SessionMessagesOKItem) Validate() error
- type SessionMessagesOKItemAdditional
- type SessionMessagesOKItemInfo
- func (s *SessionMessagesOKItemInfo) Decode(d *jx.Decoder) error
- func (s *SessionMessagesOKItemInfo) Encode(e *jx.Encoder)
- func (s *SessionMessagesOKItemInfo) GetAdditionalProps() SessionMessagesOKItemInfoAdditional
- func (s *SessionMessagesOKItemInfo) GetID() string
- func (s *SessionMessagesOKItemInfo) GetRole() string
- func (s *SessionMessagesOKItemInfo) MarshalJSON() ([]byte, error)
- func (s *SessionMessagesOKItemInfo) SetAdditionalProps(val SessionMessagesOKItemInfoAdditional)
- func (s *SessionMessagesOKItemInfo) SetID(val string)
- func (s *SessionMessagesOKItemInfo) SetRole(val string)
- func (s *SessionMessagesOKItemInfo) UnmarshalJSON(data []byte) error
- type SessionMessagesOKItemInfoAdditional
- type SessionMessagesOKItemPartsItem
- type SessionMessagesParams
- type SessionMessagesRes
- type SessionMessagesResponse
- func (s *SessionMessagesResponse) Decode(d *jx.Decoder) error
- func (s *SessionMessagesResponse) Encode(e *jx.Encoder)
- func (s *SessionMessagesResponse) GetCursor() SessionMessagesResponseCursor
- func (s *SessionMessagesResponse) GetData() []SessionMessage
- func (s *SessionMessagesResponse) MarshalJSON() ([]byte, error)
- func (s *SessionMessagesResponse) SetCursor(val SessionMessagesResponseCursor)
- func (s *SessionMessagesResponse) SetData(val []SessionMessage)
- func (s *SessionMessagesResponse) UnmarshalJSON(data []byte) error
- func (s *SessionMessagesResponse) Validate() error
- type SessionMessagesResponseCursor
- func (s *SessionMessagesResponseCursor) Decode(d *jx.Decoder) error
- func (s *SessionMessagesResponseCursor) Encode(e *jx.Encoder)
- func (s *SessionMessagesResponseCursor) GetNext() OptString
- func (s *SessionMessagesResponseCursor) GetPrevious() OptString
- func (s *SessionMessagesResponseCursor) MarshalJSON() ([]byte, error)
- func (s *SessionMessagesResponseCursor) SetNext(val OptString)
- func (s *SessionMessagesResponseCursor) SetPrevious(val OptString)
- func (s *SessionMessagesResponseCursor) UnmarshalJSON(data []byte) error
- type SessionMetadata
- type SessionModel
- func (s *SessionModel) Decode(d *jx.Decoder) error
- func (s *SessionModel) Encode(e *jx.Encoder)
- func (s *SessionModel) GetID() string
- func (s *SessionModel) GetProviderID() string
- func (s *SessionModel) GetVariant() OptNilString
- func (s *SessionModel) MarshalJSON() ([]byte, error)
- func (s *SessionModel) SetID(val string)
- func (s *SessionModel) SetProviderID(val string)
- func (s *SessionModel) SetVariant(val OptNilString)
- func (s *SessionModel) UnmarshalJSON(data []byte) error
- type SessionRevert
- func (s *SessionRevert) Decode(d *jx.Decoder) error
- func (s *SessionRevert) Encode(e *jx.Encoder)
- func (s *SessionRevert) GetDiff() OptString
- func (s *SessionRevert) GetMessageID() string
- func (s *SessionRevert) GetPartID() OptString
- func (s *SessionRevert) GetSnapshot() OptString
- func (s *SessionRevert) MarshalJSON() ([]byte, error)
- func (s *SessionRevert) SetDiff(val OptString)
- func (s *SessionRevert) SetMessageID(val string)
- func (s *SessionRevert) SetPartID(val OptString)
- func (s *SessionRevert) SetSnapshot(val OptString)
- func (s *SessionRevert) UnmarshalJSON(data []byte) error
- func (s *SessionRevert) Validate() error
- type SessionShare
- type SessionSummary
- func (s *SessionSummary) Decode(d *jx.Decoder) error
- func (s *SessionSummary) Encode(e *jx.Encoder)
- func (s *SessionSummary) GetAdditions() float64
- func (s *SessionSummary) GetDeletions() float64
- func (s *SessionSummary) GetDiffs() []SnapshotFileDiff
- func (s *SessionSummary) GetFiles() float64
- func (s *SessionSummary) MarshalJSON() ([]byte, error)
- func (s *SessionSummary) SetAdditions(val float64)
- func (s *SessionSummary) SetDeletions(val float64)
- func (s *SessionSummary) SetDiffs(val []SnapshotFileDiff)
- func (s *SessionSummary) SetFiles(val float64)
- func (s *SessionSummary) UnmarshalJSON(data []byte) error
- func (s *SessionSummary) Validate() error
- type SessionTime
- func (s *SessionTime) Decode(d *jx.Decoder) error
- func (s *SessionTime) Encode(e *jx.Encoder)
- func (s *SessionTime) GetArchived() OptNilFloat64
- func (s *SessionTime) GetCompacting() OptInt
- func (s *SessionTime) GetCreated() int
- func (s *SessionTime) GetUpdated() int
- func (s *SessionTime) MarshalJSON() ([]byte, error)
- func (s *SessionTime) SetArchived(val OptNilFloat64)
- func (s *SessionTime) SetCompacting(val OptInt)
- func (s *SessionTime) SetCreated(val int)
- func (s *SessionTime) SetUpdated(val int)
- func (s *SessionTime) UnmarshalJSON(data []byte) error
- func (s *SessionTime) Validate() error
- type SessionTokens
- func (s *SessionTokens) Decode(d *jx.Decoder) error
- func (s *SessionTokens) Encode(e *jx.Encoder)
- func (s *SessionTokens) GetCache() SessionTokensCache
- func (s *SessionTokens) GetInput() NilFloat64
- func (s *SessionTokens) GetOutput() float64
- func (s *SessionTokens) GetReasoning() float64
- func (s *SessionTokens) MarshalJSON() ([]byte, error)
- func (s *SessionTokens) SetCache(val SessionTokensCache)
- func (s *SessionTokens) SetInput(val NilFloat64)
- func (s *SessionTokens) SetOutput(val float64)
- func (s *SessionTokens) SetReasoning(val float64)
- func (s *SessionTokens) UnmarshalJSON(data []byte) error
- func (s *SessionTokens) Validate() error
- type SessionTokensCache
- func (s *SessionTokensCache) Decode(d *jx.Decoder) error
- func (s *SessionTokensCache) Encode(e *jx.Encoder)
- func (s *SessionTokensCache) GetRead() float64
- func (s *SessionTokensCache) GetWrite() float64
- func (s *SessionTokensCache) MarshalJSON() ([]byte, error)
- func (s *SessionTokensCache) SetRead(val float64)
- func (s *SessionTokensCache) SetWrite(val float64)
- func (s *SessionTokensCache) UnmarshalJSON(data []byte) error
- func (s *SessionTokensCache) Validate() error
- type SessionV2Info
- func (s *SessionV2Info) Decode(d *jx.Decoder) error
- func (s *SessionV2Info) Encode(e *jx.Encoder)
- func (s *SessionV2Info) GetAgent() OptNilString
- func (s *SessionV2Info) GetCost() float64
- func (s *SessionV2Info) GetID() string
- func (s *SessionV2Info) GetLocation() LocationRef
- func (s *SessionV2Info) GetModel() OptNilSessionV2InfoModel
- func (s *SessionV2Info) GetParentID() OptString
- func (s *SessionV2Info) GetProjectID() string
- func (s *SessionV2Info) GetSubpath() OptNilString
- func (s *SessionV2Info) GetTime() SessionV2InfoTime
- func (s *SessionV2Info) GetTitle() string
- func (s *SessionV2Info) GetTokens() SessionV2InfoTokens
- func (s *SessionV2Info) MarshalJSON() ([]byte, error)
- func (s *SessionV2Info) SetAgent(val OptNilString)
- func (s *SessionV2Info) SetCost(val float64)
- func (s *SessionV2Info) SetID(val string)
- func (s *SessionV2Info) SetLocation(val LocationRef)
- func (s *SessionV2Info) SetModel(val OptNilSessionV2InfoModel)
- func (s *SessionV2Info) SetParentID(val OptString)
- func (s *SessionV2Info) SetProjectID(val string)
- func (s *SessionV2Info) SetSubpath(val OptNilString)
- func (s *SessionV2Info) SetTime(val SessionV2InfoTime)
- func (s *SessionV2Info) SetTitle(val string)
- func (s *SessionV2Info) SetTokens(val SessionV2InfoTokens)
- func (s *SessionV2Info) UnmarshalJSON(data []byte) error
- func (s *SessionV2Info) Validate() error
- type SessionV2InfoModel
- func (s *SessionV2InfoModel) Decode(d *jx.Decoder) error
- func (s *SessionV2InfoModel) Encode(e *jx.Encoder)
- func (s *SessionV2InfoModel) GetID() string
- func (s *SessionV2InfoModel) GetProviderID() string
- func (s *SessionV2InfoModel) GetVariant() OptNilString
- func (s *SessionV2InfoModel) MarshalJSON() ([]byte, error)
- func (s *SessionV2InfoModel) SetID(val string)
- func (s *SessionV2InfoModel) SetProviderID(val string)
- func (s *SessionV2InfoModel) SetVariant(val OptNilString)
- func (s *SessionV2InfoModel) UnmarshalJSON(data []byte) error
- type SessionV2InfoTime
- func (s *SessionV2InfoTime) Decode(d *jx.Decoder) error
- func (s *SessionV2InfoTime) Encode(e *jx.Encoder)
- func (s *SessionV2InfoTime) GetArchived() OptNilFloat64
- func (s *SessionV2InfoTime) GetCreated() NilFloat64
- func (s *SessionV2InfoTime) GetUpdated() NilFloat64
- func (s *SessionV2InfoTime) MarshalJSON() ([]byte, error)
- func (s *SessionV2InfoTime) SetArchived(val OptNilFloat64)
- func (s *SessionV2InfoTime) SetCreated(val NilFloat64)
- func (s *SessionV2InfoTime) SetUpdated(val NilFloat64)
- func (s *SessionV2InfoTime) UnmarshalJSON(data []byte) error
- func (s *SessionV2InfoTime) Validate() error
- type SessionV2InfoTokens
- func (s *SessionV2InfoTokens) Decode(d *jx.Decoder) error
- func (s *SessionV2InfoTokens) Encode(e *jx.Encoder)
- func (s *SessionV2InfoTokens) GetCache() SessionV2InfoTokensCache
- func (s *SessionV2InfoTokens) GetInput() NilFloat64
- func (s *SessionV2InfoTokens) GetOutput() float64
- func (s *SessionV2InfoTokens) GetReasoning() float64
- func (s *SessionV2InfoTokens) MarshalJSON() ([]byte, error)
- func (s *SessionV2InfoTokens) SetCache(val SessionV2InfoTokensCache)
- func (s *SessionV2InfoTokens) SetInput(val NilFloat64)
- func (s *SessionV2InfoTokens) SetOutput(val float64)
- func (s *SessionV2InfoTokens) SetReasoning(val float64)
- func (s *SessionV2InfoTokens) UnmarshalJSON(data []byte) error
- func (s *SessionV2InfoTokens) Validate() error
- type SessionV2InfoTokensCache
- func (s *SessionV2InfoTokensCache) Decode(d *jx.Decoder) error
- func (s *SessionV2InfoTokensCache) Encode(e *jx.Encoder)
- func (s *SessionV2InfoTokensCache) GetRead() float64
- func (s *SessionV2InfoTokensCache) GetWrite() float64
- func (s *SessionV2InfoTokensCache) MarshalJSON() ([]byte, error)
- func (s *SessionV2InfoTokensCache) SetRead(val float64)
- func (s *SessionV2InfoTokensCache) SetWrite(val float64)
- func (s *SessionV2InfoTokensCache) UnmarshalJSON(data []byte) error
- func (s *SessionV2InfoTokensCache) Validate() error
- type SessionsResponse
- func (s *SessionsResponse) Decode(d *jx.Decoder) error
- func (s *SessionsResponse) Encode(e *jx.Encoder)
- func (s *SessionsResponse) GetCursor() SessionsResponseCursor
- func (s *SessionsResponse) GetData() []SessionV2Info
- func (s *SessionsResponse) MarshalJSON() ([]byte, error)
- func (s *SessionsResponse) SetCursor(val SessionsResponseCursor)
- func (s *SessionsResponse) SetData(val []SessionV2Info)
- func (s *SessionsResponse) UnmarshalJSON(data []byte) error
- func (s *SessionsResponse) Validate() error
- type SessionsResponseCursor
- func (s *SessionsResponseCursor) Decode(d *jx.Decoder) error
- func (s *SessionsResponseCursor) Encode(e *jx.Encoder)
- func (s *SessionsResponseCursor) GetNext() OptString
- func (s *SessionsResponseCursor) GetPrevious() OptString
- func (s *SessionsResponseCursor) MarshalJSON() ([]byte, error)
- func (s *SessionsResponseCursor) SetNext(val OptString)
- func (s *SessionsResponseCursor) SetPrevious(val OptString)
- func (s *SessionsResponseCursor) UnmarshalJSON(data []byte) error
- type SnapshotFileDiff
- func (s *SnapshotFileDiff) Decode(d *jx.Decoder) error
- func (s *SnapshotFileDiff) Encode(e *jx.Encoder)
- func (s *SnapshotFileDiff) GetAdditions() float64
- func (s *SnapshotFileDiff) GetDeletions() float64
- func (s *SnapshotFileDiff) GetFile() OptString
- func (s *SnapshotFileDiff) GetPatch() OptString
- func (s *SnapshotFileDiff) GetStatus() OptSnapshotFileDiffStatus
- func (s *SnapshotFileDiff) MarshalJSON() ([]byte, error)
- func (s *SnapshotFileDiff) SetAdditions(val float64)
- func (s *SnapshotFileDiff) SetDeletions(val float64)
- func (s *SnapshotFileDiff) SetFile(val OptString)
- func (s *SnapshotFileDiff) SetPatch(val OptString)
- func (s *SnapshotFileDiff) SetStatus(val OptSnapshotFileDiffStatus)
- func (s *SnapshotFileDiff) UnmarshalJSON(data []byte) error
- func (s *SnapshotFileDiff) Validate() error
- type SnapshotFileDiffStatus
- func (SnapshotFileDiffStatus) AllValues() []SnapshotFileDiffStatus
- func (s *SnapshotFileDiffStatus) Decode(d *jx.Decoder) error
- func (s SnapshotFileDiffStatus) Encode(e *jx.Encoder)
- func (s SnapshotFileDiffStatus) MarshalJSON() ([]byte, error)
- func (s SnapshotFileDiffStatus) MarshalText() ([]byte, error)
- func (s *SnapshotFileDiffStatus) UnmarshalJSON(data []byte) error
- func (s *SnapshotFileDiffStatus) UnmarshalText(data []byte) error
- func (s SnapshotFileDiffStatus) Validate() error
- type UnauthorizedError
- func (s *UnauthorizedError) Decode(d *jx.Decoder) error
- func (s *UnauthorizedError) Encode(e *jx.Encoder)
- func (s *UnauthorizedError) GetMessage() string
- func (s *UnauthorizedError) GetTag() UnauthorizedErrorTag
- func (s *UnauthorizedError) MarshalJSON() ([]byte, error)
- func (s *UnauthorizedError) SetMessage(val string)
- func (s *UnauthorizedError) SetTag(val UnauthorizedErrorTag)
- func (s *UnauthorizedError) UnmarshalJSON(data []byte) error
- func (s *UnauthorizedError) Validate() error
- type UnauthorizedErrorTag
- func (UnauthorizedErrorTag) AllValues() []UnauthorizedErrorTag
- func (s *UnauthorizedErrorTag) Decode(d *jx.Decoder) error
- func (s UnauthorizedErrorTag) Encode(e *jx.Encoder)
- func (s UnauthorizedErrorTag) MarshalJSON() ([]byte, error)
- func (s UnauthorizedErrorTag) MarshalText() ([]byte, error)
- func (s *UnauthorizedErrorTag) UnmarshalJSON(data []byte) error
- func (s *UnauthorizedErrorTag) UnmarshalText(data []byte) error
- func (s UnauthorizedErrorTag) Validate() error
- type UnimplementedHandler
- func (UnimplementedHandler) SessionCreate(ctx context.Context, req OptSessionCreateReq, params SessionCreateParams) (r SessionCreateRes, _ error)
- func (UnimplementedHandler) SessionMessage(ctx context.Context, req *SessionMessageReq, params SessionMessageParams) (r SessionMessageRes, _ error)
- func (UnimplementedHandler) SessionMessages(ctx context.Context, params SessionMessagesParams) (r SessionMessagesRes, _ error)
- func (UnimplementedHandler) V2AgentList(ctx context.Context, params V2AgentListParams) (r V2AgentListRes, _ error)
- func (UnimplementedHandler) V2HealthGet(ctx context.Context) (r V2HealthGetRes, _ error)
- func (UnimplementedHandler) V2ModelList(ctx context.Context, params V2ModelListParams) (r V2ModelListRes, _ error)
- func (UnimplementedHandler) V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (r V2PermissionRequestListRes, _ error)
- func (UnimplementedHandler) V2ProviderList(ctx context.Context, params V2ProviderListParams) (r V2ProviderListRes, _ error)
- func (UnimplementedHandler) V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (r V2QuestionRequestListRes, _ error)
- func (UnimplementedHandler) V2SessionContext(ctx context.Context, params V2SessionContextParams) (r V2SessionContextRes, _ error)
- func (UnimplementedHandler) V2SessionList(ctx context.Context, params V2SessionListParams) (r V2SessionListRes, _ error)
- func (UnimplementedHandler) V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (r V2SessionMessagesRes, _ error)
- func (UnimplementedHandler) V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (r V2SessionPermissionListRes, _ error)
- func (UnimplementedHandler) V2SessionPermissionReply(ctx context.Context, req *V2SessionPermissionReplyReq, ...) (r V2SessionPermissionReplyRes, _ error)
- func (UnimplementedHandler) V2SessionPrompt(ctx context.Context, req *V2SessionPromptReq, params V2SessionPromptParams) (r V2SessionPromptRes, _ error)
- func (UnimplementedHandler) V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (r V2SessionQuestionRejectRes, _ error)
- func (UnimplementedHandler) V2SessionQuestionReply(ctx context.Context, req *QuestionV2Reply, params V2SessionQuestionReplyParams) (r V2SessionQuestionReplyRes, _ error)
- func (UnimplementedHandler) V2SessionWait(ctx context.Context, params V2SessionWaitParams) (r V2SessionWaitRes, _ error)
- type UnknownError1
- func (s *UnknownError1) Decode(d *jx.Decoder) error
- func (s *UnknownError1) Encode(e *jx.Encoder)
- func (s *UnknownError1) GetMessage() string
- func (s *UnknownError1) GetRef() OptString
- func (s *UnknownError1) GetTag() UnknownError1Tag
- func (s *UnknownError1) MarshalJSON() ([]byte, error)
- func (s *UnknownError1) SetMessage(val string)
- func (s *UnknownError1) SetRef(val OptString)
- func (s *UnknownError1) SetTag(val UnknownError1Tag)
- func (s *UnknownError1) UnmarshalJSON(data []byte) error
- func (s *UnknownError1) Validate() error
- type UnknownError1Tag
- func (UnknownError1Tag) AllValues() []UnknownError1Tag
- func (s *UnknownError1Tag) Decode(d *jx.Decoder) error
- func (s UnknownError1Tag) Encode(e *jx.Encoder)
- func (s UnknownError1Tag) MarshalJSON() ([]byte, error)
- func (s UnknownError1Tag) MarshalText() ([]byte, error)
- func (s *UnknownError1Tag) UnmarshalJSON(data []byte) error
- func (s *UnknownError1Tag) UnmarshalText(data []byte) error
- func (s UnknownError1Tag) Validate() error
- type V2AgentListLocation
- func (s *V2AgentListLocation) DecodeURI(d uri.Decoder) error
- func (s *V2AgentListLocation) EncodeURI(e uri.Encoder) error
- func (s *V2AgentListLocation) GetDirectory() OptString
- func (s *V2AgentListLocation) GetWorkspace() OptString
- func (s *V2AgentListLocation) SetDirectory(val OptString)
- func (s *V2AgentListLocation) SetWorkspace(val OptString)
- type V2AgentListOK
- func (s *V2AgentListOK) Decode(d *jx.Decoder) error
- func (s *V2AgentListOK) Encode(e *jx.Encoder)
- func (s *V2AgentListOK) GetData() []AgentV2Info
- func (s *V2AgentListOK) GetLocation() LocationInfo
- func (s *V2AgentListOK) MarshalJSON() ([]byte, error)
- func (s *V2AgentListOK) SetData(val []AgentV2Info)
- func (s *V2AgentListOK) SetLocation(val LocationInfo)
- func (s *V2AgentListOK) UnmarshalJSON(data []byte) error
- func (s *V2AgentListOK) Validate() error
- type V2AgentListParams
- type V2AgentListRes
- type V2HealthGetOK
- func (s *V2HealthGetOK) Decode(d *jx.Decoder) error
- func (s *V2HealthGetOK) Encode(e *jx.Encoder)
- func (s *V2HealthGetOK) GetHealthy() V2HealthGetOKHealthy
- func (s *V2HealthGetOK) MarshalJSON() ([]byte, error)
- func (s *V2HealthGetOK) SetHealthy(val V2HealthGetOKHealthy)
- func (s *V2HealthGetOK) UnmarshalJSON(data []byte) error
- func (s *V2HealthGetOK) Validate() error
- type V2HealthGetOKHealthy
- func (V2HealthGetOKHealthy) AllValues() []V2HealthGetOKHealthy
- func (s *V2HealthGetOKHealthy) Decode(d *jx.Decoder) error
- func (s V2HealthGetOKHealthy) Encode(e *jx.Encoder)
- func (s V2HealthGetOKHealthy) MarshalJSON() ([]byte, error)
- func (s *V2HealthGetOKHealthy) UnmarshalJSON(data []byte) error
- func (s V2HealthGetOKHealthy) Validate() error
- type V2HealthGetRes
- type V2ModelListLocation
- func (s *V2ModelListLocation) DecodeURI(d uri.Decoder) error
- func (s *V2ModelListLocation) EncodeURI(e uri.Encoder) error
- func (s *V2ModelListLocation) GetDirectory() OptString
- func (s *V2ModelListLocation) GetWorkspace() OptString
- func (s *V2ModelListLocation) SetDirectory(val OptString)
- func (s *V2ModelListLocation) SetWorkspace(val OptString)
- type V2ModelListOK
- func (s *V2ModelListOK) Decode(d *jx.Decoder) error
- func (s *V2ModelListOK) Encode(e *jx.Encoder)
- func (s *V2ModelListOK) GetData() []ModelV2Info
- func (s *V2ModelListOK) GetLocation() LocationInfo
- func (s *V2ModelListOK) MarshalJSON() ([]byte, error)
- func (s *V2ModelListOK) SetData(val []ModelV2Info)
- func (s *V2ModelListOK) SetLocation(val LocationInfo)
- func (s *V2ModelListOK) UnmarshalJSON(data []byte) error
- func (s *V2ModelListOK) Validate() error
- type V2ModelListParams
- type V2ModelListRes
- type V2PermissionRequestListLocation
- func (s *V2PermissionRequestListLocation) DecodeURI(d uri.Decoder) error
- func (s *V2PermissionRequestListLocation) EncodeURI(e uri.Encoder) error
- func (s *V2PermissionRequestListLocation) GetDirectory() OptString
- func (s *V2PermissionRequestListLocation) GetWorkspace() OptString
- func (s *V2PermissionRequestListLocation) SetDirectory(val OptString)
- func (s *V2PermissionRequestListLocation) SetWorkspace(val OptString)
- type V2PermissionRequestListOK
- func (s *V2PermissionRequestListOK) Decode(d *jx.Decoder) error
- func (s *V2PermissionRequestListOK) Encode(e *jx.Encoder)
- func (s *V2PermissionRequestListOK) GetData() []PermissionV2Request
- func (s *V2PermissionRequestListOK) GetLocation() LocationInfo
- func (s *V2PermissionRequestListOK) MarshalJSON() ([]byte, error)
- func (s *V2PermissionRequestListOK) SetData(val []PermissionV2Request)
- func (s *V2PermissionRequestListOK) SetLocation(val LocationInfo)
- func (s *V2PermissionRequestListOK) UnmarshalJSON(data []byte) error
- func (s *V2PermissionRequestListOK) Validate() error
- type V2PermissionRequestListParams
- type V2PermissionRequestListRes
- type V2ProviderListLocation
- func (s *V2ProviderListLocation) DecodeURI(d uri.Decoder) error
- func (s *V2ProviderListLocation) EncodeURI(e uri.Encoder) error
- func (s *V2ProviderListLocation) GetDirectory() OptString
- func (s *V2ProviderListLocation) GetWorkspace() OptString
- func (s *V2ProviderListLocation) SetDirectory(val OptString)
- func (s *V2ProviderListLocation) SetWorkspace(val OptString)
- type V2ProviderListOK
- func (s *V2ProviderListOK) Decode(d *jx.Decoder) error
- func (s *V2ProviderListOK) Encode(e *jx.Encoder)
- func (s *V2ProviderListOK) GetData() []ProviderV2Info
- func (s *V2ProviderListOK) GetLocation() LocationInfo
- func (s *V2ProviderListOK) MarshalJSON() ([]byte, error)
- func (s *V2ProviderListOK) SetData(val []ProviderV2Info)
- func (s *V2ProviderListOK) SetLocation(val LocationInfo)
- func (s *V2ProviderListOK) UnmarshalJSON(data []byte) error
- func (s *V2ProviderListOK) Validate() error
- type V2ProviderListParams
- type V2ProviderListRes
- type V2QuestionRequestListLocation
- func (s *V2QuestionRequestListLocation) DecodeURI(d uri.Decoder) error
- func (s *V2QuestionRequestListLocation) EncodeURI(e uri.Encoder) error
- func (s *V2QuestionRequestListLocation) GetDirectory() OptString
- func (s *V2QuestionRequestListLocation) GetWorkspace() OptString
- func (s *V2QuestionRequestListLocation) SetDirectory(val OptString)
- func (s *V2QuestionRequestListLocation) SetWorkspace(val OptString)
- type V2QuestionRequestListOK
- func (s *V2QuestionRequestListOK) Decode(d *jx.Decoder) error
- func (s *V2QuestionRequestListOK) Encode(e *jx.Encoder)
- func (s *V2QuestionRequestListOK) GetData() []QuestionV2Request
- func (s *V2QuestionRequestListOK) GetLocation() LocationInfo
- func (s *V2QuestionRequestListOK) MarshalJSON() ([]byte, error)
- func (s *V2QuestionRequestListOK) SetData(val []QuestionV2Request)
- func (s *V2QuestionRequestListOK) SetLocation(val LocationInfo)
- func (s *V2QuestionRequestListOK) UnmarshalJSON(data []byte) error
- func (s *V2QuestionRequestListOK) Validate() error
- type V2QuestionRequestListParams
- type V2QuestionRequestListRes
- type V2SessionContextNotFoundApplicationJSON
- func (s *V2SessionContextNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionContextNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionContextNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionContextNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionContextOK
- func (s *V2SessionContextOK) Decode(d *jx.Decoder) error
- func (s *V2SessionContextOK) Encode(e *jx.Encoder)
- func (s *V2SessionContextOK) GetData() []SessionMessage
- func (s *V2SessionContextOK) MarshalJSON() ([]byte, error)
- func (s *V2SessionContextOK) SetData(val []SessionMessage)
- func (s *V2SessionContextOK) UnmarshalJSON(data []byte) error
- func (s *V2SessionContextOK) Validate() error
- type V2SessionContextParams
- type V2SessionContextRes
- type V2SessionListBadRequestApplicationJSON
- func (s *V2SessionListBadRequestApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionListBadRequestApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionListBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionListBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionListOrder
- type V2SessionListParams
- type V2SessionListRes
- type V2SessionMessagesBadRequestApplicationJSON
- func (s *V2SessionMessagesBadRequestApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionMessagesBadRequestApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionMessagesBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionMessagesBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionMessagesNotFoundApplicationJSON
- func (s *V2SessionMessagesNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionMessagesNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionMessagesNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionMessagesNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionMessagesOrder
- type V2SessionMessagesParams
- type V2SessionMessagesRes
- type V2SessionPermissionListNotFoundApplicationJSON
- func (s *V2SessionPermissionListNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionPermissionListNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionPermissionListNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionPermissionListNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionPermissionListOK
- func (s *V2SessionPermissionListOK) Decode(d *jx.Decoder) error
- func (s *V2SessionPermissionListOK) Encode(e *jx.Encoder)
- func (s *V2SessionPermissionListOK) GetData() []PermissionV2Request
- func (s *V2SessionPermissionListOK) MarshalJSON() ([]byte, error)
- func (s *V2SessionPermissionListOK) SetData(val []PermissionV2Request)
- func (s *V2SessionPermissionListOK) UnmarshalJSON(data []byte) error
- func (s *V2SessionPermissionListOK) Validate() error
- type V2SessionPermissionListParams
- type V2SessionPermissionListRes
- type V2SessionPermissionReplyNoContent
- type V2SessionPermissionReplyNotFoundApplicationJSON
- func (s *V2SessionPermissionReplyNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionPermissionReplyNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionPermissionReplyNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionPermissionReplyNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionPermissionReplyParams
- type V2SessionPermissionReplyReq
- func (s *V2SessionPermissionReplyReq) Decode(d *jx.Decoder) error
- func (s *V2SessionPermissionReplyReq) Encode(e *jx.Encoder)
- func (s *V2SessionPermissionReplyReq) GetMessage() OptString
- func (s *V2SessionPermissionReplyReq) GetReply() PermissionV2Reply
- func (s *V2SessionPermissionReplyReq) MarshalJSON() ([]byte, error)
- func (s *V2SessionPermissionReplyReq) SetMessage(val OptString)
- func (s *V2SessionPermissionReplyReq) SetReply(val PermissionV2Reply)
- func (s *V2SessionPermissionReplyReq) UnmarshalJSON(data []byte) error
- func (s *V2SessionPermissionReplyReq) Validate() error
- type V2SessionPermissionReplyRes
- type V2SessionPromptNotFoundApplicationJSON
- func (s *V2SessionPromptNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionPromptNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionPromptNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionPromptNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionPromptOK
- func (s *V2SessionPromptOK) Decode(d *jx.Decoder) error
- func (s *V2SessionPromptOK) Encode(e *jx.Encoder)
- func (s *V2SessionPromptOK) GetData() SessionInputAdmitted
- func (s *V2SessionPromptOK) MarshalJSON() ([]byte, error)
- func (s *V2SessionPromptOK) SetData(val SessionInputAdmitted)
- func (s *V2SessionPromptOK) UnmarshalJSON(data []byte) error
- func (s *V2SessionPromptOK) Validate() error
- type V2SessionPromptParams
- type V2SessionPromptReq
- func (s *V2SessionPromptReq) Decode(d *jx.Decoder) error
- func (s *V2SessionPromptReq) Encode(e *jx.Encoder)
- func (s *V2SessionPromptReq) GetDelivery() OptV2SessionPromptReqDelivery
- func (s *V2SessionPromptReq) GetID() OptString
- func (s *V2SessionPromptReq) GetPrompt() Prompt
- func (s *V2SessionPromptReq) GetResume() OptBool
- func (s *V2SessionPromptReq) MarshalJSON() ([]byte, error)
- func (s *V2SessionPromptReq) SetDelivery(val OptV2SessionPromptReqDelivery)
- func (s *V2SessionPromptReq) SetID(val OptString)
- func (s *V2SessionPromptReq) SetPrompt(val Prompt)
- func (s *V2SessionPromptReq) SetResume(val OptBool)
- func (s *V2SessionPromptReq) UnmarshalJSON(data []byte) error
- func (s *V2SessionPromptReq) Validate() error
- type V2SessionPromptReqDelivery
- func (V2SessionPromptReqDelivery) AllValues() []V2SessionPromptReqDelivery
- func (s *V2SessionPromptReqDelivery) Decode(d *jx.Decoder) error
- func (s V2SessionPromptReqDelivery) Encode(e *jx.Encoder)
- func (s V2SessionPromptReqDelivery) MarshalJSON() ([]byte, error)
- func (s V2SessionPromptReqDelivery) MarshalText() ([]byte, error)
- func (s *V2SessionPromptReqDelivery) UnmarshalJSON(data []byte) error
- func (s *V2SessionPromptReqDelivery) UnmarshalText(data []byte) error
- func (s V2SessionPromptReqDelivery) Validate() error
- type V2SessionPromptRes
- type V2SessionQuestionRejectNoContent
- type V2SessionQuestionRejectNotFoundApplicationJSON
- func (s *V2SessionQuestionRejectNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionQuestionRejectNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionQuestionRejectNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionQuestionRejectNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionQuestionRejectParams
- type V2SessionQuestionRejectRes
- type V2SessionQuestionReplyNoContent
- type V2SessionQuestionReplyNotFoundApplicationJSON
- func (s *V2SessionQuestionReplyNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s V2SessionQuestionReplyNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s V2SessionQuestionReplyNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *V2SessionQuestionReplyNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- type V2SessionQuestionReplyParams
- type V2SessionQuestionReplyRes
- type V2SessionWaitNoContent
- type V2SessionWaitNotFoundApplicationJSON
- type V2SessionWaitParams
- type V2SessionWaitRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentV2Info ¶
type AgentV2Info struct {
Color jx.Raw `json:"color"`
Description OptString `json:"description"`
Hidden bool `json:"hidden"`
ID string `json:"id"`
Mode AgentV2InfoMode `json:"mode"`
Model OptNilAgentV2InfoModel `json:"model"`
Permissions PermissionV2Ruleset `json:"permissions"`
Request AgentV2InfoRequest `json:"request"`
Steps OptInt `json:"steps"`
System OptString `json:"system"`
}
Ref: #/components/schemas/AgentV2Info
func (*AgentV2Info) Decode ¶
func (s *AgentV2Info) Decode(d *jx.Decoder) error
Decode decodes AgentV2Info from json.
func (*AgentV2Info) Encode ¶
func (s *AgentV2Info) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AgentV2Info) GetColor ¶
func (s *AgentV2Info) GetColor() jx.Raw
GetColor returns the value of Color.
func (*AgentV2Info) GetDescription ¶
func (s *AgentV2Info) GetDescription() OptString
GetDescription returns the value of Description.
func (*AgentV2Info) GetHidden ¶
func (s *AgentV2Info) GetHidden() bool
GetHidden returns the value of Hidden.
func (*AgentV2Info) GetMode ¶
func (s *AgentV2Info) GetMode() AgentV2InfoMode
GetMode returns the value of Mode.
func (*AgentV2Info) GetModel ¶
func (s *AgentV2Info) GetModel() OptNilAgentV2InfoModel
GetModel returns the value of Model.
func (*AgentV2Info) GetPermissions ¶
func (s *AgentV2Info) GetPermissions() PermissionV2Ruleset
GetPermissions returns the value of Permissions.
func (*AgentV2Info) GetRequest ¶
func (s *AgentV2Info) GetRequest() AgentV2InfoRequest
GetRequest returns the value of Request.
func (*AgentV2Info) GetSteps ¶
func (s *AgentV2Info) GetSteps() OptInt
GetSteps returns the value of Steps.
func (*AgentV2Info) GetSystem ¶
func (s *AgentV2Info) GetSystem() OptString
GetSystem returns the value of System.
func (*AgentV2Info) MarshalJSON ¶
func (s *AgentV2Info) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AgentV2Info) SetColor ¶
func (s *AgentV2Info) SetColor(val jx.Raw)
SetColor sets the value of Color.
func (*AgentV2Info) SetDescription ¶
func (s *AgentV2Info) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*AgentV2Info) SetHidden ¶
func (s *AgentV2Info) SetHidden(val bool)
SetHidden sets the value of Hidden.
func (*AgentV2Info) SetMode ¶
func (s *AgentV2Info) SetMode(val AgentV2InfoMode)
SetMode sets the value of Mode.
func (*AgentV2Info) SetModel ¶
func (s *AgentV2Info) SetModel(val OptNilAgentV2InfoModel)
SetModel sets the value of Model.
func (*AgentV2Info) SetPermissions ¶
func (s *AgentV2Info) SetPermissions(val PermissionV2Ruleset)
SetPermissions sets the value of Permissions.
func (*AgentV2Info) SetRequest ¶
func (s *AgentV2Info) SetRequest(val AgentV2InfoRequest)
SetRequest sets the value of Request.
func (*AgentV2Info) SetSteps ¶
func (s *AgentV2Info) SetSteps(val OptInt)
SetSteps sets the value of Steps.
func (*AgentV2Info) SetSystem ¶
func (s *AgentV2Info) SetSystem(val OptString)
SetSystem sets the value of System.
func (*AgentV2Info) UnmarshalJSON ¶
func (s *AgentV2Info) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AgentV2Info) Validate ¶
func (s *AgentV2Info) Validate() error
type AgentV2InfoMode ¶
type AgentV2InfoMode string
const ( AgentV2InfoModeSubagent AgentV2InfoMode = "subagent" AgentV2InfoModePrimary AgentV2InfoMode = "primary" AgentV2InfoModeAll AgentV2InfoMode = "all" )
func (AgentV2InfoMode) AllValues ¶
func (AgentV2InfoMode) AllValues() []AgentV2InfoMode
AllValues returns all AgentV2InfoMode values.
func (*AgentV2InfoMode) Decode ¶
func (s *AgentV2InfoMode) Decode(d *jx.Decoder) error
Decode decodes AgentV2InfoMode from json.
func (AgentV2InfoMode) Encode ¶
func (s AgentV2InfoMode) Encode(e *jx.Encoder)
Encode encodes AgentV2InfoMode as json.
func (AgentV2InfoMode) MarshalJSON ¶
func (s AgentV2InfoMode) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AgentV2InfoMode) MarshalText ¶
func (s AgentV2InfoMode) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AgentV2InfoMode) UnmarshalJSON ¶
func (s *AgentV2InfoMode) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AgentV2InfoMode) UnmarshalText ¶
func (s *AgentV2InfoMode) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AgentV2InfoMode) Validate ¶
func (s AgentV2InfoMode) Validate() error
type AgentV2InfoModel ¶
type AgentV2InfoModel struct {
ID string `json:"id"`
ProviderID string `json:"providerID"`
Variant OptNilString `json:"variant"`
}
func (*AgentV2InfoModel) Decode ¶
func (s *AgentV2InfoModel) Decode(d *jx.Decoder) error
Decode decodes AgentV2InfoModel from json.
func (*AgentV2InfoModel) Encode ¶
func (s *AgentV2InfoModel) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AgentV2InfoModel) GetID ¶
func (s *AgentV2InfoModel) GetID() string
GetID returns the value of ID.
func (*AgentV2InfoModel) GetProviderID ¶
func (s *AgentV2InfoModel) GetProviderID() string
GetProviderID returns the value of ProviderID.
func (*AgentV2InfoModel) GetVariant ¶
func (s *AgentV2InfoModel) GetVariant() OptNilString
GetVariant returns the value of Variant.
func (*AgentV2InfoModel) MarshalJSON ¶
func (s *AgentV2InfoModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AgentV2InfoModel) SetID ¶
func (s *AgentV2InfoModel) SetID(val string)
SetID sets the value of ID.
func (*AgentV2InfoModel) SetProviderID ¶
func (s *AgentV2InfoModel) SetProviderID(val string)
SetProviderID sets the value of ProviderID.
func (*AgentV2InfoModel) SetVariant ¶
func (s *AgentV2InfoModel) SetVariant(val OptNilString)
SetVariant sets the value of Variant.
func (*AgentV2InfoModel) UnmarshalJSON ¶
func (s *AgentV2InfoModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AgentV2InfoRequest ¶
type AgentV2InfoRequest struct {
Body AgentV2InfoRequestBody `json:"body"`
Headers AgentV2InfoRequestHeaders `json:"headers"`
}
func (*AgentV2InfoRequest) Decode ¶
func (s *AgentV2InfoRequest) Decode(d *jx.Decoder) error
Decode decodes AgentV2InfoRequest from json.
func (*AgentV2InfoRequest) Encode ¶
func (s *AgentV2InfoRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AgentV2InfoRequest) GetBody ¶
func (s *AgentV2InfoRequest) GetBody() AgentV2InfoRequestBody
GetBody returns the value of Body.
func (*AgentV2InfoRequest) GetHeaders ¶
func (s *AgentV2InfoRequest) GetHeaders() AgentV2InfoRequestHeaders
GetHeaders returns the value of Headers.
func (*AgentV2InfoRequest) MarshalJSON ¶
func (s *AgentV2InfoRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AgentV2InfoRequest) SetBody ¶
func (s *AgentV2InfoRequest) SetBody(val AgentV2InfoRequestBody)
SetBody sets the value of Body.
func (*AgentV2InfoRequest) SetHeaders ¶
func (s *AgentV2InfoRequest) SetHeaders(val AgentV2InfoRequestHeaders)
SetHeaders sets the value of Headers.
func (*AgentV2InfoRequest) UnmarshalJSON ¶
func (s *AgentV2InfoRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AgentV2InfoRequestBody ¶
type AgentV2InfoRequestBody struct{}
func (*AgentV2InfoRequestBody) Decode ¶
func (s *AgentV2InfoRequestBody) Decode(d *jx.Decoder) error
Decode decodes AgentV2InfoRequestBody from json.
func (*AgentV2InfoRequestBody) Encode ¶
func (s *AgentV2InfoRequestBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AgentV2InfoRequestBody) MarshalJSON ¶
func (s *AgentV2InfoRequestBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AgentV2InfoRequestBody) UnmarshalJSON ¶
func (s *AgentV2InfoRequestBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AgentV2InfoRequestHeaders ¶
func (*AgentV2InfoRequestHeaders) Decode ¶
func (s *AgentV2InfoRequestHeaders) Decode(d *jx.Decoder) error
Decode decodes AgentV2InfoRequestHeaders from json.
func (AgentV2InfoRequestHeaders) Encode ¶
func (s AgentV2InfoRequestHeaders) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (AgentV2InfoRequestHeaders) MarshalJSON ¶
func (s AgentV2InfoRequestHeaders) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AgentV2InfoRequestHeaders) UnmarshalJSON ¶
func (s *AgentV2InfoRequestHeaders) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
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) SessionCreate ¶
func (c *Client) SessionCreate(ctx context.Context, request OptSessionCreateReq, params SessionCreateParams) (SessionCreateRes, error)
SessionCreate invokes session.create operation.
Create a new OpenCode session for interacting with AI assistants and managing conversations.
POST /session
func (*Client) SessionMessage ¶
func (c *Client) SessionMessage(ctx context.Context, request *SessionMessageReq, params SessionMessageParams) (SessionMessageRes, error)
SessionMessage invokes session.message operation.
Send a message to a session.
POST /session/{sessionID}/message
func (*Client) SessionMessages ¶
func (c *Client) SessionMessages(ctx context.Context, params SessionMessagesParams) (SessionMessagesRes, error)
SessionMessages invokes session.messages operation.
Retrieve all messages in a session, including user prompts and AI responses.
GET /session/{sessionID}/message
func (*Client) V2AgentList ¶
func (c *Client) V2AgentList(ctx context.Context, params V2AgentListParams) (V2AgentListRes, error)
V2AgentList invokes v2.agent.list operation.
Retrieve currently registered agents.
GET /api/agent
func (*Client) V2HealthGet ¶
func (c *Client) V2HealthGet(ctx context.Context) (V2HealthGetRes, error)
V2HealthGet invokes v2.health.get operation.
Check whether the API server is ready to accept requests.
GET /api/health
func (*Client) V2ModelList ¶
func (c *Client) V2ModelList(ctx context.Context, params V2ModelListParams) (V2ModelListRes, error)
V2ModelList invokes v2.model.list operation.
Retrieve available models ordered by release date.
GET /api/model
func (*Client) V2PermissionRequestList ¶
func (c *Client) V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (V2PermissionRequestListRes, error)
V2PermissionRequestList invokes v2.permission.request.list operation.
Retrieve pending permission requests for a location.
GET /api/permission/request
func (*Client) V2ProviderList ¶
func (c *Client) V2ProviderList(ctx context.Context, params V2ProviderListParams) (V2ProviderListRes, error)
V2ProviderList invokes v2.provider.list operation.
Retrieve active AI providers so clients can show provider availability and configuration.
GET /api/provider
func (*Client) V2QuestionRequestList ¶
func (c *Client) V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (V2QuestionRequestListRes, error)
V2QuestionRequestList invokes v2.question.request.list operation.
Retrieve pending question requests for a location.
GET /api/question/request
func (*Client) V2SessionContext ¶
func (c *Client) V2SessionContext(ctx context.Context, params V2SessionContextParams) (V2SessionContextRes, error)
V2SessionContext invokes v2.session.context operation.
Retrieve the active context messages for a session (all messages after the last compaction).
GET /api/session/{sessionID}/context
func (*Client) V2SessionList ¶
func (c *Client) V2SessionList(ctx context.Context, params V2SessionListParams) (V2SessionListRes, error)
V2SessionList invokes v2.session.list operation.
Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.
GET /api/session
func (*Client) V2SessionMessages ¶
func (c *Client) V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (V2SessionMessagesRes, error)
V2SessionMessages invokes v2.session.messages operation.
Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.
GET /api/session/{sessionID}/message
func (*Client) V2SessionPermissionList ¶
func (c *Client) V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (V2SessionPermissionListRes, error)
V2SessionPermissionList invokes v2.session.permission.list operation.
Retrieve pending permission requests owned by a session.
GET /api/session/{sessionID}/permission
func (*Client) V2SessionPermissionReply ¶
func (c *Client) V2SessionPermissionReply(ctx context.Context, request *V2SessionPermissionReplyReq, params V2SessionPermissionReplyParams) (V2SessionPermissionReplyRes, error)
V2SessionPermissionReply invokes v2.session.permission.reply operation.
Respond to a pending permission request owned by a session.
POST /api/session/{sessionID}/permission/{requestID}/reply
func (*Client) V2SessionPrompt ¶
func (c *Client) V2SessionPrompt(ctx context.Context, request *V2SessionPromptReq, params V2SessionPromptParams) (V2SessionPromptRes, error)
V2SessionPrompt invokes v2.session.prompt operation.
Durably admit one session input and schedule agent-loop execution unless resume is false.
POST /api/session/{sessionID}/prompt
func (*Client) V2SessionQuestionReject ¶
func (c *Client) V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (V2SessionQuestionRejectRes, error)
V2SessionQuestionReject invokes v2.session.question.reject operation.
Reject a pending question request owned by a session.
POST /api/session/{sessionID}/question/{requestID}/reject
func (*Client) V2SessionQuestionReply ¶
func (c *Client) V2SessionQuestionReply(ctx context.Context, request *QuestionV2Reply, params V2SessionQuestionReplyParams) (V2SessionQuestionReplyRes, error)
V2SessionQuestionReply invokes v2.session.question.reply operation.
Answer a pending question request owned by a session.
POST /api/session/{sessionID}/question/{requestID}/reply
func (*Client) V2SessionWait ¶
func (c *Client) V2SessionWait(ctx context.Context, params V2SessionWaitParams) (V2SessionWaitRes, error)
V2SessionWait invokes v2.session.wait operation.
Wait for a session agent loop to become idle.
POST /api/session/{sessionID}/wait
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 ConflictError ¶
type ConflictError struct {
Tag ConflictErrorTag `json:"_tag"`
Message string `json:"message"`
Resource OptString `json:"resource"`
}
Ref: #/components/schemas/ConflictError
func (*ConflictError) Decode ¶
func (s *ConflictError) Decode(d *jx.Decoder) error
Decode decodes ConflictError from json.
func (*ConflictError) Encode ¶
func (s *ConflictError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ConflictError) GetMessage ¶
func (s *ConflictError) GetMessage() string
GetMessage returns the value of Message.
func (*ConflictError) GetResource ¶
func (s *ConflictError) GetResource() OptString
GetResource returns the value of Resource.
func (*ConflictError) GetTag ¶
func (s *ConflictError) GetTag() ConflictErrorTag
GetTag returns the value of Tag.
func (*ConflictError) MarshalJSON ¶
func (s *ConflictError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ConflictError) SetMessage ¶
func (s *ConflictError) SetMessage(val string)
SetMessage sets the value of Message.
func (*ConflictError) SetResource ¶
func (s *ConflictError) SetResource(val OptString)
SetResource sets the value of Resource.
func (*ConflictError) SetTag ¶
func (s *ConflictError) SetTag(val ConflictErrorTag)
SetTag sets the value of Tag.
func (*ConflictError) UnmarshalJSON ¶
func (s *ConflictError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ConflictError) Validate ¶
func (s *ConflictError) Validate() error
type ConflictErrorTag ¶
type ConflictErrorTag string
const (
ConflictErrorTagConflictError ConflictErrorTag = "ConflictError"
)
func (ConflictErrorTag) AllValues ¶
func (ConflictErrorTag) AllValues() []ConflictErrorTag
AllValues returns all ConflictErrorTag values.
func (*ConflictErrorTag) Decode ¶
func (s *ConflictErrorTag) Decode(d *jx.Decoder) error
Decode decodes ConflictErrorTag from json.
func (ConflictErrorTag) Encode ¶
func (s ConflictErrorTag) Encode(e *jx.Encoder)
Encode encodes ConflictErrorTag as json.
func (ConflictErrorTag) MarshalJSON ¶
func (s ConflictErrorTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ConflictErrorTag) MarshalText ¶
func (s ConflictErrorTag) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ConflictErrorTag) UnmarshalJSON ¶
func (s *ConflictErrorTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ConflictErrorTag) UnmarshalText ¶
func (s *ConflictErrorTag) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ConflictErrorTag) Validate ¶
func (s ConflictErrorTag) Validate() error
type Handler ¶
type Handler interface {
// SessionCreate implements session.create operation.
//
// Create a new OpenCode session for interacting with AI assistants and managing conversations.
//
// POST /session
SessionCreate(ctx context.Context, req OptSessionCreateReq, params SessionCreateParams) (SessionCreateRes, error)
// SessionMessage implements session.message operation.
//
// Send a message to a session.
//
// POST /session/{sessionID}/message
SessionMessage(ctx context.Context, req *SessionMessageReq, params SessionMessageParams) (SessionMessageRes, error)
// SessionMessages implements session.messages operation.
//
// Retrieve all messages in a session, including user prompts and AI responses.
//
// GET /session/{sessionID}/message
SessionMessages(ctx context.Context, params SessionMessagesParams) (SessionMessagesRes, error)
// V2AgentList implements v2.agent.list operation.
//
// Retrieve currently registered agents.
//
// GET /api/agent
V2AgentList(ctx context.Context, params V2AgentListParams) (V2AgentListRes, error)
// V2HealthGet implements v2.health.get operation.
//
// Check whether the API server is ready to accept requests.
//
// GET /api/health
V2HealthGet(ctx context.Context) (V2HealthGetRes, error)
// V2ModelList implements v2.model.list operation.
//
// Retrieve available models ordered by release date.
//
// GET /api/model
V2ModelList(ctx context.Context, params V2ModelListParams) (V2ModelListRes, error)
// V2PermissionRequestList implements v2.permission.request.list operation.
//
// Retrieve pending permission requests for a location.
//
// GET /api/permission/request
V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (V2PermissionRequestListRes, error)
// V2ProviderList implements v2.provider.list operation.
//
// Retrieve active AI providers so clients can show provider availability and configuration.
//
// GET /api/provider
V2ProviderList(ctx context.Context, params V2ProviderListParams) (V2ProviderListRes, error)
// V2QuestionRequestList implements v2.question.request.list operation.
//
// Retrieve pending question requests for a location.
//
// GET /api/question/request
V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (V2QuestionRequestListRes, error)
// V2SessionContext implements v2.session.context operation.
//
// Retrieve the active context messages for a session (all messages after the last compaction).
//
// GET /api/session/{sessionID}/context
V2SessionContext(ctx context.Context, params V2SessionContextParams) (V2SessionContextRes, error)
// V2SessionList implements v2.session.list operation.
//
// Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or
// cursor.previous to move through the ordered list.
//
// GET /api/session
V2SessionList(ctx context.Context, params V2SessionListParams) (V2SessionListRes, error)
// V2SessionMessages implements v2.session.messages operation.
//
// Retrieve projected messages for a session. Items keep the requested order across pages; use
// cursor.next or cursor.previous to move through the ordered timeline.
//
// GET /api/session/{sessionID}/message
V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (V2SessionMessagesRes, error)
// V2SessionPermissionList implements v2.session.permission.list operation.
//
// Retrieve pending permission requests owned by a session.
//
// GET /api/session/{sessionID}/permission
V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (V2SessionPermissionListRes, error)
// V2SessionPermissionReply implements v2.session.permission.reply operation.
//
// Respond to a pending permission request owned by a session.
//
// POST /api/session/{sessionID}/permission/{requestID}/reply
V2SessionPermissionReply(ctx context.Context, req *V2SessionPermissionReplyReq, params V2SessionPermissionReplyParams) (V2SessionPermissionReplyRes, error)
// V2SessionPrompt implements v2.session.prompt operation.
//
// Durably admit one session input and schedule agent-loop execution unless resume is false.
//
// POST /api/session/{sessionID}/prompt
V2SessionPrompt(ctx context.Context, req *V2SessionPromptReq, params V2SessionPromptParams) (V2SessionPromptRes, error)
// V2SessionQuestionReject implements v2.session.question.reject operation.
//
// Reject a pending question request owned by a session.
//
// POST /api/session/{sessionID}/question/{requestID}/reject
V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (V2SessionQuestionRejectRes, error)
// V2SessionQuestionReply implements v2.session.question.reply operation.
//
// Answer a pending question request owned by a session.
//
// POST /api/session/{sessionID}/question/{requestID}/reply
V2SessionQuestionReply(ctx context.Context, req *QuestionV2Reply, params V2SessionQuestionReplyParams) (V2SessionQuestionReplyRes, error)
// V2SessionWait implements v2.session.wait operation.
//
// Wait for a session agent loop to become idle.
//
// POST /api/session/{sessionID}/wait
V2SessionWait(ctx context.Context, params V2SessionWaitParams) (V2SessionWaitRes, error)
}
Handler handles operations described by OpenAPI v3 specification.
type InvalidRequestError ¶
type InvalidRequestError struct {
Tag InvalidRequestErrorTag `json:"_tag"`
Field OptString `json:"field"`
Kind OptString `json:"kind"`
Message string `json:"message"`
}
Ref: #/components/schemas/InvalidRequestError
func (*InvalidRequestError) Decode ¶
func (s *InvalidRequestError) Decode(d *jx.Decoder) error
Decode decodes InvalidRequestError from json.
func (*InvalidRequestError) Encode ¶
func (s *InvalidRequestError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InvalidRequestError) GetField ¶
func (s *InvalidRequestError) GetField() OptString
GetField returns the value of Field.
func (*InvalidRequestError) GetKind ¶
func (s *InvalidRequestError) GetKind() OptString
GetKind returns the value of Kind.
func (*InvalidRequestError) GetMessage ¶
func (s *InvalidRequestError) GetMessage() string
GetMessage returns the value of Message.
func (*InvalidRequestError) GetTag ¶
func (s *InvalidRequestError) GetTag() InvalidRequestErrorTag
GetTag returns the value of Tag.
func (*InvalidRequestError) MarshalJSON ¶
func (s *InvalidRequestError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InvalidRequestError) SetField ¶
func (s *InvalidRequestError) SetField(val OptString)
SetField sets the value of Field.
func (*InvalidRequestError) SetKind ¶
func (s *InvalidRequestError) SetKind(val OptString)
SetKind sets the value of Kind.
func (*InvalidRequestError) SetMessage ¶
func (s *InvalidRequestError) SetMessage(val string)
SetMessage sets the value of Message.
func (*InvalidRequestError) SetTag ¶
func (s *InvalidRequestError) SetTag(val InvalidRequestErrorTag)
SetTag sets the value of Tag.
func (*InvalidRequestError) UnmarshalJSON ¶
func (s *InvalidRequestError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InvalidRequestError) Validate ¶
func (s *InvalidRequestError) Validate() error
type InvalidRequestErrorTag ¶
type InvalidRequestErrorTag string
const (
InvalidRequestErrorTagInvalidRequestError InvalidRequestErrorTag = "InvalidRequestError"
)
func (InvalidRequestErrorTag) AllValues ¶
func (InvalidRequestErrorTag) AllValues() []InvalidRequestErrorTag
AllValues returns all InvalidRequestErrorTag values.
func (*InvalidRequestErrorTag) Decode ¶
func (s *InvalidRequestErrorTag) Decode(d *jx.Decoder) error
Decode decodes InvalidRequestErrorTag from json.
func (InvalidRequestErrorTag) Encode ¶
func (s InvalidRequestErrorTag) Encode(e *jx.Encoder)
Encode encodes InvalidRequestErrorTag as json.
func (InvalidRequestErrorTag) MarshalJSON ¶
func (s InvalidRequestErrorTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (InvalidRequestErrorTag) MarshalText ¶
func (s InvalidRequestErrorTag) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*InvalidRequestErrorTag) UnmarshalJSON ¶
func (s *InvalidRequestErrorTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InvalidRequestErrorTag) UnmarshalText ¶
func (s *InvalidRequestErrorTag) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (InvalidRequestErrorTag) Validate ¶
func (s InvalidRequestErrorTag) Validate() error
type Invoker ¶
type Invoker interface {
// SessionCreate invokes session.create operation.
//
// Create a new OpenCode session for interacting with AI assistants and managing conversations.
//
// POST /session
SessionCreate(ctx context.Context, request OptSessionCreateReq, params SessionCreateParams) (SessionCreateRes, error)
// SessionMessage invokes session.message operation.
//
// Send a message to a session.
//
// POST /session/{sessionID}/message
SessionMessage(ctx context.Context, request *SessionMessageReq, params SessionMessageParams) (SessionMessageRes, error)
// SessionMessages invokes session.messages operation.
//
// Retrieve all messages in a session, including user prompts and AI responses.
//
// GET /session/{sessionID}/message
SessionMessages(ctx context.Context, params SessionMessagesParams) (SessionMessagesRes, error)
// V2AgentList invokes v2.agent.list operation.
//
// Retrieve currently registered agents.
//
// GET /api/agent
V2AgentList(ctx context.Context, params V2AgentListParams) (V2AgentListRes, error)
// V2HealthGet invokes v2.health.get operation.
//
// Check whether the API server is ready to accept requests.
//
// GET /api/health
V2HealthGet(ctx context.Context) (V2HealthGetRes, error)
// V2ModelList invokes v2.model.list operation.
//
// Retrieve available models ordered by release date.
//
// GET /api/model
V2ModelList(ctx context.Context, params V2ModelListParams) (V2ModelListRes, error)
// V2PermissionRequestList invokes v2.permission.request.list operation.
//
// Retrieve pending permission requests for a location.
//
// GET /api/permission/request
V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (V2PermissionRequestListRes, error)
// V2ProviderList invokes v2.provider.list operation.
//
// Retrieve active AI providers so clients can show provider availability and configuration.
//
// GET /api/provider
V2ProviderList(ctx context.Context, params V2ProviderListParams) (V2ProviderListRes, error)
// V2QuestionRequestList invokes v2.question.request.list operation.
//
// Retrieve pending question requests for a location.
//
// GET /api/question/request
V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (V2QuestionRequestListRes, error)
// V2SessionContext invokes v2.session.context operation.
//
// Retrieve the active context messages for a session (all messages after the last compaction).
//
// GET /api/session/{sessionID}/context
V2SessionContext(ctx context.Context, params V2SessionContextParams) (V2SessionContextRes, error)
// V2SessionList invokes v2.session.list operation.
//
// Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or
// cursor.previous to move through the ordered list.
//
// GET /api/session
V2SessionList(ctx context.Context, params V2SessionListParams) (V2SessionListRes, error)
// V2SessionMessages invokes v2.session.messages operation.
//
// Retrieve projected messages for a session. Items keep the requested order across pages; use
// cursor.next or cursor.previous to move through the ordered timeline.
//
// GET /api/session/{sessionID}/message
V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (V2SessionMessagesRes, error)
// V2SessionPermissionList invokes v2.session.permission.list operation.
//
// Retrieve pending permission requests owned by a session.
//
// GET /api/session/{sessionID}/permission
V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (V2SessionPermissionListRes, error)
// V2SessionPermissionReply invokes v2.session.permission.reply operation.
//
// Respond to a pending permission request owned by a session.
//
// POST /api/session/{sessionID}/permission/{requestID}/reply
V2SessionPermissionReply(ctx context.Context, request *V2SessionPermissionReplyReq, params V2SessionPermissionReplyParams) (V2SessionPermissionReplyRes, error)
// V2SessionPrompt invokes v2.session.prompt operation.
//
// Durably admit one session input and schedule agent-loop execution unless resume is false.
//
// POST /api/session/{sessionID}/prompt
V2SessionPrompt(ctx context.Context, request *V2SessionPromptReq, params V2SessionPromptParams) (V2SessionPromptRes, error)
// V2SessionQuestionReject invokes v2.session.question.reject operation.
//
// Reject a pending question request owned by a session.
//
// POST /api/session/{sessionID}/question/{requestID}/reject
V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (V2SessionQuestionRejectRes, error)
// V2SessionQuestionReply invokes v2.session.question.reply operation.
//
// Answer a pending question request owned by a session.
//
// POST /api/session/{sessionID}/question/{requestID}/reply
V2SessionQuestionReply(ctx context.Context, request *QuestionV2Reply, params V2SessionQuestionReplyParams) (V2SessionQuestionReplyRes, error)
// V2SessionWait invokes v2.session.wait operation.
//
// Wait for a session agent loop to become idle.
//
// POST /api/session/{sessionID}/wait
V2SessionWait(ctx context.Context, params V2SessionWaitParams) (V2SessionWaitRes, error)
}
Invoker invokes operations described by OpenAPI v3 specification.
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 ¶
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) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type LocationInfo ¶
type LocationInfo struct {
Directory string `json:"directory"`
Project LocationInfoProject `json:"project"`
WorkspaceID OptNilString `json:"workspaceID"`
}
Ref: #/components/schemas/LocationInfo
func (*LocationInfo) Decode ¶
func (s *LocationInfo) Decode(d *jx.Decoder) error
Decode decodes LocationInfo from json.
func (*LocationInfo) Encode ¶
func (s *LocationInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*LocationInfo) GetDirectory ¶
func (s *LocationInfo) GetDirectory() string
GetDirectory returns the value of Directory.
func (*LocationInfo) GetProject ¶
func (s *LocationInfo) GetProject() LocationInfoProject
GetProject returns the value of Project.
func (*LocationInfo) GetWorkspaceID ¶
func (s *LocationInfo) GetWorkspaceID() OptNilString
GetWorkspaceID returns the value of WorkspaceID.
func (*LocationInfo) MarshalJSON ¶
func (s *LocationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LocationInfo) SetDirectory ¶
func (s *LocationInfo) SetDirectory(val string)
SetDirectory sets the value of Directory.
func (*LocationInfo) SetProject ¶
func (s *LocationInfo) SetProject(val LocationInfoProject)
SetProject sets the value of Project.
func (*LocationInfo) SetWorkspaceID ¶
func (s *LocationInfo) SetWorkspaceID(val OptNilString)
SetWorkspaceID sets the value of WorkspaceID.
func (*LocationInfo) UnmarshalJSON ¶
func (s *LocationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*LocationInfo) Validate ¶
func (s *LocationInfo) Validate() error
type LocationInfoProject ¶
func (*LocationInfoProject) Decode ¶
func (s *LocationInfoProject) Decode(d *jx.Decoder) error
Decode decodes LocationInfoProject from json.
func (*LocationInfoProject) Encode ¶
func (s *LocationInfoProject) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*LocationInfoProject) GetDirectory ¶
func (s *LocationInfoProject) GetDirectory() string
GetDirectory returns the value of Directory.
func (*LocationInfoProject) GetID ¶
func (s *LocationInfoProject) GetID() string
GetID returns the value of ID.
func (*LocationInfoProject) MarshalJSON ¶
func (s *LocationInfoProject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LocationInfoProject) SetDirectory ¶
func (s *LocationInfoProject) SetDirectory(val string)
SetDirectory sets the value of Directory.
func (*LocationInfoProject) SetID ¶
func (s *LocationInfoProject) SetID(val string)
SetID sets the value of ID.
func (*LocationInfoProject) UnmarshalJSON ¶
func (s *LocationInfoProject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type LocationRef ¶
type LocationRef struct {
Directory string `json:"directory"`
WorkspaceID OptNilString `json:"workspaceID"`
}
Ref: #/components/schemas/LocationRef
func (*LocationRef) Decode ¶
func (s *LocationRef) Decode(d *jx.Decoder) error
Decode decodes LocationRef from json.
func (*LocationRef) Encode ¶
func (s *LocationRef) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*LocationRef) GetDirectory ¶
func (s *LocationRef) GetDirectory() string
GetDirectory returns the value of Directory.
func (*LocationRef) GetWorkspaceID ¶
func (s *LocationRef) GetWorkspaceID() OptNilString
GetWorkspaceID returns the value of WorkspaceID.
func (*LocationRef) MarshalJSON ¶
func (s *LocationRef) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LocationRef) SetDirectory ¶
func (s *LocationRef) SetDirectory(val string)
SetDirectory sets the value of Directory.
func (*LocationRef) SetWorkspaceID ¶
func (s *LocationRef) SetWorkspaceID(val OptNilString)
SetWorkspaceID sets the value of WorkspaceID.
func (*LocationRef) UnmarshalJSON ¶
func (s *LocationRef) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*LocationRef) Validate ¶
func (s *LocationRef) Validate() error
type ModelV2Info ¶
type ModelV2Info struct {
API jx.Raw `json:"api"`
Capabilities ModelV2InfoCapabilities `json:"capabilities"`
Cost []ModelV2InfoCostItem `json:"cost"`
Enabled bool `json:"enabled"`
Family OptNilString `json:"family"`
ID string `json:"id"`
Limit ModelV2InfoLimit `json:"limit"`
Name string `json:"name"`
ProviderID string `json:"providerID"`
Request ModelV2InfoRequest `json:"request"`
Status ModelV2InfoStatus `json:"status"`
Time ModelV2InfoTime `json:"time"`
Variants []ModelV2InfoVariantsItem `json:"variants"`
}
Ref: #/components/schemas/ModelV2Info
func (*ModelV2Info) Decode ¶
func (s *ModelV2Info) Decode(d *jx.Decoder) error
Decode decodes ModelV2Info from json.
func (*ModelV2Info) Encode ¶
func (s *ModelV2Info) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2Info) GetCapabilities ¶
func (s *ModelV2Info) GetCapabilities() ModelV2InfoCapabilities
GetCapabilities returns the value of Capabilities.
func (*ModelV2Info) GetCost ¶
func (s *ModelV2Info) GetCost() []ModelV2InfoCostItem
GetCost returns the value of Cost.
func (*ModelV2Info) GetEnabled ¶
func (s *ModelV2Info) GetEnabled() bool
GetEnabled returns the value of Enabled.
func (*ModelV2Info) GetFamily ¶
func (s *ModelV2Info) GetFamily() OptNilString
GetFamily returns the value of Family.
func (*ModelV2Info) GetLimit ¶
func (s *ModelV2Info) GetLimit() ModelV2InfoLimit
GetLimit returns the value of Limit.
func (*ModelV2Info) GetName ¶
func (s *ModelV2Info) GetName() string
GetName returns the value of Name.
func (*ModelV2Info) GetProviderID ¶
func (s *ModelV2Info) GetProviderID() string
GetProviderID returns the value of ProviderID.
func (*ModelV2Info) GetRequest ¶
func (s *ModelV2Info) GetRequest() ModelV2InfoRequest
GetRequest returns the value of Request.
func (*ModelV2Info) GetStatus ¶
func (s *ModelV2Info) GetStatus() ModelV2InfoStatus
GetStatus returns the value of Status.
func (*ModelV2Info) GetTime ¶
func (s *ModelV2Info) GetTime() ModelV2InfoTime
GetTime returns the value of Time.
func (*ModelV2Info) GetVariants ¶
func (s *ModelV2Info) GetVariants() []ModelV2InfoVariantsItem
GetVariants returns the value of Variants.
func (*ModelV2Info) MarshalJSON ¶
func (s *ModelV2Info) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2Info) SetCapabilities ¶
func (s *ModelV2Info) SetCapabilities(val ModelV2InfoCapabilities)
SetCapabilities sets the value of Capabilities.
func (*ModelV2Info) SetCost ¶
func (s *ModelV2Info) SetCost(val []ModelV2InfoCostItem)
SetCost sets the value of Cost.
func (*ModelV2Info) SetEnabled ¶
func (s *ModelV2Info) SetEnabled(val bool)
SetEnabled sets the value of Enabled.
func (*ModelV2Info) SetFamily ¶
func (s *ModelV2Info) SetFamily(val OptNilString)
SetFamily sets the value of Family.
func (*ModelV2Info) SetLimit ¶
func (s *ModelV2Info) SetLimit(val ModelV2InfoLimit)
SetLimit sets the value of Limit.
func (*ModelV2Info) SetName ¶
func (s *ModelV2Info) SetName(val string)
SetName sets the value of Name.
func (*ModelV2Info) SetProviderID ¶
func (s *ModelV2Info) SetProviderID(val string)
SetProviderID sets the value of ProviderID.
func (*ModelV2Info) SetRequest ¶
func (s *ModelV2Info) SetRequest(val ModelV2InfoRequest)
SetRequest sets the value of Request.
func (*ModelV2Info) SetStatus ¶
func (s *ModelV2Info) SetStatus(val ModelV2InfoStatus)
SetStatus sets the value of Status.
func (*ModelV2Info) SetTime ¶
func (s *ModelV2Info) SetTime(val ModelV2InfoTime)
SetTime sets the value of Time.
func (*ModelV2Info) SetVariants ¶
func (s *ModelV2Info) SetVariants(val []ModelV2InfoVariantsItem)
SetVariants sets the value of Variants.
func (*ModelV2Info) UnmarshalJSON ¶
func (s *ModelV2Info) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ModelV2Info) Validate ¶
func (s *ModelV2Info) Validate() error
type ModelV2InfoCapabilities ¶
type ModelV2InfoCapabilities struct {
Input []string `json:"input"`
Output []string `json:"output"`
Tools bool `json:"tools"`
}
func (*ModelV2InfoCapabilities) Decode ¶
func (s *ModelV2InfoCapabilities) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoCapabilities from json.
func (*ModelV2InfoCapabilities) Encode ¶
func (s *ModelV2InfoCapabilities) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoCapabilities) GetInput ¶
func (s *ModelV2InfoCapabilities) GetInput() []string
GetInput returns the value of Input.
func (*ModelV2InfoCapabilities) GetOutput ¶
func (s *ModelV2InfoCapabilities) GetOutput() []string
GetOutput returns the value of Output.
func (*ModelV2InfoCapabilities) GetTools ¶
func (s *ModelV2InfoCapabilities) GetTools() bool
GetTools returns the value of Tools.
func (*ModelV2InfoCapabilities) MarshalJSON ¶
func (s *ModelV2InfoCapabilities) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoCapabilities) SetInput ¶
func (s *ModelV2InfoCapabilities) SetInput(val []string)
SetInput sets the value of Input.
func (*ModelV2InfoCapabilities) SetOutput ¶
func (s *ModelV2InfoCapabilities) SetOutput(val []string)
SetOutput sets the value of Output.
func (*ModelV2InfoCapabilities) SetTools ¶
func (s *ModelV2InfoCapabilities) SetTools(val bool)
SetTools sets the value of Tools.
func (*ModelV2InfoCapabilities) UnmarshalJSON ¶
func (s *ModelV2InfoCapabilities) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ModelV2InfoCapabilities) Validate ¶
func (s *ModelV2InfoCapabilities) Validate() error
type ModelV2InfoCostItem ¶
type ModelV2InfoCostItem struct {
Cache ModelV2InfoCostItemCache `json:"cache"`
Input NilFloat64 `json:"input"`
Output float64 `json:"output"`
Tier OptModelV2InfoCostItemTier `json:"tier"`
}
func (*ModelV2InfoCostItem) Decode ¶
func (s *ModelV2InfoCostItem) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoCostItem from json.
func (*ModelV2InfoCostItem) Encode ¶
func (s *ModelV2InfoCostItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoCostItem) GetCache ¶
func (s *ModelV2InfoCostItem) GetCache() ModelV2InfoCostItemCache
GetCache returns the value of Cache.
func (*ModelV2InfoCostItem) GetInput ¶
func (s *ModelV2InfoCostItem) GetInput() NilFloat64
GetInput returns the value of Input.
func (*ModelV2InfoCostItem) GetOutput ¶
func (s *ModelV2InfoCostItem) GetOutput() float64
GetOutput returns the value of Output.
func (*ModelV2InfoCostItem) GetTier ¶
func (s *ModelV2InfoCostItem) GetTier() OptModelV2InfoCostItemTier
GetTier returns the value of Tier.
func (*ModelV2InfoCostItem) MarshalJSON ¶
func (s *ModelV2InfoCostItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoCostItem) SetCache ¶
func (s *ModelV2InfoCostItem) SetCache(val ModelV2InfoCostItemCache)
SetCache sets the value of Cache.
func (*ModelV2InfoCostItem) SetInput ¶
func (s *ModelV2InfoCostItem) SetInput(val NilFloat64)
SetInput sets the value of Input.
func (*ModelV2InfoCostItem) SetOutput ¶
func (s *ModelV2InfoCostItem) SetOutput(val float64)
SetOutput sets the value of Output.
func (*ModelV2InfoCostItem) SetTier ¶
func (s *ModelV2InfoCostItem) SetTier(val OptModelV2InfoCostItemTier)
SetTier sets the value of Tier.
func (*ModelV2InfoCostItem) UnmarshalJSON ¶
func (s *ModelV2InfoCostItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ModelV2InfoCostItem) Validate ¶
func (s *ModelV2InfoCostItem) Validate() error
type ModelV2InfoCostItemCache ¶
func (*ModelV2InfoCostItemCache) Decode ¶
func (s *ModelV2InfoCostItemCache) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoCostItemCache from json.
func (*ModelV2InfoCostItemCache) Encode ¶
func (s *ModelV2InfoCostItemCache) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoCostItemCache) GetRead ¶
func (s *ModelV2InfoCostItemCache) GetRead() float64
GetRead returns the value of Read.
func (*ModelV2InfoCostItemCache) GetWrite ¶
func (s *ModelV2InfoCostItemCache) GetWrite() float64
GetWrite returns the value of Write.
func (*ModelV2InfoCostItemCache) MarshalJSON ¶
func (s *ModelV2InfoCostItemCache) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoCostItemCache) SetRead ¶
func (s *ModelV2InfoCostItemCache) SetRead(val float64)
SetRead sets the value of Read.
func (*ModelV2InfoCostItemCache) SetWrite ¶
func (s *ModelV2InfoCostItemCache) SetWrite(val float64)
SetWrite sets the value of Write.
func (*ModelV2InfoCostItemCache) UnmarshalJSON ¶
func (s *ModelV2InfoCostItemCache) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ModelV2InfoCostItemCache) Validate ¶
func (s *ModelV2InfoCostItemCache) Validate() error
type ModelV2InfoCostItemTier ¶
type ModelV2InfoCostItemTier struct {
Size int `json:"size"`
Type ModelV2InfoCostItemTierType `json:"type"`
}
func (*ModelV2InfoCostItemTier) Decode ¶
func (s *ModelV2InfoCostItemTier) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoCostItemTier from json.
func (*ModelV2InfoCostItemTier) Encode ¶
func (s *ModelV2InfoCostItemTier) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoCostItemTier) GetSize ¶
func (s *ModelV2InfoCostItemTier) GetSize() int
GetSize returns the value of Size.
func (*ModelV2InfoCostItemTier) GetType ¶
func (s *ModelV2InfoCostItemTier) GetType() ModelV2InfoCostItemTierType
GetType returns the value of Type.
func (*ModelV2InfoCostItemTier) MarshalJSON ¶
func (s *ModelV2InfoCostItemTier) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoCostItemTier) SetSize ¶
func (s *ModelV2InfoCostItemTier) SetSize(val int)
SetSize sets the value of Size.
func (*ModelV2InfoCostItemTier) SetType ¶
func (s *ModelV2InfoCostItemTier) SetType(val ModelV2InfoCostItemTierType)
SetType sets the value of Type.
func (*ModelV2InfoCostItemTier) UnmarshalJSON ¶
func (s *ModelV2InfoCostItemTier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ModelV2InfoCostItemTier) Validate ¶
func (s *ModelV2InfoCostItemTier) Validate() error
type ModelV2InfoCostItemTierType ¶
type ModelV2InfoCostItemTierType string
const (
ModelV2InfoCostItemTierTypeContext ModelV2InfoCostItemTierType = "context"
)
func (ModelV2InfoCostItemTierType) AllValues ¶
func (ModelV2InfoCostItemTierType) AllValues() []ModelV2InfoCostItemTierType
AllValues returns all ModelV2InfoCostItemTierType values.
func (*ModelV2InfoCostItemTierType) Decode ¶
func (s *ModelV2InfoCostItemTierType) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoCostItemTierType from json.
func (ModelV2InfoCostItemTierType) Encode ¶
func (s ModelV2InfoCostItemTierType) Encode(e *jx.Encoder)
Encode encodes ModelV2InfoCostItemTierType as json.
func (ModelV2InfoCostItemTierType) MarshalJSON ¶
func (s ModelV2InfoCostItemTierType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ModelV2InfoCostItemTierType) MarshalText ¶
func (s ModelV2InfoCostItemTierType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ModelV2InfoCostItemTierType) UnmarshalJSON ¶
func (s *ModelV2InfoCostItemTierType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ModelV2InfoCostItemTierType) UnmarshalText ¶
func (s *ModelV2InfoCostItemTierType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ModelV2InfoCostItemTierType) Validate ¶
func (s ModelV2InfoCostItemTierType) Validate() error
type ModelV2InfoLimit ¶
type ModelV2InfoLimit struct {
Context int `json:"context"`
Input OptNilInt `json:"input"`
Output int `json:"output"`
}
func (*ModelV2InfoLimit) Decode ¶
func (s *ModelV2InfoLimit) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoLimit from json.
func (*ModelV2InfoLimit) Encode ¶
func (s *ModelV2InfoLimit) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoLimit) GetContext ¶
func (s *ModelV2InfoLimit) GetContext() int
GetContext returns the value of Context.
func (*ModelV2InfoLimit) GetInput ¶
func (s *ModelV2InfoLimit) GetInput() OptNilInt
GetInput returns the value of Input.
func (*ModelV2InfoLimit) GetOutput ¶
func (s *ModelV2InfoLimit) GetOutput() int
GetOutput returns the value of Output.
func (*ModelV2InfoLimit) MarshalJSON ¶
func (s *ModelV2InfoLimit) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoLimit) SetContext ¶
func (s *ModelV2InfoLimit) SetContext(val int)
SetContext sets the value of Context.
func (*ModelV2InfoLimit) SetInput ¶
func (s *ModelV2InfoLimit) SetInput(val OptNilInt)
SetInput sets the value of Input.
func (*ModelV2InfoLimit) SetOutput ¶
func (s *ModelV2InfoLimit) SetOutput(val int)
SetOutput sets the value of Output.
func (*ModelV2InfoLimit) UnmarshalJSON ¶
func (s *ModelV2InfoLimit) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoRequest ¶
type ModelV2InfoRequest struct {
Body ModelV2InfoRequestBody `json:"body"`
Generation OptModelV2InfoRequestGeneration `json:"generation"`
Headers ModelV2InfoRequestHeaders `json:"headers"`
Options *ModelV2InfoRequestOptions `json:"options"`
Variant OptNilString `json:"variant"`
}
func (*ModelV2InfoRequest) Decode ¶
func (s *ModelV2InfoRequest) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoRequest from json.
func (*ModelV2InfoRequest) Encode ¶
func (s *ModelV2InfoRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoRequest) GetBody ¶
func (s *ModelV2InfoRequest) GetBody() ModelV2InfoRequestBody
GetBody returns the value of Body.
func (*ModelV2InfoRequest) GetGeneration ¶
func (s *ModelV2InfoRequest) GetGeneration() OptModelV2InfoRequestGeneration
GetGeneration returns the value of Generation.
func (*ModelV2InfoRequest) GetHeaders ¶
func (s *ModelV2InfoRequest) GetHeaders() ModelV2InfoRequestHeaders
GetHeaders returns the value of Headers.
func (*ModelV2InfoRequest) GetOptions ¶
func (s *ModelV2InfoRequest) GetOptions() *ModelV2InfoRequestOptions
GetOptions returns the value of Options.
func (*ModelV2InfoRequest) GetVariant ¶
func (s *ModelV2InfoRequest) GetVariant() OptNilString
GetVariant returns the value of Variant.
func (*ModelV2InfoRequest) MarshalJSON ¶
func (s *ModelV2InfoRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoRequest) SetBody ¶
func (s *ModelV2InfoRequest) SetBody(val ModelV2InfoRequestBody)
SetBody sets the value of Body.
func (*ModelV2InfoRequest) SetGeneration ¶
func (s *ModelV2InfoRequest) SetGeneration(val OptModelV2InfoRequestGeneration)
SetGeneration sets the value of Generation.
func (*ModelV2InfoRequest) SetHeaders ¶
func (s *ModelV2InfoRequest) SetHeaders(val ModelV2InfoRequestHeaders)
SetHeaders sets the value of Headers.
func (*ModelV2InfoRequest) SetOptions ¶
func (s *ModelV2InfoRequest) SetOptions(val *ModelV2InfoRequestOptions)
SetOptions sets the value of Options.
func (*ModelV2InfoRequest) SetVariant ¶
func (s *ModelV2InfoRequest) SetVariant(val OptNilString)
SetVariant sets the value of Variant.
func (*ModelV2InfoRequest) UnmarshalJSON ¶
func (s *ModelV2InfoRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoRequestBody ¶
type ModelV2InfoRequestBody struct{}
func (*ModelV2InfoRequestBody) Decode ¶
func (s *ModelV2InfoRequestBody) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoRequestBody from json.
func (*ModelV2InfoRequestBody) Encode ¶
func (s *ModelV2InfoRequestBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoRequestBody) MarshalJSON ¶
func (s *ModelV2InfoRequestBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoRequestBody) UnmarshalJSON ¶
func (s *ModelV2InfoRequestBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoRequestGeneration ¶
type ModelV2InfoRequestGeneration struct {
FrequencyPenalty jx.Raw `json:"frequencyPenalty"`
MaxTokens jx.Raw `json:"maxTokens"`
PresencePenalty jx.Raw `json:"presencePenalty"`
Seed jx.Raw `json:"seed"`
Stop []string `json:"stop"`
Temperature jx.Raw `json:"temperature"`
TopK jx.Raw `json:"topK"`
TopP jx.Raw `json:"topP"`
}
func (*ModelV2InfoRequestGeneration) Decode ¶
func (s *ModelV2InfoRequestGeneration) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoRequestGeneration from json.
func (*ModelV2InfoRequestGeneration) Encode ¶
func (s *ModelV2InfoRequestGeneration) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoRequestGeneration) GetFrequencyPenalty ¶
func (s *ModelV2InfoRequestGeneration) GetFrequencyPenalty() jx.Raw
GetFrequencyPenalty returns the value of FrequencyPenalty.
func (*ModelV2InfoRequestGeneration) GetMaxTokens ¶
func (s *ModelV2InfoRequestGeneration) GetMaxTokens() jx.Raw
GetMaxTokens returns the value of MaxTokens.
func (*ModelV2InfoRequestGeneration) GetPresencePenalty ¶
func (s *ModelV2InfoRequestGeneration) GetPresencePenalty() jx.Raw
GetPresencePenalty returns the value of PresencePenalty.
func (*ModelV2InfoRequestGeneration) GetSeed ¶
func (s *ModelV2InfoRequestGeneration) GetSeed() jx.Raw
GetSeed returns the value of Seed.
func (*ModelV2InfoRequestGeneration) GetStop ¶
func (s *ModelV2InfoRequestGeneration) GetStop() []string
GetStop returns the value of Stop.
func (*ModelV2InfoRequestGeneration) GetTemperature ¶
func (s *ModelV2InfoRequestGeneration) GetTemperature() jx.Raw
GetTemperature returns the value of Temperature.
func (*ModelV2InfoRequestGeneration) GetTopK ¶
func (s *ModelV2InfoRequestGeneration) GetTopK() jx.Raw
GetTopK returns the value of TopK.
func (*ModelV2InfoRequestGeneration) GetTopP ¶
func (s *ModelV2InfoRequestGeneration) GetTopP() jx.Raw
GetTopP returns the value of TopP.
func (*ModelV2InfoRequestGeneration) MarshalJSON ¶
func (s *ModelV2InfoRequestGeneration) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoRequestGeneration) SetFrequencyPenalty ¶
func (s *ModelV2InfoRequestGeneration) SetFrequencyPenalty(val jx.Raw)
SetFrequencyPenalty sets the value of FrequencyPenalty.
func (*ModelV2InfoRequestGeneration) SetMaxTokens ¶
func (s *ModelV2InfoRequestGeneration) SetMaxTokens(val jx.Raw)
SetMaxTokens sets the value of MaxTokens.
func (*ModelV2InfoRequestGeneration) SetPresencePenalty ¶
func (s *ModelV2InfoRequestGeneration) SetPresencePenalty(val jx.Raw)
SetPresencePenalty sets the value of PresencePenalty.
func (*ModelV2InfoRequestGeneration) SetSeed ¶
func (s *ModelV2InfoRequestGeneration) SetSeed(val jx.Raw)
SetSeed sets the value of Seed.
func (*ModelV2InfoRequestGeneration) SetStop ¶
func (s *ModelV2InfoRequestGeneration) SetStop(val []string)
SetStop sets the value of Stop.
func (*ModelV2InfoRequestGeneration) SetTemperature ¶
func (s *ModelV2InfoRequestGeneration) SetTemperature(val jx.Raw)
SetTemperature sets the value of Temperature.
func (*ModelV2InfoRequestGeneration) SetTopK ¶
func (s *ModelV2InfoRequestGeneration) SetTopK(val jx.Raw)
SetTopK sets the value of TopK.
func (*ModelV2InfoRequestGeneration) SetTopP ¶
func (s *ModelV2InfoRequestGeneration) SetTopP(val jx.Raw)
SetTopP sets the value of TopP.
func (*ModelV2InfoRequestGeneration) UnmarshalJSON ¶
func (s *ModelV2InfoRequestGeneration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoRequestHeaders ¶
func (*ModelV2InfoRequestHeaders) Decode ¶
func (s *ModelV2InfoRequestHeaders) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoRequestHeaders from json.
func (ModelV2InfoRequestHeaders) Encode ¶
func (s ModelV2InfoRequestHeaders) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ModelV2InfoRequestHeaders) MarshalJSON ¶
func (s ModelV2InfoRequestHeaders) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoRequestHeaders) UnmarshalJSON ¶
func (s *ModelV2InfoRequestHeaders) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoRequestOptions ¶
type ModelV2InfoRequestOptions struct{}
func (*ModelV2InfoRequestOptions) Decode ¶
func (s *ModelV2InfoRequestOptions) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoRequestOptions from json.
func (*ModelV2InfoRequestOptions) Encode ¶
func (s *ModelV2InfoRequestOptions) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoRequestOptions) MarshalJSON ¶
func (s *ModelV2InfoRequestOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoRequestOptions) UnmarshalJSON ¶
func (s *ModelV2InfoRequestOptions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoStatus ¶
type ModelV2InfoStatus string
const ( ModelV2InfoStatusAlpha ModelV2InfoStatus = "alpha" ModelV2InfoStatusBeta ModelV2InfoStatus = "beta" ModelV2InfoStatusDeprecated ModelV2InfoStatus = "deprecated" ModelV2InfoStatusActive ModelV2InfoStatus = "active" )
func (ModelV2InfoStatus) AllValues ¶
func (ModelV2InfoStatus) AllValues() []ModelV2InfoStatus
AllValues returns all ModelV2InfoStatus values.
func (*ModelV2InfoStatus) Decode ¶
func (s *ModelV2InfoStatus) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoStatus from json.
func (ModelV2InfoStatus) Encode ¶
func (s ModelV2InfoStatus) Encode(e *jx.Encoder)
Encode encodes ModelV2InfoStatus as json.
func (ModelV2InfoStatus) MarshalJSON ¶
func (s ModelV2InfoStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ModelV2InfoStatus) MarshalText ¶
func (s ModelV2InfoStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ModelV2InfoStatus) UnmarshalJSON ¶
func (s *ModelV2InfoStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ModelV2InfoStatus) UnmarshalText ¶
func (s *ModelV2InfoStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ModelV2InfoStatus) Validate ¶
func (s ModelV2InfoStatus) Validate() error
type ModelV2InfoTime ¶
func (*ModelV2InfoTime) Decode ¶
func (s *ModelV2InfoTime) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoTime from json.
func (*ModelV2InfoTime) Encode ¶
func (s *ModelV2InfoTime) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoTime) GetReleased ¶
func (s *ModelV2InfoTime) GetReleased() jx.Raw
GetReleased returns the value of Released.
func (*ModelV2InfoTime) MarshalJSON ¶
func (s *ModelV2InfoTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoTime) SetReleased ¶
func (s *ModelV2InfoTime) SetReleased(val jx.Raw)
SetReleased sets the value of Released.
func (*ModelV2InfoTime) UnmarshalJSON ¶
func (s *ModelV2InfoTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoVariantsItem ¶
type ModelV2InfoVariantsItem struct {
Body ModelV2InfoVariantsItemBody `json:"body"`
Generation OptModelV2InfoVariantsItemGeneration `json:"generation"`
Headers ModelV2InfoVariantsItemHeaders `json:"headers"`
ID string `json:"id"`
Options *ModelV2InfoVariantsItemOptions `json:"options"`
}
func (*ModelV2InfoVariantsItem) Decode ¶
func (s *ModelV2InfoVariantsItem) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoVariantsItem from json.
func (*ModelV2InfoVariantsItem) Encode ¶
func (s *ModelV2InfoVariantsItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoVariantsItem) GetBody ¶
func (s *ModelV2InfoVariantsItem) GetBody() ModelV2InfoVariantsItemBody
GetBody returns the value of Body.
func (*ModelV2InfoVariantsItem) GetGeneration ¶
func (s *ModelV2InfoVariantsItem) GetGeneration() OptModelV2InfoVariantsItemGeneration
GetGeneration returns the value of Generation.
func (*ModelV2InfoVariantsItem) GetHeaders ¶
func (s *ModelV2InfoVariantsItem) GetHeaders() ModelV2InfoVariantsItemHeaders
GetHeaders returns the value of Headers.
func (*ModelV2InfoVariantsItem) GetID ¶
func (s *ModelV2InfoVariantsItem) GetID() string
GetID returns the value of ID.
func (*ModelV2InfoVariantsItem) GetOptions ¶
func (s *ModelV2InfoVariantsItem) GetOptions() *ModelV2InfoVariantsItemOptions
GetOptions returns the value of Options.
func (*ModelV2InfoVariantsItem) MarshalJSON ¶
func (s *ModelV2InfoVariantsItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoVariantsItem) SetBody ¶
func (s *ModelV2InfoVariantsItem) SetBody(val ModelV2InfoVariantsItemBody)
SetBody sets the value of Body.
func (*ModelV2InfoVariantsItem) SetGeneration ¶
func (s *ModelV2InfoVariantsItem) SetGeneration(val OptModelV2InfoVariantsItemGeneration)
SetGeneration sets the value of Generation.
func (*ModelV2InfoVariantsItem) SetHeaders ¶
func (s *ModelV2InfoVariantsItem) SetHeaders(val ModelV2InfoVariantsItemHeaders)
SetHeaders sets the value of Headers.
func (*ModelV2InfoVariantsItem) SetID ¶
func (s *ModelV2InfoVariantsItem) SetID(val string)
SetID sets the value of ID.
func (*ModelV2InfoVariantsItem) SetOptions ¶
func (s *ModelV2InfoVariantsItem) SetOptions(val *ModelV2InfoVariantsItemOptions)
SetOptions sets the value of Options.
func (*ModelV2InfoVariantsItem) UnmarshalJSON ¶
func (s *ModelV2InfoVariantsItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoVariantsItemBody ¶
type ModelV2InfoVariantsItemBody struct{}
func (*ModelV2InfoVariantsItemBody) Decode ¶
func (s *ModelV2InfoVariantsItemBody) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoVariantsItemBody from json.
func (*ModelV2InfoVariantsItemBody) Encode ¶
func (s *ModelV2InfoVariantsItemBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoVariantsItemBody) MarshalJSON ¶
func (s *ModelV2InfoVariantsItemBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoVariantsItemBody) UnmarshalJSON ¶
func (s *ModelV2InfoVariantsItemBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoVariantsItemGeneration ¶
type ModelV2InfoVariantsItemGeneration struct {
FrequencyPenalty jx.Raw `json:"frequencyPenalty"`
MaxTokens jx.Raw `json:"maxTokens"`
PresencePenalty jx.Raw `json:"presencePenalty"`
Seed jx.Raw `json:"seed"`
Stop []string `json:"stop"`
Temperature jx.Raw `json:"temperature"`
TopK jx.Raw `json:"topK"`
TopP jx.Raw `json:"topP"`
}
func (*ModelV2InfoVariantsItemGeneration) Decode ¶
func (s *ModelV2InfoVariantsItemGeneration) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoVariantsItemGeneration from json.
func (*ModelV2InfoVariantsItemGeneration) Encode ¶
func (s *ModelV2InfoVariantsItemGeneration) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoVariantsItemGeneration) GetFrequencyPenalty ¶
func (s *ModelV2InfoVariantsItemGeneration) GetFrequencyPenalty() jx.Raw
GetFrequencyPenalty returns the value of FrequencyPenalty.
func (*ModelV2InfoVariantsItemGeneration) GetMaxTokens ¶
func (s *ModelV2InfoVariantsItemGeneration) GetMaxTokens() jx.Raw
GetMaxTokens returns the value of MaxTokens.
func (*ModelV2InfoVariantsItemGeneration) GetPresencePenalty ¶
func (s *ModelV2InfoVariantsItemGeneration) GetPresencePenalty() jx.Raw
GetPresencePenalty returns the value of PresencePenalty.
func (*ModelV2InfoVariantsItemGeneration) GetSeed ¶
func (s *ModelV2InfoVariantsItemGeneration) GetSeed() jx.Raw
GetSeed returns the value of Seed.
func (*ModelV2InfoVariantsItemGeneration) GetStop ¶
func (s *ModelV2InfoVariantsItemGeneration) GetStop() []string
GetStop returns the value of Stop.
func (*ModelV2InfoVariantsItemGeneration) GetTemperature ¶
func (s *ModelV2InfoVariantsItemGeneration) GetTemperature() jx.Raw
GetTemperature returns the value of Temperature.
func (*ModelV2InfoVariantsItemGeneration) GetTopK ¶
func (s *ModelV2InfoVariantsItemGeneration) GetTopK() jx.Raw
GetTopK returns the value of TopK.
func (*ModelV2InfoVariantsItemGeneration) GetTopP ¶
func (s *ModelV2InfoVariantsItemGeneration) GetTopP() jx.Raw
GetTopP returns the value of TopP.
func (*ModelV2InfoVariantsItemGeneration) MarshalJSON ¶
func (s *ModelV2InfoVariantsItemGeneration) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoVariantsItemGeneration) SetFrequencyPenalty ¶
func (s *ModelV2InfoVariantsItemGeneration) SetFrequencyPenalty(val jx.Raw)
SetFrequencyPenalty sets the value of FrequencyPenalty.
func (*ModelV2InfoVariantsItemGeneration) SetMaxTokens ¶
func (s *ModelV2InfoVariantsItemGeneration) SetMaxTokens(val jx.Raw)
SetMaxTokens sets the value of MaxTokens.
func (*ModelV2InfoVariantsItemGeneration) SetPresencePenalty ¶
func (s *ModelV2InfoVariantsItemGeneration) SetPresencePenalty(val jx.Raw)
SetPresencePenalty sets the value of PresencePenalty.
func (*ModelV2InfoVariantsItemGeneration) SetSeed ¶
func (s *ModelV2InfoVariantsItemGeneration) SetSeed(val jx.Raw)
SetSeed sets the value of Seed.
func (*ModelV2InfoVariantsItemGeneration) SetStop ¶
func (s *ModelV2InfoVariantsItemGeneration) SetStop(val []string)
SetStop sets the value of Stop.
func (*ModelV2InfoVariantsItemGeneration) SetTemperature ¶
func (s *ModelV2InfoVariantsItemGeneration) SetTemperature(val jx.Raw)
SetTemperature sets the value of Temperature.
func (*ModelV2InfoVariantsItemGeneration) SetTopK ¶
func (s *ModelV2InfoVariantsItemGeneration) SetTopK(val jx.Raw)
SetTopK sets the value of TopK.
func (*ModelV2InfoVariantsItemGeneration) SetTopP ¶
func (s *ModelV2InfoVariantsItemGeneration) SetTopP(val jx.Raw)
SetTopP sets the value of TopP.
func (*ModelV2InfoVariantsItemGeneration) UnmarshalJSON ¶
func (s *ModelV2InfoVariantsItemGeneration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoVariantsItemHeaders ¶
func (*ModelV2InfoVariantsItemHeaders) Decode ¶
func (s *ModelV2InfoVariantsItemHeaders) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoVariantsItemHeaders from json.
func (ModelV2InfoVariantsItemHeaders) Encode ¶
func (s ModelV2InfoVariantsItemHeaders) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ModelV2InfoVariantsItemHeaders) MarshalJSON ¶
func (s ModelV2InfoVariantsItemHeaders) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoVariantsItemHeaders) UnmarshalJSON ¶
func (s *ModelV2InfoVariantsItemHeaders) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModelV2InfoVariantsItemOptions ¶
type ModelV2InfoVariantsItemOptions struct{}
func (*ModelV2InfoVariantsItemOptions) Decode ¶
func (s *ModelV2InfoVariantsItemOptions) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoVariantsItemOptions from json.
func (*ModelV2InfoVariantsItemOptions) Encode ¶
func (s *ModelV2InfoVariantsItemOptions) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModelV2InfoVariantsItemOptions) MarshalJSON ¶
func (s *ModelV2InfoVariantsItemOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModelV2InfoVariantsItemOptions) UnmarshalJSON ¶
func (s *ModelV2InfoVariantsItemOptions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type NilFloat64 ¶
NilFloat64 is nullable float64.
func NewNilFloat64 ¶
func NewNilFloat64(v float64) NilFloat64
NewNilFloat64 returns new NilFloat64 with value set to v.
func (*NilFloat64) Decode ¶
func (o *NilFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (NilFloat64) Encode ¶
func (o NilFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (NilFloat64) Get ¶
func (o NilFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilFloat64) MarshalJSON ¶
func (s NilFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (NilFloat64) Or ¶
func (o NilFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*NilFloat64) UnmarshalJSON ¶
func (s *NilFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( SessionCreateOperation OperationName = "SessionCreate" SessionMessageOperation OperationName = "SessionMessage" SessionMessagesOperation OperationName = "SessionMessages" V2AgentListOperation OperationName = "V2AgentList" V2HealthGetOperation OperationName = "V2HealthGet" V2ModelListOperation OperationName = "V2ModelList" V2PermissionRequestListOperation OperationName = "V2PermissionRequestList" V2ProviderListOperation OperationName = "V2ProviderList" V2QuestionRequestListOperation OperationName = "V2QuestionRequestList" V2SessionContextOperation OperationName = "V2SessionContext" V2SessionListOperation OperationName = "V2SessionList" V2SessionMessagesOperation OperationName = "V2SessionMessages" V2SessionPermissionListOperation OperationName = "V2SessionPermissionList" V2SessionPermissionReplyOperation OperationName = "V2SessionPermissionReply" V2SessionPromptOperation OperationName = "V2SessionPrompt" V2SessionQuestionRejectOperation OperationName = "V2SessionQuestionReject" V2SessionQuestionReplyOperation OperationName = "V2SessionQuestionReply" V2SessionWaitOperation OperationName = "V2SessionWait" )
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat64 ¶
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) UnmarshalJSON ¶
func (s *OptFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptModelV2InfoCostItemTier ¶
type OptModelV2InfoCostItemTier struct {
Value ModelV2InfoCostItemTier
Set bool
}
OptModelV2InfoCostItemTier is optional ModelV2InfoCostItemTier.
func NewOptModelV2InfoCostItemTier ¶
func NewOptModelV2InfoCostItemTier(v ModelV2InfoCostItemTier) OptModelV2InfoCostItemTier
NewOptModelV2InfoCostItemTier returns new OptModelV2InfoCostItemTier with value set to v.
func (*OptModelV2InfoCostItemTier) Decode ¶
func (o *OptModelV2InfoCostItemTier) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoCostItemTier from json.
func (OptModelV2InfoCostItemTier) Encode ¶
func (o OptModelV2InfoCostItemTier) Encode(e *jx.Encoder)
Encode encodes ModelV2InfoCostItemTier as json.
func (OptModelV2InfoCostItemTier) Get ¶
func (o OptModelV2InfoCostItemTier) Get() (v ModelV2InfoCostItemTier, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptModelV2InfoCostItemTier) IsSet ¶
func (o OptModelV2InfoCostItemTier) IsSet() bool
IsSet returns true if OptModelV2InfoCostItemTier was set.
func (OptModelV2InfoCostItemTier) MarshalJSON ¶
func (s OptModelV2InfoCostItemTier) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptModelV2InfoCostItemTier) Reset ¶
func (o *OptModelV2InfoCostItemTier) Reset()
Reset unsets value.
func (*OptModelV2InfoCostItemTier) SetTo ¶
func (o *OptModelV2InfoCostItemTier) SetTo(v ModelV2InfoCostItemTier)
SetTo sets value to v.
func (*OptModelV2InfoCostItemTier) UnmarshalJSON ¶
func (s *OptModelV2InfoCostItemTier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptModelV2InfoRequestGeneration ¶
type OptModelV2InfoRequestGeneration struct {
Value ModelV2InfoRequestGeneration
Set bool
}
OptModelV2InfoRequestGeneration is optional ModelV2InfoRequestGeneration.
func NewOptModelV2InfoRequestGeneration ¶
func NewOptModelV2InfoRequestGeneration(v ModelV2InfoRequestGeneration) OptModelV2InfoRequestGeneration
NewOptModelV2InfoRequestGeneration returns new OptModelV2InfoRequestGeneration with value set to v.
func (*OptModelV2InfoRequestGeneration) Decode ¶
func (o *OptModelV2InfoRequestGeneration) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoRequestGeneration from json.
func (OptModelV2InfoRequestGeneration) Encode ¶
func (o OptModelV2InfoRequestGeneration) Encode(e *jx.Encoder)
Encode encodes ModelV2InfoRequestGeneration as json.
func (OptModelV2InfoRequestGeneration) Get ¶
func (o OptModelV2InfoRequestGeneration) Get() (v ModelV2InfoRequestGeneration, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptModelV2InfoRequestGeneration) IsSet ¶
func (o OptModelV2InfoRequestGeneration) IsSet() bool
IsSet returns true if OptModelV2InfoRequestGeneration was set.
func (OptModelV2InfoRequestGeneration) MarshalJSON ¶
func (s OptModelV2InfoRequestGeneration) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptModelV2InfoRequestGeneration) Or ¶
func (o OptModelV2InfoRequestGeneration) Or(d ModelV2InfoRequestGeneration) ModelV2InfoRequestGeneration
Or returns value if set, or given parameter if does not.
func (*OptModelV2InfoRequestGeneration) Reset ¶
func (o *OptModelV2InfoRequestGeneration) Reset()
Reset unsets value.
func (*OptModelV2InfoRequestGeneration) SetTo ¶
func (o *OptModelV2InfoRequestGeneration) SetTo(v ModelV2InfoRequestGeneration)
SetTo sets value to v.
func (*OptModelV2InfoRequestGeneration) UnmarshalJSON ¶
func (s *OptModelV2InfoRequestGeneration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptModelV2InfoVariantsItemGeneration ¶
type OptModelV2InfoVariantsItemGeneration struct {
Value ModelV2InfoVariantsItemGeneration
Set bool
}
OptModelV2InfoVariantsItemGeneration is optional ModelV2InfoVariantsItemGeneration.
func NewOptModelV2InfoVariantsItemGeneration ¶
func NewOptModelV2InfoVariantsItemGeneration(v ModelV2InfoVariantsItemGeneration) OptModelV2InfoVariantsItemGeneration
NewOptModelV2InfoVariantsItemGeneration returns new OptModelV2InfoVariantsItemGeneration with value set to v.
func (*OptModelV2InfoVariantsItemGeneration) Decode ¶
func (o *OptModelV2InfoVariantsItemGeneration) Decode(d *jx.Decoder) error
Decode decodes ModelV2InfoVariantsItemGeneration from json.
func (OptModelV2InfoVariantsItemGeneration) Encode ¶
func (o OptModelV2InfoVariantsItemGeneration) Encode(e *jx.Encoder)
Encode encodes ModelV2InfoVariantsItemGeneration as json.
func (OptModelV2InfoVariantsItemGeneration) Get ¶
func (o OptModelV2InfoVariantsItemGeneration) Get() (v ModelV2InfoVariantsItemGeneration, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptModelV2InfoVariantsItemGeneration) IsSet ¶
func (o OptModelV2InfoVariantsItemGeneration) IsSet() bool
IsSet returns true if OptModelV2InfoVariantsItemGeneration was set.
func (OptModelV2InfoVariantsItemGeneration) MarshalJSON ¶
func (s OptModelV2InfoVariantsItemGeneration) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptModelV2InfoVariantsItemGeneration) Or ¶
func (o OptModelV2InfoVariantsItemGeneration) Or(d ModelV2InfoVariantsItemGeneration) ModelV2InfoVariantsItemGeneration
Or returns value if set, or given parameter if does not.
func (*OptModelV2InfoVariantsItemGeneration) Reset ¶
func (o *OptModelV2InfoVariantsItemGeneration) Reset()
Reset unsets value.
func (*OptModelV2InfoVariantsItemGeneration) SetTo ¶
func (o *OptModelV2InfoVariantsItemGeneration) SetTo(v ModelV2InfoVariantsItemGeneration)
SetTo sets value to v.
func (*OptModelV2InfoVariantsItemGeneration) UnmarshalJSON ¶
func (s *OptModelV2InfoVariantsItemGeneration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilAgentV2InfoModel ¶
type OptNilAgentV2InfoModel struct {
Value AgentV2InfoModel
Set bool
Null bool
}
OptNilAgentV2InfoModel is optional nullable AgentV2InfoModel.
func NewOptNilAgentV2InfoModel ¶
func NewOptNilAgentV2InfoModel(v AgentV2InfoModel) OptNilAgentV2InfoModel
NewOptNilAgentV2InfoModel returns new OptNilAgentV2InfoModel with value set to v.
func (*OptNilAgentV2InfoModel) Decode ¶
func (o *OptNilAgentV2InfoModel) Decode(d *jx.Decoder) error
Decode decodes AgentV2InfoModel from json.
func (OptNilAgentV2InfoModel) Encode ¶
func (o OptNilAgentV2InfoModel) Encode(e *jx.Encoder)
Encode encodes AgentV2InfoModel as json.
func (OptNilAgentV2InfoModel) Get ¶
func (o OptNilAgentV2InfoModel) Get() (v AgentV2InfoModel, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilAgentV2InfoModel) IsEmpty ¶
func (o OptNilAgentV2InfoModel) IsEmpty() bool
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
func (OptNilAgentV2InfoModel) IsNull ¶
func (o OptNilAgentV2InfoModel) IsNull() bool
IsNull returns true if value is Null.
func (OptNilAgentV2InfoModel) IsSet ¶
func (o OptNilAgentV2InfoModel) IsSet() bool
IsSet returns true if OptNilAgentV2InfoModel was set.
func (OptNilAgentV2InfoModel) MarshalJSON ¶
func (s OptNilAgentV2InfoModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilAgentV2InfoModel) Or ¶
func (o OptNilAgentV2InfoModel) Or(d AgentV2InfoModel) AgentV2InfoModel
Or returns value if set, or given parameter if does not.
func (*OptNilAgentV2InfoModel) SetTo ¶
func (o *OptNilAgentV2InfoModel) SetTo(v AgentV2InfoModel)
SetTo sets value to v.
func (*OptNilAgentV2InfoModel) SetToNull ¶
func (o *OptNilAgentV2InfoModel) SetToNull()
SetToNull sets value to null.
func (*OptNilAgentV2InfoModel) UnmarshalJSON ¶
func (s *OptNilAgentV2InfoModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilFloat64 ¶
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) IsEmpty ¶
func (o OptNilFloat64) IsEmpty() bool
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
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) UnmarshalJSON ¶
func (s *OptNilFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilInt ¶
OptNilInt is optional nullable int.
func NewOptNilInt ¶
NewOptNilInt returns new OptNilInt with value set to v.
func (OptNilInt) IsEmpty ¶
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
func (OptNilInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptNilInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilSessionCreateReqModel ¶
type OptNilSessionCreateReqModel struct {
Value SessionCreateReqModel
Set bool
Null bool
}
OptNilSessionCreateReqModel is optional nullable SessionCreateReqModel.
func NewOptNilSessionCreateReqModel ¶
func NewOptNilSessionCreateReqModel(v SessionCreateReqModel) OptNilSessionCreateReqModel
NewOptNilSessionCreateReqModel returns new OptNilSessionCreateReqModel with value set to v.
func (*OptNilSessionCreateReqModel) Decode ¶
func (o *OptNilSessionCreateReqModel) Decode(d *jx.Decoder) error
Decode decodes SessionCreateReqModel from json.
func (OptNilSessionCreateReqModel) Encode ¶
func (o OptNilSessionCreateReqModel) Encode(e *jx.Encoder)
Encode encodes SessionCreateReqModel as json.
func (OptNilSessionCreateReqModel) Get ¶
func (o OptNilSessionCreateReqModel) Get() (v SessionCreateReqModel, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilSessionCreateReqModel) IsEmpty ¶
func (o OptNilSessionCreateReqModel) IsEmpty() bool
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
func (OptNilSessionCreateReqModel) IsNull ¶
func (o OptNilSessionCreateReqModel) IsNull() bool
IsNull returns true if value is Null.
func (OptNilSessionCreateReqModel) IsSet ¶
func (o OptNilSessionCreateReqModel) IsSet() bool
IsSet returns true if OptNilSessionCreateReqModel was set.
func (OptNilSessionCreateReqModel) MarshalJSON ¶
func (s OptNilSessionCreateReqModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptNilSessionCreateReqModel) Reset ¶
func (o *OptNilSessionCreateReqModel) Reset()
Reset unsets value.
func (*OptNilSessionCreateReqModel) SetTo ¶
func (o *OptNilSessionCreateReqModel) SetTo(v SessionCreateReqModel)
SetTo sets value to v.
func (*OptNilSessionCreateReqModel) SetToNull ¶
func (o *OptNilSessionCreateReqModel) SetToNull()
SetToNull sets value to null.
func (*OptNilSessionCreateReqModel) UnmarshalJSON ¶
func (s *OptNilSessionCreateReqModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilSessionModel ¶
type OptNilSessionModel struct {
Value SessionModel
Set bool
Null bool
}
OptNilSessionModel is optional nullable SessionModel.
func NewOptNilSessionModel ¶
func NewOptNilSessionModel(v SessionModel) OptNilSessionModel
NewOptNilSessionModel returns new OptNilSessionModel with value set to v.
func (*OptNilSessionModel) Decode ¶
func (o *OptNilSessionModel) Decode(d *jx.Decoder) error
Decode decodes SessionModel from json.
func (OptNilSessionModel) Encode ¶
func (o OptNilSessionModel) Encode(e *jx.Encoder)
Encode encodes SessionModel as json.
func (OptNilSessionModel) Get ¶
func (o OptNilSessionModel) Get() (v SessionModel, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilSessionModel) IsEmpty ¶
func (o OptNilSessionModel) IsEmpty() bool
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
func (OptNilSessionModel) IsNull ¶
func (o OptNilSessionModel) IsNull() bool
IsNull returns true if value is Null.
func (OptNilSessionModel) IsSet ¶
func (o OptNilSessionModel) IsSet() bool
IsSet returns true if OptNilSessionModel was set.
func (OptNilSessionModel) MarshalJSON ¶
func (s OptNilSessionModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilSessionModel) Or ¶
func (o OptNilSessionModel) Or(d SessionModel) SessionModel
Or returns value if set, or given parameter if does not.
func (*OptNilSessionModel) SetTo ¶
func (o *OptNilSessionModel) SetTo(v SessionModel)
SetTo sets value to v.
func (*OptNilSessionModel) SetToNull ¶
func (o *OptNilSessionModel) SetToNull()
SetToNull sets value to null.
func (*OptNilSessionModel) UnmarshalJSON ¶
func (s *OptNilSessionModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilSessionV2InfoModel ¶
type OptNilSessionV2InfoModel struct {
Value SessionV2InfoModel
Set bool
Null bool
}
OptNilSessionV2InfoModel is optional nullable SessionV2InfoModel.
func NewOptNilSessionV2InfoModel ¶
func NewOptNilSessionV2InfoModel(v SessionV2InfoModel) OptNilSessionV2InfoModel
NewOptNilSessionV2InfoModel returns new OptNilSessionV2InfoModel with value set to v.
func (*OptNilSessionV2InfoModel) Decode ¶
func (o *OptNilSessionV2InfoModel) Decode(d *jx.Decoder) error
Decode decodes SessionV2InfoModel from json.
func (OptNilSessionV2InfoModel) Encode ¶
func (o OptNilSessionV2InfoModel) Encode(e *jx.Encoder)
Encode encodes SessionV2InfoModel as json.
func (OptNilSessionV2InfoModel) Get ¶
func (o OptNilSessionV2InfoModel) Get() (v SessionV2InfoModel, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilSessionV2InfoModel) IsEmpty ¶
func (o OptNilSessionV2InfoModel) IsEmpty() bool
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
func (OptNilSessionV2InfoModel) IsNull ¶
func (o OptNilSessionV2InfoModel) IsNull() bool
IsNull returns true if value is Null.
func (OptNilSessionV2InfoModel) IsSet ¶
func (o OptNilSessionV2InfoModel) IsSet() bool
IsSet returns true if OptNilSessionV2InfoModel was set.
func (OptNilSessionV2InfoModel) MarshalJSON ¶
func (s OptNilSessionV2InfoModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilSessionV2InfoModel) Or ¶
func (o OptNilSessionV2InfoModel) Or(d SessionV2InfoModel) SessionV2InfoModel
Or returns value if set, or given parameter if does not.
func (*OptNilSessionV2InfoModel) Reset ¶
func (o *OptNilSessionV2InfoModel) Reset()
Reset unsets value.
func (*OptNilSessionV2InfoModel) SetTo ¶
func (o *OptNilSessionV2InfoModel) SetTo(v SessionV2InfoModel)
SetTo sets value to v.
func (*OptNilSessionV2InfoModel) SetToNull ¶
func (o *OptNilSessionV2InfoModel) SetToNull()
SetToNull sets value to null.
func (*OptNilSessionV2InfoModel) UnmarshalJSON ¶
func (s *OptNilSessionV2InfoModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilString ¶
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) IsEmpty ¶
func (o OptNilString) IsEmpty() bool
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
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) UnmarshalJSON ¶
func (s *OptNilString) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPermissionV2Source ¶
type OptPermissionV2Source struct {
Value PermissionV2Source
Set bool
}
OptPermissionV2Source is optional PermissionV2Source.
func NewOptPermissionV2Source ¶
func NewOptPermissionV2Source(v PermissionV2Source) OptPermissionV2Source
NewOptPermissionV2Source returns new OptPermissionV2Source with value set to v.
func (*OptPermissionV2Source) Decode ¶
func (o *OptPermissionV2Source) Decode(d *jx.Decoder) error
Decode decodes PermissionV2Source from json.
func (OptPermissionV2Source) Encode ¶
func (o OptPermissionV2Source) Encode(e *jx.Encoder)
Encode encodes PermissionV2Source as json.
func (OptPermissionV2Source) Get ¶
func (o OptPermissionV2Source) Get() (v PermissionV2Source, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPermissionV2Source) IsSet ¶
func (o OptPermissionV2Source) IsSet() bool
IsSet returns true if OptPermissionV2Source was set.
func (OptPermissionV2Source) MarshalJSON ¶
func (s OptPermissionV2Source) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPermissionV2Source) Or ¶
func (o OptPermissionV2Source) Or(d PermissionV2Source) PermissionV2Source
Or returns value if set, or given parameter if does not.
func (*OptPermissionV2Source) SetTo ¶
func (o *OptPermissionV2Source) SetTo(v PermissionV2Source)
SetTo sets value to v.
func (*OptPermissionV2Source) UnmarshalJSON ¶
func (s *OptPermissionV2Source) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPromptSource ¶
type OptPromptSource struct {
Value PromptSource
Set bool
}
OptPromptSource is optional PromptSource.
func NewOptPromptSource ¶
func NewOptPromptSource(v PromptSource) OptPromptSource
NewOptPromptSource returns new OptPromptSource with value set to v.
func (*OptPromptSource) Decode ¶
func (o *OptPromptSource) Decode(d *jx.Decoder) error
Decode decodes PromptSource from json.
func (OptPromptSource) Encode ¶
func (o OptPromptSource) Encode(e *jx.Encoder)
Encode encodes PromptSource as json.
func (OptPromptSource) Get ¶
func (o OptPromptSource) Get() (v PromptSource, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPromptSource) IsSet ¶
func (o OptPromptSource) IsSet() bool
IsSet returns true if OptPromptSource was set.
func (OptPromptSource) MarshalJSON ¶
func (s OptPromptSource) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPromptSource) Or ¶
func (o OptPromptSource) Or(d PromptSource) PromptSource
Or returns value if set, or given parameter if does not.
func (*OptPromptSource) SetTo ¶
func (o *OptPromptSource) SetTo(v PromptSource)
SetTo sets value to v.
func (*OptPromptSource) UnmarshalJSON ¶
func (s *OptPromptSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptQuestionV2Tool ¶
type OptQuestionV2Tool struct {
Value QuestionV2Tool
Set bool
}
OptQuestionV2Tool is optional QuestionV2Tool.
func NewOptQuestionV2Tool ¶
func NewOptQuestionV2Tool(v QuestionV2Tool) OptQuestionV2Tool
NewOptQuestionV2Tool returns new OptQuestionV2Tool with value set to v.
func (*OptQuestionV2Tool) Decode ¶
func (o *OptQuestionV2Tool) Decode(d *jx.Decoder) error
Decode decodes QuestionV2Tool from json.
func (OptQuestionV2Tool) Encode ¶
func (o OptQuestionV2Tool) Encode(e *jx.Encoder)
Encode encodes QuestionV2Tool as json.
func (OptQuestionV2Tool) Get ¶
func (o OptQuestionV2Tool) Get() (v QuestionV2Tool, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptQuestionV2Tool) IsSet ¶
func (o OptQuestionV2Tool) IsSet() bool
IsSet returns true if OptQuestionV2Tool was set.
func (OptQuestionV2Tool) MarshalJSON ¶
func (s OptQuestionV2Tool) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptQuestionV2Tool) Or ¶
func (o OptQuestionV2Tool) Or(d QuestionV2Tool) QuestionV2Tool
Or returns value if set, or given parameter if does not.
func (*OptQuestionV2Tool) SetTo ¶
func (o *OptQuestionV2Tool) SetTo(v QuestionV2Tool)
SetTo sets value to v.
func (*OptQuestionV2Tool) UnmarshalJSON ¶
func (s *OptQuestionV2Tool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSessionCreateReq ¶
type OptSessionCreateReq struct {
Value SessionCreateReq
Set bool
}
OptSessionCreateReq is optional SessionCreateReq.
func NewOptSessionCreateReq ¶
func NewOptSessionCreateReq(v SessionCreateReq) OptSessionCreateReq
NewOptSessionCreateReq returns new OptSessionCreateReq with value set to v.
func (*OptSessionCreateReq) Decode ¶
func (o *OptSessionCreateReq) Decode(d *jx.Decoder) error
Decode decodes SessionCreateReq from json.
func (OptSessionCreateReq) Encode ¶
func (o OptSessionCreateReq) Encode(e *jx.Encoder)
Encode encodes SessionCreateReq as json.
func (OptSessionCreateReq) Get ¶
func (o OptSessionCreateReq) Get() (v SessionCreateReq, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSessionCreateReq) IsSet ¶
func (o OptSessionCreateReq) IsSet() bool
IsSet returns true if OptSessionCreateReq was set.
func (OptSessionCreateReq) MarshalJSON ¶
func (s OptSessionCreateReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSessionCreateReq) Or ¶
func (o OptSessionCreateReq) Or(d SessionCreateReq) SessionCreateReq
Or returns value if set, or given parameter if does not.
func (*OptSessionCreateReq) SetTo ¶
func (o *OptSessionCreateReq) SetTo(v SessionCreateReq)
SetTo sets value to v.
func (*OptSessionCreateReq) UnmarshalJSON ¶
func (s *OptSessionCreateReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSessionRevert ¶
type OptSessionRevert struct {
Value SessionRevert
Set bool
}
OptSessionRevert is optional SessionRevert.
func NewOptSessionRevert ¶
func NewOptSessionRevert(v SessionRevert) OptSessionRevert
NewOptSessionRevert returns new OptSessionRevert with value set to v.
func (*OptSessionRevert) Decode ¶
func (o *OptSessionRevert) Decode(d *jx.Decoder) error
Decode decodes SessionRevert from json.
func (OptSessionRevert) Encode ¶
func (o OptSessionRevert) Encode(e *jx.Encoder)
Encode encodes SessionRevert as json.
func (OptSessionRevert) Get ¶
func (o OptSessionRevert) Get() (v SessionRevert, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSessionRevert) IsSet ¶
func (o OptSessionRevert) IsSet() bool
IsSet returns true if OptSessionRevert was set.
func (OptSessionRevert) MarshalJSON ¶
func (s OptSessionRevert) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSessionRevert) Or ¶
func (o OptSessionRevert) Or(d SessionRevert) SessionRevert
Or returns value if set, or given parameter if does not.
func (*OptSessionRevert) SetTo ¶
func (o *OptSessionRevert) SetTo(v SessionRevert)
SetTo sets value to v.
func (*OptSessionRevert) UnmarshalJSON ¶
func (s *OptSessionRevert) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSessionShare ¶
type OptSessionShare struct {
}
OptSessionShare is optional SessionShare.
func NewOptSessionShare ¶
func NewOptSessionShare(v SessionShare) OptSessionShare
NewOptSessionShare returns new OptSessionShare with value set to v.
func (*OptSessionShare) Decode ¶
func (o *OptSessionShare) Decode(d *jx.Decoder) error
Decode decodes SessionShare from json.
func (OptSessionShare) Encode ¶
func (o OptSessionShare) Encode(e *jx.Encoder)
Encode encodes SessionShare as json.
func (OptSessionShare) Get ¶
func (o OptSessionShare) Get() (v SessionShare, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSessionShare) IsSet ¶
func (o OptSessionShare) IsSet() bool
IsSet returns true if OptSessionShare was set.
func (OptSessionShare) MarshalJSON ¶
func (s OptSessionShare) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSessionShare) Or ¶
func (o OptSessionShare) Or(d SessionShare) SessionShare
Or returns value if set, or given parameter if does not.
func (*OptSessionShare) SetTo ¶
func (o *OptSessionShare) SetTo(v SessionShare)
SetTo sets value to v.
func (*OptSessionShare) UnmarshalJSON ¶
func (s *OptSessionShare) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSessionSummary ¶
type OptSessionSummary struct {
Value SessionSummary
Set bool
}
OptSessionSummary is optional SessionSummary.
func NewOptSessionSummary ¶
func NewOptSessionSummary(v SessionSummary) OptSessionSummary
NewOptSessionSummary returns new OptSessionSummary with value set to v.
func (*OptSessionSummary) Decode ¶
func (o *OptSessionSummary) Decode(d *jx.Decoder) error
Decode decodes SessionSummary from json.
func (OptSessionSummary) Encode ¶
func (o OptSessionSummary) Encode(e *jx.Encoder)
Encode encodes SessionSummary as json.
func (OptSessionSummary) Get ¶
func (o OptSessionSummary) Get() (v SessionSummary, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSessionSummary) IsSet ¶
func (o OptSessionSummary) IsSet() bool
IsSet returns true if OptSessionSummary was set.
func (OptSessionSummary) MarshalJSON ¶
func (s OptSessionSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSessionSummary) Or ¶
func (o OptSessionSummary) Or(d SessionSummary) SessionSummary
Or returns value if set, or given parameter if does not.
func (*OptSessionSummary) SetTo ¶
func (o *OptSessionSummary) SetTo(v SessionSummary)
SetTo sets value to v.
func (*OptSessionSummary) UnmarshalJSON ¶
func (s *OptSessionSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSessionTokens ¶
type OptSessionTokens struct {
Value SessionTokens
Set bool
}
OptSessionTokens is optional SessionTokens.
func NewOptSessionTokens ¶
func NewOptSessionTokens(v SessionTokens) OptSessionTokens
NewOptSessionTokens returns new OptSessionTokens with value set to v.
func (*OptSessionTokens) Decode ¶
func (o *OptSessionTokens) Decode(d *jx.Decoder) error
Decode decodes SessionTokens from json.
func (OptSessionTokens) Encode ¶
func (o OptSessionTokens) Encode(e *jx.Encoder)
Encode encodes SessionTokens as json.
func (OptSessionTokens) Get ¶
func (o OptSessionTokens) Get() (v SessionTokens, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSessionTokens) IsSet ¶
func (o OptSessionTokens) IsSet() bool
IsSet returns true if OptSessionTokens was set.
func (OptSessionTokens) MarshalJSON ¶
func (s OptSessionTokens) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSessionTokens) Or ¶
func (o OptSessionTokens) Or(d SessionTokens) SessionTokens
Or returns value if set, or given parameter if does not.
func (*OptSessionTokens) SetTo ¶
func (o *OptSessionTokens) SetTo(v SessionTokens)
SetTo sets value to v.
func (*OptSessionTokens) UnmarshalJSON ¶
func (s *OptSessionTokens) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSnapshotFileDiffStatus ¶
type OptSnapshotFileDiffStatus struct {
Value SnapshotFileDiffStatus
Set bool
}
OptSnapshotFileDiffStatus is optional SnapshotFileDiffStatus.
func NewOptSnapshotFileDiffStatus ¶
func NewOptSnapshotFileDiffStatus(v SnapshotFileDiffStatus) OptSnapshotFileDiffStatus
NewOptSnapshotFileDiffStatus returns new OptSnapshotFileDiffStatus with value set to v.
func (*OptSnapshotFileDiffStatus) Decode ¶
func (o *OptSnapshotFileDiffStatus) Decode(d *jx.Decoder) error
Decode decodes SnapshotFileDiffStatus from json.
func (OptSnapshotFileDiffStatus) Encode ¶
func (o OptSnapshotFileDiffStatus) Encode(e *jx.Encoder)
Encode encodes SnapshotFileDiffStatus as json.
func (OptSnapshotFileDiffStatus) Get ¶
func (o OptSnapshotFileDiffStatus) Get() (v SnapshotFileDiffStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSnapshotFileDiffStatus) IsSet ¶
func (o OptSnapshotFileDiffStatus) IsSet() bool
IsSet returns true if OptSnapshotFileDiffStatus was set.
func (OptSnapshotFileDiffStatus) MarshalJSON ¶
func (s OptSnapshotFileDiffStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSnapshotFileDiffStatus) Reset ¶
func (o *OptSnapshotFileDiffStatus) Reset()
Reset unsets value.
func (*OptSnapshotFileDiffStatus) SetTo ¶
func (o *OptSnapshotFileDiffStatus) SetTo(v SnapshotFileDiffStatus)
SetTo sets value to v.
func (*OptSnapshotFileDiffStatus) UnmarshalJSON ¶
func (s *OptSnapshotFileDiffStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptV2AgentListLocation ¶
type OptV2AgentListLocation struct {
Value V2AgentListLocation
Set bool
}
OptV2AgentListLocation is optional V2AgentListLocation.
func NewOptV2AgentListLocation ¶
func NewOptV2AgentListLocation(v V2AgentListLocation) OptV2AgentListLocation
NewOptV2AgentListLocation returns new OptV2AgentListLocation with value set to v.
func (OptV2AgentListLocation) Get ¶
func (o OptV2AgentListLocation) Get() (v V2AgentListLocation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2AgentListLocation) IsSet ¶
func (o OptV2AgentListLocation) IsSet() bool
IsSet returns true if OptV2AgentListLocation was set.
func (OptV2AgentListLocation) Or ¶
func (o OptV2AgentListLocation) Or(d V2AgentListLocation) V2AgentListLocation
Or returns value if set, or given parameter if does not.
func (*OptV2AgentListLocation) SetTo ¶
func (o *OptV2AgentListLocation) SetTo(v V2AgentListLocation)
SetTo sets value to v.
type OptV2ModelListLocation ¶
type OptV2ModelListLocation struct {
Value V2ModelListLocation
Set bool
}
OptV2ModelListLocation is optional V2ModelListLocation.
func NewOptV2ModelListLocation ¶
func NewOptV2ModelListLocation(v V2ModelListLocation) OptV2ModelListLocation
NewOptV2ModelListLocation returns new OptV2ModelListLocation with value set to v.
func (OptV2ModelListLocation) Get ¶
func (o OptV2ModelListLocation) Get() (v V2ModelListLocation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2ModelListLocation) IsSet ¶
func (o OptV2ModelListLocation) IsSet() bool
IsSet returns true if OptV2ModelListLocation was set.
func (OptV2ModelListLocation) Or ¶
func (o OptV2ModelListLocation) Or(d V2ModelListLocation) V2ModelListLocation
Or returns value if set, or given parameter if does not.
func (*OptV2ModelListLocation) SetTo ¶
func (o *OptV2ModelListLocation) SetTo(v V2ModelListLocation)
SetTo sets value to v.
type OptV2PermissionRequestListLocation ¶
type OptV2PermissionRequestListLocation struct {
Value V2PermissionRequestListLocation
Set bool
}
OptV2PermissionRequestListLocation is optional V2PermissionRequestListLocation.
func NewOptV2PermissionRequestListLocation ¶
func NewOptV2PermissionRequestListLocation(v V2PermissionRequestListLocation) OptV2PermissionRequestListLocation
NewOptV2PermissionRequestListLocation returns new OptV2PermissionRequestListLocation with value set to v.
func (OptV2PermissionRequestListLocation) Get ¶
func (o OptV2PermissionRequestListLocation) Get() (v V2PermissionRequestListLocation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2PermissionRequestListLocation) IsSet ¶
func (o OptV2PermissionRequestListLocation) IsSet() bool
IsSet returns true if OptV2PermissionRequestListLocation was set.
func (OptV2PermissionRequestListLocation) Or ¶
func (o OptV2PermissionRequestListLocation) Or(d V2PermissionRequestListLocation) V2PermissionRequestListLocation
Or returns value if set, or given parameter if does not.
func (*OptV2PermissionRequestListLocation) Reset ¶
func (o *OptV2PermissionRequestListLocation) Reset()
Reset unsets value.
func (*OptV2PermissionRequestListLocation) SetTo ¶
func (o *OptV2PermissionRequestListLocation) SetTo(v V2PermissionRequestListLocation)
SetTo sets value to v.
type OptV2ProviderListLocation ¶
type OptV2ProviderListLocation struct {
Value V2ProviderListLocation
Set bool
}
OptV2ProviderListLocation is optional V2ProviderListLocation.
func NewOptV2ProviderListLocation ¶
func NewOptV2ProviderListLocation(v V2ProviderListLocation) OptV2ProviderListLocation
NewOptV2ProviderListLocation returns new OptV2ProviderListLocation with value set to v.
func (OptV2ProviderListLocation) Get ¶
func (o OptV2ProviderListLocation) Get() (v V2ProviderListLocation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2ProviderListLocation) IsSet ¶
func (o OptV2ProviderListLocation) IsSet() bool
IsSet returns true if OptV2ProviderListLocation was set.
func (*OptV2ProviderListLocation) Reset ¶
func (o *OptV2ProviderListLocation) Reset()
Reset unsets value.
func (*OptV2ProviderListLocation) SetTo ¶
func (o *OptV2ProviderListLocation) SetTo(v V2ProviderListLocation)
SetTo sets value to v.
type OptV2QuestionRequestListLocation ¶
type OptV2QuestionRequestListLocation struct {
Value V2QuestionRequestListLocation
Set bool
}
OptV2QuestionRequestListLocation is optional V2QuestionRequestListLocation.
func NewOptV2QuestionRequestListLocation ¶
func NewOptV2QuestionRequestListLocation(v V2QuestionRequestListLocation) OptV2QuestionRequestListLocation
NewOptV2QuestionRequestListLocation returns new OptV2QuestionRequestListLocation with value set to v.
func (OptV2QuestionRequestListLocation) Get ¶
func (o OptV2QuestionRequestListLocation) Get() (v V2QuestionRequestListLocation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2QuestionRequestListLocation) IsSet ¶
func (o OptV2QuestionRequestListLocation) IsSet() bool
IsSet returns true if OptV2QuestionRequestListLocation was set.
func (OptV2QuestionRequestListLocation) Or ¶
func (o OptV2QuestionRequestListLocation) Or(d V2QuestionRequestListLocation) V2QuestionRequestListLocation
Or returns value if set, or given parameter if does not.
func (*OptV2QuestionRequestListLocation) Reset ¶
func (o *OptV2QuestionRequestListLocation) Reset()
Reset unsets value.
func (*OptV2QuestionRequestListLocation) SetTo ¶
func (o *OptV2QuestionRequestListLocation) SetTo(v V2QuestionRequestListLocation)
SetTo sets value to v.
type OptV2SessionListOrder ¶
type OptV2SessionListOrder struct {
Value V2SessionListOrder
Set bool
}
OptV2SessionListOrder is optional V2SessionListOrder.
func NewOptV2SessionListOrder ¶
func NewOptV2SessionListOrder(v V2SessionListOrder) OptV2SessionListOrder
NewOptV2SessionListOrder returns new OptV2SessionListOrder with value set to v.
func (OptV2SessionListOrder) Get ¶
func (o OptV2SessionListOrder) Get() (v V2SessionListOrder, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2SessionListOrder) IsSet ¶
func (o OptV2SessionListOrder) IsSet() bool
IsSet returns true if OptV2SessionListOrder was set.
func (OptV2SessionListOrder) Or ¶
func (o OptV2SessionListOrder) Or(d V2SessionListOrder) V2SessionListOrder
Or returns value if set, or given parameter if does not.
func (*OptV2SessionListOrder) SetTo ¶
func (o *OptV2SessionListOrder) SetTo(v V2SessionListOrder)
SetTo sets value to v.
type OptV2SessionMessagesOrder ¶
type OptV2SessionMessagesOrder struct {
Value V2SessionMessagesOrder
Set bool
}
OptV2SessionMessagesOrder is optional V2SessionMessagesOrder.
func NewOptV2SessionMessagesOrder ¶
func NewOptV2SessionMessagesOrder(v V2SessionMessagesOrder) OptV2SessionMessagesOrder
NewOptV2SessionMessagesOrder returns new OptV2SessionMessagesOrder with value set to v.
func (OptV2SessionMessagesOrder) Get ¶
func (o OptV2SessionMessagesOrder) Get() (v V2SessionMessagesOrder, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2SessionMessagesOrder) IsSet ¶
func (o OptV2SessionMessagesOrder) IsSet() bool
IsSet returns true if OptV2SessionMessagesOrder was set.
func (*OptV2SessionMessagesOrder) Reset ¶
func (o *OptV2SessionMessagesOrder) Reset()
Reset unsets value.
func (*OptV2SessionMessagesOrder) SetTo ¶
func (o *OptV2SessionMessagesOrder) SetTo(v V2SessionMessagesOrder)
SetTo sets value to v.
type OptV2SessionPromptReqDelivery ¶
type OptV2SessionPromptReqDelivery struct {
Value V2SessionPromptReqDelivery
Set bool
}
OptV2SessionPromptReqDelivery is optional V2SessionPromptReqDelivery.
func NewOptV2SessionPromptReqDelivery ¶
func NewOptV2SessionPromptReqDelivery(v V2SessionPromptReqDelivery) OptV2SessionPromptReqDelivery
NewOptV2SessionPromptReqDelivery returns new OptV2SessionPromptReqDelivery with value set to v.
func (*OptV2SessionPromptReqDelivery) Decode ¶
func (o *OptV2SessionPromptReqDelivery) Decode(d *jx.Decoder) error
Decode decodes V2SessionPromptReqDelivery from json.
func (OptV2SessionPromptReqDelivery) Encode ¶
func (o OptV2SessionPromptReqDelivery) Encode(e *jx.Encoder)
Encode encodes V2SessionPromptReqDelivery as json.
func (OptV2SessionPromptReqDelivery) Get ¶
func (o OptV2SessionPromptReqDelivery) Get() (v V2SessionPromptReqDelivery, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptV2SessionPromptReqDelivery) IsSet ¶
func (o OptV2SessionPromptReqDelivery) IsSet() bool
IsSet returns true if OptV2SessionPromptReqDelivery was set.
func (OptV2SessionPromptReqDelivery) MarshalJSON ¶
func (s OptV2SessionPromptReqDelivery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptV2SessionPromptReqDelivery) Reset ¶
func (o *OptV2SessionPromptReqDelivery) Reset()
Reset unsets value.
func (*OptV2SessionPromptReqDelivery) SetTo ¶
func (o *OptV2SessionPromptReqDelivery) SetTo(v V2SessionPromptReqDelivery)
SetTo sets value to v.
func (*OptV2SessionPromptReqDelivery) UnmarshalJSON ¶
func (s *OptV2SessionPromptReqDelivery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
ServerOption
ClientOption
}
Option is config option.
func WithAttributes ¶
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 PermissionAction ¶
type PermissionAction string
Ref: #/components/schemas/PermissionAction
const ( PermissionActionAllow PermissionAction = "allow" PermissionActionDeny PermissionAction = "deny" PermissionActionAsk PermissionAction = "ask" )
func (PermissionAction) AllValues ¶
func (PermissionAction) AllValues() []PermissionAction
AllValues returns all PermissionAction values.
func (*PermissionAction) Decode ¶
func (s *PermissionAction) Decode(d *jx.Decoder) error
Decode decodes PermissionAction from json.
func (PermissionAction) Encode ¶
func (s PermissionAction) Encode(e *jx.Encoder)
Encode encodes PermissionAction as json.
func (PermissionAction) MarshalJSON ¶
func (s PermissionAction) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PermissionAction) MarshalText ¶
func (s PermissionAction) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PermissionAction) UnmarshalJSON ¶
func (s *PermissionAction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionAction) UnmarshalText ¶
func (s *PermissionAction) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PermissionAction) Validate ¶
func (s PermissionAction) Validate() error
type PermissionRule ¶
type PermissionRule struct {
Action PermissionAction `json:"action"`
Pattern string `json:"pattern"`
Permission string `json:"permission"`
}
Ref: #/components/schemas/PermissionRule
func (*PermissionRule) Decode ¶
func (s *PermissionRule) Decode(d *jx.Decoder) error
Decode decodes PermissionRule from json.
func (*PermissionRule) Encode ¶
func (s *PermissionRule) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PermissionRule) GetAction ¶
func (s *PermissionRule) GetAction() PermissionAction
GetAction returns the value of Action.
func (*PermissionRule) GetPattern ¶
func (s *PermissionRule) GetPattern() string
GetPattern returns the value of Pattern.
func (*PermissionRule) GetPermission ¶
func (s *PermissionRule) GetPermission() string
GetPermission returns the value of Permission.
func (*PermissionRule) MarshalJSON ¶
func (s *PermissionRule) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PermissionRule) SetAction ¶
func (s *PermissionRule) SetAction(val PermissionAction)
SetAction sets the value of Action.
func (*PermissionRule) SetPattern ¶
func (s *PermissionRule) SetPattern(val string)
SetPattern sets the value of Pattern.
func (*PermissionRule) SetPermission ¶
func (s *PermissionRule) SetPermission(val string)
SetPermission sets the value of Permission.
func (*PermissionRule) UnmarshalJSON ¶
func (s *PermissionRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionRule) Validate ¶
func (s *PermissionRule) Validate() error
type PermissionRuleset ¶
type PermissionRuleset []PermissionRule
func (*PermissionRuleset) Decode ¶
func (s *PermissionRuleset) Decode(d *jx.Decoder) error
Decode decodes PermissionRuleset from json.
func (PermissionRuleset) Encode ¶
func (s PermissionRuleset) Encode(e *jx.Encoder)
Encode encodes PermissionRuleset as json.
func (PermissionRuleset) MarshalJSON ¶
func (s PermissionRuleset) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PermissionRuleset) UnmarshalJSON ¶
func (s *PermissionRuleset) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PermissionRuleset) Validate ¶
func (s PermissionRuleset) Validate() error
type PermissionV2Effect ¶
type PermissionV2Effect string
Ref: #/components/schemas/PermissionV2Effect
const ( PermissionV2EffectAllow PermissionV2Effect = "allow" PermissionV2EffectDeny PermissionV2Effect = "deny" PermissionV2EffectAsk PermissionV2Effect = "ask" )
func (PermissionV2Effect) AllValues ¶
func (PermissionV2Effect) AllValues() []PermissionV2Effect
AllValues returns all PermissionV2Effect values.
func (*PermissionV2Effect) Decode ¶
func (s *PermissionV2Effect) Decode(d *jx.Decoder) error
Decode decodes PermissionV2Effect from json.
func (PermissionV2Effect) Encode ¶
func (s PermissionV2Effect) Encode(e *jx.Encoder)
Encode encodes PermissionV2Effect as json.
func (PermissionV2Effect) MarshalJSON ¶
func (s PermissionV2Effect) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PermissionV2Effect) MarshalText ¶
func (s PermissionV2Effect) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PermissionV2Effect) UnmarshalJSON ¶
func (s *PermissionV2Effect) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionV2Effect) UnmarshalText ¶
func (s *PermissionV2Effect) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PermissionV2Effect) Validate ¶
func (s PermissionV2Effect) Validate() error
type PermissionV2Reply ¶
type PermissionV2Reply string
Ref: #/components/schemas/PermissionV2Reply
const ( PermissionV2ReplyOnce PermissionV2Reply = "once" PermissionV2ReplyAlways PermissionV2Reply = "always" PermissionV2ReplyReject PermissionV2Reply = "reject" )
func (PermissionV2Reply) AllValues ¶
func (PermissionV2Reply) AllValues() []PermissionV2Reply
AllValues returns all PermissionV2Reply values.
func (*PermissionV2Reply) Decode ¶
func (s *PermissionV2Reply) Decode(d *jx.Decoder) error
Decode decodes PermissionV2Reply from json.
func (PermissionV2Reply) Encode ¶
func (s PermissionV2Reply) Encode(e *jx.Encoder)
Encode encodes PermissionV2Reply as json.
func (PermissionV2Reply) MarshalJSON ¶
func (s PermissionV2Reply) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PermissionV2Reply) MarshalText ¶
func (s PermissionV2Reply) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PermissionV2Reply) UnmarshalJSON ¶
func (s *PermissionV2Reply) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionV2Reply) UnmarshalText ¶
func (s *PermissionV2Reply) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PermissionV2Reply) Validate ¶
func (s PermissionV2Reply) Validate() error
type PermissionV2Request ¶
type PermissionV2Request struct {
Action string `json:"action"`
ID string `json:"id"`
Metadata *PermissionV2RequestMetadata `json:"metadata"`
Resources []string `json:"resources"`
Save []string `json:"save"`
SessionID string `json:"sessionID"`
Source OptPermissionV2Source `json:"source"`
}
Ref: #/components/schemas/PermissionV2Request
func (*PermissionV2Request) Decode ¶
func (s *PermissionV2Request) Decode(d *jx.Decoder) error
Decode decodes PermissionV2Request from json.
func (*PermissionV2Request) Encode ¶
func (s *PermissionV2Request) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PermissionV2Request) GetAction ¶
func (s *PermissionV2Request) GetAction() string
GetAction returns the value of Action.
func (*PermissionV2Request) GetID ¶
func (s *PermissionV2Request) GetID() string
GetID returns the value of ID.
func (*PermissionV2Request) GetMetadata ¶
func (s *PermissionV2Request) GetMetadata() *PermissionV2RequestMetadata
GetMetadata returns the value of Metadata.
func (*PermissionV2Request) GetResources ¶
func (s *PermissionV2Request) GetResources() []string
GetResources returns the value of Resources.
func (*PermissionV2Request) GetSave ¶
func (s *PermissionV2Request) GetSave() []string
GetSave returns the value of Save.
func (*PermissionV2Request) GetSessionID ¶
func (s *PermissionV2Request) GetSessionID() string
GetSessionID returns the value of SessionID.
func (*PermissionV2Request) GetSource ¶
func (s *PermissionV2Request) GetSource() OptPermissionV2Source
GetSource returns the value of Source.
func (*PermissionV2Request) MarshalJSON ¶
func (s *PermissionV2Request) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PermissionV2Request) SetAction ¶
func (s *PermissionV2Request) SetAction(val string)
SetAction sets the value of Action.
func (*PermissionV2Request) SetID ¶
func (s *PermissionV2Request) SetID(val string)
SetID sets the value of ID.
func (*PermissionV2Request) SetMetadata ¶
func (s *PermissionV2Request) SetMetadata(val *PermissionV2RequestMetadata)
SetMetadata sets the value of Metadata.
func (*PermissionV2Request) SetResources ¶
func (s *PermissionV2Request) SetResources(val []string)
SetResources sets the value of Resources.
func (*PermissionV2Request) SetSave ¶
func (s *PermissionV2Request) SetSave(val []string)
SetSave sets the value of Save.
func (*PermissionV2Request) SetSessionID ¶
func (s *PermissionV2Request) SetSessionID(val string)
SetSessionID sets the value of SessionID.
func (*PermissionV2Request) SetSource ¶
func (s *PermissionV2Request) SetSource(val OptPermissionV2Source)
SetSource sets the value of Source.
func (*PermissionV2Request) UnmarshalJSON ¶
func (s *PermissionV2Request) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionV2Request) Validate ¶
func (s *PermissionV2Request) Validate() error
type PermissionV2RequestMetadata ¶
type PermissionV2RequestMetadata struct{}
func (*PermissionV2RequestMetadata) Decode ¶
func (s *PermissionV2RequestMetadata) Decode(d *jx.Decoder) error
Decode decodes PermissionV2RequestMetadata from json.
func (*PermissionV2RequestMetadata) Encode ¶
func (s *PermissionV2RequestMetadata) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PermissionV2RequestMetadata) MarshalJSON ¶
func (s *PermissionV2RequestMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PermissionV2RequestMetadata) UnmarshalJSON ¶
func (s *PermissionV2RequestMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PermissionV2Rule ¶
type PermissionV2Rule struct {
Action string `json:"action"`
Effect PermissionV2Effect `json:"effect"`
Resource string `json:"resource"`
}
Ref: #/components/schemas/PermissionV2Rule
func (*PermissionV2Rule) Decode ¶
func (s *PermissionV2Rule) Decode(d *jx.Decoder) error
Decode decodes PermissionV2Rule from json.
func (*PermissionV2Rule) Encode ¶
func (s *PermissionV2Rule) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PermissionV2Rule) GetAction ¶
func (s *PermissionV2Rule) GetAction() string
GetAction returns the value of Action.
func (*PermissionV2Rule) GetEffect ¶
func (s *PermissionV2Rule) GetEffect() PermissionV2Effect
GetEffect returns the value of Effect.
func (*PermissionV2Rule) GetResource ¶
func (s *PermissionV2Rule) GetResource() string
GetResource returns the value of Resource.
func (*PermissionV2Rule) MarshalJSON ¶
func (s *PermissionV2Rule) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PermissionV2Rule) SetAction ¶
func (s *PermissionV2Rule) SetAction(val string)
SetAction sets the value of Action.
func (*PermissionV2Rule) SetEffect ¶
func (s *PermissionV2Rule) SetEffect(val PermissionV2Effect)
SetEffect sets the value of Effect.
func (*PermissionV2Rule) SetResource ¶
func (s *PermissionV2Rule) SetResource(val string)
SetResource sets the value of Resource.
func (*PermissionV2Rule) UnmarshalJSON ¶
func (s *PermissionV2Rule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionV2Rule) Validate ¶
func (s *PermissionV2Rule) Validate() error
type PermissionV2Ruleset ¶
type PermissionV2Ruleset []PermissionV2Rule
func (*PermissionV2Ruleset) Decode ¶
func (s *PermissionV2Ruleset) Decode(d *jx.Decoder) error
Decode decodes PermissionV2Ruleset from json.
func (PermissionV2Ruleset) Encode ¶
func (s PermissionV2Ruleset) Encode(e *jx.Encoder)
Encode encodes PermissionV2Ruleset as json.
func (PermissionV2Ruleset) MarshalJSON ¶
func (s PermissionV2Ruleset) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PermissionV2Ruleset) UnmarshalJSON ¶
func (s *PermissionV2Ruleset) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PermissionV2Ruleset) Validate ¶
func (s PermissionV2Ruleset) Validate() error
type PermissionV2Source ¶
type PermissionV2Source struct {
CallID string `json:"callID"`
MessageID string `json:"messageID"`
Type PermissionV2SourceType `json:"type"`
}
Ref: #/components/schemas/PermissionV2Source
func (*PermissionV2Source) Decode ¶
func (s *PermissionV2Source) Decode(d *jx.Decoder) error
Decode decodes PermissionV2Source from json.
func (*PermissionV2Source) Encode ¶
func (s *PermissionV2Source) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PermissionV2Source) GetCallID ¶
func (s *PermissionV2Source) GetCallID() string
GetCallID returns the value of CallID.
func (*PermissionV2Source) GetMessageID ¶
func (s *PermissionV2Source) GetMessageID() string
GetMessageID returns the value of MessageID.
func (*PermissionV2Source) GetType ¶
func (s *PermissionV2Source) GetType() PermissionV2SourceType
GetType returns the value of Type.
func (*PermissionV2Source) MarshalJSON ¶
func (s *PermissionV2Source) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PermissionV2Source) SetCallID ¶
func (s *PermissionV2Source) SetCallID(val string)
SetCallID sets the value of CallID.
func (*PermissionV2Source) SetMessageID ¶
func (s *PermissionV2Source) SetMessageID(val string)
SetMessageID sets the value of MessageID.
func (*PermissionV2Source) SetType ¶
func (s *PermissionV2Source) SetType(val PermissionV2SourceType)
SetType sets the value of Type.
func (*PermissionV2Source) UnmarshalJSON ¶
func (s *PermissionV2Source) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionV2Source) Validate ¶
func (s *PermissionV2Source) Validate() error
type PermissionV2SourceType ¶
type PermissionV2SourceType string
const (
PermissionV2SourceTypeTool PermissionV2SourceType = "tool"
)
func (PermissionV2SourceType) AllValues ¶
func (PermissionV2SourceType) AllValues() []PermissionV2SourceType
AllValues returns all PermissionV2SourceType values.
func (*PermissionV2SourceType) Decode ¶
func (s *PermissionV2SourceType) Decode(d *jx.Decoder) error
Decode decodes PermissionV2SourceType from json.
func (PermissionV2SourceType) Encode ¶
func (s PermissionV2SourceType) Encode(e *jx.Encoder)
Encode encodes PermissionV2SourceType as json.
func (PermissionV2SourceType) MarshalJSON ¶
func (s PermissionV2SourceType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PermissionV2SourceType) MarshalText ¶
func (s PermissionV2SourceType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PermissionV2SourceType) UnmarshalJSON ¶
func (s *PermissionV2SourceType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PermissionV2SourceType) UnmarshalText ¶
func (s *PermissionV2SourceType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PermissionV2SourceType) Validate ¶
func (s PermissionV2SourceType) Validate() error
type Prompt ¶
type Prompt struct {
Agents []PromptAgentAttachment `json:"agents"`
Files []PromptFileAttachment `json:"files"`
References []PromptReferenceAttachment `json:"references"`
Text string `json:"text"`
}
Ref: #/components/schemas/Prompt
func (*Prompt) GetAgents ¶
func (s *Prompt) GetAgents() []PromptAgentAttachment
GetAgents returns the value of Agents.
func (*Prompt) GetFiles ¶
func (s *Prompt) GetFiles() []PromptFileAttachment
GetFiles returns the value of Files.
func (*Prompt) GetReferences ¶
func (s *Prompt) GetReferences() []PromptReferenceAttachment
GetReferences returns the value of References.
func (*Prompt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Prompt) SetAgents ¶
func (s *Prompt) SetAgents(val []PromptAgentAttachment)
SetAgents sets the value of Agents.
func (*Prompt) SetFiles ¶
func (s *Prompt) SetFiles(val []PromptFileAttachment)
SetFiles sets the value of Files.
func (*Prompt) SetReferences ¶
func (s *Prompt) SetReferences(val []PromptReferenceAttachment)
SetReferences sets the value of References.
func (*Prompt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PromptAgentAttachment ¶
type PromptAgentAttachment struct {
Name string `json:"name"`
Source OptPromptSource `json:"source"`
}
Ref: #/components/schemas/PromptAgentAttachment
func (*PromptAgentAttachment) Decode ¶
func (s *PromptAgentAttachment) Decode(d *jx.Decoder) error
Decode decodes PromptAgentAttachment from json.
func (*PromptAgentAttachment) Encode ¶
func (s *PromptAgentAttachment) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PromptAgentAttachment) GetName ¶
func (s *PromptAgentAttachment) GetName() string
GetName returns the value of Name.
func (*PromptAgentAttachment) GetSource ¶
func (s *PromptAgentAttachment) GetSource() OptPromptSource
GetSource returns the value of Source.
func (*PromptAgentAttachment) MarshalJSON ¶
func (s *PromptAgentAttachment) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PromptAgentAttachment) SetName ¶
func (s *PromptAgentAttachment) SetName(val string)
SetName sets the value of Name.
func (*PromptAgentAttachment) SetSource ¶
func (s *PromptAgentAttachment) SetSource(val OptPromptSource)
SetSource sets the value of Source.
func (*PromptAgentAttachment) UnmarshalJSON ¶
func (s *PromptAgentAttachment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PromptAgentAttachment) Validate ¶
func (s *PromptAgentAttachment) Validate() error
type PromptFileAttachment ¶
type PromptFileAttachment struct {
Description OptString `json:"description"`
Mime string `json:"mime"`
Name OptString `json:"name"`
Source OptPromptSource `json:"source"`
URI string `json:"uri"`
}
Ref: #/components/schemas/PromptFileAttachment
func (*PromptFileAttachment) Decode ¶
func (s *PromptFileAttachment) Decode(d *jx.Decoder) error
Decode decodes PromptFileAttachment from json.
func (*PromptFileAttachment) Encode ¶
func (s *PromptFileAttachment) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PromptFileAttachment) GetDescription ¶
func (s *PromptFileAttachment) GetDescription() OptString
GetDescription returns the value of Description.
func (*PromptFileAttachment) GetMime ¶
func (s *PromptFileAttachment) GetMime() string
GetMime returns the value of Mime.
func (*PromptFileAttachment) GetName ¶
func (s *PromptFileAttachment) GetName() OptString
GetName returns the value of Name.
func (*PromptFileAttachment) GetSource ¶
func (s *PromptFileAttachment) GetSource() OptPromptSource
GetSource returns the value of Source.
func (*PromptFileAttachment) GetURI ¶
func (s *PromptFileAttachment) GetURI() string
GetURI returns the value of URI.
func (*PromptFileAttachment) MarshalJSON ¶
func (s *PromptFileAttachment) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PromptFileAttachment) SetDescription ¶
func (s *PromptFileAttachment) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*PromptFileAttachment) SetMime ¶
func (s *PromptFileAttachment) SetMime(val string)
SetMime sets the value of Mime.
func (*PromptFileAttachment) SetName ¶
func (s *PromptFileAttachment) SetName(val OptString)
SetName sets the value of Name.
func (*PromptFileAttachment) SetSource ¶
func (s *PromptFileAttachment) SetSource(val OptPromptSource)
SetSource sets the value of Source.
func (*PromptFileAttachment) SetURI ¶
func (s *PromptFileAttachment) SetURI(val string)
SetURI sets the value of URI.
func (*PromptFileAttachment) UnmarshalJSON ¶
func (s *PromptFileAttachment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PromptFileAttachment) Validate ¶
func (s *PromptFileAttachment) Validate() error
type PromptReferenceAttachment ¶
type PromptReferenceAttachment struct {
Branch OptString `json:"branch"`
Kind PromptReferenceAttachmentKind `json:"kind"`
Name string `json:"name"`
Problem OptString `json:"problem"`
Repository OptString `json:"repository"`
Source OptPromptSource `json:"source"`
Target OptString `json:"target"`
TargetUri OptString `json:"targetUri"`
URI OptString `json:"uri"`
}
Ref: #/components/schemas/PromptReferenceAttachment
func (*PromptReferenceAttachment) Decode ¶
func (s *PromptReferenceAttachment) Decode(d *jx.Decoder) error
Decode decodes PromptReferenceAttachment from json.
func (*PromptReferenceAttachment) Encode ¶
func (s *PromptReferenceAttachment) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PromptReferenceAttachment) GetBranch ¶
func (s *PromptReferenceAttachment) GetBranch() OptString
GetBranch returns the value of Branch.
func (*PromptReferenceAttachment) GetKind ¶
func (s *PromptReferenceAttachment) GetKind() PromptReferenceAttachmentKind
GetKind returns the value of Kind.
func (*PromptReferenceAttachment) GetName ¶
func (s *PromptReferenceAttachment) GetName() string
GetName returns the value of Name.
func (*PromptReferenceAttachment) GetProblem ¶
func (s *PromptReferenceAttachment) GetProblem() OptString
GetProblem returns the value of Problem.
func (*PromptReferenceAttachment) GetRepository ¶
func (s *PromptReferenceAttachment) GetRepository() OptString
GetRepository returns the value of Repository.
func (*PromptReferenceAttachment) GetSource ¶
func (s *PromptReferenceAttachment) GetSource() OptPromptSource
GetSource returns the value of Source.
func (*PromptReferenceAttachment) GetTarget ¶
func (s *PromptReferenceAttachment) GetTarget() OptString
GetTarget returns the value of Target.
func (*PromptReferenceAttachment) GetTargetUri ¶
func (s *PromptReferenceAttachment) GetTargetUri() OptString
GetTargetUri returns the value of TargetUri.
func (*PromptReferenceAttachment) GetURI ¶
func (s *PromptReferenceAttachment) GetURI() OptString
GetURI returns the value of URI.
func (*PromptReferenceAttachment) MarshalJSON ¶
func (s *PromptReferenceAttachment) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PromptReferenceAttachment) SetBranch ¶
func (s *PromptReferenceAttachment) SetBranch(val OptString)
SetBranch sets the value of Branch.
func (*PromptReferenceAttachment) SetKind ¶
func (s *PromptReferenceAttachment) SetKind(val PromptReferenceAttachmentKind)
SetKind sets the value of Kind.
func (*PromptReferenceAttachment) SetName ¶
func (s *PromptReferenceAttachment) SetName(val string)
SetName sets the value of Name.
func (*PromptReferenceAttachment) SetProblem ¶
func (s *PromptReferenceAttachment) SetProblem(val OptString)
SetProblem sets the value of Problem.
func (*PromptReferenceAttachment) SetRepository ¶
func (s *PromptReferenceAttachment) SetRepository(val OptString)
SetRepository sets the value of Repository.
func (*PromptReferenceAttachment) SetSource ¶
func (s *PromptReferenceAttachment) SetSource(val OptPromptSource)
SetSource sets the value of Source.
func (*PromptReferenceAttachment) SetTarget ¶
func (s *PromptReferenceAttachment) SetTarget(val OptString)
SetTarget sets the value of Target.
func (*PromptReferenceAttachment) SetTargetUri ¶
func (s *PromptReferenceAttachment) SetTargetUri(val OptString)
SetTargetUri sets the value of TargetUri.
func (*PromptReferenceAttachment) SetURI ¶
func (s *PromptReferenceAttachment) SetURI(val OptString)
SetURI sets the value of URI.
func (*PromptReferenceAttachment) UnmarshalJSON ¶
func (s *PromptReferenceAttachment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PromptReferenceAttachment) Validate ¶
func (s *PromptReferenceAttachment) Validate() error
type PromptReferenceAttachmentKind ¶
type PromptReferenceAttachmentKind string
const ( PromptReferenceAttachmentKindLocal PromptReferenceAttachmentKind = "local" PromptReferenceAttachmentKindGit PromptReferenceAttachmentKind = "git" PromptReferenceAttachmentKindInvalid PromptReferenceAttachmentKind = "invalid" )
func (PromptReferenceAttachmentKind) AllValues ¶
func (PromptReferenceAttachmentKind) AllValues() []PromptReferenceAttachmentKind
AllValues returns all PromptReferenceAttachmentKind values.
func (*PromptReferenceAttachmentKind) Decode ¶
func (s *PromptReferenceAttachmentKind) Decode(d *jx.Decoder) error
Decode decodes PromptReferenceAttachmentKind from json.
func (PromptReferenceAttachmentKind) Encode ¶
func (s PromptReferenceAttachmentKind) Encode(e *jx.Encoder)
Encode encodes PromptReferenceAttachmentKind as json.
func (PromptReferenceAttachmentKind) MarshalJSON ¶
func (s PromptReferenceAttachmentKind) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PromptReferenceAttachmentKind) MarshalText ¶
func (s PromptReferenceAttachmentKind) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PromptReferenceAttachmentKind) UnmarshalJSON ¶
func (s *PromptReferenceAttachmentKind) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PromptReferenceAttachmentKind) UnmarshalText ¶
func (s *PromptReferenceAttachmentKind) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PromptReferenceAttachmentKind) Validate ¶
func (s PromptReferenceAttachmentKind) Validate() error
type PromptSource ¶
type PromptSource struct {
End float64 `json:"end"`
Start float64 `json:"start"`
Text string `json:"text"`
}
Ref: #/components/schemas/PromptSource
func (*PromptSource) Decode ¶
func (s *PromptSource) Decode(d *jx.Decoder) error
Decode decodes PromptSource from json.
func (*PromptSource) Encode ¶
func (s *PromptSource) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PromptSource) GetEnd ¶
func (s *PromptSource) GetEnd() float64
GetEnd returns the value of End.
func (*PromptSource) GetStart ¶
func (s *PromptSource) GetStart() float64
GetStart returns the value of Start.
func (*PromptSource) GetText ¶
func (s *PromptSource) GetText() string
GetText returns the value of Text.
func (*PromptSource) MarshalJSON ¶
func (s *PromptSource) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PromptSource) SetEnd ¶
func (s *PromptSource) SetEnd(val float64)
SetEnd sets the value of End.
func (*PromptSource) SetStart ¶
func (s *PromptSource) SetStart(val float64)
SetStart sets the value of Start.
func (*PromptSource) SetText ¶
func (s *PromptSource) SetText(val string)
SetText sets the value of Text.
func (*PromptSource) UnmarshalJSON ¶
func (s *PromptSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PromptSource) Validate ¶
func (s *PromptSource) Validate() error
type ProviderV2Info ¶
type ProviderV2Info struct {
API jx.Raw `json:"api"`
Enabled jx.Raw `json:"enabled"`
Env []string `json:"env"`
ID string `json:"id"`
Name string `json:"name"`
Request ProviderV2InfoRequest `json:"request"`
}
Ref: #/components/schemas/ProviderV2Info
func (*ProviderV2Info) Decode ¶
func (s *ProviderV2Info) Decode(d *jx.Decoder) error
Decode decodes ProviderV2Info from json.
func (*ProviderV2Info) Encode ¶
func (s *ProviderV2Info) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProviderV2Info) GetAPI ¶
func (s *ProviderV2Info) GetAPI() jx.Raw
GetAPI returns the value of API.
func (*ProviderV2Info) GetEnabled ¶
func (s *ProviderV2Info) GetEnabled() jx.Raw
GetEnabled returns the value of Enabled.
func (*ProviderV2Info) GetEnv ¶
func (s *ProviderV2Info) GetEnv() []string
GetEnv returns the value of Env.
func (*ProviderV2Info) GetID ¶
func (s *ProviderV2Info) GetID() string
GetID returns the value of ID.
func (*ProviderV2Info) GetName ¶
func (s *ProviderV2Info) GetName() string
GetName returns the value of Name.
func (*ProviderV2Info) GetRequest ¶
func (s *ProviderV2Info) GetRequest() ProviderV2InfoRequest
GetRequest returns the value of Request.
func (*ProviderV2Info) MarshalJSON ¶
func (s *ProviderV2Info) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProviderV2Info) SetAPI ¶
func (s *ProviderV2Info) SetAPI(val jx.Raw)
SetAPI sets the value of API.
func (*ProviderV2Info) SetEnabled ¶
func (s *ProviderV2Info) SetEnabled(val jx.Raw)
SetEnabled sets the value of Enabled.
func (*ProviderV2Info) SetEnv ¶
func (s *ProviderV2Info) SetEnv(val []string)
SetEnv sets the value of Env.
func (*ProviderV2Info) SetID ¶
func (s *ProviderV2Info) SetID(val string)
SetID sets the value of ID.
func (*ProviderV2Info) SetName ¶
func (s *ProviderV2Info) SetName(val string)
SetName sets the value of Name.
func (*ProviderV2Info) SetRequest ¶
func (s *ProviderV2Info) SetRequest(val ProviderV2InfoRequest)
SetRequest sets the value of Request.
func (*ProviderV2Info) UnmarshalJSON ¶
func (s *ProviderV2Info) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProviderV2Info) Validate ¶
func (s *ProviderV2Info) Validate() error
type ProviderV2InfoRequest ¶
type ProviderV2InfoRequest struct {
Body ProviderV2InfoRequestBody `json:"body"`
Headers ProviderV2InfoRequestHeaders `json:"headers"`
}
func (*ProviderV2InfoRequest) Decode ¶
func (s *ProviderV2InfoRequest) Decode(d *jx.Decoder) error
Decode decodes ProviderV2InfoRequest from json.
func (*ProviderV2InfoRequest) Encode ¶
func (s *ProviderV2InfoRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProviderV2InfoRequest) GetBody ¶
func (s *ProviderV2InfoRequest) GetBody() ProviderV2InfoRequestBody
GetBody returns the value of Body.
func (*ProviderV2InfoRequest) GetHeaders ¶
func (s *ProviderV2InfoRequest) GetHeaders() ProviderV2InfoRequestHeaders
GetHeaders returns the value of Headers.
func (*ProviderV2InfoRequest) MarshalJSON ¶
func (s *ProviderV2InfoRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProviderV2InfoRequest) SetBody ¶
func (s *ProviderV2InfoRequest) SetBody(val ProviderV2InfoRequestBody)
SetBody sets the value of Body.
func (*ProviderV2InfoRequest) SetHeaders ¶
func (s *ProviderV2InfoRequest) SetHeaders(val ProviderV2InfoRequestHeaders)
SetHeaders sets the value of Headers.
func (*ProviderV2InfoRequest) UnmarshalJSON ¶
func (s *ProviderV2InfoRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ProviderV2InfoRequestBody ¶
type ProviderV2InfoRequestBody struct{}
func (*ProviderV2InfoRequestBody) Decode ¶
func (s *ProviderV2InfoRequestBody) Decode(d *jx.Decoder) error
Decode decodes ProviderV2InfoRequestBody from json.
func (*ProviderV2InfoRequestBody) Encode ¶
func (s *ProviderV2InfoRequestBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProviderV2InfoRequestBody) MarshalJSON ¶
func (s *ProviderV2InfoRequestBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProviderV2InfoRequestBody) UnmarshalJSON ¶
func (s *ProviderV2InfoRequestBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ProviderV2InfoRequestHeaders ¶
func (*ProviderV2InfoRequestHeaders) Decode ¶
func (s *ProviderV2InfoRequestHeaders) Decode(d *jx.Decoder) error
Decode decodes ProviderV2InfoRequestHeaders from json.
func (ProviderV2InfoRequestHeaders) Encode ¶
func (s ProviderV2InfoRequestHeaders) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ProviderV2InfoRequestHeaders) MarshalJSON ¶
func (s ProviderV2InfoRequestHeaders) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProviderV2InfoRequestHeaders) UnmarshalJSON ¶
func (s *ProviderV2InfoRequestHeaders) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type QuestionV2Answer ¶
type QuestionV2Answer []string
func (*QuestionV2Answer) Decode ¶
func (s *QuestionV2Answer) Decode(d *jx.Decoder) error
Decode decodes QuestionV2Answer from json.
func (QuestionV2Answer) Encode ¶
func (s QuestionV2Answer) Encode(e *jx.Encoder)
Encode encodes QuestionV2Answer as json.
func (QuestionV2Answer) MarshalJSON ¶
func (s QuestionV2Answer) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*QuestionV2Answer) UnmarshalJSON ¶
func (s *QuestionV2Answer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (QuestionV2Answer) Validate ¶
func (s QuestionV2Answer) Validate() error
type QuestionV2Info ¶
type QuestionV2Info struct {
Custom OptBool `json:"custom"`
// Very short label (max 30 chars).
Header string `json:"header"`
Multiple OptBool `json:"multiple"`
// Available choices.
Options []QuestionV2Option `json:"options"`
// Complete question.
Question string `json:"question"`
}
Ref: #/components/schemas/QuestionV2Info
func (*QuestionV2Info) Decode ¶
func (s *QuestionV2Info) Decode(d *jx.Decoder) error
Decode decodes QuestionV2Info from json.
func (*QuestionV2Info) Encode ¶
func (s *QuestionV2Info) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*QuestionV2Info) GetCustom ¶
func (s *QuestionV2Info) GetCustom() OptBool
GetCustom returns the value of Custom.
func (*QuestionV2Info) GetHeader ¶
func (s *QuestionV2Info) GetHeader() string
GetHeader returns the value of Header.
func (*QuestionV2Info) GetMultiple ¶
func (s *QuestionV2Info) GetMultiple() OptBool
GetMultiple returns the value of Multiple.
func (*QuestionV2Info) GetOptions ¶
func (s *QuestionV2Info) GetOptions() []QuestionV2Option
GetOptions returns the value of Options.
func (*QuestionV2Info) GetQuestion ¶
func (s *QuestionV2Info) GetQuestion() string
GetQuestion returns the value of Question.
func (*QuestionV2Info) MarshalJSON ¶
func (s *QuestionV2Info) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*QuestionV2Info) SetCustom ¶
func (s *QuestionV2Info) SetCustom(val OptBool)
SetCustom sets the value of Custom.
func (*QuestionV2Info) SetHeader ¶
func (s *QuestionV2Info) SetHeader(val string)
SetHeader sets the value of Header.
func (*QuestionV2Info) SetMultiple ¶
func (s *QuestionV2Info) SetMultiple(val OptBool)
SetMultiple sets the value of Multiple.
func (*QuestionV2Info) SetOptions ¶
func (s *QuestionV2Info) SetOptions(val []QuestionV2Option)
SetOptions sets the value of Options.
func (*QuestionV2Info) SetQuestion ¶
func (s *QuestionV2Info) SetQuestion(val string)
SetQuestion sets the value of Question.
func (*QuestionV2Info) UnmarshalJSON ¶
func (s *QuestionV2Info) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*QuestionV2Info) Validate ¶
func (s *QuestionV2Info) Validate() error
type QuestionV2Option ¶
type QuestionV2Option struct {
// Explanation of choice.
Description string `json:"description"`
// Display text (1-5 words, concise).
Label string `json:"label"`
}
Ref: #/components/schemas/QuestionV2Option
func (*QuestionV2Option) Decode ¶
func (s *QuestionV2Option) Decode(d *jx.Decoder) error
Decode decodes QuestionV2Option from json.
func (*QuestionV2Option) Encode ¶
func (s *QuestionV2Option) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*QuestionV2Option) GetDescription ¶
func (s *QuestionV2Option) GetDescription() string
GetDescription returns the value of Description.
func (*QuestionV2Option) GetLabel ¶
func (s *QuestionV2Option) GetLabel() string
GetLabel returns the value of Label.
func (*QuestionV2Option) MarshalJSON ¶
func (s *QuestionV2Option) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*QuestionV2Option) SetDescription ¶
func (s *QuestionV2Option) SetDescription(val string)
SetDescription sets the value of Description.
func (*QuestionV2Option) SetLabel ¶
func (s *QuestionV2Option) SetLabel(val string)
SetLabel sets the value of Label.
func (*QuestionV2Option) UnmarshalJSON ¶
func (s *QuestionV2Option) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type QuestionV2Reply ¶
type QuestionV2Reply struct {
// User answers in order of questions (each answer is an array of selected labels).
Answers []QuestionV2Answer `json:"answers"`
}
Ref: #/components/schemas/QuestionV2Reply
func (*QuestionV2Reply) Decode ¶
func (s *QuestionV2Reply) Decode(d *jx.Decoder) error
Decode decodes QuestionV2Reply from json.
func (*QuestionV2Reply) Encode ¶
func (s *QuestionV2Reply) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*QuestionV2Reply) GetAnswers ¶
func (s *QuestionV2Reply) GetAnswers() []QuestionV2Answer
GetAnswers returns the value of Answers.
func (*QuestionV2Reply) MarshalJSON ¶
func (s *QuestionV2Reply) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*QuestionV2Reply) SetAnswers ¶
func (s *QuestionV2Reply) SetAnswers(val []QuestionV2Answer)
SetAnswers sets the value of Answers.
func (*QuestionV2Reply) UnmarshalJSON ¶
func (s *QuestionV2Reply) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*QuestionV2Reply) Validate ¶
func (s *QuestionV2Reply) Validate() error
type QuestionV2Request ¶
type QuestionV2Request struct {
ID string `json:"id"`
// Questions to ask.
Questions []QuestionV2Info `json:"questions"`
SessionID string `json:"sessionID"`
Tool OptQuestionV2Tool `json:"tool"`
}
Ref: #/components/schemas/QuestionV2Request
func (*QuestionV2Request) Decode ¶
func (s *QuestionV2Request) Decode(d *jx.Decoder) error
Decode decodes QuestionV2Request from json.
func (*QuestionV2Request) Encode ¶
func (s *QuestionV2Request) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*QuestionV2Request) GetID ¶
func (s *QuestionV2Request) GetID() string
GetID returns the value of ID.
func (*QuestionV2Request) GetQuestions ¶
func (s *QuestionV2Request) GetQuestions() []QuestionV2Info
GetQuestions returns the value of Questions.
func (*QuestionV2Request) GetSessionID ¶
func (s *QuestionV2Request) GetSessionID() string
GetSessionID returns the value of SessionID.
func (*QuestionV2Request) GetTool ¶
func (s *QuestionV2Request) GetTool() OptQuestionV2Tool
GetTool returns the value of Tool.
func (*QuestionV2Request) MarshalJSON ¶
func (s *QuestionV2Request) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*QuestionV2Request) SetID ¶
func (s *QuestionV2Request) SetID(val string)
SetID sets the value of ID.
func (*QuestionV2Request) SetQuestions ¶
func (s *QuestionV2Request) SetQuestions(val []QuestionV2Info)
SetQuestions sets the value of Questions.
func (*QuestionV2Request) SetSessionID ¶
func (s *QuestionV2Request) SetSessionID(val string)
SetSessionID sets the value of SessionID.
func (*QuestionV2Request) SetTool ¶
func (s *QuestionV2Request) SetTool(val OptQuestionV2Tool)
SetTool sets the value of Tool.
func (*QuestionV2Request) UnmarshalJSON ¶
func (s *QuestionV2Request) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*QuestionV2Request) Validate ¶
func (s *QuestionV2Request) Validate() error
type QuestionV2Tool ¶
Ref: #/components/schemas/QuestionV2Tool
func (*QuestionV2Tool) Decode ¶
func (s *QuestionV2Tool) Decode(d *jx.Decoder) error
Decode decodes QuestionV2Tool from json.
func (*QuestionV2Tool) Encode ¶
func (s *QuestionV2Tool) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*QuestionV2Tool) GetCallID ¶
func (s *QuestionV2Tool) GetCallID() string
GetCallID returns the value of CallID.
func (*QuestionV2Tool) GetMessageID ¶
func (s *QuestionV2Tool) GetMessageID() string
GetMessageID returns the value of MessageID.
func (*QuestionV2Tool) MarshalJSON ¶
func (s *QuestionV2Tool) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*QuestionV2Tool) SetCallID ¶
func (s *QuestionV2Tool) SetCallID(val string)
SetCallID sets the value of CallID.
func (*QuestionV2Tool) SetMessageID ¶
func (s *QuestionV2Tool) SetMessageID(val string)
SetMessageID sets the value of MessageID.
func (*QuestionV2Tool) UnmarshalJSON ¶
func (s *QuestionV2Tool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationGroup ¶
OperationGroup returns the x-ogen-operation-group value.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
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.
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 ServiceUnavailableError ¶
type ServiceUnavailableError struct {
}
Ref: #/components/schemas/ServiceUnavailableError
func (*ServiceUnavailableError) Decode ¶
func (s *ServiceUnavailableError) Decode(d *jx.Decoder) error
Decode decodes ServiceUnavailableError from json.
func (*ServiceUnavailableError) Encode ¶
func (s *ServiceUnavailableError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ServiceUnavailableError) GetMessage ¶
func (s *ServiceUnavailableError) GetMessage() string
GetMessage returns the value of Message.
func (*ServiceUnavailableError) GetService ¶
func (s *ServiceUnavailableError) GetService() OptString
GetService returns the value of Service.
func (*ServiceUnavailableError) GetTag ¶
func (s *ServiceUnavailableError) GetTag() ServiceUnavailableErrorTag
GetTag returns the value of Tag.
func (*ServiceUnavailableError) MarshalJSON ¶
func (s *ServiceUnavailableError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ServiceUnavailableError) SetMessage ¶
func (s *ServiceUnavailableError) SetMessage(val string)
SetMessage sets the value of Message.
func (*ServiceUnavailableError) SetService ¶
func (s *ServiceUnavailableError) SetService(val OptString)
SetService sets the value of Service.
func (*ServiceUnavailableError) SetTag ¶
func (s *ServiceUnavailableError) SetTag(val ServiceUnavailableErrorTag)
SetTag sets the value of Tag.
func (*ServiceUnavailableError) UnmarshalJSON ¶
func (s *ServiceUnavailableError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ServiceUnavailableError) Validate ¶
func (s *ServiceUnavailableError) Validate() error
type ServiceUnavailableErrorTag ¶
type ServiceUnavailableErrorTag string
const (
)
func (ServiceUnavailableErrorTag) AllValues ¶
func (ServiceUnavailableErrorTag) AllValues() []ServiceUnavailableErrorTag
AllValues returns all ServiceUnavailableErrorTag values.
func (*ServiceUnavailableErrorTag) Decode ¶
func (s *ServiceUnavailableErrorTag) Decode(d *jx.Decoder) error
Decode decodes ServiceUnavailableErrorTag from json.
func (ServiceUnavailableErrorTag) Encode ¶
func (s ServiceUnavailableErrorTag) Encode(e *jx.Encoder)
Encode encodes ServiceUnavailableErrorTag as json.
func (ServiceUnavailableErrorTag) MarshalJSON ¶
func (s ServiceUnavailableErrorTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ServiceUnavailableErrorTag) MarshalText ¶
func (s ServiceUnavailableErrorTag) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ServiceUnavailableErrorTag) UnmarshalJSON ¶
func (s *ServiceUnavailableErrorTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ServiceUnavailableErrorTag) UnmarshalText ¶
func (s *ServiceUnavailableErrorTag) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ServiceUnavailableErrorTag) Validate ¶
func (s ServiceUnavailableErrorTag) Validate() error
type Session ¶
type Session struct {
Agent OptNilString `json:"agent"`
Cost OptFloat64 `json:"cost"`
Directory string `json:"directory"`
ID string `json:"id"`
Metadata *SessionMetadata `json:"metadata"`
Model OptNilSessionModel `json:"model"`
ParentID OptString `json:"parentID"`
Path OptString `json:"path"`
Permission PermissionRuleset `json:"permission"`
ProjectID string `json:"projectID"`
Revert OptSessionRevert `json:"revert"`
Slug string `json:"slug"`
Summary OptSessionSummary `json:"summary"`
Time SessionTime `json:"time"`
Title string `json:"title"`
Tokens OptSessionTokens `json:"tokens"`
Version string `json:"version"`
WorkspaceID OptNilString `json:"workspaceID"`
}
Ref: #/components/schemas/Session
func (*Session) GetAgent ¶
func (s *Session) GetAgent() OptNilString
GetAgent returns the value of Agent.
func (*Session) GetDirectory ¶
GetDirectory returns the value of Directory.
func (*Session) GetMetadata ¶
func (s *Session) GetMetadata() *SessionMetadata
GetMetadata returns the value of Metadata.
func (*Session) GetModel ¶
func (s *Session) GetModel() OptNilSessionModel
GetModel returns the value of Model.
func (*Session) GetParentID ¶
GetParentID returns the value of ParentID.
func (*Session) GetPermission ¶
func (s *Session) GetPermission() PermissionRuleset
GetPermission returns the value of Permission.
func (*Session) GetProjectID ¶
GetProjectID returns the value of ProjectID.
func (*Session) GetRevert ¶
func (s *Session) GetRevert() OptSessionRevert
GetRevert returns the value of Revert.
func (*Session) GetShare ¶
func (s *Session) GetShare() OptSessionShare
GetShare returns the value of Share.
func (*Session) GetSummary ¶
func (s *Session) GetSummary() OptSessionSummary
GetSummary returns the value of Summary.
func (*Session) GetTime ¶
func (s *Session) GetTime() SessionTime
GetTime returns the value of Time.
func (*Session) GetTokens ¶
func (s *Session) GetTokens() OptSessionTokens
GetTokens returns the value of Tokens.
func (*Session) GetVersion ¶
GetVersion returns the value of Version.
func (*Session) GetWorkspaceID ¶
func (s *Session) GetWorkspaceID() OptNilString
GetWorkspaceID returns the value of WorkspaceID.
func (*Session) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Session) SetAgent ¶
func (s *Session) SetAgent(val OptNilString)
SetAgent sets the value of Agent.
func (*Session) SetDirectory ¶
SetDirectory sets the value of Directory.
func (*Session) SetMetadata ¶
func (s *Session) SetMetadata(val *SessionMetadata)
SetMetadata sets the value of Metadata.
func (*Session) SetModel ¶
func (s *Session) SetModel(val OptNilSessionModel)
SetModel sets the value of Model.
func (*Session) SetParentID ¶
SetParentID sets the value of ParentID.
func (*Session) SetPermission ¶
func (s *Session) SetPermission(val PermissionRuleset)
SetPermission sets the value of Permission.
func (*Session) SetProjectID ¶
SetProjectID sets the value of ProjectID.
func (*Session) SetRevert ¶
func (s *Session) SetRevert(val OptSessionRevert)
SetRevert sets the value of Revert.
func (*Session) SetShare ¶
func (s *Session) SetShare(val OptSessionShare)
SetShare sets the value of Share.
func (*Session) SetSummary ¶
func (s *Session) SetSummary(val OptSessionSummary)
SetSummary sets the value of Summary.
func (*Session) SetTime ¶
func (s *Session) SetTime(val SessionTime)
SetTime sets the value of Time.
func (*Session) SetTokens ¶
func (s *Session) SetTokens(val OptSessionTokens)
SetTokens sets the value of Tokens.
func (*Session) SetVersion ¶
SetVersion sets the value of Version.
func (*Session) SetWorkspaceID ¶
func (s *Session) SetWorkspaceID(val OptNilString)
SetWorkspaceID sets the value of WorkspaceID.
func (*Session) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionCreateBadRequestApplicationJSON ¶
func (*SessionCreateBadRequestApplicationJSON) Decode ¶
func (s *SessionCreateBadRequestApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes SessionCreateBadRequestApplicationJSON from json.
func (SessionCreateBadRequestApplicationJSON) Encode ¶
func (s SessionCreateBadRequestApplicationJSON) Encode(e *jx.Encoder)
Encode encodes SessionCreateBadRequestApplicationJSON as json.
func (SessionCreateBadRequestApplicationJSON) MarshalJSON ¶
func (s SessionCreateBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionCreateBadRequestApplicationJSON) UnmarshalJSON ¶
func (s *SessionCreateBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionCreateParams ¶
type SessionCreateParams struct {
Directory OptString `json:",omitempty,omitzero"`
Workspace OptString `json:",omitempty,omitzero"`
}
SessionCreateParams is parameters of session.create operation.
type SessionCreateReq ¶
type SessionCreateReq struct {
Agent OptNilString `json:"agent"`
Metadata *SessionCreateReqMetadata `json:"metadata"`
Model OptNilSessionCreateReqModel `json:"model"`
ParentID OptString `json:"parentID"`
Permission PermissionRuleset `json:"permission"`
Title OptString `json:"title"`
WorkspaceID OptNilString `json:"workspaceID"`
}
func (*SessionCreateReq) Decode ¶
func (s *SessionCreateReq) Decode(d *jx.Decoder) error
Decode decodes SessionCreateReq from json.
func (*SessionCreateReq) Encode ¶
func (s *SessionCreateReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionCreateReq) GetAgent ¶
func (s *SessionCreateReq) GetAgent() OptNilString
GetAgent returns the value of Agent.
func (*SessionCreateReq) GetMetadata ¶
func (s *SessionCreateReq) GetMetadata() *SessionCreateReqMetadata
GetMetadata returns the value of Metadata.
func (*SessionCreateReq) GetModel ¶
func (s *SessionCreateReq) GetModel() OptNilSessionCreateReqModel
GetModel returns the value of Model.
func (*SessionCreateReq) GetParentID ¶
func (s *SessionCreateReq) GetParentID() OptString
GetParentID returns the value of ParentID.
func (*SessionCreateReq) GetPermission ¶
func (s *SessionCreateReq) GetPermission() PermissionRuleset
GetPermission returns the value of Permission.
func (*SessionCreateReq) GetTitle ¶
func (s *SessionCreateReq) GetTitle() OptString
GetTitle returns the value of Title.
func (*SessionCreateReq) GetWorkspaceID ¶
func (s *SessionCreateReq) GetWorkspaceID() OptNilString
GetWorkspaceID returns the value of WorkspaceID.
func (*SessionCreateReq) MarshalJSON ¶
func (s *SessionCreateReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionCreateReq) SetAgent ¶
func (s *SessionCreateReq) SetAgent(val OptNilString)
SetAgent sets the value of Agent.
func (*SessionCreateReq) SetMetadata ¶
func (s *SessionCreateReq) SetMetadata(val *SessionCreateReqMetadata)
SetMetadata sets the value of Metadata.
func (*SessionCreateReq) SetModel ¶
func (s *SessionCreateReq) SetModel(val OptNilSessionCreateReqModel)
SetModel sets the value of Model.
func (*SessionCreateReq) SetParentID ¶
func (s *SessionCreateReq) SetParentID(val OptString)
SetParentID sets the value of ParentID.
func (*SessionCreateReq) SetPermission ¶
func (s *SessionCreateReq) SetPermission(val PermissionRuleset)
SetPermission sets the value of Permission.
func (*SessionCreateReq) SetTitle ¶
func (s *SessionCreateReq) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*SessionCreateReq) SetWorkspaceID ¶
func (s *SessionCreateReq) SetWorkspaceID(val OptNilString)
SetWorkspaceID sets the value of WorkspaceID.
func (*SessionCreateReq) UnmarshalJSON ¶
func (s *SessionCreateReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionCreateReq) Validate ¶
func (s *SessionCreateReq) Validate() error
type SessionCreateReqMetadata ¶
type SessionCreateReqMetadata struct{}
func (*SessionCreateReqMetadata) Decode ¶
func (s *SessionCreateReqMetadata) Decode(d *jx.Decoder) error
Decode decodes SessionCreateReqMetadata from json.
func (*SessionCreateReqMetadata) Encode ¶
func (s *SessionCreateReqMetadata) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionCreateReqMetadata) MarshalJSON ¶
func (s *SessionCreateReqMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionCreateReqMetadata) UnmarshalJSON ¶
func (s *SessionCreateReqMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionCreateReqModel ¶
type SessionCreateReqModel struct {
ID string `json:"id"`
ProviderID string `json:"providerID"`
Variant OptNilString `json:"variant"`
}
func (*SessionCreateReqModel) Decode ¶
func (s *SessionCreateReqModel) Decode(d *jx.Decoder) error
Decode decodes SessionCreateReqModel from json.
func (*SessionCreateReqModel) Encode ¶
func (s *SessionCreateReqModel) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionCreateReqModel) GetID ¶
func (s *SessionCreateReqModel) GetID() string
GetID returns the value of ID.
func (*SessionCreateReqModel) GetProviderID ¶
func (s *SessionCreateReqModel) GetProviderID() string
GetProviderID returns the value of ProviderID.
func (*SessionCreateReqModel) GetVariant ¶
func (s *SessionCreateReqModel) GetVariant() OptNilString
GetVariant returns the value of Variant.
func (*SessionCreateReqModel) MarshalJSON ¶
func (s *SessionCreateReqModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionCreateReqModel) SetID ¶
func (s *SessionCreateReqModel) SetID(val string)
SetID sets the value of ID.
func (*SessionCreateReqModel) SetProviderID ¶
func (s *SessionCreateReqModel) SetProviderID(val string)
SetProviderID sets the value of ProviderID.
func (*SessionCreateReqModel) SetVariant ¶
func (s *SessionCreateReqModel) SetVariant(val OptNilString)
SetVariant sets the value of Variant.
func (*SessionCreateReqModel) UnmarshalJSON ¶
func (s *SessionCreateReqModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionCreateRes ¶
type SessionCreateRes interface {
// contains filtered or unexported methods
}
type SessionInputAdmitted ¶
type SessionInputAdmitted struct {
AdmittedSeq int `json:"admittedSeq"`
Delivery SessionInputAdmittedDelivery `json:"delivery"`
ID string `json:"id"`
PromotedSeq OptInt `json:"promotedSeq"`
Prompt Prompt `json:"prompt"`
SessionID string `json:"sessionID"`
TimeCreated float64 `json:"timeCreated"`
}
Ref: #/components/schemas/SessionInputAdmitted
func (*SessionInputAdmitted) Decode ¶
func (s *SessionInputAdmitted) Decode(d *jx.Decoder) error
Decode decodes SessionInputAdmitted from json.
func (*SessionInputAdmitted) Encode ¶
func (s *SessionInputAdmitted) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionInputAdmitted) GetAdmittedSeq ¶
func (s *SessionInputAdmitted) GetAdmittedSeq() int
GetAdmittedSeq returns the value of AdmittedSeq.
func (*SessionInputAdmitted) GetDelivery ¶
func (s *SessionInputAdmitted) GetDelivery() SessionInputAdmittedDelivery
GetDelivery returns the value of Delivery.
func (*SessionInputAdmitted) GetID ¶
func (s *SessionInputAdmitted) GetID() string
GetID returns the value of ID.
func (*SessionInputAdmitted) GetPromotedSeq ¶
func (s *SessionInputAdmitted) GetPromotedSeq() OptInt
GetPromotedSeq returns the value of PromotedSeq.
func (*SessionInputAdmitted) GetPrompt ¶
func (s *SessionInputAdmitted) GetPrompt() Prompt
GetPrompt returns the value of Prompt.
func (*SessionInputAdmitted) GetSessionID ¶
func (s *SessionInputAdmitted) GetSessionID() string
GetSessionID returns the value of SessionID.
func (*SessionInputAdmitted) GetTimeCreated ¶
func (s *SessionInputAdmitted) GetTimeCreated() float64
GetTimeCreated returns the value of TimeCreated.
func (*SessionInputAdmitted) MarshalJSON ¶
func (s *SessionInputAdmitted) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionInputAdmitted) SetAdmittedSeq ¶
func (s *SessionInputAdmitted) SetAdmittedSeq(val int)
SetAdmittedSeq sets the value of AdmittedSeq.
func (*SessionInputAdmitted) SetDelivery ¶
func (s *SessionInputAdmitted) SetDelivery(val SessionInputAdmittedDelivery)
SetDelivery sets the value of Delivery.
func (*SessionInputAdmitted) SetID ¶
func (s *SessionInputAdmitted) SetID(val string)
SetID sets the value of ID.
func (*SessionInputAdmitted) SetPromotedSeq ¶
func (s *SessionInputAdmitted) SetPromotedSeq(val OptInt)
SetPromotedSeq sets the value of PromotedSeq.
func (*SessionInputAdmitted) SetPrompt ¶
func (s *SessionInputAdmitted) SetPrompt(val Prompt)
SetPrompt sets the value of Prompt.
func (*SessionInputAdmitted) SetSessionID ¶
func (s *SessionInputAdmitted) SetSessionID(val string)
SetSessionID sets the value of SessionID.
func (*SessionInputAdmitted) SetTimeCreated ¶
func (s *SessionInputAdmitted) SetTimeCreated(val float64)
SetTimeCreated sets the value of TimeCreated.
func (*SessionInputAdmitted) UnmarshalJSON ¶
func (s *SessionInputAdmitted) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionInputAdmitted) Validate ¶
func (s *SessionInputAdmitted) Validate() error
type SessionInputAdmittedDelivery ¶
type SessionInputAdmittedDelivery string
const ( SessionInputAdmittedDeliverySteer SessionInputAdmittedDelivery = "steer" SessionInputAdmittedDeliveryQueue SessionInputAdmittedDelivery = "queue" )
func (SessionInputAdmittedDelivery) AllValues ¶
func (SessionInputAdmittedDelivery) AllValues() []SessionInputAdmittedDelivery
AllValues returns all SessionInputAdmittedDelivery values.
func (*SessionInputAdmittedDelivery) Decode ¶
func (s *SessionInputAdmittedDelivery) Decode(d *jx.Decoder) error
Decode decodes SessionInputAdmittedDelivery from json.
func (SessionInputAdmittedDelivery) Encode ¶
func (s SessionInputAdmittedDelivery) Encode(e *jx.Encoder)
Encode encodes SessionInputAdmittedDelivery as json.
func (SessionInputAdmittedDelivery) MarshalJSON ¶
func (s SessionInputAdmittedDelivery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SessionInputAdmittedDelivery) MarshalText ¶
func (s SessionInputAdmittedDelivery) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SessionInputAdmittedDelivery) UnmarshalJSON ¶
func (s *SessionInputAdmittedDelivery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionInputAdmittedDelivery) UnmarshalText ¶
func (s *SessionInputAdmittedDelivery) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SessionInputAdmittedDelivery) Validate ¶
func (s SessionInputAdmittedDelivery) Validate() error
type SessionMessage ¶
func (*SessionMessage) Decode ¶
func (s *SessionMessage) Decode(d *jx.Decoder) error
Decode decodes SessionMessage from json.
func (SessionMessage) Encode ¶
func (s SessionMessage) Encode(e *jx.Encoder)
Encode encodes SessionMessage as json.
func (SessionMessage) MarshalJSON ¶
func (s SessionMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessage) UnmarshalJSON ¶
func (s *SessionMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageBadRequestApplicationJSON ¶
func (*SessionMessageBadRequestApplicationJSON) Decode ¶
func (s *SessionMessageBadRequestApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes SessionMessageBadRequestApplicationJSON from json.
func (SessionMessageBadRequestApplicationJSON) Encode ¶
func (s SessionMessageBadRequestApplicationJSON) Encode(e *jx.Encoder)
Encode encodes SessionMessageBadRequestApplicationJSON as json.
func (SessionMessageBadRequestApplicationJSON) MarshalJSON ¶
func (s SessionMessageBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageBadRequestApplicationJSON) UnmarshalJSON ¶
func (s *SessionMessageBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageNotFoundApplicationJSON ¶
func (*SessionMessageNotFoundApplicationJSON) Decode ¶
func (s *SessionMessageNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes SessionMessageNotFoundApplicationJSON from json.
func (SessionMessageNotFoundApplicationJSON) Encode ¶
func (s SessionMessageNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes SessionMessageNotFoundApplicationJSON as json.
func (SessionMessageNotFoundApplicationJSON) MarshalJSON ¶
func (s SessionMessageNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *SessionMessageNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageOK ¶
type SessionMessageOK struct {
Info SessionMessageOKInfo `json:"info"`
AdditionalProps SessionMessageOKAdditional
}
func (*SessionMessageOK) Decode ¶
func (s *SessionMessageOK) Decode(d *jx.Decoder) error
Decode decodes SessionMessageOK from json.
func (*SessionMessageOK) Encode ¶
func (s *SessionMessageOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessageOK) GetAdditionalProps ¶
func (s *SessionMessageOK) GetAdditionalProps() SessionMessageOKAdditional
GetAdditionalProps returns the value of AdditionalProps.
func (*SessionMessageOK) GetInfo ¶
func (s *SessionMessageOK) GetInfo() SessionMessageOKInfo
GetInfo returns the value of Info.
func (*SessionMessageOK) MarshalJSON ¶
func (s *SessionMessageOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageOK) SetAdditionalProps ¶
func (s *SessionMessageOK) SetAdditionalProps(val SessionMessageOKAdditional)
SetAdditionalProps sets the value of AdditionalProps.
func (*SessionMessageOK) SetInfo ¶
func (s *SessionMessageOK) SetInfo(val SessionMessageOKInfo)
SetInfo sets the value of Info.
func (*SessionMessageOK) UnmarshalJSON ¶
func (s *SessionMessageOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageOKAdditional ¶
func (*SessionMessageOKAdditional) Decode ¶
func (s *SessionMessageOKAdditional) Decode(d *jx.Decoder) error
Decode decodes SessionMessageOKAdditional from json.
func (SessionMessageOKAdditional) Encode ¶
func (s SessionMessageOKAdditional) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SessionMessageOKAdditional) MarshalJSON ¶
func (s SessionMessageOKAdditional) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageOKAdditional) UnmarshalJSON ¶
func (s *SessionMessageOKAdditional) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageOKInfo ¶
type SessionMessageOKInfo struct {
ID string `json:"id"`
Role string `json:"role"`
AdditionalProps SessionMessageOKInfoAdditional
}
func (*SessionMessageOKInfo) Decode ¶
func (s *SessionMessageOKInfo) Decode(d *jx.Decoder) error
Decode decodes SessionMessageOKInfo from json.
func (*SessionMessageOKInfo) Encode ¶
func (s *SessionMessageOKInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessageOKInfo) GetAdditionalProps ¶
func (s *SessionMessageOKInfo) GetAdditionalProps() SessionMessageOKInfoAdditional
GetAdditionalProps returns the value of AdditionalProps.
func (*SessionMessageOKInfo) GetID ¶
func (s *SessionMessageOKInfo) GetID() string
GetID returns the value of ID.
func (*SessionMessageOKInfo) GetRole ¶
func (s *SessionMessageOKInfo) GetRole() string
GetRole returns the value of Role.
func (*SessionMessageOKInfo) MarshalJSON ¶
func (s *SessionMessageOKInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageOKInfo) SetAdditionalProps ¶
func (s *SessionMessageOKInfo) SetAdditionalProps(val SessionMessageOKInfoAdditional)
SetAdditionalProps sets the value of AdditionalProps.
func (*SessionMessageOKInfo) SetID ¶
func (s *SessionMessageOKInfo) SetID(val string)
SetID sets the value of ID.
func (*SessionMessageOKInfo) SetRole ¶
func (s *SessionMessageOKInfo) SetRole(val string)
SetRole sets the value of Role.
func (*SessionMessageOKInfo) UnmarshalJSON ¶
func (s *SessionMessageOKInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageOKInfoAdditional ¶
func (*SessionMessageOKInfoAdditional) Decode ¶
func (s *SessionMessageOKInfoAdditional) Decode(d *jx.Decoder) error
Decode decodes SessionMessageOKInfoAdditional from json.
func (SessionMessageOKInfoAdditional) Encode ¶
func (s SessionMessageOKInfoAdditional) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SessionMessageOKInfoAdditional) MarshalJSON ¶
func (s SessionMessageOKInfoAdditional) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageOKInfoAdditional) UnmarshalJSON ¶
func (s *SessionMessageOKInfoAdditional) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageParams ¶
type SessionMessageParams struct {
SessionID string
Directory OptString `json:",omitempty,omitzero"`
}
SessionMessageParams is parameters of session.message operation.
type SessionMessageReq ¶
type SessionMessageReq struct {
Parts []SessionMessageReqPartsItem `json:"parts"`
Agent OptString `json:"agent"`
MessageID OptString `json:"messageID"`
}
func (*SessionMessageReq) Decode ¶
func (s *SessionMessageReq) Decode(d *jx.Decoder) error
Decode decodes SessionMessageReq from json.
func (*SessionMessageReq) Encode ¶
func (s *SessionMessageReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessageReq) GetAgent ¶
func (s *SessionMessageReq) GetAgent() OptString
GetAgent returns the value of Agent.
func (*SessionMessageReq) GetMessageID ¶
func (s *SessionMessageReq) GetMessageID() OptString
GetMessageID returns the value of MessageID.
func (*SessionMessageReq) GetParts ¶
func (s *SessionMessageReq) GetParts() []SessionMessageReqPartsItem
GetParts returns the value of Parts.
func (*SessionMessageReq) MarshalJSON ¶
func (s *SessionMessageReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageReq) SetAgent ¶
func (s *SessionMessageReq) SetAgent(val OptString)
SetAgent sets the value of Agent.
func (*SessionMessageReq) SetMessageID ¶
func (s *SessionMessageReq) SetMessageID(val OptString)
SetMessageID sets the value of MessageID.
func (*SessionMessageReq) SetParts ¶
func (s *SessionMessageReq) SetParts(val []SessionMessageReqPartsItem)
SetParts sets the value of Parts.
func (*SessionMessageReq) UnmarshalJSON ¶
func (s *SessionMessageReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionMessageReq) Validate ¶
func (s *SessionMessageReq) Validate() error
type SessionMessageReqPartsItem ¶
type SessionMessageReqPartsItem struct {
Type string `json:"type"`
Text OptString `json:"text"`
Name OptString `json:"name"`
ID OptString `json:"id"`
AdditionalProps SessionMessageReqPartsItemAdditional
}
func (*SessionMessageReqPartsItem) Decode ¶
func (s *SessionMessageReqPartsItem) Decode(d *jx.Decoder) error
Decode decodes SessionMessageReqPartsItem from json.
func (*SessionMessageReqPartsItem) Encode ¶
func (s *SessionMessageReqPartsItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessageReqPartsItem) GetAdditionalProps ¶
func (s *SessionMessageReqPartsItem) GetAdditionalProps() SessionMessageReqPartsItemAdditional
GetAdditionalProps returns the value of AdditionalProps.
func (*SessionMessageReqPartsItem) GetID ¶
func (s *SessionMessageReqPartsItem) GetID() OptString
GetID returns the value of ID.
func (*SessionMessageReqPartsItem) GetName ¶
func (s *SessionMessageReqPartsItem) GetName() OptString
GetName returns the value of Name.
func (*SessionMessageReqPartsItem) GetText ¶
func (s *SessionMessageReqPartsItem) GetText() OptString
GetText returns the value of Text.
func (*SessionMessageReqPartsItem) GetType ¶
func (s *SessionMessageReqPartsItem) GetType() string
GetType returns the value of Type.
func (*SessionMessageReqPartsItem) MarshalJSON ¶
func (s *SessionMessageReqPartsItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageReqPartsItem) SetAdditionalProps ¶
func (s *SessionMessageReqPartsItem) SetAdditionalProps(val SessionMessageReqPartsItemAdditional)
SetAdditionalProps sets the value of AdditionalProps.
func (*SessionMessageReqPartsItem) SetID ¶
func (s *SessionMessageReqPartsItem) SetID(val OptString)
SetID sets the value of ID.
func (*SessionMessageReqPartsItem) SetName ¶
func (s *SessionMessageReqPartsItem) SetName(val OptString)
SetName sets the value of Name.
func (*SessionMessageReqPartsItem) SetText ¶
func (s *SessionMessageReqPartsItem) SetText(val OptString)
SetText sets the value of Text.
func (*SessionMessageReqPartsItem) SetType ¶
func (s *SessionMessageReqPartsItem) SetType(val string)
SetType sets the value of Type.
func (*SessionMessageReqPartsItem) UnmarshalJSON ¶
func (s *SessionMessageReqPartsItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageReqPartsItemAdditional ¶
func (*SessionMessageReqPartsItemAdditional) Decode ¶
func (s *SessionMessageReqPartsItemAdditional) Decode(d *jx.Decoder) error
Decode decodes SessionMessageReqPartsItemAdditional from json.
func (SessionMessageReqPartsItemAdditional) Encode ¶
func (s SessionMessageReqPartsItemAdditional) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SessionMessageReqPartsItemAdditional) MarshalJSON ¶
func (s SessionMessageReqPartsItemAdditional) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessageReqPartsItemAdditional) UnmarshalJSON ¶
func (s *SessionMessageReqPartsItemAdditional) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessageRes ¶
type SessionMessageRes interface {
// contains filtered or unexported methods
}
type SessionMessagesBadRequestApplicationJSON ¶
func (*SessionMessagesBadRequestApplicationJSON) Decode ¶
func (s *SessionMessagesBadRequestApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesBadRequestApplicationJSON from json.
func (SessionMessagesBadRequestApplicationJSON) Encode ¶
func (s SessionMessagesBadRequestApplicationJSON) Encode(e *jx.Encoder)
Encode encodes SessionMessagesBadRequestApplicationJSON as json.
func (SessionMessagesBadRequestApplicationJSON) MarshalJSON ¶
func (s SessionMessagesBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesBadRequestApplicationJSON) UnmarshalJSON ¶
func (s *SessionMessagesBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessagesNotFoundApplicationJSON ¶
func (*SessionMessagesNotFoundApplicationJSON) Decode ¶
func (s *SessionMessagesNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesNotFoundApplicationJSON from json.
func (SessionMessagesNotFoundApplicationJSON) Encode ¶
func (s SessionMessagesNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes SessionMessagesNotFoundApplicationJSON as json.
func (SessionMessagesNotFoundApplicationJSON) MarshalJSON ¶
func (s SessionMessagesNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *SessionMessagesNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessagesOKApplicationJSON ¶
type SessionMessagesOKApplicationJSON []SessionMessagesOKItem
func (*SessionMessagesOKApplicationJSON) Decode ¶
func (s *SessionMessagesOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesOKApplicationJSON from json.
func (SessionMessagesOKApplicationJSON) Encode ¶
func (s SessionMessagesOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes SessionMessagesOKApplicationJSON as json.
func (SessionMessagesOKApplicationJSON) MarshalJSON ¶
func (s SessionMessagesOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesOKApplicationJSON) UnmarshalJSON ¶
func (s *SessionMessagesOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SessionMessagesOKApplicationJSON) Validate ¶
func (s SessionMessagesOKApplicationJSON) Validate() error
type SessionMessagesOKItem ¶
type SessionMessagesOKItem struct {
Info SessionMessagesOKItemInfo `json:"info"`
Parts []SessionMessagesOKItemPartsItem `json:"parts"`
AdditionalProps SessionMessagesOKItemAdditional
}
func (*SessionMessagesOKItem) Decode ¶
func (s *SessionMessagesOKItem) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesOKItem from json.
func (*SessionMessagesOKItem) Encode ¶
func (s *SessionMessagesOKItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessagesOKItem) GetAdditionalProps ¶
func (s *SessionMessagesOKItem) GetAdditionalProps() SessionMessagesOKItemAdditional
GetAdditionalProps returns the value of AdditionalProps.
func (*SessionMessagesOKItem) GetInfo ¶
func (s *SessionMessagesOKItem) GetInfo() SessionMessagesOKItemInfo
GetInfo returns the value of Info.
func (*SessionMessagesOKItem) GetParts ¶
func (s *SessionMessagesOKItem) GetParts() []SessionMessagesOKItemPartsItem
GetParts returns the value of Parts.
func (*SessionMessagesOKItem) MarshalJSON ¶
func (s *SessionMessagesOKItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesOKItem) SetAdditionalProps ¶
func (s *SessionMessagesOKItem) SetAdditionalProps(val SessionMessagesOKItemAdditional)
SetAdditionalProps sets the value of AdditionalProps.
func (*SessionMessagesOKItem) SetInfo ¶
func (s *SessionMessagesOKItem) SetInfo(val SessionMessagesOKItemInfo)
SetInfo sets the value of Info.
func (*SessionMessagesOKItem) SetParts ¶
func (s *SessionMessagesOKItem) SetParts(val []SessionMessagesOKItemPartsItem)
SetParts sets the value of Parts.
func (*SessionMessagesOKItem) UnmarshalJSON ¶
func (s *SessionMessagesOKItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionMessagesOKItem) Validate ¶
func (s *SessionMessagesOKItem) Validate() error
type SessionMessagesOKItemAdditional ¶
func (*SessionMessagesOKItemAdditional) Decode ¶
func (s *SessionMessagesOKItemAdditional) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesOKItemAdditional from json.
func (SessionMessagesOKItemAdditional) Encode ¶
func (s SessionMessagesOKItemAdditional) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SessionMessagesOKItemAdditional) MarshalJSON ¶
func (s SessionMessagesOKItemAdditional) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesOKItemAdditional) UnmarshalJSON ¶
func (s *SessionMessagesOKItemAdditional) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessagesOKItemInfo ¶
type SessionMessagesOKItemInfo struct {
ID string `json:"id"`
Role string `json:"role"`
AdditionalProps SessionMessagesOKItemInfoAdditional
}
func (*SessionMessagesOKItemInfo) Decode ¶
func (s *SessionMessagesOKItemInfo) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesOKItemInfo from json.
func (*SessionMessagesOKItemInfo) Encode ¶
func (s *SessionMessagesOKItemInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessagesOKItemInfo) GetAdditionalProps ¶
func (s *SessionMessagesOKItemInfo) GetAdditionalProps() SessionMessagesOKItemInfoAdditional
GetAdditionalProps returns the value of AdditionalProps.
func (*SessionMessagesOKItemInfo) GetID ¶
func (s *SessionMessagesOKItemInfo) GetID() string
GetID returns the value of ID.
func (*SessionMessagesOKItemInfo) GetRole ¶
func (s *SessionMessagesOKItemInfo) GetRole() string
GetRole returns the value of Role.
func (*SessionMessagesOKItemInfo) MarshalJSON ¶
func (s *SessionMessagesOKItemInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesOKItemInfo) SetAdditionalProps ¶
func (s *SessionMessagesOKItemInfo) SetAdditionalProps(val SessionMessagesOKItemInfoAdditional)
SetAdditionalProps sets the value of AdditionalProps.
func (*SessionMessagesOKItemInfo) SetID ¶
func (s *SessionMessagesOKItemInfo) SetID(val string)
SetID sets the value of ID.
func (*SessionMessagesOKItemInfo) SetRole ¶
func (s *SessionMessagesOKItemInfo) SetRole(val string)
SetRole sets the value of Role.
func (*SessionMessagesOKItemInfo) UnmarshalJSON ¶
func (s *SessionMessagesOKItemInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessagesOKItemInfoAdditional ¶
func (*SessionMessagesOKItemInfoAdditional) Decode ¶
func (s *SessionMessagesOKItemInfoAdditional) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesOKItemInfoAdditional from json.
func (SessionMessagesOKItemInfoAdditional) Encode ¶
func (s SessionMessagesOKItemInfoAdditional) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SessionMessagesOKItemInfoAdditional) MarshalJSON ¶
func (s SessionMessagesOKItemInfoAdditional) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesOKItemInfoAdditional) UnmarshalJSON ¶
func (s *SessionMessagesOKItemInfoAdditional) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessagesOKItemPartsItem ¶
func (*SessionMessagesOKItemPartsItem) Decode ¶
func (s *SessionMessagesOKItemPartsItem) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesOKItemPartsItem from json.
func (SessionMessagesOKItemPartsItem) Encode ¶
func (s SessionMessagesOKItemPartsItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SessionMessagesOKItemPartsItem) MarshalJSON ¶
func (s SessionMessagesOKItemPartsItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesOKItemPartsItem) UnmarshalJSON ¶
func (s *SessionMessagesOKItemPartsItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMessagesParams ¶
type SessionMessagesParams struct {
SessionID string
Directory OptString `json:",omitempty,omitzero"`
Before OptString `json:",omitempty,omitzero"`
Limit OptInt `json:",omitempty,omitzero"`
}
SessionMessagesParams is parameters of session.messages operation.
type SessionMessagesRes ¶
type SessionMessagesRes interface {
// contains filtered or unexported methods
}
type SessionMessagesResponse ¶
type SessionMessagesResponse struct {
Cursor SessionMessagesResponseCursor `json:"cursor"`
Data []SessionMessage `json:"data"`
}
Ref: #/components/schemas/SessionMessagesResponse
func (*SessionMessagesResponse) Decode ¶
func (s *SessionMessagesResponse) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesResponse from json.
func (*SessionMessagesResponse) Encode ¶
func (s *SessionMessagesResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessagesResponse) GetCursor ¶
func (s *SessionMessagesResponse) GetCursor() SessionMessagesResponseCursor
GetCursor returns the value of Cursor.
func (*SessionMessagesResponse) GetData ¶
func (s *SessionMessagesResponse) GetData() []SessionMessage
GetData returns the value of Data.
func (*SessionMessagesResponse) MarshalJSON ¶
func (s *SessionMessagesResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesResponse) SetCursor ¶
func (s *SessionMessagesResponse) SetCursor(val SessionMessagesResponseCursor)
SetCursor sets the value of Cursor.
func (*SessionMessagesResponse) SetData ¶
func (s *SessionMessagesResponse) SetData(val []SessionMessage)
SetData sets the value of Data.
func (*SessionMessagesResponse) UnmarshalJSON ¶
func (s *SessionMessagesResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionMessagesResponse) Validate ¶
func (s *SessionMessagesResponse) Validate() error
type SessionMessagesResponseCursor ¶
type SessionMessagesResponseCursor struct {
Next OptString `json:"next"`
Previous OptString `json:"previous"`
}
func (*SessionMessagesResponseCursor) Decode ¶
func (s *SessionMessagesResponseCursor) Decode(d *jx.Decoder) error
Decode decodes SessionMessagesResponseCursor from json.
func (*SessionMessagesResponseCursor) Encode ¶
func (s *SessionMessagesResponseCursor) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMessagesResponseCursor) GetNext ¶
func (s *SessionMessagesResponseCursor) GetNext() OptString
GetNext returns the value of Next.
func (*SessionMessagesResponseCursor) GetPrevious ¶
func (s *SessionMessagesResponseCursor) GetPrevious() OptString
GetPrevious returns the value of Previous.
func (*SessionMessagesResponseCursor) MarshalJSON ¶
func (s *SessionMessagesResponseCursor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMessagesResponseCursor) SetNext ¶
func (s *SessionMessagesResponseCursor) SetNext(val OptString)
SetNext sets the value of Next.
func (*SessionMessagesResponseCursor) SetPrevious ¶
func (s *SessionMessagesResponseCursor) SetPrevious(val OptString)
SetPrevious sets the value of Previous.
func (*SessionMessagesResponseCursor) UnmarshalJSON ¶
func (s *SessionMessagesResponseCursor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionMetadata ¶
type SessionMetadata struct{}
func (*SessionMetadata) Decode ¶
func (s *SessionMetadata) Decode(d *jx.Decoder) error
Decode decodes SessionMetadata from json.
func (*SessionMetadata) Encode ¶
func (s *SessionMetadata) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionMetadata) MarshalJSON ¶
func (s *SessionMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionMetadata) UnmarshalJSON ¶
func (s *SessionMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionModel ¶
type SessionModel struct {
ID string `json:"id"`
ProviderID string `json:"providerID"`
Variant OptNilString `json:"variant"`
}
func (*SessionModel) Decode ¶
func (s *SessionModel) Decode(d *jx.Decoder) error
Decode decodes SessionModel from json.
func (*SessionModel) Encode ¶
func (s *SessionModel) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionModel) GetProviderID ¶
func (s *SessionModel) GetProviderID() string
GetProviderID returns the value of ProviderID.
func (*SessionModel) GetVariant ¶
func (s *SessionModel) GetVariant() OptNilString
GetVariant returns the value of Variant.
func (*SessionModel) MarshalJSON ¶
func (s *SessionModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionModel) SetProviderID ¶
func (s *SessionModel) SetProviderID(val string)
SetProviderID sets the value of ProviderID.
func (*SessionModel) SetVariant ¶
func (s *SessionModel) SetVariant(val OptNilString)
SetVariant sets the value of Variant.
func (*SessionModel) UnmarshalJSON ¶
func (s *SessionModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionRevert ¶
type SessionRevert struct {
Diff OptString `json:"diff"`
MessageID string `json:"messageID"`
PartID OptString `json:"partID"`
Snapshot OptString `json:"snapshot"`
}
func (*SessionRevert) Decode ¶
func (s *SessionRevert) Decode(d *jx.Decoder) error
Decode decodes SessionRevert from json.
func (*SessionRevert) Encode ¶
func (s *SessionRevert) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionRevert) GetDiff ¶
func (s *SessionRevert) GetDiff() OptString
GetDiff returns the value of Diff.
func (*SessionRevert) GetMessageID ¶
func (s *SessionRevert) GetMessageID() string
GetMessageID returns the value of MessageID.
func (*SessionRevert) GetPartID ¶
func (s *SessionRevert) GetPartID() OptString
GetPartID returns the value of PartID.
func (*SessionRevert) GetSnapshot ¶
func (s *SessionRevert) GetSnapshot() OptString
GetSnapshot returns the value of Snapshot.
func (*SessionRevert) MarshalJSON ¶
func (s *SessionRevert) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionRevert) SetDiff ¶
func (s *SessionRevert) SetDiff(val OptString)
SetDiff sets the value of Diff.
func (*SessionRevert) SetMessageID ¶
func (s *SessionRevert) SetMessageID(val string)
SetMessageID sets the value of MessageID.
func (*SessionRevert) SetPartID ¶
func (s *SessionRevert) SetPartID(val OptString)
SetPartID sets the value of PartID.
func (*SessionRevert) SetSnapshot ¶
func (s *SessionRevert) SetSnapshot(val OptString)
SetSnapshot sets the value of Snapshot.
func (*SessionRevert) UnmarshalJSON ¶
func (s *SessionRevert) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionRevert) Validate ¶
func (s *SessionRevert) Validate() error
type SessionShare ¶
type SessionShare struct {
}
func (*SessionShare) Decode ¶
func (s *SessionShare) Decode(d *jx.Decoder) error
Decode decodes SessionShare from json.
func (*SessionShare) Encode ¶
func (s *SessionShare) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionShare) GetURL ¶
func (s *SessionShare) GetURL() string
GetURL returns the value of URL.
func (*SessionShare) MarshalJSON ¶
func (s *SessionShare) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionShare) SetURL ¶
func (s *SessionShare) SetURL(val string)
SetURL sets the value of URL.
func (*SessionShare) UnmarshalJSON ¶
func (s *SessionShare) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionSummary ¶
type SessionSummary struct {
Additions float64 `json:"additions"`
Deletions float64 `json:"deletions"`
Diffs []SnapshotFileDiff `json:"diffs"`
Files float64 `json:"files"`
}
func (*SessionSummary) Decode ¶
func (s *SessionSummary) Decode(d *jx.Decoder) error
Decode decodes SessionSummary from json.
func (*SessionSummary) Encode ¶
func (s *SessionSummary) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionSummary) GetAdditions ¶
func (s *SessionSummary) GetAdditions() float64
GetAdditions returns the value of Additions.
func (*SessionSummary) GetDeletions ¶
func (s *SessionSummary) GetDeletions() float64
GetDeletions returns the value of Deletions.
func (*SessionSummary) GetDiffs ¶
func (s *SessionSummary) GetDiffs() []SnapshotFileDiff
GetDiffs returns the value of Diffs.
func (*SessionSummary) GetFiles ¶
func (s *SessionSummary) GetFiles() float64
GetFiles returns the value of Files.
func (*SessionSummary) MarshalJSON ¶
func (s *SessionSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionSummary) SetAdditions ¶
func (s *SessionSummary) SetAdditions(val float64)
SetAdditions sets the value of Additions.
func (*SessionSummary) SetDeletions ¶
func (s *SessionSummary) SetDeletions(val float64)
SetDeletions sets the value of Deletions.
func (*SessionSummary) SetDiffs ¶
func (s *SessionSummary) SetDiffs(val []SnapshotFileDiff)
SetDiffs sets the value of Diffs.
func (*SessionSummary) SetFiles ¶
func (s *SessionSummary) SetFiles(val float64)
SetFiles sets the value of Files.
func (*SessionSummary) UnmarshalJSON ¶
func (s *SessionSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionSummary) Validate ¶
func (s *SessionSummary) Validate() error
type SessionTime ¶
type SessionTime struct {
Archived OptNilFloat64 `json:"archived"`
Compacting OptInt `json:"compacting"`
Created int `json:"created"`
Updated int `json:"updated"`
}
func (*SessionTime) Decode ¶
func (s *SessionTime) Decode(d *jx.Decoder) error
Decode decodes SessionTime from json.
func (*SessionTime) Encode ¶
func (s *SessionTime) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionTime) GetArchived ¶
func (s *SessionTime) GetArchived() OptNilFloat64
GetArchived returns the value of Archived.
func (*SessionTime) GetCompacting ¶
func (s *SessionTime) GetCompacting() OptInt
GetCompacting returns the value of Compacting.
func (*SessionTime) GetCreated ¶
func (s *SessionTime) GetCreated() int
GetCreated returns the value of Created.
func (*SessionTime) GetUpdated ¶
func (s *SessionTime) GetUpdated() int
GetUpdated returns the value of Updated.
func (*SessionTime) MarshalJSON ¶
func (s *SessionTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionTime) SetArchived ¶
func (s *SessionTime) SetArchived(val OptNilFloat64)
SetArchived sets the value of Archived.
func (*SessionTime) SetCompacting ¶
func (s *SessionTime) SetCompacting(val OptInt)
SetCompacting sets the value of Compacting.
func (*SessionTime) SetCreated ¶
func (s *SessionTime) SetCreated(val int)
SetCreated sets the value of Created.
func (*SessionTime) SetUpdated ¶
func (s *SessionTime) SetUpdated(val int)
SetUpdated sets the value of Updated.
func (*SessionTime) UnmarshalJSON ¶
func (s *SessionTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionTime) Validate ¶
func (s *SessionTime) Validate() error
type SessionTokens ¶
type SessionTokens struct {
Cache SessionTokensCache `json:"cache"`
Input NilFloat64 `json:"input"`
Output float64 `json:"output"`
Reasoning float64 `json:"reasoning"`
}
func (*SessionTokens) Decode ¶
func (s *SessionTokens) Decode(d *jx.Decoder) error
Decode decodes SessionTokens from json.
func (*SessionTokens) Encode ¶
func (s *SessionTokens) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionTokens) GetCache ¶
func (s *SessionTokens) GetCache() SessionTokensCache
GetCache returns the value of Cache.
func (*SessionTokens) GetInput ¶
func (s *SessionTokens) GetInput() NilFloat64
GetInput returns the value of Input.
func (*SessionTokens) GetOutput ¶
func (s *SessionTokens) GetOutput() float64
GetOutput returns the value of Output.
func (*SessionTokens) GetReasoning ¶
func (s *SessionTokens) GetReasoning() float64
GetReasoning returns the value of Reasoning.
func (*SessionTokens) MarshalJSON ¶
func (s *SessionTokens) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionTokens) SetCache ¶
func (s *SessionTokens) SetCache(val SessionTokensCache)
SetCache sets the value of Cache.
func (*SessionTokens) SetInput ¶
func (s *SessionTokens) SetInput(val NilFloat64)
SetInput sets the value of Input.
func (*SessionTokens) SetOutput ¶
func (s *SessionTokens) SetOutput(val float64)
SetOutput sets the value of Output.
func (*SessionTokens) SetReasoning ¶
func (s *SessionTokens) SetReasoning(val float64)
SetReasoning sets the value of Reasoning.
func (*SessionTokens) UnmarshalJSON ¶
func (s *SessionTokens) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionTokens) Validate ¶
func (s *SessionTokens) Validate() error
type SessionTokensCache ¶
func (*SessionTokensCache) Decode ¶
func (s *SessionTokensCache) Decode(d *jx.Decoder) error
Decode decodes SessionTokensCache from json.
func (*SessionTokensCache) Encode ¶
func (s *SessionTokensCache) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionTokensCache) GetRead ¶
func (s *SessionTokensCache) GetRead() float64
GetRead returns the value of Read.
func (*SessionTokensCache) GetWrite ¶
func (s *SessionTokensCache) GetWrite() float64
GetWrite returns the value of Write.
func (*SessionTokensCache) MarshalJSON ¶
func (s *SessionTokensCache) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionTokensCache) SetRead ¶
func (s *SessionTokensCache) SetRead(val float64)
SetRead sets the value of Read.
func (*SessionTokensCache) SetWrite ¶
func (s *SessionTokensCache) SetWrite(val float64)
SetWrite sets the value of Write.
func (*SessionTokensCache) UnmarshalJSON ¶
func (s *SessionTokensCache) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionTokensCache) Validate ¶
func (s *SessionTokensCache) Validate() error
type SessionV2Info ¶
type SessionV2Info struct {
Agent OptNilString `json:"agent"`
Cost float64 `json:"cost"`
ID string `json:"id"`
Location LocationRef `json:"location"`
Model OptNilSessionV2InfoModel `json:"model"`
ParentID OptString `json:"parentID"`
ProjectID string `json:"projectID"`
Subpath OptNilString `json:"subpath"`
Time SessionV2InfoTime `json:"time"`
Title string `json:"title"`
Tokens SessionV2InfoTokens `json:"tokens"`
}
Ref: #/components/schemas/SessionV2Info
func (*SessionV2Info) Decode ¶
func (s *SessionV2Info) Decode(d *jx.Decoder) error
Decode decodes SessionV2Info from json.
func (*SessionV2Info) Encode ¶
func (s *SessionV2Info) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionV2Info) GetAgent ¶
func (s *SessionV2Info) GetAgent() OptNilString
GetAgent returns the value of Agent.
func (*SessionV2Info) GetCost ¶
func (s *SessionV2Info) GetCost() float64
GetCost returns the value of Cost.
func (*SessionV2Info) GetLocation ¶
func (s *SessionV2Info) GetLocation() LocationRef
GetLocation returns the value of Location.
func (*SessionV2Info) GetModel ¶
func (s *SessionV2Info) GetModel() OptNilSessionV2InfoModel
GetModel returns the value of Model.
func (*SessionV2Info) GetParentID ¶
func (s *SessionV2Info) GetParentID() OptString
GetParentID returns the value of ParentID.
func (*SessionV2Info) GetProjectID ¶
func (s *SessionV2Info) GetProjectID() string
GetProjectID returns the value of ProjectID.
func (*SessionV2Info) GetSubpath ¶
func (s *SessionV2Info) GetSubpath() OptNilString
GetSubpath returns the value of Subpath.
func (*SessionV2Info) GetTime ¶
func (s *SessionV2Info) GetTime() SessionV2InfoTime
GetTime returns the value of Time.
func (*SessionV2Info) GetTitle ¶
func (s *SessionV2Info) GetTitle() string
GetTitle returns the value of Title.
func (*SessionV2Info) GetTokens ¶
func (s *SessionV2Info) GetTokens() SessionV2InfoTokens
GetTokens returns the value of Tokens.
func (*SessionV2Info) MarshalJSON ¶
func (s *SessionV2Info) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionV2Info) SetAgent ¶
func (s *SessionV2Info) SetAgent(val OptNilString)
SetAgent sets the value of Agent.
func (*SessionV2Info) SetCost ¶
func (s *SessionV2Info) SetCost(val float64)
SetCost sets the value of Cost.
func (*SessionV2Info) SetLocation ¶
func (s *SessionV2Info) SetLocation(val LocationRef)
SetLocation sets the value of Location.
func (*SessionV2Info) SetModel ¶
func (s *SessionV2Info) SetModel(val OptNilSessionV2InfoModel)
SetModel sets the value of Model.
func (*SessionV2Info) SetParentID ¶
func (s *SessionV2Info) SetParentID(val OptString)
SetParentID sets the value of ParentID.
func (*SessionV2Info) SetProjectID ¶
func (s *SessionV2Info) SetProjectID(val string)
SetProjectID sets the value of ProjectID.
func (*SessionV2Info) SetSubpath ¶
func (s *SessionV2Info) SetSubpath(val OptNilString)
SetSubpath sets the value of Subpath.
func (*SessionV2Info) SetTime ¶
func (s *SessionV2Info) SetTime(val SessionV2InfoTime)
SetTime sets the value of Time.
func (*SessionV2Info) SetTitle ¶
func (s *SessionV2Info) SetTitle(val string)
SetTitle sets the value of Title.
func (*SessionV2Info) SetTokens ¶
func (s *SessionV2Info) SetTokens(val SessionV2InfoTokens)
SetTokens sets the value of Tokens.
func (*SessionV2Info) UnmarshalJSON ¶
func (s *SessionV2Info) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionV2Info) Validate ¶
func (s *SessionV2Info) Validate() error
type SessionV2InfoModel ¶
type SessionV2InfoModel struct {
ID string `json:"id"`
ProviderID string `json:"providerID"`
Variant OptNilString `json:"variant"`
}
func (*SessionV2InfoModel) Decode ¶
func (s *SessionV2InfoModel) Decode(d *jx.Decoder) error
Decode decodes SessionV2InfoModel from json.
func (*SessionV2InfoModel) Encode ¶
func (s *SessionV2InfoModel) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionV2InfoModel) GetID ¶
func (s *SessionV2InfoModel) GetID() string
GetID returns the value of ID.
func (*SessionV2InfoModel) GetProviderID ¶
func (s *SessionV2InfoModel) GetProviderID() string
GetProviderID returns the value of ProviderID.
func (*SessionV2InfoModel) GetVariant ¶
func (s *SessionV2InfoModel) GetVariant() OptNilString
GetVariant returns the value of Variant.
func (*SessionV2InfoModel) MarshalJSON ¶
func (s *SessionV2InfoModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionV2InfoModel) SetID ¶
func (s *SessionV2InfoModel) SetID(val string)
SetID sets the value of ID.
func (*SessionV2InfoModel) SetProviderID ¶
func (s *SessionV2InfoModel) SetProviderID(val string)
SetProviderID sets the value of ProviderID.
func (*SessionV2InfoModel) SetVariant ¶
func (s *SessionV2InfoModel) SetVariant(val OptNilString)
SetVariant sets the value of Variant.
func (*SessionV2InfoModel) UnmarshalJSON ¶
func (s *SessionV2InfoModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionV2InfoTime ¶
type SessionV2InfoTime struct {
Archived OptNilFloat64 `json:"archived"`
Created NilFloat64 `json:"created"`
Updated NilFloat64 `json:"updated"`
}
func (*SessionV2InfoTime) Decode ¶
func (s *SessionV2InfoTime) Decode(d *jx.Decoder) error
Decode decodes SessionV2InfoTime from json.
func (*SessionV2InfoTime) Encode ¶
func (s *SessionV2InfoTime) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionV2InfoTime) GetArchived ¶
func (s *SessionV2InfoTime) GetArchived() OptNilFloat64
GetArchived returns the value of Archived.
func (*SessionV2InfoTime) GetCreated ¶
func (s *SessionV2InfoTime) GetCreated() NilFloat64
GetCreated returns the value of Created.
func (*SessionV2InfoTime) GetUpdated ¶
func (s *SessionV2InfoTime) GetUpdated() NilFloat64
GetUpdated returns the value of Updated.
func (*SessionV2InfoTime) MarshalJSON ¶
func (s *SessionV2InfoTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionV2InfoTime) SetArchived ¶
func (s *SessionV2InfoTime) SetArchived(val OptNilFloat64)
SetArchived sets the value of Archived.
func (*SessionV2InfoTime) SetCreated ¶
func (s *SessionV2InfoTime) SetCreated(val NilFloat64)
SetCreated sets the value of Created.
func (*SessionV2InfoTime) SetUpdated ¶
func (s *SessionV2InfoTime) SetUpdated(val NilFloat64)
SetUpdated sets the value of Updated.
func (*SessionV2InfoTime) UnmarshalJSON ¶
func (s *SessionV2InfoTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionV2InfoTime) Validate ¶
func (s *SessionV2InfoTime) Validate() error
type SessionV2InfoTokens ¶
type SessionV2InfoTokens struct {
Cache SessionV2InfoTokensCache `json:"cache"`
Input NilFloat64 `json:"input"`
Output float64 `json:"output"`
Reasoning float64 `json:"reasoning"`
}
func (*SessionV2InfoTokens) Decode ¶
func (s *SessionV2InfoTokens) Decode(d *jx.Decoder) error
Decode decodes SessionV2InfoTokens from json.
func (*SessionV2InfoTokens) Encode ¶
func (s *SessionV2InfoTokens) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionV2InfoTokens) GetCache ¶
func (s *SessionV2InfoTokens) GetCache() SessionV2InfoTokensCache
GetCache returns the value of Cache.
func (*SessionV2InfoTokens) GetInput ¶
func (s *SessionV2InfoTokens) GetInput() NilFloat64
GetInput returns the value of Input.
func (*SessionV2InfoTokens) GetOutput ¶
func (s *SessionV2InfoTokens) GetOutput() float64
GetOutput returns the value of Output.
func (*SessionV2InfoTokens) GetReasoning ¶
func (s *SessionV2InfoTokens) GetReasoning() float64
GetReasoning returns the value of Reasoning.
func (*SessionV2InfoTokens) MarshalJSON ¶
func (s *SessionV2InfoTokens) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionV2InfoTokens) SetCache ¶
func (s *SessionV2InfoTokens) SetCache(val SessionV2InfoTokensCache)
SetCache sets the value of Cache.
func (*SessionV2InfoTokens) SetInput ¶
func (s *SessionV2InfoTokens) SetInput(val NilFloat64)
SetInput sets the value of Input.
func (*SessionV2InfoTokens) SetOutput ¶
func (s *SessionV2InfoTokens) SetOutput(val float64)
SetOutput sets the value of Output.
func (*SessionV2InfoTokens) SetReasoning ¶
func (s *SessionV2InfoTokens) SetReasoning(val float64)
SetReasoning sets the value of Reasoning.
func (*SessionV2InfoTokens) UnmarshalJSON ¶
func (s *SessionV2InfoTokens) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionV2InfoTokens) Validate ¶
func (s *SessionV2InfoTokens) Validate() error
type SessionV2InfoTokensCache ¶
func (*SessionV2InfoTokensCache) Decode ¶
func (s *SessionV2InfoTokensCache) Decode(d *jx.Decoder) error
Decode decodes SessionV2InfoTokensCache from json.
func (*SessionV2InfoTokensCache) Encode ¶
func (s *SessionV2InfoTokensCache) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionV2InfoTokensCache) GetRead ¶
func (s *SessionV2InfoTokensCache) GetRead() float64
GetRead returns the value of Read.
func (*SessionV2InfoTokensCache) GetWrite ¶
func (s *SessionV2InfoTokensCache) GetWrite() float64
GetWrite returns the value of Write.
func (*SessionV2InfoTokensCache) MarshalJSON ¶
func (s *SessionV2InfoTokensCache) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionV2InfoTokensCache) SetRead ¶
func (s *SessionV2InfoTokensCache) SetRead(val float64)
SetRead sets the value of Read.
func (*SessionV2InfoTokensCache) SetWrite ¶
func (s *SessionV2InfoTokensCache) SetWrite(val float64)
SetWrite sets the value of Write.
func (*SessionV2InfoTokensCache) UnmarshalJSON ¶
func (s *SessionV2InfoTokensCache) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionV2InfoTokensCache) Validate ¶
func (s *SessionV2InfoTokensCache) Validate() error
type SessionsResponse ¶
type SessionsResponse struct {
Cursor SessionsResponseCursor `json:"cursor"`
Data []SessionV2Info `json:"data"`
}
Ref: #/components/schemas/SessionsResponse
func (*SessionsResponse) Decode ¶
func (s *SessionsResponse) Decode(d *jx.Decoder) error
Decode decodes SessionsResponse from json.
func (*SessionsResponse) Encode ¶
func (s *SessionsResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionsResponse) GetCursor ¶
func (s *SessionsResponse) GetCursor() SessionsResponseCursor
GetCursor returns the value of Cursor.
func (*SessionsResponse) GetData ¶
func (s *SessionsResponse) GetData() []SessionV2Info
GetData returns the value of Data.
func (*SessionsResponse) MarshalJSON ¶
func (s *SessionsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionsResponse) SetCursor ¶
func (s *SessionsResponse) SetCursor(val SessionsResponseCursor)
SetCursor sets the value of Cursor.
func (*SessionsResponse) SetData ¶
func (s *SessionsResponse) SetData(val []SessionV2Info)
SetData sets the value of Data.
func (*SessionsResponse) UnmarshalJSON ¶
func (s *SessionsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionsResponse) Validate ¶
func (s *SessionsResponse) Validate() error
type SessionsResponseCursor ¶
type SessionsResponseCursor struct {
Next OptString `json:"next"`
Previous OptString `json:"previous"`
}
func (*SessionsResponseCursor) Decode ¶
func (s *SessionsResponseCursor) Decode(d *jx.Decoder) error
Decode decodes SessionsResponseCursor from json.
func (*SessionsResponseCursor) Encode ¶
func (s *SessionsResponseCursor) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionsResponseCursor) GetNext ¶
func (s *SessionsResponseCursor) GetNext() OptString
GetNext returns the value of Next.
func (*SessionsResponseCursor) GetPrevious ¶
func (s *SessionsResponseCursor) GetPrevious() OptString
GetPrevious returns the value of Previous.
func (*SessionsResponseCursor) MarshalJSON ¶
func (s *SessionsResponseCursor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionsResponseCursor) SetNext ¶
func (s *SessionsResponseCursor) SetNext(val OptString)
SetNext sets the value of Next.
func (*SessionsResponseCursor) SetPrevious ¶
func (s *SessionsResponseCursor) SetPrevious(val OptString)
SetPrevious sets the value of Previous.
func (*SessionsResponseCursor) UnmarshalJSON ¶
func (s *SessionsResponseCursor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SnapshotFileDiff ¶
type SnapshotFileDiff struct {
Additions float64 `json:"additions"`
Deletions float64 `json:"deletions"`
File OptString `json:"file"`
Patch OptString `json:"patch"`
Status OptSnapshotFileDiffStatus `json:"status"`
}
Ref: #/components/schemas/SnapshotFileDiff
func (*SnapshotFileDiff) Decode ¶
func (s *SnapshotFileDiff) Decode(d *jx.Decoder) error
Decode decodes SnapshotFileDiff from json.
func (*SnapshotFileDiff) Encode ¶
func (s *SnapshotFileDiff) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SnapshotFileDiff) GetAdditions ¶
func (s *SnapshotFileDiff) GetAdditions() float64
GetAdditions returns the value of Additions.
func (*SnapshotFileDiff) GetDeletions ¶
func (s *SnapshotFileDiff) GetDeletions() float64
GetDeletions returns the value of Deletions.
func (*SnapshotFileDiff) GetFile ¶
func (s *SnapshotFileDiff) GetFile() OptString
GetFile returns the value of File.
func (*SnapshotFileDiff) GetPatch ¶
func (s *SnapshotFileDiff) GetPatch() OptString
GetPatch returns the value of Patch.
func (*SnapshotFileDiff) GetStatus ¶
func (s *SnapshotFileDiff) GetStatus() OptSnapshotFileDiffStatus
GetStatus returns the value of Status.
func (*SnapshotFileDiff) MarshalJSON ¶
func (s *SnapshotFileDiff) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SnapshotFileDiff) SetAdditions ¶
func (s *SnapshotFileDiff) SetAdditions(val float64)
SetAdditions sets the value of Additions.
func (*SnapshotFileDiff) SetDeletions ¶
func (s *SnapshotFileDiff) SetDeletions(val float64)
SetDeletions sets the value of Deletions.
func (*SnapshotFileDiff) SetFile ¶
func (s *SnapshotFileDiff) SetFile(val OptString)
SetFile sets the value of File.
func (*SnapshotFileDiff) SetPatch ¶
func (s *SnapshotFileDiff) SetPatch(val OptString)
SetPatch sets the value of Patch.
func (*SnapshotFileDiff) SetStatus ¶
func (s *SnapshotFileDiff) SetStatus(val OptSnapshotFileDiffStatus)
SetStatus sets the value of Status.
func (*SnapshotFileDiff) UnmarshalJSON ¶
func (s *SnapshotFileDiff) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SnapshotFileDiff) Validate ¶
func (s *SnapshotFileDiff) Validate() error
type SnapshotFileDiffStatus ¶
type SnapshotFileDiffStatus string
const ( SnapshotFileDiffStatusAdded SnapshotFileDiffStatus = "added" SnapshotFileDiffStatusDeleted SnapshotFileDiffStatus = "deleted" SnapshotFileDiffStatusModified SnapshotFileDiffStatus = "modified" )
func (SnapshotFileDiffStatus) AllValues ¶
func (SnapshotFileDiffStatus) AllValues() []SnapshotFileDiffStatus
AllValues returns all SnapshotFileDiffStatus values.
func (*SnapshotFileDiffStatus) Decode ¶
func (s *SnapshotFileDiffStatus) Decode(d *jx.Decoder) error
Decode decodes SnapshotFileDiffStatus from json.
func (SnapshotFileDiffStatus) Encode ¶
func (s SnapshotFileDiffStatus) Encode(e *jx.Encoder)
Encode encodes SnapshotFileDiffStatus as json.
func (SnapshotFileDiffStatus) MarshalJSON ¶
func (s SnapshotFileDiffStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SnapshotFileDiffStatus) MarshalText ¶
func (s SnapshotFileDiffStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SnapshotFileDiffStatus) UnmarshalJSON ¶
func (s *SnapshotFileDiffStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SnapshotFileDiffStatus) UnmarshalText ¶
func (s *SnapshotFileDiffStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SnapshotFileDiffStatus) Validate ¶
func (s SnapshotFileDiffStatus) Validate() error
type UnauthorizedError ¶
type UnauthorizedError struct {
}
Ref: #/components/schemas/UnauthorizedError
func (*UnauthorizedError) Decode ¶
func (s *UnauthorizedError) Decode(d *jx.Decoder) error
Decode decodes UnauthorizedError from json.
func (*UnauthorizedError) Encode ¶
func (s *UnauthorizedError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UnauthorizedError) GetMessage ¶
func (s *UnauthorizedError) GetMessage() string
GetMessage returns the value of Message.
func (*UnauthorizedError) GetTag ¶
func (s *UnauthorizedError) GetTag() UnauthorizedErrorTag
GetTag returns the value of Tag.
func (*UnauthorizedError) MarshalJSON ¶
func (s *UnauthorizedError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UnauthorizedError) SetMessage ¶
func (s *UnauthorizedError) SetMessage(val string)
SetMessage sets the value of Message.
func (*UnauthorizedError) SetTag ¶
func (s *UnauthorizedError) SetTag(val UnauthorizedErrorTag)
SetTag sets the value of Tag.
func (*UnauthorizedError) UnmarshalJSON ¶
func (s *UnauthorizedError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UnauthorizedError) Validate ¶
func (s *UnauthorizedError) Validate() error
type UnauthorizedErrorTag ¶
type UnauthorizedErrorTag string
const (
)
func (UnauthorizedErrorTag) AllValues ¶
func (UnauthorizedErrorTag) AllValues() []UnauthorizedErrorTag
AllValues returns all UnauthorizedErrorTag values.
func (*UnauthorizedErrorTag) Decode ¶
func (s *UnauthorizedErrorTag) Decode(d *jx.Decoder) error
Decode decodes UnauthorizedErrorTag from json.
func (UnauthorizedErrorTag) Encode ¶
func (s UnauthorizedErrorTag) Encode(e *jx.Encoder)
Encode encodes UnauthorizedErrorTag as json.
func (UnauthorizedErrorTag) MarshalJSON ¶
func (s UnauthorizedErrorTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UnauthorizedErrorTag) MarshalText ¶
func (s UnauthorizedErrorTag) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UnauthorizedErrorTag) UnmarshalJSON ¶
func (s *UnauthorizedErrorTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UnauthorizedErrorTag) UnmarshalText ¶
func (s *UnauthorizedErrorTag) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UnauthorizedErrorTag) Validate ¶
func (s UnauthorizedErrorTag) Validate() error
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) SessionCreate ¶
func (UnimplementedHandler) SessionCreate(ctx context.Context, req OptSessionCreateReq, params SessionCreateParams) (r SessionCreateRes, _ error)
SessionCreate implements session.create operation.
Create a new OpenCode session for interacting with AI assistants and managing conversations.
POST /session
func (UnimplementedHandler) SessionMessage ¶
func (UnimplementedHandler) SessionMessage(ctx context.Context, req *SessionMessageReq, params SessionMessageParams) (r SessionMessageRes, _ error)
SessionMessage implements session.message operation.
Send a message to a session.
POST /session/{sessionID}/message
func (UnimplementedHandler) SessionMessages ¶
func (UnimplementedHandler) SessionMessages(ctx context.Context, params SessionMessagesParams) (r SessionMessagesRes, _ error)
SessionMessages implements session.messages operation.
Retrieve all messages in a session, including user prompts and AI responses.
GET /session/{sessionID}/message
func (UnimplementedHandler) V2AgentList ¶
func (UnimplementedHandler) V2AgentList(ctx context.Context, params V2AgentListParams) (r V2AgentListRes, _ error)
V2AgentList implements v2.agent.list operation.
Retrieve currently registered agents.
GET /api/agent
func (UnimplementedHandler) V2HealthGet ¶
func (UnimplementedHandler) V2HealthGet(ctx context.Context) (r V2HealthGetRes, _ error)
V2HealthGet implements v2.health.get operation.
Check whether the API server is ready to accept requests.
GET /api/health
func (UnimplementedHandler) V2ModelList ¶
func (UnimplementedHandler) V2ModelList(ctx context.Context, params V2ModelListParams) (r V2ModelListRes, _ error)
V2ModelList implements v2.model.list operation.
Retrieve available models ordered by release date.
GET /api/model
func (UnimplementedHandler) V2PermissionRequestList ¶
func (UnimplementedHandler) V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (r V2PermissionRequestListRes, _ error)
V2PermissionRequestList implements v2.permission.request.list operation.
Retrieve pending permission requests for a location.
GET /api/permission/request
func (UnimplementedHandler) V2ProviderList ¶
func (UnimplementedHandler) V2ProviderList(ctx context.Context, params V2ProviderListParams) (r V2ProviderListRes, _ error)
V2ProviderList implements v2.provider.list operation.
Retrieve active AI providers so clients can show provider availability and configuration.
GET /api/provider
func (UnimplementedHandler) V2QuestionRequestList ¶
func (UnimplementedHandler) V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (r V2QuestionRequestListRes, _ error)
V2QuestionRequestList implements v2.question.request.list operation.
Retrieve pending question requests for a location.
GET /api/question/request
func (UnimplementedHandler) V2SessionContext ¶
func (UnimplementedHandler) V2SessionContext(ctx context.Context, params V2SessionContextParams) (r V2SessionContextRes, _ error)
V2SessionContext implements v2.session.context operation.
Retrieve the active context messages for a session (all messages after the last compaction).
GET /api/session/{sessionID}/context
func (UnimplementedHandler) V2SessionList ¶
func (UnimplementedHandler) V2SessionList(ctx context.Context, params V2SessionListParams) (r V2SessionListRes, _ error)
V2SessionList implements v2.session.list operation.
Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.
GET /api/session
func (UnimplementedHandler) V2SessionMessages ¶
func (UnimplementedHandler) V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (r V2SessionMessagesRes, _ error)
V2SessionMessages implements v2.session.messages operation.
Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.
GET /api/session/{sessionID}/message
func (UnimplementedHandler) V2SessionPermissionList ¶
func (UnimplementedHandler) V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (r V2SessionPermissionListRes, _ error)
V2SessionPermissionList implements v2.session.permission.list operation.
Retrieve pending permission requests owned by a session.
GET /api/session/{sessionID}/permission
func (UnimplementedHandler) V2SessionPermissionReply ¶
func (UnimplementedHandler) V2SessionPermissionReply(ctx context.Context, req *V2SessionPermissionReplyReq, params V2SessionPermissionReplyParams) (r V2SessionPermissionReplyRes, _ error)
V2SessionPermissionReply implements v2.session.permission.reply operation.
Respond to a pending permission request owned by a session.
POST /api/session/{sessionID}/permission/{requestID}/reply
func (UnimplementedHandler) V2SessionPrompt ¶
func (UnimplementedHandler) V2SessionPrompt(ctx context.Context, req *V2SessionPromptReq, params V2SessionPromptParams) (r V2SessionPromptRes, _ error)
V2SessionPrompt implements v2.session.prompt operation.
Durably admit one session input and schedule agent-loop execution unless resume is false.
POST /api/session/{sessionID}/prompt
func (UnimplementedHandler) V2SessionQuestionReject ¶
func (UnimplementedHandler) V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (r V2SessionQuestionRejectRes, _ error)
V2SessionQuestionReject implements v2.session.question.reject operation.
Reject a pending question request owned by a session.
POST /api/session/{sessionID}/question/{requestID}/reject
func (UnimplementedHandler) V2SessionQuestionReply ¶
func (UnimplementedHandler) V2SessionQuestionReply(ctx context.Context, req *QuestionV2Reply, params V2SessionQuestionReplyParams) (r V2SessionQuestionReplyRes, _ error)
V2SessionQuestionReply implements v2.session.question.reply operation.
Answer a pending question request owned by a session.
POST /api/session/{sessionID}/question/{requestID}/reply
func (UnimplementedHandler) V2SessionWait ¶
func (UnimplementedHandler) V2SessionWait(ctx context.Context, params V2SessionWaitParams) (r V2SessionWaitRes, _ error)
V2SessionWait implements v2.session.wait operation.
Wait for a session agent loop to become idle.
POST /api/session/{sessionID}/wait
type UnknownError1 ¶
type UnknownError1 struct {
Tag UnknownError1Tag `json:"_tag"`
Message string `json:"message"`
Ref OptString `json:"ref"`
}
Ref: #/components/schemas/UnknownError1
func (*UnknownError1) Decode ¶
func (s *UnknownError1) Decode(d *jx.Decoder) error
Decode decodes UnknownError1 from json.
func (*UnknownError1) Encode ¶
func (s *UnknownError1) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UnknownError1) GetMessage ¶
func (s *UnknownError1) GetMessage() string
GetMessage returns the value of Message.
func (*UnknownError1) GetRef ¶
func (s *UnknownError1) GetRef() OptString
GetRef returns the value of Ref.
func (*UnknownError1) GetTag ¶
func (s *UnknownError1) GetTag() UnknownError1Tag
GetTag returns the value of Tag.
func (*UnknownError1) MarshalJSON ¶
func (s *UnknownError1) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UnknownError1) SetMessage ¶
func (s *UnknownError1) SetMessage(val string)
SetMessage sets the value of Message.
func (*UnknownError1) SetRef ¶
func (s *UnknownError1) SetRef(val OptString)
SetRef sets the value of Ref.
func (*UnknownError1) SetTag ¶
func (s *UnknownError1) SetTag(val UnknownError1Tag)
SetTag sets the value of Tag.
func (*UnknownError1) UnmarshalJSON ¶
func (s *UnknownError1) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UnknownError1) Validate ¶
func (s *UnknownError1) Validate() error
type UnknownError1Tag ¶
type UnknownError1Tag string
const (
UnknownError1TagUnknownError UnknownError1Tag = "UnknownError"
)
func (UnknownError1Tag) AllValues ¶
func (UnknownError1Tag) AllValues() []UnknownError1Tag
AllValues returns all UnknownError1Tag values.
func (*UnknownError1Tag) Decode ¶
func (s *UnknownError1Tag) Decode(d *jx.Decoder) error
Decode decodes UnknownError1Tag from json.
func (UnknownError1Tag) Encode ¶
func (s UnknownError1Tag) Encode(e *jx.Encoder)
Encode encodes UnknownError1Tag as json.
func (UnknownError1Tag) MarshalJSON ¶
func (s UnknownError1Tag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UnknownError1Tag) MarshalText ¶
func (s UnknownError1Tag) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UnknownError1Tag) UnmarshalJSON ¶
func (s *UnknownError1Tag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UnknownError1Tag) UnmarshalText ¶
func (s *UnknownError1Tag) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UnknownError1Tag) Validate ¶
func (s UnknownError1Tag) Validate() error
type V2AgentListLocation ¶
type V2AgentListLocation struct {
Directory OptString `json:"directory"`
Workspace OptString `json:"workspace"`
}
func (*V2AgentListLocation) DecodeURI ¶
func (s *V2AgentListLocation) DecodeURI(d uri.Decoder) error
DecodeURI decodes V2AgentListLocation from URI form.
func (*V2AgentListLocation) EncodeURI ¶
func (s *V2AgentListLocation) EncodeURI(e uri.Encoder) error
EncodeURI encodes V2AgentListLocation as URI form.
func (*V2AgentListLocation) GetDirectory ¶
func (s *V2AgentListLocation) GetDirectory() OptString
GetDirectory returns the value of Directory.
func (*V2AgentListLocation) GetWorkspace ¶
func (s *V2AgentListLocation) GetWorkspace() OptString
GetWorkspace returns the value of Workspace.
func (*V2AgentListLocation) SetDirectory ¶
func (s *V2AgentListLocation) SetDirectory(val OptString)
SetDirectory sets the value of Directory.
func (*V2AgentListLocation) SetWorkspace ¶
func (s *V2AgentListLocation) SetWorkspace(val OptString)
SetWorkspace sets the value of Workspace.
type V2AgentListOK ¶
type V2AgentListOK struct {
Data []AgentV2Info `json:"data"`
Location LocationInfo `json:"location"`
}
func (*V2AgentListOK) Decode ¶
func (s *V2AgentListOK) Decode(d *jx.Decoder) error
Decode decodes V2AgentListOK from json.
func (*V2AgentListOK) Encode ¶
func (s *V2AgentListOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2AgentListOK) GetData ¶
func (s *V2AgentListOK) GetData() []AgentV2Info
GetData returns the value of Data.
func (*V2AgentListOK) GetLocation ¶
func (s *V2AgentListOK) GetLocation() LocationInfo
GetLocation returns the value of Location.
func (*V2AgentListOK) MarshalJSON ¶
func (s *V2AgentListOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2AgentListOK) SetData ¶
func (s *V2AgentListOK) SetData(val []AgentV2Info)
SetData sets the value of Data.
func (*V2AgentListOK) SetLocation ¶
func (s *V2AgentListOK) SetLocation(val LocationInfo)
SetLocation sets the value of Location.
func (*V2AgentListOK) UnmarshalJSON ¶
func (s *V2AgentListOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2AgentListOK) Validate ¶
func (s *V2AgentListOK) Validate() error
type V2AgentListParams ¶
type V2AgentListParams struct {
Location OptV2AgentListLocation `json:",omitempty,omitzero"`
}
V2AgentListParams is parameters of v2.agent.list operation.
type V2AgentListRes ¶
type V2AgentListRes interface {
// contains filtered or unexported methods
}
type V2HealthGetOK ¶
type V2HealthGetOK struct {
Healthy V2HealthGetOKHealthy `json:"healthy"`
}
func (*V2HealthGetOK) Decode ¶
func (s *V2HealthGetOK) Decode(d *jx.Decoder) error
Decode decodes V2HealthGetOK from json.
func (*V2HealthGetOK) Encode ¶
func (s *V2HealthGetOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2HealthGetOK) GetHealthy ¶
func (s *V2HealthGetOK) GetHealthy() V2HealthGetOKHealthy
GetHealthy returns the value of Healthy.
func (*V2HealthGetOK) MarshalJSON ¶
func (s *V2HealthGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2HealthGetOK) SetHealthy ¶
func (s *V2HealthGetOK) SetHealthy(val V2HealthGetOKHealthy)
SetHealthy sets the value of Healthy.
func (*V2HealthGetOK) UnmarshalJSON ¶
func (s *V2HealthGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2HealthGetOK) Validate ¶
func (s *V2HealthGetOK) Validate() error
type V2HealthGetOKHealthy ¶
type V2HealthGetOKHealthy bool
const (
V2HealthGetOKHealthyTrue V2HealthGetOKHealthy = true
)
func (V2HealthGetOKHealthy) AllValues ¶
func (V2HealthGetOKHealthy) AllValues() []V2HealthGetOKHealthy
AllValues returns all V2HealthGetOKHealthy values.
func (*V2HealthGetOKHealthy) Decode ¶
func (s *V2HealthGetOKHealthy) Decode(d *jx.Decoder) error
Decode decodes V2HealthGetOKHealthy from json.
func (V2HealthGetOKHealthy) Encode ¶
func (s V2HealthGetOKHealthy) Encode(e *jx.Encoder)
Encode encodes V2HealthGetOKHealthy as json.
func (V2HealthGetOKHealthy) MarshalJSON ¶
func (s V2HealthGetOKHealthy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2HealthGetOKHealthy) UnmarshalJSON ¶
func (s *V2HealthGetOKHealthy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (V2HealthGetOKHealthy) Validate ¶
func (s V2HealthGetOKHealthy) Validate() error
type V2HealthGetRes ¶
type V2HealthGetRes interface {
// contains filtered or unexported methods
}
type V2ModelListLocation ¶
type V2ModelListLocation struct {
Directory OptString `json:"directory"`
Workspace OptString `json:"workspace"`
}
func (*V2ModelListLocation) DecodeURI ¶
func (s *V2ModelListLocation) DecodeURI(d uri.Decoder) error
DecodeURI decodes V2ModelListLocation from URI form.
func (*V2ModelListLocation) EncodeURI ¶
func (s *V2ModelListLocation) EncodeURI(e uri.Encoder) error
EncodeURI encodes V2ModelListLocation as URI form.
func (*V2ModelListLocation) GetDirectory ¶
func (s *V2ModelListLocation) GetDirectory() OptString
GetDirectory returns the value of Directory.
func (*V2ModelListLocation) GetWorkspace ¶
func (s *V2ModelListLocation) GetWorkspace() OptString
GetWorkspace returns the value of Workspace.
func (*V2ModelListLocation) SetDirectory ¶
func (s *V2ModelListLocation) SetDirectory(val OptString)
SetDirectory sets the value of Directory.
func (*V2ModelListLocation) SetWorkspace ¶
func (s *V2ModelListLocation) SetWorkspace(val OptString)
SetWorkspace sets the value of Workspace.
type V2ModelListOK ¶
type V2ModelListOK struct {
Data []ModelV2Info `json:"data"`
Location LocationInfo `json:"location"`
}
func (*V2ModelListOK) Decode ¶
func (s *V2ModelListOK) Decode(d *jx.Decoder) error
Decode decodes V2ModelListOK from json.
func (*V2ModelListOK) Encode ¶
func (s *V2ModelListOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2ModelListOK) GetData ¶
func (s *V2ModelListOK) GetData() []ModelV2Info
GetData returns the value of Data.
func (*V2ModelListOK) GetLocation ¶
func (s *V2ModelListOK) GetLocation() LocationInfo
GetLocation returns the value of Location.
func (*V2ModelListOK) MarshalJSON ¶
func (s *V2ModelListOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2ModelListOK) SetData ¶
func (s *V2ModelListOK) SetData(val []ModelV2Info)
SetData sets the value of Data.
func (*V2ModelListOK) SetLocation ¶
func (s *V2ModelListOK) SetLocation(val LocationInfo)
SetLocation sets the value of Location.
func (*V2ModelListOK) UnmarshalJSON ¶
func (s *V2ModelListOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2ModelListOK) Validate ¶
func (s *V2ModelListOK) Validate() error
type V2ModelListParams ¶
type V2ModelListParams struct {
Location OptV2ModelListLocation `json:",omitempty,omitzero"`
}
V2ModelListParams is parameters of v2.model.list operation.
type V2ModelListRes ¶
type V2ModelListRes interface {
// contains filtered or unexported methods
}
type V2PermissionRequestListLocation ¶
type V2PermissionRequestListLocation struct {
Directory OptString `json:"directory"`
Workspace OptString `json:"workspace"`
}
func (*V2PermissionRequestListLocation) DecodeURI ¶
func (s *V2PermissionRequestListLocation) DecodeURI(d uri.Decoder) error
DecodeURI decodes V2PermissionRequestListLocation from URI form.
func (*V2PermissionRequestListLocation) EncodeURI ¶
func (s *V2PermissionRequestListLocation) EncodeURI(e uri.Encoder) error
EncodeURI encodes V2PermissionRequestListLocation as URI form.
func (*V2PermissionRequestListLocation) GetDirectory ¶
func (s *V2PermissionRequestListLocation) GetDirectory() OptString
GetDirectory returns the value of Directory.
func (*V2PermissionRequestListLocation) GetWorkspace ¶
func (s *V2PermissionRequestListLocation) GetWorkspace() OptString
GetWorkspace returns the value of Workspace.
func (*V2PermissionRequestListLocation) SetDirectory ¶
func (s *V2PermissionRequestListLocation) SetDirectory(val OptString)
SetDirectory sets the value of Directory.
func (*V2PermissionRequestListLocation) SetWorkspace ¶
func (s *V2PermissionRequestListLocation) SetWorkspace(val OptString)
SetWorkspace sets the value of Workspace.
type V2PermissionRequestListOK ¶
type V2PermissionRequestListOK struct {
Data []PermissionV2Request `json:"data"`
Location LocationInfo `json:"location"`
}
func (*V2PermissionRequestListOK) Decode ¶
func (s *V2PermissionRequestListOK) Decode(d *jx.Decoder) error
Decode decodes V2PermissionRequestListOK from json.
func (*V2PermissionRequestListOK) Encode ¶
func (s *V2PermissionRequestListOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2PermissionRequestListOK) GetData ¶
func (s *V2PermissionRequestListOK) GetData() []PermissionV2Request
GetData returns the value of Data.
func (*V2PermissionRequestListOK) GetLocation ¶
func (s *V2PermissionRequestListOK) GetLocation() LocationInfo
GetLocation returns the value of Location.
func (*V2PermissionRequestListOK) MarshalJSON ¶
func (s *V2PermissionRequestListOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2PermissionRequestListOK) SetData ¶
func (s *V2PermissionRequestListOK) SetData(val []PermissionV2Request)
SetData sets the value of Data.
func (*V2PermissionRequestListOK) SetLocation ¶
func (s *V2PermissionRequestListOK) SetLocation(val LocationInfo)
SetLocation sets the value of Location.
func (*V2PermissionRequestListOK) UnmarshalJSON ¶
func (s *V2PermissionRequestListOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2PermissionRequestListOK) Validate ¶
func (s *V2PermissionRequestListOK) Validate() error
type V2PermissionRequestListParams ¶
type V2PermissionRequestListParams struct {
Location OptV2PermissionRequestListLocation `json:",omitempty,omitzero"`
}
V2PermissionRequestListParams is parameters of v2.permission.request.list operation.
type V2PermissionRequestListRes ¶
type V2PermissionRequestListRes interface {
// contains filtered or unexported methods
}
type V2ProviderListLocation ¶
type V2ProviderListLocation struct {
Directory OptString `json:"directory"`
Workspace OptString `json:"workspace"`
}
func (*V2ProviderListLocation) DecodeURI ¶
func (s *V2ProviderListLocation) DecodeURI(d uri.Decoder) error
DecodeURI decodes V2ProviderListLocation from URI form.
func (*V2ProviderListLocation) EncodeURI ¶
func (s *V2ProviderListLocation) EncodeURI(e uri.Encoder) error
EncodeURI encodes V2ProviderListLocation as URI form.
func (*V2ProviderListLocation) GetDirectory ¶
func (s *V2ProviderListLocation) GetDirectory() OptString
GetDirectory returns the value of Directory.
func (*V2ProviderListLocation) GetWorkspace ¶
func (s *V2ProviderListLocation) GetWorkspace() OptString
GetWorkspace returns the value of Workspace.
func (*V2ProviderListLocation) SetDirectory ¶
func (s *V2ProviderListLocation) SetDirectory(val OptString)
SetDirectory sets the value of Directory.
func (*V2ProviderListLocation) SetWorkspace ¶
func (s *V2ProviderListLocation) SetWorkspace(val OptString)
SetWorkspace sets the value of Workspace.
type V2ProviderListOK ¶
type V2ProviderListOK struct {
Data []ProviderV2Info `json:"data"`
Location LocationInfo `json:"location"`
}
func (*V2ProviderListOK) Decode ¶
func (s *V2ProviderListOK) Decode(d *jx.Decoder) error
Decode decodes V2ProviderListOK from json.
func (*V2ProviderListOK) Encode ¶
func (s *V2ProviderListOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2ProviderListOK) GetData ¶
func (s *V2ProviderListOK) GetData() []ProviderV2Info
GetData returns the value of Data.
func (*V2ProviderListOK) GetLocation ¶
func (s *V2ProviderListOK) GetLocation() LocationInfo
GetLocation returns the value of Location.
func (*V2ProviderListOK) MarshalJSON ¶
func (s *V2ProviderListOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2ProviderListOK) SetData ¶
func (s *V2ProviderListOK) SetData(val []ProviderV2Info)
SetData sets the value of Data.
func (*V2ProviderListOK) SetLocation ¶
func (s *V2ProviderListOK) SetLocation(val LocationInfo)
SetLocation sets the value of Location.
func (*V2ProviderListOK) UnmarshalJSON ¶
func (s *V2ProviderListOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2ProviderListOK) Validate ¶
func (s *V2ProviderListOK) Validate() error
type V2ProviderListParams ¶
type V2ProviderListParams struct {
Location OptV2ProviderListLocation `json:",omitempty,omitzero"`
}
V2ProviderListParams is parameters of v2.provider.list operation.
type V2ProviderListRes ¶
type V2ProviderListRes interface {
// contains filtered or unexported methods
}
type V2QuestionRequestListLocation ¶
type V2QuestionRequestListLocation struct {
Directory OptString `json:"directory"`
Workspace OptString `json:"workspace"`
}
func (*V2QuestionRequestListLocation) DecodeURI ¶
func (s *V2QuestionRequestListLocation) DecodeURI(d uri.Decoder) error
DecodeURI decodes V2QuestionRequestListLocation from URI form.
func (*V2QuestionRequestListLocation) EncodeURI ¶
func (s *V2QuestionRequestListLocation) EncodeURI(e uri.Encoder) error
EncodeURI encodes V2QuestionRequestListLocation as URI form.
func (*V2QuestionRequestListLocation) GetDirectory ¶
func (s *V2QuestionRequestListLocation) GetDirectory() OptString
GetDirectory returns the value of Directory.
func (*V2QuestionRequestListLocation) GetWorkspace ¶
func (s *V2QuestionRequestListLocation) GetWorkspace() OptString
GetWorkspace returns the value of Workspace.
func (*V2QuestionRequestListLocation) SetDirectory ¶
func (s *V2QuestionRequestListLocation) SetDirectory(val OptString)
SetDirectory sets the value of Directory.
func (*V2QuestionRequestListLocation) SetWorkspace ¶
func (s *V2QuestionRequestListLocation) SetWorkspace(val OptString)
SetWorkspace sets the value of Workspace.
type V2QuestionRequestListOK ¶
type V2QuestionRequestListOK struct {
Data []QuestionV2Request `json:"data"`
Location LocationInfo `json:"location"`
}
func (*V2QuestionRequestListOK) Decode ¶
func (s *V2QuestionRequestListOK) Decode(d *jx.Decoder) error
Decode decodes V2QuestionRequestListOK from json.
func (*V2QuestionRequestListOK) Encode ¶
func (s *V2QuestionRequestListOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2QuestionRequestListOK) GetData ¶
func (s *V2QuestionRequestListOK) GetData() []QuestionV2Request
GetData returns the value of Data.
func (*V2QuestionRequestListOK) GetLocation ¶
func (s *V2QuestionRequestListOK) GetLocation() LocationInfo
GetLocation returns the value of Location.
func (*V2QuestionRequestListOK) MarshalJSON ¶
func (s *V2QuestionRequestListOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2QuestionRequestListOK) SetData ¶
func (s *V2QuestionRequestListOK) SetData(val []QuestionV2Request)
SetData sets the value of Data.
func (*V2QuestionRequestListOK) SetLocation ¶
func (s *V2QuestionRequestListOK) SetLocation(val LocationInfo)
SetLocation sets the value of Location.
func (*V2QuestionRequestListOK) UnmarshalJSON ¶
func (s *V2QuestionRequestListOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2QuestionRequestListOK) Validate ¶
func (s *V2QuestionRequestListOK) Validate() error
type V2QuestionRequestListParams ¶
type V2QuestionRequestListParams struct {
Location OptV2QuestionRequestListLocation `json:",omitempty,omitzero"`
}
V2QuestionRequestListParams is parameters of v2.question.request.list operation.
type V2QuestionRequestListRes ¶
type V2QuestionRequestListRes interface {
// contains filtered or unexported methods
}
type V2SessionContextNotFoundApplicationJSON ¶
func (*V2SessionContextNotFoundApplicationJSON) Decode ¶
func (s *V2SessionContextNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionContextNotFoundApplicationJSON from json.
func (V2SessionContextNotFoundApplicationJSON) Encode ¶
func (s V2SessionContextNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionContextNotFoundApplicationJSON as json.
func (V2SessionContextNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionContextNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionContextNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionContextNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionContextOK ¶
type V2SessionContextOK struct {
Data []SessionMessage `json:"data"`
}
func (*V2SessionContextOK) Decode ¶
func (s *V2SessionContextOK) Decode(d *jx.Decoder) error
Decode decodes V2SessionContextOK from json.
func (*V2SessionContextOK) Encode ¶
func (s *V2SessionContextOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2SessionContextOK) GetData ¶
func (s *V2SessionContextOK) GetData() []SessionMessage
GetData returns the value of Data.
func (*V2SessionContextOK) MarshalJSON ¶
func (s *V2SessionContextOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionContextOK) SetData ¶
func (s *V2SessionContextOK) SetData(val []SessionMessage)
SetData sets the value of Data.
func (*V2SessionContextOK) UnmarshalJSON ¶
func (s *V2SessionContextOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2SessionContextOK) Validate ¶
func (s *V2SessionContextOK) Validate() error
type V2SessionContextParams ¶
type V2SessionContextParams struct {
SessionID string
}
V2SessionContextParams is parameters of v2.session.context operation.
type V2SessionContextRes ¶
type V2SessionContextRes interface {
// contains filtered or unexported methods
}
type V2SessionListBadRequestApplicationJSON ¶
func (*V2SessionListBadRequestApplicationJSON) Decode ¶
func (s *V2SessionListBadRequestApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionListBadRequestApplicationJSON from json.
func (V2SessionListBadRequestApplicationJSON) Encode ¶
func (s V2SessionListBadRequestApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionListBadRequestApplicationJSON as json.
func (V2SessionListBadRequestApplicationJSON) MarshalJSON ¶
func (s V2SessionListBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionListBadRequestApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionListBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionListOrder ¶
type V2SessionListOrder string
const ( V2SessionListOrderAsc V2SessionListOrder = "asc" V2SessionListOrderDesc V2SessionListOrder = "desc" )
func (V2SessionListOrder) AllValues ¶
func (V2SessionListOrder) AllValues() []V2SessionListOrder
AllValues returns all V2SessionListOrder values.
func (V2SessionListOrder) MarshalText ¶
func (s V2SessionListOrder) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*V2SessionListOrder) UnmarshalText ¶
func (s *V2SessionListOrder) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (V2SessionListOrder) Validate ¶
func (s V2SessionListOrder) Validate() error
type V2SessionListParams ¶
type V2SessionListParams struct {
Workspace OptString `json:",omitempty,omitzero"`
Limit OptFloat64 `json:",omitempty,omitzero"`
Order OptV2SessionListOrder `json:",omitempty,omitzero"`
Search OptString `json:",omitempty,omitzero"`
Directory OptString `json:",omitempty,omitzero"`
Project OptString `json:",omitempty,omitzero"`
Subpath OptString `json:",omitempty,omitzero"`
Cursor OptString `json:",omitempty,omitzero"`
}
V2SessionListParams is parameters of v2.session.list operation.
type V2SessionListRes ¶
type V2SessionListRes interface {
// contains filtered or unexported methods
}
type V2SessionMessagesBadRequestApplicationJSON ¶
func (*V2SessionMessagesBadRequestApplicationJSON) Decode ¶
func (s *V2SessionMessagesBadRequestApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionMessagesBadRequestApplicationJSON from json.
func (V2SessionMessagesBadRequestApplicationJSON) Encode ¶
func (s V2SessionMessagesBadRequestApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionMessagesBadRequestApplicationJSON as json.
func (V2SessionMessagesBadRequestApplicationJSON) MarshalJSON ¶
func (s V2SessionMessagesBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionMessagesBadRequestApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionMessagesBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionMessagesNotFoundApplicationJSON ¶
func (*V2SessionMessagesNotFoundApplicationJSON) Decode ¶
func (s *V2SessionMessagesNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionMessagesNotFoundApplicationJSON from json.
func (V2SessionMessagesNotFoundApplicationJSON) Encode ¶
func (s V2SessionMessagesNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionMessagesNotFoundApplicationJSON as json.
func (V2SessionMessagesNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionMessagesNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionMessagesNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionMessagesNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionMessagesOrder ¶
type V2SessionMessagesOrder string
const ( V2SessionMessagesOrderAsc V2SessionMessagesOrder = "asc" V2SessionMessagesOrderDesc V2SessionMessagesOrder = "desc" )
func (V2SessionMessagesOrder) AllValues ¶
func (V2SessionMessagesOrder) AllValues() []V2SessionMessagesOrder
AllValues returns all V2SessionMessagesOrder values.
func (V2SessionMessagesOrder) MarshalText ¶
func (s V2SessionMessagesOrder) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*V2SessionMessagesOrder) UnmarshalText ¶
func (s *V2SessionMessagesOrder) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (V2SessionMessagesOrder) Validate ¶
func (s V2SessionMessagesOrder) Validate() error
type V2SessionMessagesParams ¶
type V2SessionMessagesParams struct {
SessionID string
Limit OptFloat64 `json:",omitempty,omitzero"`
Order OptV2SessionMessagesOrder `json:",omitempty,omitzero"`
Cursor OptString `json:",omitempty,omitzero"`
}
V2SessionMessagesParams is parameters of v2.session.messages operation.
type V2SessionMessagesRes ¶
type V2SessionMessagesRes interface {
// contains filtered or unexported methods
}
type V2SessionPermissionListNotFoundApplicationJSON ¶
func (*V2SessionPermissionListNotFoundApplicationJSON) Decode ¶
func (s *V2SessionPermissionListNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionPermissionListNotFoundApplicationJSON from json.
func (V2SessionPermissionListNotFoundApplicationJSON) Encode ¶
func (s V2SessionPermissionListNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionPermissionListNotFoundApplicationJSON as json.
func (V2SessionPermissionListNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionPermissionListNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionPermissionListNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionPermissionListNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionPermissionListOK ¶
type V2SessionPermissionListOK struct {
Data []PermissionV2Request `json:"data"`
}
func (*V2SessionPermissionListOK) Decode ¶
func (s *V2SessionPermissionListOK) Decode(d *jx.Decoder) error
Decode decodes V2SessionPermissionListOK from json.
func (*V2SessionPermissionListOK) Encode ¶
func (s *V2SessionPermissionListOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2SessionPermissionListOK) GetData ¶
func (s *V2SessionPermissionListOK) GetData() []PermissionV2Request
GetData returns the value of Data.
func (*V2SessionPermissionListOK) MarshalJSON ¶
func (s *V2SessionPermissionListOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionPermissionListOK) SetData ¶
func (s *V2SessionPermissionListOK) SetData(val []PermissionV2Request)
SetData sets the value of Data.
func (*V2SessionPermissionListOK) UnmarshalJSON ¶
func (s *V2SessionPermissionListOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2SessionPermissionListOK) Validate ¶
func (s *V2SessionPermissionListOK) Validate() error
type V2SessionPermissionListParams ¶
type V2SessionPermissionListParams struct {
SessionID string
}
V2SessionPermissionListParams is parameters of v2.session.permission.list operation.
type V2SessionPermissionListRes ¶
type V2SessionPermissionListRes interface {
// contains filtered or unexported methods
}
type V2SessionPermissionReplyNoContent ¶
type V2SessionPermissionReplyNoContent struct{}
V2SessionPermissionReplyNoContent is response for V2SessionPermissionReply operation.
type V2SessionPermissionReplyNotFoundApplicationJSON ¶
func (*V2SessionPermissionReplyNotFoundApplicationJSON) Decode ¶
func (s *V2SessionPermissionReplyNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionPermissionReplyNotFoundApplicationJSON from json.
func (V2SessionPermissionReplyNotFoundApplicationJSON) Encode ¶
func (s V2SessionPermissionReplyNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionPermissionReplyNotFoundApplicationJSON as json.
func (V2SessionPermissionReplyNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionPermissionReplyNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionPermissionReplyNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionPermissionReplyNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionPermissionReplyParams ¶
V2SessionPermissionReplyParams is parameters of v2.session.permission.reply operation.
type V2SessionPermissionReplyReq ¶
type V2SessionPermissionReplyReq struct {
Message OptString `json:"message"`
Reply PermissionV2Reply `json:"reply"`
}
func (*V2SessionPermissionReplyReq) Decode ¶
func (s *V2SessionPermissionReplyReq) Decode(d *jx.Decoder) error
Decode decodes V2SessionPermissionReplyReq from json.
func (*V2SessionPermissionReplyReq) Encode ¶
func (s *V2SessionPermissionReplyReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2SessionPermissionReplyReq) GetMessage ¶
func (s *V2SessionPermissionReplyReq) GetMessage() OptString
GetMessage returns the value of Message.
func (*V2SessionPermissionReplyReq) GetReply ¶
func (s *V2SessionPermissionReplyReq) GetReply() PermissionV2Reply
GetReply returns the value of Reply.
func (*V2SessionPermissionReplyReq) MarshalJSON ¶
func (s *V2SessionPermissionReplyReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionPermissionReplyReq) SetMessage ¶
func (s *V2SessionPermissionReplyReq) SetMessage(val OptString)
SetMessage sets the value of Message.
func (*V2SessionPermissionReplyReq) SetReply ¶
func (s *V2SessionPermissionReplyReq) SetReply(val PermissionV2Reply)
SetReply sets the value of Reply.
func (*V2SessionPermissionReplyReq) UnmarshalJSON ¶
func (s *V2SessionPermissionReplyReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2SessionPermissionReplyReq) Validate ¶
func (s *V2SessionPermissionReplyReq) Validate() error
type V2SessionPermissionReplyRes ¶
type V2SessionPermissionReplyRes interface {
// contains filtered or unexported methods
}
type V2SessionPromptNotFoundApplicationJSON ¶
func (*V2SessionPromptNotFoundApplicationJSON) Decode ¶
func (s *V2SessionPromptNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionPromptNotFoundApplicationJSON from json.
func (V2SessionPromptNotFoundApplicationJSON) Encode ¶
func (s V2SessionPromptNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionPromptNotFoundApplicationJSON as json.
func (V2SessionPromptNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionPromptNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionPromptNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionPromptNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionPromptOK ¶
type V2SessionPromptOK struct {
Data SessionInputAdmitted `json:"data"`
}
func (*V2SessionPromptOK) Decode ¶
func (s *V2SessionPromptOK) Decode(d *jx.Decoder) error
Decode decodes V2SessionPromptOK from json.
func (*V2SessionPromptOK) Encode ¶
func (s *V2SessionPromptOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2SessionPromptOK) GetData ¶
func (s *V2SessionPromptOK) GetData() SessionInputAdmitted
GetData returns the value of Data.
func (*V2SessionPromptOK) MarshalJSON ¶
func (s *V2SessionPromptOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionPromptOK) SetData ¶
func (s *V2SessionPromptOK) SetData(val SessionInputAdmitted)
SetData sets the value of Data.
func (*V2SessionPromptOK) UnmarshalJSON ¶
func (s *V2SessionPromptOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2SessionPromptOK) Validate ¶
func (s *V2SessionPromptOK) Validate() error
type V2SessionPromptParams ¶
type V2SessionPromptParams struct {
SessionID string
}
V2SessionPromptParams is parameters of v2.session.prompt operation.
type V2SessionPromptReq ¶
type V2SessionPromptReq struct {
Delivery OptV2SessionPromptReqDelivery `json:"delivery"`
ID OptString `json:"id"`
Prompt Prompt `json:"prompt"`
Resume OptBool `json:"resume"`
}
func (*V2SessionPromptReq) Decode ¶
func (s *V2SessionPromptReq) Decode(d *jx.Decoder) error
Decode decodes V2SessionPromptReq from json.
func (*V2SessionPromptReq) Encode ¶
func (s *V2SessionPromptReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*V2SessionPromptReq) GetDelivery ¶
func (s *V2SessionPromptReq) GetDelivery() OptV2SessionPromptReqDelivery
GetDelivery returns the value of Delivery.
func (*V2SessionPromptReq) GetID ¶
func (s *V2SessionPromptReq) GetID() OptString
GetID returns the value of ID.
func (*V2SessionPromptReq) GetPrompt ¶
func (s *V2SessionPromptReq) GetPrompt() Prompt
GetPrompt returns the value of Prompt.
func (*V2SessionPromptReq) GetResume ¶
func (s *V2SessionPromptReq) GetResume() OptBool
GetResume returns the value of Resume.
func (*V2SessionPromptReq) MarshalJSON ¶
func (s *V2SessionPromptReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionPromptReq) SetDelivery ¶
func (s *V2SessionPromptReq) SetDelivery(val OptV2SessionPromptReqDelivery)
SetDelivery sets the value of Delivery.
func (*V2SessionPromptReq) SetID ¶
func (s *V2SessionPromptReq) SetID(val OptString)
SetID sets the value of ID.
func (*V2SessionPromptReq) SetPrompt ¶
func (s *V2SessionPromptReq) SetPrompt(val Prompt)
SetPrompt sets the value of Prompt.
func (*V2SessionPromptReq) SetResume ¶
func (s *V2SessionPromptReq) SetResume(val OptBool)
SetResume sets the value of Resume.
func (*V2SessionPromptReq) UnmarshalJSON ¶
func (s *V2SessionPromptReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2SessionPromptReq) Validate ¶
func (s *V2SessionPromptReq) Validate() error
type V2SessionPromptReqDelivery ¶
type V2SessionPromptReqDelivery string
const ( V2SessionPromptReqDeliverySteer V2SessionPromptReqDelivery = "steer" V2SessionPromptReqDeliveryQueue V2SessionPromptReqDelivery = "queue" )
func (V2SessionPromptReqDelivery) AllValues ¶
func (V2SessionPromptReqDelivery) AllValues() []V2SessionPromptReqDelivery
AllValues returns all V2SessionPromptReqDelivery values.
func (*V2SessionPromptReqDelivery) Decode ¶
func (s *V2SessionPromptReqDelivery) Decode(d *jx.Decoder) error
Decode decodes V2SessionPromptReqDelivery from json.
func (V2SessionPromptReqDelivery) Encode ¶
func (s V2SessionPromptReqDelivery) Encode(e *jx.Encoder)
Encode encodes V2SessionPromptReqDelivery as json.
func (V2SessionPromptReqDelivery) MarshalJSON ¶
func (s V2SessionPromptReqDelivery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (V2SessionPromptReqDelivery) MarshalText ¶
func (s V2SessionPromptReqDelivery) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*V2SessionPromptReqDelivery) UnmarshalJSON ¶
func (s *V2SessionPromptReqDelivery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*V2SessionPromptReqDelivery) UnmarshalText ¶
func (s *V2SessionPromptReqDelivery) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (V2SessionPromptReqDelivery) Validate ¶
func (s V2SessionPromptReqDelivery) Validate() error
type V2SessionPromptRes ¶
type V2SessionPromptRes interface {
// contains filtered or unexported methods
}
type V2SessionQuestionRejectNoContent ¶
type V2SessionQuestionRejectNoContent struct{}
V2SessionQuestionRejectNoContent is response for V2SessionQuestionReject operation.
type V2SessionQuestionRejectNotFoundApplicationJSON ¶
func (*V2SessionQuestionRejectNotFoundApplicationJSON) Decode ¶
func (s *V2SessionQuestionRejectNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionQuestionRejectNotFoundApplicationJSON from json.
func (V2SessionQuestionRejectNotFoundApplicationJSON) Encode ¶
func (s V2SessionQuestionRejectNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionQuestionRejectNotFoundApplicationJSON as json.
func (V2SessionQuestionRejectNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionQuestionRejectNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionQuestionRejectNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionQuestionRejectNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionQuestionRejectParams ¶
V2SessionQuestionRejectParams is parameters of v2.session.question.reject operation.
type V2SessionQuestionRejectRes ¶
type V2SessionQuestionRejectRes interface {
// contains filtered or unexported methods
}
type V2SessionQuestionReplyNoContent ¶
type V2SessionQuestionReplyNoContent struct{}
V2SessionQuestionReplyNoContent is response for V2SessionQuestionReply operation.
type V2SessionQuestionReplyNotFoundApplicationJSON ¶
func (*V2SessionQuestionReplyNotFoundApplicationJSON) Decode ¶
func (s *V2SessionQuestionReplyNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionQuestionReplyNotFoundApplicationJSON from json.
func (V2SessionQuestionReplyNotFoundApplicationJSON) Encode ¶
func (s V2SessionQuestionReplyNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionQuestionReplyNotFoundApplicationJSON as json.
func (V2SessionQuestionReplyNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionQuestionReplyNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionQuestionReplyNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionQuestionReplyNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionQuestionReplyParams ¶
V2SessionQuestionReplyParams is parameters of v2.session.question.reply operation.
type V2SessionQuestionReplyRes ¶
type V2SessionQuestionReplyRes interface {
// contains filtered or unexported methods
}
type V2SessionWaitNoContent ¶
type V2SessionWaitNoContent struct{}
V2SessionWaitNoContent is response for V2SessionWait operation.
type V2SessionWaitNotFoundApplicationJSON ¶
func (*V2SessionWaitNotFoundApplicationJSON) Decode ¶
func (s *V2SessionWaitNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes V2SessionWaitNotFoundApplicationJSON from json.
func (V2SessionWaitNotFoundApplicationJSON) Encode ¶
func (s V2SessionWaitNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes V2SessionWaitNotFoundApplicationJSON as json.
func (V2SessionWaitNotFoundApplicationJSON) MarshalJSON ¶
func (s V2SessionWaitNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*V2SessionWaitNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *V2SessionWaitNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type V2SessionWaitParams ¶
type V2SessionWaitParams struct {
SessionID string
}
V2SessionWaitParams is parameters of v2.session.wait operation.
type V2SessionWaitRes ¶
type V2SessionWaitRes interface {
// contains filtered or unexported methods
}
Source Files
¶
- generate.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_operations_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_uri_gen.go
- oas_validators_gen.go