Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func GetRolesForTokenAuth(operation string) []string
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AddMemoryBadRequest
- type AddMemoryRequest
- func (s *AddMemoryRequest) Decode(d *jx.Decoder) error
- func (s *AddMemoryRequest) Encode(e *jx.Encoder)
- func (s *AddMemoryRequest) GetAgentID() OptString
- func (s *AddMemoryRequest) GetAppID() OptString
- func (s *AddMemoryRequest) GetInfer() OptBool
- func (s *AddMemoryRequest) GetMessages() []Message
- func (s *AddMemoryRequest) GetMetadata() OptAddMemoryRequestMetadata
- func (s *AddMemoryRequest) GetRunID() OptString
- func (s *AddMemoryRequest) GetUserID() OptString
- func (s *AddMemoryRequest) MarshalJSON() ([]byte, error)
- func (s *AddMemoryRequest) SetAgentID(val OptString)
- func (s *AddMemoryRequest) SetAppID(val OptString)
- func (s *AddMemoryRequest) SetInfer(val OptBool)
- func (s *AddMemoryRequest) SetMessages(val []Message)
- func (s *AddMemoryRequest) SetMetadata(val OptAddMemoryRequestMetadata)
- func (s *AddMemoryRequest) SetRunID(val OptString)
- func (s *AddMemoryRequest) SetUserID(val OptString)
- func (s *AddMemoryRequest) UnmarshalJSON(data []byte) error
- func (s *AddMemoryRequest) Validate() error
- type AddMemoryRequestMetadata
- type AddMemoryRes
- type AddMemoryResponse
- func (s *AddMemoryResponse) Decode(d *jx.Decoder) error
- func (s *AddMemoryResponse) Encode(e *jx.Encoder)
- func (s *AddMemoryResponse) GetEventID() OptString
- func (s *AddMemoryResponse) GetResults() []AddMemoryResult
- func (s *AddMemoryResponse) MarshalJSON() ([]byte, error)
- func (s *AddMemoryResponse) SetEventID(val OptString)
- func (s *AddMemoryResponse) SetResults(val []AddMemoryResult)
- func (s *AddMemoryResponse) UnmarshalJSON(data []byte) error
- func (s *AddMemoryResponse) Validate() error
- type AddMemoryResult
- func (s *AddMemoryResult) Decode(d *jx.Decoder) error
- func (s *AddMemoryResult) Encode(e *jx.Encoder)
- func (s *AddMemoryResult) GetEvent() OptAddMemoryResultEvent
- func (s *AddMemoryResult) GetID() OptString
- func (s *AddMemoryResult) GetMemory() OptString
- func (s *AddMemoryResult) MarshalJSON() ([]byte, error)
- func (s *AddMemoryResult) SetEvent(val OptAddMemoryResultEvent)
- func (s *AddMemoryResult) SetID(val OptString)
- func (s *AddMemoryResult) SetMemory(val OptString)
- func (s *AddMemoryResult) UnmarshalJSON(data []byte) error
- func (s *AddMemoryResult) Validate() error
- type AddMemoryResultEvent
- func (AddMemoryResultEvent) AllValues() []AddMemoryResultEvent
- func (s *AddMemoryResultEvent) Decode(d *jx.Decoder) error
- func (s AddMemoryResultEvent) Encode(e *jx.Encoder)
- func (s AddMemoryResultEvent) MarshalJSON() ([]byte, error)
- func (s AddMemoryResultEvent) MarshalText() ([]byte, error)
- func (s *AddMemoryResultEvent) UnmarshalJSON(data []byte) error
- func (s *AddMemoryResultEvent) UnmarshalText(data []byte) error
- func (s AddMemoryResultEvent) Validate() error
- type AddMemoryUnauthorized
- type Client
- func (c *Client) AddMemory(ctx context.Context, request *AddMemoryRequest) (AddMemoryRes, error)
- func (c *Client) DeleteAllMemories(ctx context.Context, params DeleteAllMemoriesParams) (*DeleteAllResponse, error)
- func (c *Client) DeleteEntity(ctx context.Context, params DeleteEntityParams) (DeleteEntityRes, error)
- func (c *Client) DeleteMemory(ctx context.Context, params DeleteMemoryParams) (DeleteMemoryRes, error)
- func (c *Client) GetEntity(ctx context.Context, params GetEntityParams) (GetEntityRes, error)
- func (c *Client) GetEventStatus(ctx context.Context, params GetEventStatusParams) (GetEventStatusRes, error)
- func (c *Client) GetMemories(ctx context.Context, request OptGetMemoriesRequest) (GetMemoriesRes, error)
- func (c *Client) GetMemory(ctx context.Context, params GetMemoryParams) (GetMemoryRes, error)
- func (c *Client) GetMemoryHistory(ctx context.Context, params GetMemoryHistoryParams) (GetMemoryHistoryRes, error)
- func (c *Client) SearchMemories(ctx context.Context, request *SearchMemoriesRequest) (SearchMemoriesRes, error)
- func (c *Client) UpdateMemory(ctx context.Context, request *UpdateMemoryRequest, params UpdateMemoryParams) (UpdateMemoryRes, error)
- type ClientOption
- type DeleteAllMemoriesParams
- type DeleteAllResponse
- func (s *DeleteAllResponse) Decode(d *jx.Decoder) error
- func (s *DeleteAllResponse) Encode(e *jx.Encoder)
- func (s *DeleteAllResponse) GetDeletedCount() OptInt
- func (s *DeleteAllResponse) GetMessage() OptString
- func (s *DeleteAllResponse) MarshalJSON() ([]byte, error)
- func (s *DeleteAllResponse) SetDeletedCount(val OptInt)
- func (s *DeleteAllResponse) SetMessage(val OptString)
- func (s *DeleteAllResponse) UnmarshalJSON(data []byte) error
- type DeleteEntityEntityType
- type DeleteEntityParams
- type DeleteEntityRes
- type DeleteMemoryParams
- type DeleteMemoryRes
- type DeleteResponse
- func (s *DeleteResponse) Decode(d *jx.Decoder) error
- func (s *DeleteResponse) Encode(e *jx.Encoder)
- func (s *DeleteResponse) GetMessage() OptString
- func (s *DeleteResponse) MarshalJSON() ([]byte, error)
- func (s *DeleteResponse) SetMessage(val OptString)
- func (s *DeleteResponse) UnmarshalJSON(data []byte) error
- type Entity
- func (s *Entity) Decode(d *jx.Decoder) error
- func (s *Entity) Encode(e *jx.Encoder)
- func (s *Entity) GetCreatedAt() OptDateTime
- func (s *Entity) GetID() OptString
- func (s *Entity) GetMemoryCount() OptInt
- func (s *Entity) GetType() OptEntityType
- func (s *Entity) GetUpdatedAt() OptDateTime
- func (s *Entity) MarshalJSON() ([]byte, error)
- func (s *Entity) SetCreatedAt(val OptDateTime)
- func (s *Entity) SetID(val OptString)
- func (s *Entity) SetMemoryCount(val OptInt)
- func (s *Entity) SetType(val OptEntityType)
- func (s *Entity) SetUpdatedAt(val OptDateTime)
- func (s *Entity) UnmarshalJSON(data []byte) error
- func (s *Entity) Validate() error
- type EntityType
- func (EntityType) AllValues() []EntityType
- func (s *EntityType) Decode(d *jx.Decoder) error
- func (s EntityType) Encode(e *jx.Encoder)
- func (s EntityType) MarshalJSON() ([]byte, error)
- func (s EntityType) MarshalText() ([]byte, error)
- func (s *EntityType) UnmarshalJSON(data []byte) error
- func (s *EntityType) UnmarshalText(data []byte) error
- func (s EntityType) Validate() error
- type ErrorHandler
- type ErrorResponse
- func (s *ErrorResponse) Decode(d *jx.Decoder) error
- func (s *ErrorResponse) Encode(e *jx.Encoder)
- func (s *ErrorResponse) GetCode() OptString
- func (s *ErrorResponse) GetDetail() OptString
- func (s *ErrorResponse) MarshalJSON() ([]byte, error)
- func (s *ErrorResponse) SetCode(val OptString)
- func (s *ErrorResponse) SetDetail(val OptString)
- func (s *ErrorResponse) UnmarshalJSON(data []byte) error
- type EventStatus
- func (s *EventStatus) Decode(d *jx.Decoder) error
- func (s *EventStatus) Encode(e *jx.Encoder)
- func (s *EventStatus) GetCompletedAt() OptNilDateTime
- func (s *EventStatus) GetCreatedAt() OptDateTime
- func (s *EventStatus) GetError() OptNilString
- func (s *EventStatus) GetEventID() OptString
- func (s *EventStatus) GetResults() []AddMemoryResult
- func (s *EventStatus) GetStatus() OptEventStatusStatus
- func (s *EventStatus) MarshalJSON() ([]byte, error)
- func (s *EventStatus) SetCompletedAt(val OptNilDateTime)
- func (s *EventStatus) SetCreatedAt(val OptDateTime)
- func (s *EventStatus) SetError(val OptNilString)
- func (s *EventStatus) SetEventID(val OptString)
- func (s *EventStatus) SetResults(val []AddMemoryResult)
- func (s *EventStatus) SetStatus(val OptEventStatusStatus)
- func (s *EventStatus) UnmarshalJSON(data []byte) error
- func (s *EventStatus) Validate() error
- type EventStatusStatus
- func (EventStatusStatus) AllValues() []EventStatusStatus
- func (s *EventStatusStatus) Decode(d *jx.Decoder) error
- func (s EventStatusStatus) Encode(e *jx.Encoder)
- func (s EventStatusStatus) MarshalJSON() ([]byte, error)
- func (s EventStatusStatus) MarshalText() ([]byte, error)
- func (s *EventStatusStatus) UnmarshalJSON(data []byte) error
- func (s *EventStatusStatus) UnmarshalText(data []byte) error
- func (s EventStatusStatus) Validate() error
- type FilterCondition
- type Filters
- func (s *Filters) Decode(d *jx.Decoder) error
- func (s *Filters) Encode(e *jx.Encoder)
- func (s *Filters) GetAND() []FilterCondition
- func (s *Filters) GetAgentID() OptString
- func (s *Filters) GetAppID() OptString
- func (s *Filters) GetOR() []FilterCondition
- func (s *Filters) GetRunID() OptString
- func (s *Filters) GetUserID() OptString
- func (s *Filters) MarshalJSON() ([]byte, error)
- func (s *Filters) SetAND(val []FilterCondition)
- func (s *Filters) SetAgentID(val OptString)
- func (s *Filters) SetAppID(val OptString)
- func (s *Filters) SetOR(val []FilterCondition)
- func (s *Filters) SetRunID(val OptString)
- func (s *Filters) SetUserID(val OptString)
- func (s *Filters) UnmarshalJSON(data []byte) error
- type GetEntityEntityType
- type GetEntityParams
- type GetEntityRes
- type GetEventStatusParams
- type GetEventStatusRes
- type GetMemoriesRequest
- func (s *GetMemoriesRequest) Decode(d *jx.Decoder) error
- func (s *GetMemoriesRequest) Encode(e *jx.Encoder)
- func (s *GetMemoriesRequest) GetFilters() OptFilters
- func (s *GetMemoriesRequest) GetPage() OptInt
- func (s *GetMemoriesRequest) GetPageSize() OptInt
- func (s *GetMemoriesRequest) MarshalJSON() ([]byte, error)
- func (s *GetMemoriesRequest) SetFilters(val OptFilters)
- func (s *GetMemoriesRequest) SetPage(val OptInt)
- func (s *GetMemoriesRequest) SetPageSize(val OptInt)
- func (s *GetMemoriesRequest) UnmarshalJSON(data []byte) error
- type GetMemoriesRes
- type GetMemoriesResponse
- func (s *GetMemoriesResponse) Decode(d *jx.Decoder) error
- func (s *GetMemoriesResponse) Encode(e *jx.Encoder)
- func (s *GetMemoriesResponse) GetCount() OptInt
- func (s *GetMemoriesResponse) GetNext() OptNilString
- func (s *GetMemoriesResponse) GetPrevious() OptNilString
- func (s *GetMemoriesResponse) GetResults() []MemoryItem
- func (s *GetMemoriesResponse) MarshalJSON() ([]byte, error)
- func (s *GetMemoriesResponse) SetCount(val OptInt)
- func (s *GetMemoriesResponse) SetNext(val OptNilString)
- func (s *GetMemoriesResponse) SetPrevious(val OptNilString)
- func (s *GetMemoriesResponse) SetResults(val []MemoryItem)
- func (s *GetMemoriesResponse) UnmarshalJSON(data []byte) error
- type GetMemoryHistoryOKApplicationJSON
- func (s *GetMemoryHistoryOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetMemoryHistoryOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetMemoryHistoryOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetMemoryHistoryOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetMemoryHistoryOKApplicationJSON) Validate() error
- type GetMemoryHistoryParams
- type GetMemoryHistoryRes
- type GetMemoryParams
- type GetMemoryRes
- type Handler
- type HistoryItem
- func (s *HistoryItem) Decode(d *jx.Decoder) error
- func (s *HistoryItem) Encode(e *jx.Encoder)
- func (s *HistoryItem) GetCreatedAt() OptDateTime
- func (s *HistoryItem) GetEvent() OptHistoryItemEvent
- func (s *HistoryItem) GetID() OptString
- func (s *HistoryItem) GetMemoryID() OptString
- func (s *HistoryItem) GetNewMemory() OptString
- func (s *HistoryItem) GetOldMemory() OptNilString
- func (s *HistoryItem) MarshalJSON() ([]byte, error)
- func (s *HistoryItem) SetCreatedAt(val OptDateTime)
- func (s *HistoryItem) SetEvent(val OptHistoryItemEvent)
- func (s *HistoryItem) SetID(val OptString)
- func (s *HistoryItem) SetMemoryID(val OptString)
- func (s *HistoryItem) SetNewMemory(val OptString)
- func (s *HistoryItem) SetOldMemory(val OptNilString)
- func (s *HistoryItem) UnmarshalJSON(data []byte) error
- func (s *HistoryItem) Validate() error
- type HistoryItemEvent
- func (HistoryItemEvent) AllValues() []HistoryItemEvent
- func (s *HistoryItemEvent) Decode(d *jx.Decoder) error
- func (s HistoryItemEvent) Encode(e *jx.Encoder)
- func (s HistoryItemEvent) MarshalJSON() ([]byte, error)
- func (s HistoryItemEvent) MarshalText() ([]byte, error)
- func (s *HistoryItemEvent) UnmarshalJSON(data []byte) error
- func (s *HistoryItemEvent) UnmarshalText(data []byte) error
- func (s HistoryItemEvent) Validate() error
- type Invoker
- type Labeler
- type MemoryItem
- func (s *MemoryItem) Decode(d *jx.Decoder) error
- func (s *MemoryItem) Encode(e *jx.Encoder)
- func (s *MemoryItem) GetAgentID() OptString
- func (s *MemoryItem) GetAppID() OptString
- func (s *MemoryItem) GetCategories() []string
- func (s *MemoryItem) GetCreatedAt() OptDateTime
- func (s *MemoryItem) GetHash() OptString
- func (s *MemoryItem) GetID() OptString
- func (s *MemoryItem) GetMemory() OptString
- func (s *MemoryItem) GetMetadata() OptMemoryItemMetadata
- func (s *MemoryItem) GetRunID() OptString
- func (s *MemoryItem) GetUpdatedAt() OptDateTime
- func (s *MemoryItem) GetUserID() OptString
- func (s *MemoryItem) MarshalJSON() ([]byte, error)
- func (s *MemoryItem) SetAgentID(val OptString)
- func (s *MemoryItem) SetAppID(val OptString)
- func (s *MemoryItem) SetCategories(val []string)
- func (s *MemoryItem) SetCreatedAt(val OptDateTime)
- func (s *MemoryItem) SetHash(val OptString)
- func (s *MemoryItem) SetID(val OptString)
- func (s *MemoryItem) SetMemory(val OptString)
- func (s *MemoryItem) SetMetadata(val OptMemoryItemMetadata)
- func (s *MemoryItem) SetRunID(val OptString)
- func (s *MemoryItem) SetUpdatedAt(val OptDateTime)
- func (s *MemoryItem) SetUserID(val OptString)
- func (s *MemoryItem) UnmarshalJSON(data []byte) error
- type MemoryItemMetadata
- type Message
- func (s *Message) Decode(d *jx.Decoder) error
- func (s *Message) Encode(e *jx.Encoder)
- func (s *Message) GetContent() string
- func (s *Message) GetRole() MessageRole
- func (s *Message) MarshalJSON() ([]byte, error)
- func (s *Message) SetContent(val string)
- func (s *Message) SetRole(val MessageRole)
- func (s *Message) UnmarshalJSON(data []byte) error
- func (s *Message) Validate() error
- type MessageRole
- func (MessageRole) AllValues() []MessageRole
- func (s *MessageRole) Decode(d *jx.Decoder) error
- func (s MessageRole) Encode(e *jx.Encoder)
- func (s MessageRole) MarshalJSON() ([]byte, error)
- func (s MessageRole) MarshalText() ([]byte, error)
- func (s *MessageRole) UnmarshalJSON(data []byte) error
- func (s *MessageRole) UnmarshalText(data []byte) error
- func (s MessageRole) Validate() error
- type Middleware
- type OperationName
- type OptAddMemoryRequestMetadata
- func (o *OptAddMemoryRequestMetadata) Decode(d *jx.Decoder) error
- func (o OptAddMemoryRequestMetadata) Encode(e *jx.Encoder)
- func (o OptAddMemoryRequestMetadata) Get() (v AddMemoryRequestMetadata, ok bool)
- func (o OptAddMemoryRequestMetadata) IsSet() bool
- func (s OptAddMemoryRequestMetadata) MarshalJSON() ([]byte, error)
- func (o OptAddMemoryRequestMetadata) Or(d AddMemoryRequestMetadata) AddMemoryRequestMetadata
- func (o *OptAddMemoryRequestMetadata) Reset()
- func (o *OptAddMemoryRequestMetadata) SetTo(v AddMemoryRequestMetadata)
- func (s *OptAddMemoryRequestMetadata) UnmarshalJSON(data []byte) error
- type OptAddMemoryResultEvent
- func (o *OptAddMemoryResultEvent) Decode(d *jx.Decoder) error
- func (o OptAddMemoryResultEvent) Encode(e *jx.Encoder)
- func (o OptAddMemoryResultEvent) Get() (v AddMemoryResultEvent, ok bool)
- func (o OptAddMemoryResultEvent) IsSet() bool
- func (s OptAddMemoryResultEvent) MarshalJSON() ([]byte, error)
- func (o OptAddMemoryResultEvent) Or(d AddMemoryResultEvent) AddMemoryResultEvent
- func (o *OptAddMemoryResultEvent) Reset()
- func (o *OptAddMemoryResultEvent) SetTo(v AddMemoryResultEvent)
- func (s *OptAddMemoryResultEvent) UnmarshalJSON(data []byte) error
- 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 OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptEntityType
- func (o *OptEntityType) Decode(d *jx.Decoder) error
- func (o OptEntityType) Encode(e *jx.Encoder)
- func (o OptEntityType) Get() (v EntityType, ok bool)
- func (o OptEntityType) IsSet() bool
- func (s OptEntityType) MarshalJSON() ([]byte, error)
- func (o OptEntityType) Or(d EntityType) EntityType
- func (o *OptEntityType) Reset()
- func (o *OptEntityType) SetTo(v EntityType)
- func (s *OptEntityType) UnmarshalJSON(data []byte) error
- type OptEventStatusStatus
- func (o *OptEventStatusStatus) Decode(d *jx.Decoder) error
- func (o OptEventStatusStatus) Encode(e *jx.Encoder)
- func (o OptEventStatusStatus) Get() (v EventStatusStatus, ok bool)
- func (o OptEventStatusStatus) IsSet() bool
- func (s OptEventStatusStatus) MarshalJSON() ([]byte, error)
- func (o OptEventStatusStatus) Or(d EventStatusStatus) EventStatusStatus
- func (o *OptEventStatusStatus) Reset()
- func (o *OptEventStatusStatus) SetTo(v EventStatusStatus)
- func (s *OptEventStatusStatus) UnmarshalJSON(data []byte) error
- type OptFilters
- func (o *OptFilters) Decode(d *jx.Decoder) error
- func (o OptFilters) Encode(e *jx.Encoder)
- func (o OptFilters) Get() (v Filters, ok bool)
- func (o OptFilters) IsSet() bool
- func (s OptFilters) MarshalJSON() ([]byte, error)
- func (o OptFilters) Or(d Filters) Filters
- func (o *OptFilters) Reset()
- func (o *OptFilters) SetTo(v Filters)
- func (s *OptFilters) UnmarshalJSON(data []byte) error
- type OptFloat32
- func (o *OptFloat32) Decode(d *jx.Decoder) error
- func (o OptFloat32) Encode(e *jx.Encoder)
- func (o OptFloat32) Get() (v float32, ok bool)
- func (o OptFloat32) IsSet() bool
- func (s OptFloat32) MarshalJSON() ([]byte, error)
- func (o OptFloat32) Or(d float32) float32
- func (o *OptFloat32) Reset()
- func (o *OptFloat32) SetTo(v float32)
- func (s *OptFloat32) UnmarshalJSON(data []byte) error
- type OptGetMemoriesRequest
- func (o *OptGetMemoriesRequest) Decode(d *jx.Decoder) error
- func (o OptGetMemoriesRequest) Encode(e *jx.Encoder)
- func (o OptGetMemoriesRequest) Get() (v GetMemoriesRequest, ok bool)
- func (o OptGetMemoriesRequest) IsSet() bool
- func (s OptGetMemoriesRequest) MarshalJSON() ([]byte, error)
- func (o OptGetMemoriesRequest) Or(d GetMemoriesRequest) GetMemoriesRequest
- func (o *OptGetMemoriesRequest) Reset()
- func (o *OptGetMemoriesRequest) SetTo(v GetMemoriesRequest)
- func (s *OptGetMemoriesRequest) UnmarshalJSON(data []byte) error
- type OptHistoryItemEvent
- func (o *OptHistoryItemEvent) Decode(d *jx.Decoder) error
- func (o OptHistoryItemEvent) Encode(e *jx.Encoder)
- func (o OptHistoryItemEvent) Get() (v HistoryItemEvent, ok bool)
- func (o OptHistoryItemEvent) IsSet() bool
- func (s OptHistoryItemEvent) MarshalJSON() ([]byte, error)
- func (o OptHistoryItemEvent) Or(d HistoryItemEvent) HistoryItemEvent
- func (o *OptHistoryItemEvent) Reset()
- func (o *OptHistoryItemEvent) SetTo(v HistoryItemEvent)
- func (s *OptHistoryItemEvent) 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 OptMemoryItemMetadata
- func (o *OptMemoryItemMetadata) Decode(d *jx.Decoder) error
- func (o OptMemoryItemMetadata) Encode(e *jx.Encoder)
- func (o OptMemoryItemMetadata) Get() (v MemoryItemMetadata, ok bool)
- func (o OptMemoryItemMetadata) IsSet() bool
- func (s OptMemoryItemMetadata) MarshalJSON() ([]byte, error)
- func (o OptMemoryItemMetadata) Or(d MemoryItemMetadata) MemoryItemMetadata
- func (o *OptMemoryItemMetadata) Reset()
- func (o *OptMemoryItemMetadata) SetTo(v MemoryItemMetadata)
- func (s *OptMemoryItemMetadata) UnmarshalJSON(data []byte) error
- type OptNilDateTime
- func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptNilDateTime) Get() (v time.Time, ok bool)
- func (o OptNilDateTime) IsEmpty() bool
- func (o OptNilDateTime) IsNull() bool
- func (o OptNilDateTime) IsSet() bool
- func (s OptNilDateTime) MarshalJSON() ([]byte, error)
- func (o OptNilDateTime) Or(d time.Time) time.Time
- func (o *OptNilDateTime) Reset()
- func (o *OptNilDateTime) SetTo(v time.Time)
- func (o *OptNilDateTime) SetToNull()
- func (s *OptNilDateTime) 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 OptSearchResultMetadata
- func (o *OptSearchResultMetadata) Decode(d *jx.Decoder) error
- func (o OptSearchResultMetadata) Encode(e *jx.Encoder)
- func (o OptSearchResultMetadata) Get() (v SearchResultMetadata, ok bool)
- func (o OptSearchResultMetadata) IsSet() bool
- func (s OptSearchResultMetadata) MarshalJSON() ([]byte, error)
- func (o OptSearchResultMetadata) Or(d SearchResultMetadata) SearchResultMetadata
- func (o *OptSearchResultMetadata) Reset()
- func (o *OptSearchResultMetadata) SetTo(v SearchResultMetadata)
- func (s *OptSearchResultMetadata) 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 Option
- type Route
- type SearchMemoriesBadRequest
- type SearchMemoriesRequest
- func (s *SearchMemoriesRequest) Decode(d *jx.Decoder) error
- func (s *SearchMemoriesRequest) Encode(e *jx.Encoder)
- func (s *SearchMemoriesRequest) GetFilters() OptFilters
- func (s *SearchMemoriesRequest) GetQuery() string
- func (s *SearchMemoriesRequest) GetRerank() OptBool
- func (s *SearchMemoriesRequest) GetThreshold() OptFloat32
- func (s *SearchMemoriesRequest) GetTopK() OptInt
- func (s *SearchMemoriesRequest) MarshalJSON() ([]byte, error)
- func (s *SearchMemoriesRequest) SetFilters(val OptFilters)
- func (s *SearchMemoriesRequest) SetQuery(val string)
- func (s *SearchMemoriesRequest) SetRerank(val OptBool)
- func (s *SearchMemoriesRequest) SetThreshold(val OptFloat32)
- func (s *SearchMemoriesRequest) SetTopK(val OptInt)
- func (s *SearchMemoriesRequest) UnmarshalJSON(data []byte) error
- func (s *SearchMemoriesRequest) Validate() error
- type SearchMemoriesRes
- type SearchMemoriesResponse
- func (s *SearchMemoriesResponse) Decode(d *jx.Decoder) error
- func (s *SearchMemoriesResponse) Encode(e *jx.Encoder)
- func (s *SearchMemoriesResponse) GetResults() []SearchResult
- func (s *SearchMemoriesResponse) MarshalJSON() ([]byte, error)
- func (s *SearchMemoriesResponse) SetResults(val []SearchResult)
- func (s *SearchMemoriesResponse) UnmarshalJSON(data []byte) error
- func (s *SearchMemoriesResponse) Validate() error
- type SearchMemoriesUnauthorized
- type SearchResult
- func (s *SearchResult) Decode(d *jx.Decoder) error
- func (s *SearchResult) Encode(e *jx.Encoder)
- func (s *SearchResult) GetAgentID() OptString
- func (s *SearchResult) GetAppID() OptString
- func (s *SearchResult) GetCategories() []string
- func (s *SearchResult) GetCreatedAt() OptDateTime
- func (s *SearchResult) GetHash() OptString
- func (s *SearchResult) GetID() OptString
- func (s *SearchResult) GetMemory() OptString
- func (s *SearchResult) GetMetadata() OptSearchResultMetadata
- func (s *SearchResult) GetRunID() OptString
- func (s *SearchResult) GetScore() OptFloat32
- func (s *SearchResult) GetUpdatedAt() OptDateTime
- func (s *SearchResult) GetUserID() OptString
- func (s *SearchResult) MarshalJSON() ([]byte, error)
- func (s *SearchResult) SetAgentID(val OptString)
- func (s *SearchResult) SetAppID(val OptString)
- func (s *SearchResult) SetCategories(val []string)
- func (s *SearchResult) SetCreatedAt(val OptDateTime)
- func (s *SearchResult) SetHash(val OptString)
- func (s *SearchResult) SetID(val OptString)
- func (s *SearchResult) SetMemory(val OptString)
- func (s *SearchResult) SetMetadata(val OptSearchResultMetadata)
- func (s *SearchResult) SetRunID(val OptString)
- func (s *SearchResult) SetScore(val OptFloat32)
- func (s *SearchResult) SetUpdatedAt(val OptDateTime)
- func (s *SearchResult) SetUserID(val OptString)
- func (s *SearchResult) UnmarshalJSON(data []byte) error
- func (s *SearchResult) Validate() error
- type SearchResultMetadata
- type SecurityHandler
- type SecuritySource
- 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 TokenAuth
- type UnimplementedHandler
- func (UnimplementedHandler) AddMemory(ctx context.Context, req *AddMemoryRequest) (r AddMemoryRes, _ error)
- func (UnimplementedHandler) DeleteAllMemories(ctx context.Context, params DeleteAllMemoriesParams) (r *DeleteAllResponse, _ error)
- func (UnimplementedHandler) DeleteEntity(ctx context.Context, params DeleteEntityParams) (r DeleteEntityRes, _ error)
- func (UnimplementedHandler) DeleteMemory(ctx context.Context, params DeleteMemoryParams) (r DeleteMemoryRes, _ error)
- func (UnimplementedHandler) GetEntity(ctx context.Context, params GetEntityParams) (r GetEntityRes, _ error)
- func (UnimplementedHandler) GetEventStatus(ctx context.Context, params GetEventStatusParams) (r GetEventStatusRes, _ error)
- func (UnimplementedHandler) GetMemories(ctx context.Context, req OptGetMemoriesRequest) (r GetMemoriesRes, _ error)
- func (UnimplementedHandler) GetMemory(ctx context.Context, params GetMemoryParams) (r GetMemoryRes, _ error)
- func (UnimplementedHandler) GetMemoryHistory(ctx context.Context, params GetMemoryHistoryParams) (r GetMemoryHistoryRes, _ error)
- func (UnimplementedHandler) SearchMemories(ctx context.Context, req *SearchMemoriesRequest) (r SearchMemoriesRes, _ error)
- func (UnimplementedHandler) UpdateMemory(ctx context.Context, req *UpdateMemoryRequest, params UpdateMemoryParams) (r UpdateMemoryRes, _ error)
- type UpdateMemoryParams
- type UpdateMemoryRequest
- func (s *UpdateMemoryRequest) Decode(d *jx.Decoder) error
- func (s *UpdateMemoryRequest) Encode(e *jx.Encoder)
- func (s *UpdateMemoryRequest) GetText() string
- func (s *UpdateMemoryRequest) MarshalJSON() ([]byte, error)
- func (s *UpdateMemoryRequest) SetText(val string)
- func (s *UpdateMemoryRequest) UnmarshalJSON(data []byte) error
- type UpdateMemoryRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRolesForTokenAuth ¶
GetRolesForTokenAuth returns the required roles for the given operation.
This is useful for authorization scenarios where you need to know which roles are required for an operation.
Example:
requiredRoles := GetRolesForTokenAuth(AddPetOperation)
Returns nil if the operation has no role requirements or if the operation is unknown.
Types ¶
type AddMemoryBadRequest ¶
type AddMemoryBadRequest ErrorResponse
func (*AddMemoryBadRequest) Decode ¶
func (s *AddMemoryBadRequest) Decode(d *jx.Decoder) error
Decode decodes AddMemoryBadRequest from json.
func (*AddMemoryBadRequest) Encode ¶
func (s *AddMemoryBadRequest) Encode(e *jx.Encoder)
Encode encodes AddMemoryBadRequest as json.
func (*AddMemoryBadRequest) MarshalJSON ¶
func (s *AddMemoryBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddMemoryBadRequest) UnmarshalJSON ¶
func (s *AddMemoryBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AddMemoryRequest ¶
type AddMemoryRequest struct {
Messages []Message `json:"messages"`
UserID OptString `json:"user_id"`
AgentID OptString `json:"agent_id"`
AppID OptString `json:"app_id"`
RunID OptString `json:"run_id"`
Metadata OptAddMemoryRequestMetadata `json:"metadata"`
// Whether to infer facts from messages.
Infer OptBool `json:"infer"`
}
Ref: #/components/schemas/AddMemoryRequest
func (*AddMemoryRequest) Decode ¶
func (s *AddMemoryRequest) Decode(d *jx.Decoder) error
Decode decodes AddMemoryRequest from json.
func (*AddMemoryRequest) Encode ¶
func (s *AddMemoryRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddMemoryRequest) GetAgentID ¶
func (s *AddMemoryRequest) GetAgentID() OptString
GetAgentID returns the value of AgentID.
func (*AddMemoryRequest) GetAppID ¶
func (s *AddMemoryRequest) GetAppID() OptString
GetAppID returns the value of AppID.
func (*AddMemoryRequest) GetInfer ¶
func (s *AddMemoryRequest) GetInfer() OptBool
GetInfer returns the value of Infer.
func (*AddMemoryRequest) GetMessages ¶
func (s *AddMemoryRequest) GetMessages() []Message
GetMessages returns the value of Messages.
func (*AddMemoryRequest) GetMetadata ¶
func (s *AddMemoryRequest) GetMetadata() OptAddMemoryRequestMetadata
GetMetadata returns the value of Metadata.
func (*AddMemoryRequest) GetRunID ¶
func (s *AddMemoryRequest) GetRunID() OptString
GetRunID returns the value of RunID.
func (*AddMemoryRequest) GetUserID ¶
func (s *AddMemoryRequest) GetUserID() OptString
GetUserID returns the value of UserID.
func (*AddMemoryRequest) MarshalJSON ¶
func (s *AddMemoryRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddMemoryRequest) SetAgentID ¶
func (s *AddMemoryRequest) SetAgentID(val OptString)
SetAgentID sets the value of AgentID.
func (*AddMemoryRequest) SetAppID ¶
func (s *AddMemoryRequest) SetAppID(val OptString)
SetAppID sets the value of AppID.
func (*AddMemoryRequest) SetInfer ¶
func (s *AddMemoryRequest) SetInfer(val OptBool)
SetInfer sets the value of Infer.
func (*AddMemoryRequest) SetMessages ¶
func (s *AddMemoryRequest) SetMessages(val []Message)
SetMessages sets the value of Messages.
func (*AddMemoryRequest) SetMetadata ¶
func (s *AddMemoryRequest) SetMetadata(val OptAddMemoryRequestMetadata)
SetMetadata sets the value of Metadata.
func (*AddMemoryRequest) SetRunID ¶
func (s *AddMemoryRequest) SetRunID(val OptString)
SetRunID sets the value of RunID.
func (*AddMemoryRequest) SetUserID ¶
func (s *AddMemoryRequest) SetUserID(val OptString)
SetUserID sets the value of UserID.
func (*AddMemoryRequest) UnmarshalJSON ¶
func (s *AddMemoryRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddMemoryRequest) Validate ¶
func (s *AddMemoryRequest) Validate() error
type AddMemoryRequestMetadata ¶
func (*AddMemoryRequestMetadata) Decode ¶
func (s *AddMemoryRequestMetadata) Decode(d *jx.Decoder) error
Decode decodes AddMemoryRequestMetadata from json.
func (AddMemoryRequestMetadata) Encode ¶
func (s AddMemoryRequestMetadata) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (AddMemoryRequestMetadata) MarshalJSON ¶
func (s AddMemoryRequestMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddMemoryRequestMetadata) UnmarshalJSON ¶
func (s *AddMemoryRequestMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AddMemoryRes ¶
type AddMemoryRes interface {
// contains filtered or unexported methods
}
type AddMemoryResponse ¶
type AddMemoryResponse struct {
// Event ID for polling async operation status.
EventID OptString `json:"event_id"`
Results []AddMemoryResult `json:"results"`
}
Ref: #/components/schemas/AddMemoryResponse
func (*AddMemoryResponse) Decode ¶
func (s *AddMemoryResponse) Decode(d *jx.Decoder) error
Decode decodes AddMemoryResponse from json.
func (*AddMemoryResponse) Encode ¶
func (s *AddMemoryResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddMemoryResponse) GetEventID ¶
func (s *AddMemoryResponse) GetEventID() OptString
GetEventID returns the value of EventID.
func (*AddMemoryResponse) GetResults ¶
func (s *AddMemoryResponse) GetResults() []AddMemoryResult
GetResults returns the value of Results.
func (*AddMemoryResponse) MarshalJSON ¶
func (s *AddMemoryResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddMemoryResponse) SetEventID ¶
func (s *AddMemoryResponse) SetEventID(val OptString)
SetEventID sets the value of EventID.
func (*AddMemoryResponse) SetResults ¶
func (s *AddMemoryResponse) SetResults(val []AddMemoryResult)
SetResults sets the value of Results.
func (*AddMemoryResponse) UnmarshalJSON ¶
func (s *AddMemoryResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddMemoryResponse) Validate ¶
func (s *AddMemoryResponse) Validate() error
type AddMemoryResult ¶
type AddMemoryResult struct {
ID OptString `json:"id"`
Memory OptString `json:"memory"`
Event OptAddMemoryResultEvent `json:"event"`
}
Ref: #/components/schemas/AddMemoryResult
func (*AddMemoryResult) Decode ¶
func (s *AddMemoryResult) Decode(d *jx.Decoder) error
Decode decodes AddMemoryResult from json.
func (*AddMemoryResult) Encode ¶
func (s *AddMemoryResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddMemoryResult) GetEvent ¶
func (s *AddMemoryResult) GetEvent() OptAddMemoryResultEvent
GetEvent returns the value of Event.
func (*AddMemoryResult) GetID ¶
func (s *AddMemoryResult) GetID() OptString
GetID returns the value of ID.
func (*AddMemoryResult) GetMemory ¶
func (s *AddMemoryResult) GetMemory() OptString
GetMemory returns the value of Memory.
func (*AddMemoryResult) MarshalJSON ¶
func (s *AddMemoryResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddMemoryResult) SetEvent ¶
func (s *AddMemoryResult) SetEvent(val OptAddMemoryResultEvent)
SetEvent sets the value of Event.
func (*AddMemoryResult) SetID ¶
func (s *AddMemoryResult) SetID(val OptString)
SetID sets the value of ID.
func (*AddMemoryResult) SetMemory ¶
func (s *AddMemoryResult) SetMemory(val OptString)
SetMemory sets the value of Memory.
func (*AddMemoryResult) UnmarshalJSON ¶
func (s *AddMemoryResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddMemoryResult) Validate ¶
func (s *AddMemoryResult) Validate() error
type AddMemoryResultEvent ¶
type AddMemoryResultEvent string
const ( AddMemoryResultEventADD AddMemoryResultEvent = "ADD" AddMemoryResultEventUPDATE AddMemoryResultEvent = "UPDATE" AddMemoryResultEventDELETE AddMemoryResultEvent = "DELETE" AddMemoryResultEventNOOP AddMemoryResultEvent = "NOOP" )
func (AddMemoryResultEvent) AllValues ¶
func (AddMemoryResultEvent) AllValues() []AddMemoryResultEvent
AllValues returns all AddMemoryResultEvent values.
func (*AddMemoryResultEvent) Decode ¶
func (s *AddMemoryResultEvent) Decode(d *jx.Decoder) error
Decode decodes AddMemoryResultEvent from json.
func (AddMemoryResultEvent) Encode ¶
func (s AddMemoryResultEvent) Encode(e *jx.Encoder)
Encode encodes AddMemoryResultEvent as json.
func (AddMemoryResultEvent) MarshalJSON ¶
func (s AddMemoryResultEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AddMemoryResultEvent) MarshalText ¶
func (s AddMemoryResultEvent) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AddMemoryResultEvent) UnmarshalJSON ¶
func (s *AddMemoryResultEvent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddMemoryResultEvent) UnmarshalText ¶
func (s *AddMemoryResultEvent) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AddMemoryResultEvent) Validate ¶
func (s AddMemoryResultEvent) Validate() error
type AddMemoryUnauthorized ¶
type AddMemoryUnauthorized ErrorResponse
func (*AddMemoryUnauthorized) Decode ¶
func (s *AddMemoryUnauthorized) Decode(d *jx.Decoder) error
Decode decodes AddMemoryUnauthorized from json.
func (*AddMemoryUnauthorized) Encode ¶
func (s *AddMemoryUnauthorized) Encode(e *jx.Encoder)
Encode encodes AddMemoryUnauthorized as json.
func (*AddMemoryUnauthorized) MarshalJSON ¶
func (s *AddMemoryUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddMemoryUnauthorized) UnmarshalJSON ¶
func (s *AddMemoryUnauthorized) 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, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AddMemory ¶
func (c *Client) AddMemory(ctx context.Context, request *AddMemoryRequest) (AddMemoryRes, error)
AddMemory invokes addMemory operation.
Extracts facts from conversation messages using single-pass additive extraction.
POST /v3/memories/add/
func (*Client) DeleteAllMemories ¶
func (c *Client) DeleteAllMemories(ctx context.Context, params DeleteAllMemoriesParams) (*DeleteAllResponse, error)
DeleteAllMemories invokes deleteAllMemories operation.
Delete all memories for an identifier.
DELETE /v1/memories/
func (*Client) DeleteEntity ¶
func (c *Client) DeleteEntity(ctx context.Context, params DeleteEntityParams) (DeleteEntityRes, error)
DeleteEntity invokes deleteEntity operation.
Cascade-delete all memories for entity.
DELETE /v2/entities/{entity_type}/{entity_id}/
func (*Client) DeleteMemory ¶
func (c *Client) DeleteMemory(ctx context.Context, params DeleteMemoryParams) (DeleteMemoryRes, error)
DeleteMemory invokes deleteMemory operation.
Remove a single memory record.
DELETE /v1/memories/{memory_id}/
func (*Client) GetEntity ¶
func (c *Client) GetEntity(ctx context.Context, params GetEntityParams) (GetEntityRes, error)
GetEntity invokes getEntity operation.
Get entity details.
GET /v2/entities/{entity_type}/{entity_id}/
func (*Client) GetEventStatus ¶
func (c *Client) GetEventStatus(ctx context.Context, params GetEventStatusParams) (GetEventStatusRes, error)
GetEventStatus invokes getEventStatus operation.
Retrieve final status of asynchronous operations.
GET /v1/event/{event_id}/
func (*Client) GetMemories ¶
func (c *Client) GetMemories(ctx context.Context, request OptGetMemoriesRequest) (GetMemoriesRes, error)
GetMemories invokes getMemories operation.
Paginated retrieval of memories with optional filtering.
POST /v3/memories/
func (*Client) GetMemory ¶
func (c *Client) GetMemory(ctx context.Context, params GetMemoryParams) (GetMemoryRes, error)
GetMemory invokes getMemory operation.
Fetch a specific memory record by ID.
GET /v1/memories/{memory_id}/
func (*Client) GetMemoryHistory ¶
func (c *Client) GetMemoryHistory(ctx context.Context, params GetMemoryHistoryParams) (GetMemoryHistoryRes, error)
GetMemoryHistory invokes getMemoryHistory operation.
Access memory change history.
GET /v1/memories/{memory_id}/history/
func (*Client) SearchMemories ¶
func (c *Client) SearchMemories(ctx context.Context, request *SearchMemoriesRequest) (SearchMemoriesRes, error)
SearchMemories invokes searchMemories operation.
Performs hybrid search combining semantic, BM25, and entity matching.
POST /v3/memories/search/
func (*Client) UpdateMemory ¶
func (c *Client) UpdateMemory(ctx context.Context, request *UpdateMemoryRequest, params UpdateMemoryParams) (UpdateMemoryRes, error)
UpdateMemory invokes updateMemory operation.
Modify an existing memory record.
PUT /v1/memories/{memory_id}/
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 DeleteAllMemoriesParams ¶
type DeleteAllMemoriesParams struct {
UserID OptString `json:",omitempty,omitzero"`
AgentID OptString `json:",omitempty,omitzero"`
AppID OptString `json:",omitempty,omitzero"`
RunID OptString `json:",omitempty,omitzero"`
}
DeleteAllMemoriesParams is parameters of deleteAllMemories operation.
type DeleteAllResponse ¶
type DeleteAllResponse struct {
Message OptString `json:"message"`
DeletedCount OptInt `json:"deleted_count"`
}
Ref: #/components/schemas/DeleteAllResponse
func (*DeleteAllResponse) Decode ¶
func (s *DeleteAllResponse) Decode(d *jx.Decoder) error
Decode decodes DeleteAllResponse from json.
func (*DeleteAllResponse) Encode ¶
func (s *DeleteAllResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteAllResponse) GetDeletedCount ¶
func (s *DeleteAllResponse) GetDeletedCount() OptInt
GetDeletedCount returns the value of DeletedCount.
func (*DeleteAllResponse) GetMessage ¶
func (s *DeleteAllResponse) GetMessage() OptString
GetMessage returns the value of Message.
func (*DeleteAllResponse) MarshalJSON ¶
func (s *DeleteAllResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteAllResponse) SetDeletedCount ¶
func (s *DeleteAllResponse) SetDeletedCount(val OptInt)
SetDeletedCount sets the value of DeletedCount.
func (*DeleteAllResponse) SetMessage ¶
func (s *DeleteAllResponse) SetMessage(val OptString)
SetMessage sets the value of Message.
func (*DeleteAllResponse) UnmarshalJSON ¶
func (s *DeleteAllResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteEntityEntityType ¶
type DeleteEntityEntityType string
const ( DeleteEntityEntityTypeUser DeleteEntityEntityType = "user" DeleteEntityEntityTypeAgent DeleteEntityEntityType = "agent" DeleteEntityEntityTypeApp DeleteEntityEntityType = "app" DeleteEntityEntityTypeRun DeleteEntityEntityType = "run" )
func (DeleteEntityEntityType) AllValues ¶
func (DeleteEntityEntityType) AllValues() []DeleteEntityEntityType
AllValues returns all DeleteEntityEntityType values.
func (DeleteEntityEntityType) MarshalText ¶
func (s DeleteEntityEntityType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*DeleteEntityEntityType) UnmarshalText ¶
func (s *DeleteEntityEntityType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (DeleteEntityEntityType) Validate ¶
func (s DeleteEntityEntityType) Validate() error
type DeleteEntityParams ¶
type DeleteEntityParams struct {
EntityType DeleteEntityEntityType
EntityID string
}
DeleteEntityParams is parameters of deleteEntity operation.
type DeleteEntityRes ¶
type DeleteEntityRes interface {
// contains filtered or unexported methods
}
type DeleteMemoryParams ¶
type DeleteMemoryParams struct {
MemoryID string
}
DeleteMemoryParams is parameters of deleteMemory operation.
type DeleteMemoryRes ¶
type DeleteMemoryRes interface {
// contains filtered or unexported methods
}
type DeleteResponse ¶
type DeleteResponse struct {
Message OptString `json:"message"`
}
Ref: #/components/schemas/DeleteResponse
func (*DeleteResponse) Decode ¶
func (s *DeleteResponse) Decode(d *jx.Decoder) error
Decode decodes DeleteResponse from json.
func (*DeleteResponse) Encode ¶
func (s *DeleteResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteResponse) GetMessage ¶
func (s *DeleteResponse) GetMessage() OptString
GetMessage returns the value of Message.
func (*DeleteResponse) MarshalJSON ¶
func (s *DeleteResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteResponse) SetMessage ¶
func (s *DeleteResponse) SetMessage(val OptString)
SetMessage sets the value of Message.
func (*DeleteResponse) UnmarshalJSON ¶
func (s *DeleteResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Entity ¶
type Entity struct {
Type OptEntityType `json:"type"`
ID OptString `json:"id"`
MemoryCount OptInt `json:"memory_count"`
CreatedAt OptDateTime `json:"created_at"`
UpdatedAt OptDateTime `json:"updated_at"`
}
Ref: #/components/schemas/Entity
func (*Entity) GetCreatedAt ¶
func (s *Entity) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*Entity) GetMemoryCount ¶
GetMemoryCount returns the value of MemoryCount.
func (*Entity) GetType ¶
func (s *Entity) GetType() OptEntityType
GetType returns the value of Type.
func (*Entity) GetUpdatedAt ¶
func (s *Entity) GetUpdatedAt() OptDateTime
GetUpdatedAt returns the value of UpdatedAt.
func (*Entity) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Entity) SetCreatedAt ¶
func (s *Entity) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*Entity) SetMemoryCount ¶
SetMemoryCount sets the value of MemoryCount.
func (*Entity) SetType ¶
func (s *Entity) SetType(val OptEntityType)
SetType sets the value of Type.
func (*Entity) SetUpdatedAt ¶
func (s *Entity) SetUpdatedAt(val OptDateTime)
SetUpdatedAt sets the value of UpdatedAt.
func (*Entity) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type EntityType ¶
type EntityType string
const ( EntityTypeUser EntityType = "user" EntityTypeAgent EntityType = "agent" EntityTypeApp EntityType = "app" EntityTypeRun EntityType = "run" )
func (EntityType) AllValues ¶
func (EntityType) AllValues() []EntityType
AllValues returns all EntityType values.
func (*EntityType) Decode ¶
func (s *EntityType) Decode(d *jx.Decoder) error
Decode decodes EntityType from json.
func (EntityType) Encode ¶
func (s EntityType) Encode(e *jx.Encoder)
Encode encodes EntityType as json.
func (EntityType) MarshalJSON ¶
func (s EntityType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EntityType) MarshalText ¶
func (s EntityType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EntityType) UnmarshalJSON ¶
func (s *EntityType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EntityType) UnmarshalText ¶
func (s *EntityType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EntityType) Validate ¶
func (s EntityType) Validate() error
type ErrorResponse ¶
Ref: #/components/schemas/ErrorResponse
func (*ErrorResponse) Decode ¶
func (s *ErrorResponse) Decode(d *jx.Decoder) error
Decode decodes ErrorResponse from json.
func (*ErrorResponse) Encode ¶
func (s *ErrorResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ErrorResponse) GetCode ¶
func (s *ErrorResponse) GetCode() OptString
GetCode returns the value of Code.
func (*ErrorResponse) GetDetail ¶
func (s *ErrorResponse) GetDetail() OptString
GetDetail returns the value of Detail.
func (*ErrorResponse) MarshalJSON ¶
func (s *ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ErrorResponse) SetCode ¶
func (s *ErrorResponse) SetCode(val OptString)
SetCode sets the value of Code.
func (*ErrorResponse) SetDetail ¶
func (s *ErrorResponse) SetDetail(val OptString)
SetDetail sets the value of Detail.
func (*ErrorResponse) UnmarshalJSON ¶
func (s *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type EventStatus ¶
type EventStatus struct {
EventID OptString `json:"event_id"`
Status OptEventStatusStatus `json:"status"`
Results []AddMemoryResult `json:"results"`
Error OptNilString `json:"error"`
CreatedAt OptDateTime `json:"created_at"`
CompletedAt OptNilDateTime `json:"completed_at"`
}
Ref: #/components/schemas/EventStatus
func (*EventStatus) Decode ¶
func (s *EventStatus) Decode(d *jx.Decoder) error
Decode decodes EventStatus from json.
func (*EventStatus) Encode ¶
func (s *EventStatus) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EventStatus) GetCompletedAt ¶
func (s *EventStatus) GetCompletedAt() OptNilDateTime
GetCompletedAt returns the value of CompletedAt.
func (*EventStatus) GetCreatedAt ¶
func (s *EventStatus) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*EventStatus) GetError ¶
func (s *EventStatus) GetError() OptNilString
GetError returns the value of Error.
func (*EventStatus) GetEventID ¶
func (s *EventStatus) GetEventID() OptString
GetEventID returns the value of EventID.
func (*EventStatus) GetResults ¶
func (s *EventStatus) GetResults() []AddMemoryResult
GetResults returns the value of Results.
func (*EventStatus) GetStatus ¶
func (s *EventStatus) GetStatus() OptEventStatusStatus
GetStatus returns the value of Status.
func (*EventStatus) MarshalJSON ¶
func (s *EventStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EventStatus) SetCompletedAt ¶
func (s *EventStatus) SetCompletedAt(val OptNilDateTime)
SetCompletedAt sets the value of CompletedAt.
func (*EventStatus) SetCreatedAt ¶
func (s *EventStatus) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*EventStatus) SetError ¶
func (s *EventStatus) SetError(val OptNilString)
SetError sets the value of Error.
func (*EventStatus) SetEventID ¶
func (s *EventStatus) SetEventID(val OptString)
SetEventID sets the value of EventID.
func (*EventStatus) SetResults ¶
func (s *EventStatus) SetResults(val []AddMemoryResult)
SetResults sets the value of Results.
func (*EventStatus) SetStatus ¶
func (s *EventStatus) SetStatus(val OptEventStatusStatus)
SetStatus sets the value of Status.
func (*EventStatus) UnmarshalJSON ¶
func (s *EventStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EventStatus) Validate ¶
func (s *EventStatus) Validate() error
type EventStatusStatus ¶
type EventStatusStatus string
const ( EventStatusStatusPending EventStatusStatus = "pending" EventStatusStatusProcessing EventStatusStatus = "processing" EventStatusStatusCompleted EventStatusStatus = "completed" EventStatusStatusFailed EventStatusStatus = "failed" )
func (EventStatusStatus) AllValues ¶
func (EventStatusStatus) AllValues() []EventStatusStatus
AllValues returns all EventStatusStatus values.
func (*EventStatusStatus) Decode ¶
func (s *EventStatusStatus) Decode(d *jx.Decoder) error
Decode decodes EventStatusStatus from json.
func (EventStatusStatus) Encode ¶
func (s EventStatusStatus) Encode(e *jx.Encoder)
Encode encodes EventStatusStatus as json.
func (EventStatusStatus) MarshalJSON ¶
func (s EventStatusStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EventStatusStatus) MarshalText ¶
func (s EventStatusStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EventStatusStatus) UnmarshalJSON ¶
func (s *EventStatusStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EventStatusStatus) UnmarshalText ¶
func (s *EventStatusStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EventStatusStatus) Validate ¶
func (s EventStatusStatus) Validate() error
type FilterCondition ¶
Ref: #/components/schemas/FilterCondition
func (*FilterCondition) Decode ¶
func (s *FilterCondition) Decode(d *jx.Decoder) error
Decode decodes FilterCondition from json.
func (FilterCondition) Encode ¶
func (s FilterCondition) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FilterCondition) MarshalJSON ¶
func (s FilterCondition) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FilterCondition) UnmarshalJSON ¶
func (s *FilterCondition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Filters ¶
type Filters struct {
UserID OptString `json:"user_id"`
AgentID OptString `json:"agent_id"`
AppID OptString `json:"app_id"`
RunID OptString `json:"run_id"`
AND []FilterCondition `json:"AND"`
OR []FilterCondition `json:"OR"`
}
Ref: #/components/schemas/Filters
func (*Filters) GetAND ¶
func (s *Filters) GetAND() []FilterCondition
GetAND returns the value of AND.
func (*Filters) GetAgentID ¶
GetAgentID returns the value of AgentID.
func (*Filters) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Filters) SetAND ¶
func (s *Filters) SetAND(val []FilterCondition)
SetAND sets the value of AND.
func (*Filters) SetAgentID ¶
SetAgentID sets the value of AgentID.
func (*Filters) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type GetEntityEntityType ¶
type GetEntityEntityType string
const ( GetEntityEntityTypeUser GetEntityEntityType = "user" GetEntityEntityTypeAgent GetEntityEntityType = "agent" GetEntityEntityTypeApp GetEntityEntityType = "app" GetEntityEntityTypeRun GetEntityEntityType = "run" )
func (GetEntityEntityType) AllValues ¶
func (GetEntityEntityType) AllValues() []GetEntityEntityType
AllValues returns all GetEntityEntityType values.
func (GetEntityEntityType) MarshalText ¶
func (s GetEntityEntityType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*GetEntityEntityType) UnmarshalText ¶
func (s *GetEntityEntityType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (GetEntityEntityType) Validate ¶
func (s GetEntityEntityType) Validate() error
type GetEntityParams ¶
type GetEntityParams struct {
EntityType GetEntityEntityType
EntityID string
}
GetEntityParams is parameters of getEntity operation.
type GetEntityRes ¶
type GetEntityRes interface {
// contains filtered or unexported methods
}
type GetEventStatusParams ¶
type GetEventStatusParams struct {
EventID string
}
GetEventStatusParams is parameters of getEventStatus operation.
type GetEventStatusRes ¶
type GetEventStatusRes interface {
// contains filtered or unexported methods
}
type GetMemoriesRequest ¶
type GetMemoriesRequest struct {
Filters OptFilters `json:"filters"`
Page OptInt `json:"page"`
PageSize OptInt `json:"page_size"`
}
Ref: #/components/schemas/GetMemoriesRequest
func (*GetMemoriesRequest) Decode ¶
func (s *GetMemoriesRequest) Decode(d *jx.Decoder) error
Decode decodes GetMemoriesRequest from json.
func (*GetMemoriesRequest) Encode ¶
func (s *GetMemoriesRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetMemoriesRequest) GetFilters ¶
func (s *GetMemoriesRequest) GetFilters() OptFilters
GetFilters returns the value of Filters.
func (*GetMemoriesRequest) GetPage ¶
func (s *GetMemoriesRequest) GetPage() OptInt
GetPage returns the value of Page.
func (*GetMemoriesRequest) GetPageSize ¶
func (s *GetMemoriesRequest) GetPageSize() OptInt
GetPageSize returns the value of PageSize.
func (*GetMemoriesRequest) MarshalJSON ¶
func (s *GetMemoriesRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetMemoriesRequest) SetFilters ¶
func (s *GetMemoriesRequest) SetFilters(val OptFilters)
SetFilters sets the value of Filters.
func (*GetMemoriesRequest) SetPage ¶
func (s *GetMemoriesRequest) SetPage(val OptInt)
SetPage sets the value of Page.
func (*GetMemoriesRequest) SetPageSize ¶
func (s *GetMemoriesRequest) SetPageSize(val OptInt)
SetPageSize sets the value of PageSize.
func (*GetMemoriesRequest) UnmarshalJSON ¶
func (s *GetMemoriesRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetMemoriesRes ¶
type GetMemoriesRes interface {
// contains filtered or unexported methods
}
type GetMemoriesResponse ¶
type GetMemoriesResponse struct {
Count OptInt `json:"count"`
Next OptNilString `json:"next"`
Previous OptNilString `json:"previous"`
Results []MemoryItem `json:"results"`
}
Ref: #/components/schemas/GetMemoriesResponse
func (*GetMemoriesResponse) Decode ¶
func (s *GetMemoriesResponse) Decode(d *jx.Decoder) error
Decode decodes GetMemoriesResponse from json.
func (*GetMemoriesResponse) Encode ¶
func (s *GetMemoriesResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetMemoriesResponse) GetCount ¶
func (s *GetMemoriesResponse) GetCount() OptInt
GetCount returns the value of Count.
func (*GetMemoriesResponse) GetNext ¶
func (s *GetMemoriesResponse) GetNext() OptNilString
GetNext returns the value of Next.
func (*GetMemoriesResponse) GetPrevious ¶
func (s *GetMemoriesResponse) GetPrevious() OptNilString
GetPrevious returns the value of Previous.
func (*GetMemoriesResponse) GetResults ¶
func (s *GetMemoriesResponse) GetResults() []MemoryItem
GetResults returns the value of Results.
func (*GetMemoriesResponse) MarshalJSON ¶
func (s *GetMemoriesResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetMemoriesResponse) SetCount ¶
func (s *GetMemoriesResponse) SetCount(val OptInt)
SetCount sets the value of Count.
func (*GetMemoriesResponse) SetNext ¶
func (s *GetMemoriesResponse) SetNext(val OptNilString)
SetNext sets the value of Next.
func (*GetMemoriesResponse) SetPrevious ¶
func (s *GetMemoriesResponse) SetPrevious(val OptNilString)
SetPrevious sets the value of Previous.
func (*GetMemoriesResponse) SetResults ¶
func (s *GetMemoriesResponse) SetResults(val []MemoryItem)
SetResults sets the value of Results.
func (*GetMemoriesResponse) UnmarshalJSON ¶
func (s *GetMemoriesResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetMemoryHistoryOKApplicationJSON ¶
type GetMemoryHistoryOKApplicationJSON []HistoryItem
func (*GetMemoryHistoryOKApplicationJSON) Decode ¶
func (s *GetMemoryHistoryOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetMemoryHistoryOKApplicationJSON from json.
func (GetMemoryHistoryOKApplicationJSON) Encode ¶
func (s GetMemoryHistoryOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetMemoryHistoryOKApplicationJSON as json.
func (GetMemoryHistoryOKApplicationJSON) MarshalJSON ¶
func (s GetMemoryHistoryOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetMemoryHistoryOKApplicationJSON) UnmarshalJSON ¶
func (s *GetMemoryHistoryOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetMemoryHistoryOKApplicationJSON) Validate ¶
func (s GetMemoryHistoryOKApplicationJSON) Validate() error
type GetMemoryHistoryParams ¶
type GetMemoryHistoryParams struct {
MemoryID string
}
GetMemoryHistoryParams is parameters of getMemoryHistory operation.
type GetMemoryHistoryRes ¶
type GetMemoryHistoryRes interface {
// contains filtered or unexported methods
}
type GetMemoryParams ¶
type GetMemoryParams struct {
MemoryID string
}
GetMemoryParams is parameters of getMemory operation.
type GetMemoryRes ¶
type GetMemoryRes interface {
// contains filtered or unexported methods
}
type Handler ¶
type Handler interface {
// AddMemory implements addMemory operation.
//
// Extracts facts from conversation messages using single-pass additive extraction.
//
// POST /v3/memories/add/
AddMemory(ctx context.Context, req *AddMemoryRequest) (AddMemoryRes, error)
// DeleteAllMemories implements deleteAllMemories operation.
//
// Delete all memories for an identifier.
//
// DELETE /v1/memories/
DeleteAllMemories(ctx context.Context, params DeleteAllMemoriesParams) (*DeleteAllResponse, error)
// DeleteEntity implements deleteEntity operation.
//
// Cascade-delete all memories for entity.
//
// DELETE /v2/entities/{entity_type}/{entity_id}/
DeleteEntity(ctx context.Context, params DeleteEntityParams) (DeleteEntityRes, error)
// DeleteMemory implements deleteMemory operation.
//
// Remove a single memory record.
//
// DELETE /v1/memories/{memory_id}/
DeleteMemory(ctx context.Context, params DeleteMemoryParams) (DeleteMemoryRes, error)
// GetEntity implements getEntity operation.
//
// Get entity details.
//
// GET /v2/entities/{entity_type}/{entity_id}/
GetEntity(ctx context.Context, params GetEntityParams) (GetEntityRes, error)
// GetEventStatus implements getEventStatus operation.
//
// Retrieve final status of asynchronous operations.
//
// GET /v1/event/{event_id}/
GetEventStatus(ctx context.Context, params GetEventStatusParams) (GetEventStatusRes, error)
// GetMemories implements getMemories operation.
//
// Paginated retrieval of memories with optional filtering.
//
// POST /v3/memories/
GetMemories(ctx context.Context, req OptGetMemoriesRequest) (GetMemoriesRes, error)
// GetMemory implements getMemory operation.
//
// Fetch a specific memory record by ID.
//
// GET /v1/memories/{memory_id}/
GetMemory(ctx context.Context, params GetMemoryParams) (GetMemoryRes, error)
// GetMemoryHistory implements getMemoryHistory operation.
//
// Access memory change history.
//
// GET /v1/memories/{memory_id}/history/
GetMemoryHistory(ctx context.Context, params GetMemoryHistoryParams) (GetMemoryHistoryRes, error)
// SearchMemories implements searchMemories operation.
//
// Performs hybrid search combining semantic, BM25, and entity matching.
//
// POST /v3/memories/search/
SearchMemories(ctx context.Context, req *SearchMemoriesRequest) (SearchMemoriesRes, error)
// UpdateMemory implements updateMemory operation.
//
// Modify an existing memory record.
//
// PUT /v1/memories/{memory_id}/
UpdateMemory(ctx context.Context, req *UpdateMemoryRequest, params UpdateMemoryParams) (UpdateMemoryRes, error)
}
Handler handles operations described by OpenAPI v3 specification.
type HistoryItem ¶
type HistoryItem struct {
ID OptString `json:"id"`
MemoryID OptString `json:"memory_id"`
OldMemory OptNilString `json:"old_memory"`
NewMemory OptString `json:"new_memory"`
Event OptHistoryItemEvent `json:"event"`
CreatedAt OptDateTime `json:"created_at"`
}
Ref: #/components/schemas/HistoryItem
func (*HistoryItem) Decode ¶
func (s *HistoryItem) Decode(d *jx.Decoder) error
Decode decodes HistoryItem from json.
func (*HistoryItem) Encode ¶
func (s *HistoryItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*HistoryItem) GetCreatedAt ¶
func (s *HistoryItem) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*HistoryItem) GetEvent ¶
func (s *HistoryItem) GetEvent() OptHistoryItemEvent
GetEvent returns the value of Event.
func (*HistoryItem) GetMemoryID ¶
func (s *HistoryItem) GetMemoryID() OptString
GetMemoryID returns the value of MemoryID.
func (*HistoryItem) GetNewMemory ¶
func (s *HistoryItem) GetNewMemory() OptString
GetNewMemory returns the value of NewMemory.
func (*HistoryItem) GetOldMemory ¶
func (s *HistoryItem) GetOldMemory() OptNilString
GetOldMemory returns the value of OldMemory.
func (*HistoryItem) MarshalJSON ¶
func (s *HistoryItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HistoryItem) SetCreatedAt ¶
func (s *HistoryItem) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*HistoryItem) SetEvent ¶
func (s *HistoryItem) SetEvent(val OptHistoryItemEvent)
SetEvent sets the value of Event.
func (*HistoryItem) SetMemoryID ¶
func (s *HistoryItem) SetMemoryID(val OptString)
SetMemoryID sets the value of MemoryID.
func (*HistoryItem) SetNewMemory ¶
func (s *HistoryItem) SetNewMemory(val OptString)
SetNewMemory sets the value of NewMemory.
func (*HistoryItem) SetOldMemory ¶
func (s *HistoryItem) SetOldMemory(val OptNilString)
SetOldMemory sets the value of OldMemory.
func (*HistoryItem) UnmarshalJSON ¶
func (s *HistoryItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HistoryItem) Validate ¶
func (s *HistoryItem) Validate() error
type HistoryItemEvent ¶
type HistoryItemEvent string
const ( HistoryItemEventADD HistoryItemEvent = "ADD" HistoryItemEventUPDATE HistoryItemEvent = "UPDATE" HistoryItemEventDELETE HistoryItemEvent = "DELETE" )
func (HistoryItemEvent) AllValues ¶
func (HistoryItemEvent) AllValues() []HistoryItemEvent
AllValues returns all HistoryItemEvent values.
func (*HistoryItemEvent) Decode ¶
func (s *HistoryItemEvent) Decode(d *jx.Decoder) error
Decode decodes HistoryItemEvent from json.
func (HistoryItemEvent) Encode ¶
func (s HistoryItemEvent) Encode(e *jx.Encoder)
Encode encodes HistoryItemEvent as json.
func (HistoryItemEvent) MarshalJSON ¶
func (s HistoryItemEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HistoryItemEvent) MarshalText ¶
func (s HistoryItemEvent) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HistoryItemEvent) UnmarshalJSON ¶
func (s *HistoryItemEvent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HistoryItemEvent) UnmarshalText ¶
func (s *HistoryItemEvent) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HistoryItemEvent) Validate ¶
func (s HistoryItemEvent) Validate() error
type Invoker ¶
type Invoker interface {
// AddMemory invokes addMemory operation.
//
// Extracts facts from conversation messages using single-pass additive extraction.
//
// POST /v3/memories/add/
AddMemory(ctx context.Context, request *AddMemoryRequest) (AddMemoryRes, error)
// DeleteAllMemories invokes deleteAllMemories operation.
//
// Delete all memories for an identifier.
//
// DELETE /v1/memories/
DeleteAllMemories(ctx context.Context, params DeleteAllMemoriesParams) (*DeleteAllResponse, error)
// DeleteEntity invokes deleteEntity operation.
//
// Cascade-delete all memories for entity.
//
// DELETE /v2/entities/{entity_type}/{entity_id}/
DeleteEntity(ctx context.Context, params DeleteEntityParams) (DeleteEntityRes, error)
// DeleteMemory invokes deleteMemory operation.
//
// Remove a single memory record.
//
// DELETE /v1/memories/{memory_id}/
DeleteMemory(ctx context.Context, params DeleteMemoryParams) (DeleteMemoryRes, error)
// GetEntity invokes getEntity operation.
//
// Get entity details.
//
// GET /v2/entities/{entity_type}/{entity_id}/
GetEntity(ctx context.Context, params GetEntityParams) (GetEntityRes, error)
// GetEventStatus invokes getEventStatus operation.
//
// Retrieve final status of asynchronous operations.
//
// GET /v1/event/{event_id}/
GetEventStatus(ctx context.Context, params GetEventStatusParams) (GetEventStatusRes, error)
// GetMemories invokes getMemories operation.
//
// Paginated retrieval of memories with optional filtering.
//
// POST /v3/memories/
GetMemories(ctx context.Context, request OptGetMemoriesRequest) (GetMemoriesRes, error)
// GetMemory invokes getMemory operation.
//
// Fetch a specific memory record by ID.
//
// GET /v1/memories/{memory_id}/
GetMemory(ctx context.Context, params GetMemoryParams) (GetMemoryRes, error)
// GetMemoryHistory invokes getMemoryHistory operation.
//
// Access memory change history.
//
// GET /v1/memories/{memory_id}/history/
GetMemoryHistory(ctx context.Context, params GetMemoryHistoryParams) (GetMemoryHistoryRes, error)
// SearchMemories invokes searchMemories operation.
//
// Performs hybrid search combining semantic, BM25, and entity matching.
//
// POST /v3/memories/search/
SearchMemories(ctx context.Context, request *SearchMemoriesRequest) (SearchMemoriesRes, error)
// UpdateMemory invokes updateMemory operation.
//
// Modify an existing memory record.
//
// PUT /v1/memories/{memory_id}/
UpdateMemory(ctx context.Context, request *UpdateMemoryRequest, params UpdateMemoryParams) (UpdateMemoryRes, 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 MemoryItem ¶
type MemoryItem struct {
ID OptString `json:"id"`
Memory OptString `json:"memory"`
UserID OptString `json:"user_id"`
AgentID OptString `json:"agent_id"`
AppID OptString `json:"app_id"`
RunID OptString `json:"run_id"`
Hash OptString `json:"hash"`
Categories []string `json:"categories"`
Metadata OptMemoryItemMetadata `json:"metadata"`
CreatedAt OptDateTime `json:"created_at"`
UpdatedAt OptDateTime `json:"updated_at"`
}
Ref: #/components/schemas/MemoryItem
func (*MemoryItem) Decode ¶
func (s *MemoryItem) Decode(d *jx.Decoder) error
Decode decodes MemoryItem from json.
func (*MemoryItem) Encode ¶
func (s *MemoryItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*MemoryItem) GetAgentID ¶
func (s *MemoryItem) GetAgentID() OptString
GetAgentID returns the value of AgentID.
func (*MemoryItem) GetAppID ¶
func (s *MemoryItem) GetAppID() OptString
GetAppID returns the value of AppID.
func (*MemoryItem) GetCategories ¶
func (s *MemoryItem) GetCategories() []string
GetCategories returns the value of Categories.
func (*MemoryItem) GetCreatedAt ¶
func (s *MemoryItem) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*MemoryItem) GetHash ¶
func (s *MemoryItem) GetHash() OptString
GetHash returns the value of Hash.
func (*MemoryItem) GetMemory ¶
func (s *MemoryItem) GetMemory() OptString
GetMemory returns the value of Memory.
func (*MemoryItem) GetMetadata ¶
func (s *MemoryItem) GetMetadata() OptMemoryItemMetadata
GetMetadata returns the value of Metadata.
func (*MemoryItem) GetRunID ¶
func (s *MemoryItem) GetRunID() OptString
GetRunID returns the value of RunID.
func (*MemoryItem) GetUpdatedAt ¶
func (s *MemoryItem) GetUpdatedAt() OptDateTime
GetUpdatedAt returns the value of UpdatedAt.
func (*MemoryItem) GetUserID ¶
func (s *MemoryItem) GetUserID() OptString
GetUserID returns the value of UserID.
func (*MemoryItem) MarshalJSON ¶
func (s *MemoryItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MemoryItem) SetAgentID ¶
func (s *MemoryItem) SetAgentID(val OptString)
SetAgentID sets the value of AgentID.
func (*MemoryItem) SetAppID ¶
func (s *MemoryItem) SetAppID(val OptString)
SetAppID sets the value of AppID.
func (*MemoryItem) SetCategories ¶
func (s *MemoryItem) SetCategories(val []string)
SetCategories sets the value of Categories.
func (*MemoryItem) SetCreatedAt ¶
func (s *MemoryItem) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*MemoryItem) SetHash ¶
func (s *MemoryItem) SetHash(val OptString)
SetHash sets the value of Hash.
func (*MemoryItem) SetMemory ¶
func (s *MemoryItem) SetMemory(val OptString)
SetMemory sets the value of Memory.
func (*MemoryItem) SetMetadata ¶
func (s *MemoryItem) SetMetadata(val OptMemoryItemMetadata)
SetMetadata sets the value of Metadata.
func (*MemoryItem) SetRunID ¶
func (s *MemoryItem) SetRunID(val OptString)
SetRunID sets the value of RunID.
func (*MemoryItem) SetUpdatedAt ¶
func (s *MemoryItem) SetUpdatedAt(val OptDateTime)
SetUpdatedAt sets the value of UpdatedAt.
func (*MemoryItem) SetUserID ¶
func (s *MemoryItem) SetUserID(val OptString)
SetUserID sets the value of UserID.
func (*MemoryItem) UnmarshalJSON ¶
func (s *MemoryItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type MemoryItemMetadata ¶
func (*MemoryItemMetadata) Decode ¶
func (s *MemoryItemMetadata) Decode(d *jx.Decoder) error
Decode decodes MemoryItemMetadata from json.
func (MemoryItemMetadata) Encode ¶
func (s MemoryItemMetadata) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (MemoryItemMetadata) MarshalJSON ¶
func (s MemoryItemMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MemoryItemMetadata) UnmarshalJSON ¶
func (s *MemoryItemMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Message ¶
type Message struct {
Role MessageRole `json:"role"`
Content string `json:"content"`
}
Ref: #/components/schemas/Message
func (*Message) GetContent ¶
GetContent returns the value of Content.
func (*Message) GetRole ¶
func (s *Message) GetRole() MessageRole
GetRole returns the value of Role.
func (*Message) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Message) SetContent ¶
SetContent sets the value of Content.
func (*Message) SetRole ¶
func (s *Message) SetRole(val MessageRole)
SetRole sets the value of Role.
func (*Message) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type MessageRole ¶
type MessageRole string
const ( MessageRoleUser MessageRole = "user" MessageRoleAssistant MessageRole = "assistant" MessageRoleSystem MessageRole = "system" )
func (MessageRole) AllValues ¶
func (MessageRole) AllValues() []MessageRole
AllValues returns all MessageRole values.
func (*MessageRole) Decode ¶
func (s *MessageRole) Decode(d *jx.Decoder) error
Decode decodes MessageRole from json.
func (MessageRole) Encode ¶
func (s MessageRole) Encode(e *jx.Encoder)
Encode encodes MessageRole as json.
func (MessageRole) MarshalJSON ¶
func (s MessageRole) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (MessageRole) MarshalText ¶
func (s MessageRole) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*MessageRole) UnmarshalJSON ¶
func (s *MessageRole) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*MessageRole) UnmarshalText ¶
func (s *MessageRole) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (MessageRole) Validate ¶
func (s MessageRole) Validate() error
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( AddMemoryOperation OperationName = "AddMemory" DeleteAllMemoriesOperation OperationName = "DeleteAllMemories" DeleteEntityOperation OperationName = "DeleteEntity" DeleteMemoryOperation OperationName = "DeleteMemory" GetEntityOperation OperationName = "GetEntity" GetEventStatusOperation OperationName = "GetEventStatus" GetMemoriesOperation OperationName = "GetMemories" GetMemoryOperation OperationName = "GetMemory" GetMemoryHistoryOperation OperationName = "GetMemoryHistory" SearchMemoriesOperation OperationName = "SearchMemories" UpdateMemoryOperation OperationName = "UpdateMemory" )
type OptAddMemoryRequestMetadata ¶
type OptAddMemoryRequestMetadata struct {
Value AddMemoryRequestMetadata
Set bool
}
OptAddMemoryRequestMetadata is optional AddMemoryRequestMetadata.
func NewOptAddMemoryRequestMetadata ¶
func NewOptAddMemoryRequestMetadata(v AddMemoryRequestMetadata) OptAddMemoryRequestMetadata
NewOptAddMemoryRequestMetadata returns new OptAddMemoryRequestMetadata with value set to v.
func (*OptAddMemoryRequestMetadata) Decode ¶
func (o *OptAddMemoryRequestMetadata) Decode(d *jx.Decoder) error
Decode decodes AddMemoryRequestMetadata from json.
func (OptAddMemoryRequestMetadata) Encode ¶
func (o OptAddMemoryRequestMetadata) Encode(e *jx.Encoder)
Encode encodes AddMemoryRequestMetadata as json.
func (OptAddMemoryRequestMetadata) Get ¶
func (o OptAddMemoryRequestMetadata) Get() (v AddMemoryRequestMetadata, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAddMemoryRequestMetadata) IsSet ¶
func (o OptAddMemoryRequestMetadata) IsSet() bool
IsSet returns true if OptAddMemoryRequestMetadata was set.
func (OptAddMemoryRequestMetadata) MarshalJSON ¶
func (s OptAddMemoryRequestMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptAddMemoryRequestMetadata) Reset ¶
func (o *OptAddMemoryRequestMetadata) Reset()
Reset unsets value.
func (*OptAddMemoryRequestMetadata) SetTo ¶
func (o *OptAddMemoryRequestMetadata) SetTo(v AddMemoryRequestMetadata)
SetTo sets value to v.
func (*OptAddMemoryRequestMetadata) UnmarshalJSON ¶
func (s *OptAddMemoryRequestMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptAddMemoryResultEvent ¶
type OptAddMemoryResultEvent struct {
Value AddMemoryResultEvent
Set bool
}
OptAddMemoryResultEvent is optional AddMemoryResultEvent.
func NewOptAddMemoryResultEvent ¶
func NewOptAddMemoryResultEvent(v AddMemoryResultEvent) OptAddMemoryResultEvent
NewOptAddMemoryResultEvent returns new OptAddMemoryResultEvent with value set to v.
func (*OptAddMemoryResultEvent) Decode ¶
func (o *OptAddMemoryResultEvent) Decode(d *jx.Decoder) error
Decode decodes AddMemoryResultEvent from json.
func (OptAddMemoryResultEvent) Encode ¶
func (o OptAddMemoryResultEvent) Encode(e *jx.Encoder)
Encode encodes AddMemoryResultEvent as json.
func (OptAddMemoryResultEvent) Get ¶
func (o OptAddMemoryResultEvent) Get() (v AddMemoryResultEvent, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAddMemoryResultEvent) IsSet ¶
func (o OptAddMemoryResultEvent) IsSet() bool
IsSet returns true if OptAddMemoryResultEvent was set.
func (OptAddMemoryResultEvent) MarshalJSON ¶
func (s OptAddMemoryResultEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAddMemoryResultEvent) Or ¶
func (o OptAddMemoryResultEvent) Or(d AddMemoryResultEvent) AddMemoryResultEvent
Or returns value if set, or given parameter if does not.
func (*OptAddMemoryResultEvent) Reset ¶
func (o *OptAddMemoryResultEvent) Reset()
Reset unsets value.
func (*OptAddMemoryResultEvent) SetTo ¶
func (o *OptAddMemoryResultEvent) SetTo(v AddMemoryResultEvent)
SetTo sets value to v.
func (*OptAddMemoryResultEvent) UnmarshalJSON ¶
func (s *OptAddMemoryResultEvent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
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 OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
func (OptDateTime) Get ¶
func (o OptDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDateTime) IsSet ¶
func (o OptDateTime) IsSet() bool
IsSet returns true if OptDateTime was set.
func (OptDateTime) MarshalJSON ¶
func (s OptDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDateTime) Or ¶
func (o OptDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptDateTime) UnmarshalJSON ¶
func (s *OptDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEntityType ¶
type OptEntityType struct {
Value EntityType
Set bool
}
OptEntityType is optional EntityType.
func NewOptEntityType ¶
func NewOptEntityType(v EntityType) OptEntityType
NewOptEntityType returns new OptEntityType with value set to v.
func (*OptEntityType) Decode ¶
func (o *OptEntityType) Decode(d *jx.Decoder) error
Decode decodes EntityType from json.
func (OptEntityType) Encode ¶
func (o OptEntityType) Encode(e *jx.Encoder)
Encode encodes EntityType as json.
func (OptEntityType) Get ¶
func (o OptEntityType) Get() (v EntityType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEntityType) IsSet ¶
func (o OptEntityType) IsSet() bool
IsSet returns true if OptEntityType was set.
func (OptEntityType) MarshalJSON ¶
func (s OptEntityType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEntityType) Or ¶
func (o OptEntityType) Or(d EntityType) EntityType
Or returns value if set, or given parameter if does not.
func (*OptEntityType) UnmarshalJSON ¶
func (s *OptEntityType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEventStatusStatus ¶
type OptEventStatusStatus struct {
Value EventStatusStatus
Set bool
}
OptEventStatusStatus is optional EventStatusStatus.
func NewOptEventStatusStatus ¶
func NewOptEventStatusStatus(v EventStatusStatus) OptEventStatusStatus
NewOptEventStatusStatus returns new OptEventStatusStatus with value set to v.
func (*OptEventStatusStatus) Decode ¶
func (o *OptEventStatusStatus) Decode(d *jx.Decoder) error
Decode decodes EventStatusStatus from json.
func (OptEventStatusStatus) Encode ¶
func (o OptEventStatusStatus) Encode(e *jx.Encoder)
Encode encodes EventStatusStatus as json.
func (OptEventStatusStatus) Get ¶
func (o OptEventStatusStatus) Get() (v EventStatusStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEventStatusStatus) IsSet ¶
func (o OptEventStatusStatus) IsSet() bool
IsSet returns true if OptEventStatusStatus was set.
func (OptEventStatusStatus) MarshalJSON ¶
func (s OptEventStatusStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEventStatusStatus) Or ¶
func (o OptEventStatusStatus) Or(d EventStatusStatus) EventStatusStatus
Or returns value if set, or given parameter if does not.
func (*OptEventStatusStatus) SetTo ¶
func (o *OptEventStatusStatus) SetTo(v EventStatusStatus)
SetTo sets value to v.
func (*OptEventStatusStatus) UnmarshalJSON ¶
func (s *OptEventStatusStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFilters ¶
OptFilters is optional Filters.
func NewOptFilters ¶
func NewOptFilters(v Filters) OptFilters
NewOptFilters returns new OptFilters with value set to v.
func (*OptFilters) Decode ¶
func (o *OptFilters) Decode(d *jx.Decoder) error
Decode decodes Filters from json.
func (OptFilters) Encode ¶
func (o OptFilters) Encode(e *jx.Encoder)
Encode encodes Filters as json.
func (OptFilters) Get ¶
func (o OptFilters) Get() (v Filters, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFilters) IsSet ¶
func (o OptFilters) IsSet() bool
IsSet returns true if OptFilters was set.
func (OptFilters) MarshalJSON ¶
func (s OptFilters) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFilters) Or ¶
func (o OptFilters) Or(d Filters) Filters
Or returns value if set, or given parameter if does not.
func (*OptFilters) UnmarshalJSON ¶
func (s *OptFilters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat32 ¶
OptFloat32 is optional float32.
func NewOptFloat32 ¶
func NewOptFloat32(v float32) OptFloat32
NewOptFloat32 returns new OptFloat32 with value set to v.
func (*OptFloat32) Decode ¶
func (o *OptFloat32) Decode(d *jx.Decoder) error
Decode decodes float32 from json.
func (OptFloat32) Encode ¶
func (o OptFloat32) Encode(e *jx.Encoder)
Encode encodes float32 as json.
func (OptFloat32) Get ¶
func (o OptFloat32) Get() (v float32, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat32) IsSet ¶
func (o OptFloat32) IsSet() bool
IsSet returns true if OptFloat32 was set.
func (OptFloat32) MarshalJSON ¶
func (s OptFloat32) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat32) Or ¶
func (o OptFloat32) Or(d float32) float32
Or returns value if set, or given parameter if does not.
func (*OptFloat32) UnmarshalJSON ¶
func (s *OptFloat32) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptGetMemoriesRequest ¶
type OptGetMemoriesRequest struct {
Value GetMemoriesRequest
Set bool
}
OptGetMemoriesRequest is optional GetMemoriesRequest.
func NewOptGetMemoriesRequest ¶
func NewOptGetMemoriesRequest(v GetMemoriesRequest) OptGetMemoriesRequest
NewOptGetMemoriesRequest returns new OptGetMemoriesRequest with value set to v.
func (*OptGetMemoriesRequest) Decode ¶
func (o *OptGetMemoriesRequest) Decode(d *jx.Decoder) error
Decode decodes GetMemoriesRequest from json.
func (OptGetMemoriesRequest) Encode ¶
func (o OptGetMemoriesRequest) Encode(e *jx.Encoder)
Encode encodes GetMemoriesRequest as json.
func (OptGetMemoriesRequest) Get ¶
func (o OptGetMemoriesRequest) Get() (v GetMemoriesRequest, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetMemoriesRequest) IsSet ¶
func (o OptGetMemoriesRequest) IsSet() bool
IsSet returns true if OptGetMemoriesRequest was set.
func (OptGetMemoriesRequest) MarshalJSON ¶
func (s OptGetMemoriesRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetMemoriesRequest) Or ¶
func (o OptGetMemoriesRequest) Or(d GetMemoriesRequest) GetMemoriesRequest
Or returns value if set, or given parameter if does not.
func (*OptGetMemoriesRequest) SetTo ¶
func (o *OptGetMemoriesRequest) SetTo(v GetMemoriesRequest)
SetTo sets value to v.
func (*OptGetMemoriesRequest) UnmarshalJSON ¶
func (s *OptGetMemoriesRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptHistoryItemEvent ¶
type OptHistoryItemEvent struct {
Value HistoryItemEvent
Set bool
}
OptHistoryItemEvent is optional HistoryItemEvent.
func NewOptHistoryItemEvent ¶
func NewOptHistoryItemEvent(v HistoryItemEvent) OptHistoryItemEvent
NewOptHistoryItemEvent returns new OptHistoryItemEvent with value set to v.
func (*OptHistoryItemEvent) Decode ¶
func (o *OptHistoryItemEvent) Decode(d *jx.Decoder) error
Decode decodes HistoryItemEvent from json.
func (OptHistoryItemEvent) Encode ¶
func (o OptHistoryItemEvent) Encode(e *jx.Encoder)
Encode encodes HistoryItemEvent as json.
func (OptHistoryItemEvent) Get ¶
func (o OptHistoryItemEvent) Get() (v HistoryItemEvent, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptHistoryItemEvent) IsSet ¶
func (o OptHistoryItemEvent) IsSet() bool
IsSet returns true if OptHistoryItemEvent was set.
func (OptHistoryItemEvent) MarshalJSON ¶
func (s OptHistoryItemEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptHistoryItemEvent) Or ¶
func (o OptHistoryItemEvent) Or(d HistoryItemEvent) HistoryItemEvent
Or returns value if set, or given parameter if does not.
func (*OptHistoryItemEvent) SetTo ¶
func (o *OptHistoryItemEvent) SetTo(v HistoryItemEvent)
SetTo sets value to v.
func (*OptHistoryItemEvent) UnmarshalJSON ¶
func (s *OptHistoryItemEvent) 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 OptMemoryItemMetadata ¶
type OptMemoryItemMetadata struct {
Value MemoryItemMetadata
Set bool
}
OptMemoryItemMetadata is optional MemoryItemMetadata.
func NewOptMemoryItemMetadata ¶
func NewOptMemoryItemMetadata(v MemoryItemMetadata) OptMemoryItemMetadata
NewOptMemoryItemMetadata returns new OptMemoryItemMetadata with value set to v.
func (*OptMemoryItemMetadata) Decode ¶
func (o *OptMemoryItemMetadata) Decode(d *jx.Decoder) error
Decode decodes MemoryItemMetadata from json.
func (OptMemoryItemMetadata) Encode ¶
func (o OptMemoryItemMetadata) Encode(e *jx.Encoder)
Encode encodes MemoryItemMetadata as json.
func (OptMemoryItemMetadata) Get ¶
func (o OptMemoryItemMetadata) Get() (v MemoryItemMetadata, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMemoryItemMetadata) IsSet ¶
func (o OptMemoryItemMetadata) IsSet() bool
IsSet returns true if OptMemoryItemMetadata was set.
func (OptMemoryItemMetadata) MarshalJSON ¶
func (s OptMemoryItemMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMemoryItemMetadata) Or ¶
func (o OptMemoryItemMetadata) Or(d MemoryItemMetadata) MemoryItemMetadata
Or returns value if set, or given parameter if does not.
func (*OptMemoryItemMetadata) SetTo ¶
func (o *OptMemoryItemMetadata) SetTo(v MemoryItemMetadata)
SetTo sets value to v.
func (*OptMemoryItemMetadata) UnmarshalJSON ¶
func (s *OptMemoryItemMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilDateTime ¶
OptNilDateTime is optional nullable time.Time.
func NewOptNilDateTime ¶
func NewOptNilDateTime(v time.Time) OptNilDateTime
NewOptNilDateTime returns new OptNilDateTime with value set to v.
func (OptNilDateTime) Get ¶
func (o OptNilDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilDateTime) IsEmpty ¶
func (o OptNilDateTime) IsEmpty() bool
IsEmpty returns true if the field was omitted from the payload (not Set and not Null).
func (OptNilDateTime) IsNull ¶
func (o OptNilDateTime) IsNull() bool
IsNull returns true if value is Null.
func (OptNilDateTime) IsSet ¶
func (o OptNilDateTime) IsSet() bool
IsSet returns true if OptNilDateTime was set.
func (OptNilDateTime) MarshalJSON ¶
func (s OptNilDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilDateTime) Or ¶
func (o OptNilDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptNilDateTime) SetToNull ¶
func (o *OptNilDateTime) SetToNull()
SetToNull sets value to null.
func (*OptNilDateTime) UnmarshalJSON ¶
func (s *OptNilDateTime) 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 OptSearchResultMetadata ¶
type OptSearchResultMetadata struct {
Value SearchResultMetadata
Set bool
}
OptSearchResultMetadata is optional SearchResultMetadata.
func NewOptSearchResultMetadata ¶
func NewOptSearchResultMetadata(v SearchResultMetadata) OptSearchResultMetadata
NewOptSearchResultMetadata returns new OptSearchResultMetadata with value set to v.
func (*OptSearchResultMetadata) Decode ¶
func (o *OptSearchResultMetadata) Decode(d *jx.Decoder) error
Decode decodes SearchResultMetadata from json.
func (OptSearchResultMetadata) Encode ¶
func (o OptSearchResultMetadata) Encode(e *jx.Encoder)
Encode encodes SearchResultMetadata as json.
func (OptSearchResultMetadata) Get ¶
func (o OptSearchResultMetadata) Get() (v SearchResultMetadata, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSearchResultMetadata) IsSet ¶
func (o OptSearchResultMetadata) IsSet() bool
IsSet returns true if OptSearchResultMetadata was set.
func (OptSearchResultMetadata) MarshalJSON ¶
func (s OptSearchResultMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSearchResultMetadata) Or ¶
func (o OptSearchResultMetadata) Or(d SearchResultMetadata) SearchResultMetadata
Or returns value if set, or given parameter if does not.
func (*OptSearchResultMetadata) Reset ¶
func (o *OptSearchResultMetadata) Reset()
Reset unsets value.
func (*OptSearchResultMetadata) SetTo ¶
func (o *OptSearchResultMetadata) SetTo(v SearchResultMetadata)
SetTo sets value to v.
func (*OptSearchResultMetadata) UnmarshalJSON ¶
func (s *OptSearchResultMetadata) 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 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 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 SearchMemoriesBadRequest ¶
type SearchMemoriesBadRequest ErrorResponse
func (*SearchMemoriesBadRequest) Decode ¶
func (s *SearchMemoriesBadRequest) Decode(d *jx.Decoder) error
Decode decodes SearchMemoriesBadRequest from json.
func (*SearchMemoriesBadRequest) Encode ¶
func (s *SearchMemoriesBadRequest) Encode(e *jx.Encoder)
Encode encodes SearchMemoriesBadRequest as json.
func (*SearchMemoriesBadRequest) MarshalJSON ¶
func (s *SearchMemoriesBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchMemoriesBadRequest) UnmarshalJSON ¶
func (s *SearchMemoriesBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SearchMemoriesRequest ¶
type SearchMemoriesRequest struct {
Query string `json:"query"`
Filters OptFilters `json:"filters"`
TopK OptInt `json:"top_k"`
Rerank OptBool `json:"rerank"`
Threshold OptFloat32 `json:"threshold"`
}
Ref: #/components/schemas/SearchMemoriesRequest
func (*SearchMemoriesRequest) Decode ¶
func (s *SearchMemoriesRequest) Decode(d *jx.Decoder) error
Decode decodes SearchMemoriesRequest from json.
func (*SearchMemoriesRequest) Encode ¶
func (s *SearchMemoriesRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SearchMemoriesRequest) GetFilters ¶
func (s *SearchMemoriesRequest) GetFilters() OptFilters
GetFilters returns the value of Filters.
func (*SearchMemoriesRequest) GetQuery ¶
func (s *SearchMemoriesRequest) GetQuery() string
GetQuery returns the value of Query.
func (*SearchMemoriesRequest) GetRerank ¶
func (s *SearchMemoriesRequest) GetRerank() OptBool
GetRerank returns the value of Rerank.
func (*SearchMemoriesRequest) GetThreshold ¶
func (s *SearchMemoriesRequest) GetThreshold() OptFloat32
GetThreshold returns the value of Threshold.
func (*SearchMemoriesRequest) GetTopK ¶
func (s *SearchMemoriesRequest) GetTopK() OptInt
GetTopK returns the value of TopK.
func (*SearchMemoriesRequest) MarshalJSON ¶
func (s *SearchMemoriesRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchMemoriesRequest) SetFilters ¶
func (s *SearchMemoriesRequest) SetFilters(val OptFilters)
SetFilters sets the value of Filters.
func (*SearchMemoriesRequest) SetQuery ¶
func (s *SearchMemoriesRequest) SetQuery(val string)
SetQuery sets the value of Query.
func (*SearchMemoriesRequest) SetRerank ¶
func (s *SearchMemoriesRequest) SetRerank(val OptBool)
SetRerank sets the value of Rerank.
func (*SearchMemoriesRequest) SetThreshold ¶
func (s *SearchMemoriesRequest) SetThreshold(val OptFloat32)
SetThreshold sets the value of Threshold.
func (*SearchMemoriesRequest) SetTopK ¶
func (s *SearchMemoriesRequest) SetTopK(val OptInt)
SetTopK sets the value of TopK.
func (*SearchMemoriesRequest) UnmarshalJSON ¶
func (s *SearchMemoriesRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SearchMemoriesRequest) Validate ¶
func (s *SearchMemoriesRequest) Validate() error
type SearchMemoriesRes ¶
type SearchMemoriesRes interface {
// contains filtered or unexported methods
}
type SearchMemoriesResponse ¶
type SearchMemoriesResponse struct {
Results []SearchResult `json:"results"`
}
Ref: #/components/schemas/SearchMemoriesResponse
func (*SearchMemoriesResponse) Decode ¶
func (s *SearchMemoriesResponse) Decode(d *jx.Decoder) error
Decode decodes SearchMemoriesResponse from json.
func (*SearchMemoriesResponse) Encode ¶
func (s *SearchMemoriesResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SearchMemoriesResponse) GetResults ¶
func (s *SearchMemoriesResponse) GetResults() []SearchResult
GetResults returns the value of Results.
func (*SearchMemoriesResponse) MarshalJSON ¶
func (s *SearchMemoriesResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchMemoriesResponse) SetResults ¶
func (s *SearchMemoriesResponse) SetResults(val []SearchResult)
SetResults sets the value of Results.
func (*SearchMemoriesResponse) UnmarshalJSON ¶
func (s *SearchMemoriesResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SearchMemoriesResponse) Validate ¶
func (s *SearchMemoriesResponse) Validate() error
type SearchMemoriesUnauthorized ¶
type SearchMemoriesUnauthorized ErrorResponse
func (*SearchMemoriesUnauthorized) Decode ¶
func (s *SearchMemoriesUnauthorized) Decode(d *jx.Decoder) error
Decode decodes SearchMemoriesUnauthorized from json.
func (*SearchMemoriesUnauthorized) Encode ¶
func (s *SearchMemoriesUnauthorized) Encode(e *jx.Encoder)
Encode encodes SearchMemoriesUnauthorized as json.
func (*SearchMemoriesUnauthorized) MarshalJSON ¶
func (s *SearchMemoriesUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchMemoriesUnauthorized) UnmarshalJSON ¶
func (s *SearchMemoriesUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SearchResult ¶
type SearchResult struct {
ID OptString `json:"id"`
Memory OptString `json:"memory"`
UserID OptString `json:"user_id"`
AgentID OptString `json:"agent_id"`
AppID OptString `json:"app_id"`
RunID OptString `json:"run_id"`
Hash OptString `json:"hash"`
Categories []string `json:"categories"`
Metadata OptSearchResultMetadata `json:"metadata"`
CreatedAt OptDateTime `json:"created_at"`
UpdatedAt OptDateTime `json:"updated_at"`
Score OptFloat32 `json:"score"`
}
Ref: #/components/schemas/SearchResult
func (*SearchResult) Decode ¶
func (s *SearchResult) Decode(d *jx.Decoder) error
Decode decodes SearchResult from json.
func (*SearchResult) Encode ¶
func (s *SearchResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SearchResult) GetAgentID ¶
func (s *SearchResult) GetAgentID() OptString
GetAgentID returns the value of AgentID.
func (*SearchResult) GetAppID ¶
func (s *SearchResult) GetAppID() OptString
GetAppID returns the value of AppID.
func (*SearchResult) GetCategories ¶
func (s *SearchResult) GetCategories() []string
GetCategories returns the value of Categories.
func (*SearchResult) GetCreatedAt ¶
func (s *SearchResult) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*SearchResult) GetHash ¶
func (s *SearchResult) GetHash() OptString
GetHash returns the value of Hash.
func (*SearchResult) GetID ¶
func (s *SearchResult) GetID() OptString
GetID returns the value of ID.
func (*SearchResult) GetMemory ¶
func (s *SearchResult) GetMemory() OptString
GetMemory returns the value of Memory.
func (*SearchResult) GetMetadata ¶
func (s *SearchResult) GetMetadata() OptSearchResultMetadata
GetMetadata returns the value of Metadata.
func (*SearchResult) GetRunID ¶
func (s *SearchResult) GetRunID() OptString
GetRunID returns the value of RunID.
func (*SearchResult) GetScore ¶
func (s *SearchResult) GetScore() OptFloat32
GetScore returns the value of Score.
func (*SearchResult) GetUpdatedAt ¶
func (s *SearchResult) GetUpdatedAt() OptDateTime
GetUpdatedAt returns the value of UpdatedAt.
func (*SearchResult) GetUserID ¶
func (s *SearchResult) GetUserID() OptString
GetUserID returns the value of UserID.
func (*SearchResult) MarshalJSON ¶
func (s *SearchResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchResult) SetAgentID ¶
func (s *SearchResult) SetAgentID(val OptString)
SetAgentID sets the value of AgentID.
func (*SearchResult) SetAppID ¶
func (s *SearchResult) SetAppID(val OptString)
SetAppID sets the value of AppID.
func (*SearchResult) SetCategories ¶
func (s *SearchResult) SetCategories(val []string)
SetCategories sets the value of Categories.
func (*SearchResult) SetCreatedAt ¶
func (s *SearchResult) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*SearchResult) SetHash ¶
func (s *SearchResult) SetHash(val OptString)
SetHash sets the value of Hash.
func (*SearchResult) SetID ¶
func (s *SearchResult) SetID(val OptString)
SetID sets the value of ID.
func (*SearchResult) SetMemory ¶
func (s *SearchResult) SetMemory(val OptString)
SetMemory sets the value of Memory.
func (*SearchResult) SetMetadata ¶
func (s *SearchResult) SetMetadata(val OptSearchResultMetadata)
SetMetadata sets the value of Metadata.
func (*SearchResult) SetRunID ¶
func (s *SearchResult) SetRunID(val OptString)
SetRunID sets the value of RunID.
func (*SearchResult) SetScore ¶
func (s *SearchResult) SetScore(val OptFloat32)
SetScore sets the value of Score.
func (*SearchResult) SetUpdatedAt ¶
func (s *SearchResult) SetUpdatedAt(val OptDateTime)
SetUpdatedAt sets the value of UpdatedAt.
func (*SearchResult) SetUserID ¶
func (s *SearchResult) SetUserID(val OptString)
SetUserID sets the value of UserID.
func (*SearchResult) UnmarshalJSON ¶
func (s *SearchResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SearchResult) Validate ¶
func (s *SearchResult) Validate() error
type SearchResultMetadata ¶
func (*SearchResultMetadata) Decode ¶
func (s *SearchResultMetadata) Decode(d *jx.Decoder) error
Decode decodes SearchResultMetadata from json.
func (SearchResultMetadata) Encode ¶
func (s SearchResultMetadata) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SearchResultMetadata) MarshalJSON ¶
func (s SearchResultMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchResultMetadata) UnmarshalJSON ¶
func (s *SearchResultMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SecurityHandler ¶
type SecurityHandler interface {
// HandleTokenAuth handles TokenAuth security.
// Token-based authentication. Use format: Token.
HandleTokenAuth(ctx context.Context, operationName OperationName, t TokenAuth) (context.Context, error)
}
SecurityHandler is handler for security parameters.
type SecuritySource ¶
type SecuritySource interface {
// TokenAuth provides TokenAuth security value.
// Token-based authentication. Use format: Token.
TokenAuth(ctx context.Context, operationName OperationName) (TokenAuth, error)
}
SecuritySource is provider of security values (tokens, passwords, etc.).
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, sec SecurityHandler, 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 TokenAuth ¶
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AddMemory ¶
func (UnimplementedHandler) AddMemory(ctx context.Context, req *AddMemoryRequest) (r AddMemoryRes, _ error)
AddMemory implements addMemory operation.
Extracts facts from conversation messages using single-pass additive extraction.
POST /v3/memories/add/
func (UnimplementedHandler) DeleteAllMemories ¶
func (UnimplementedHandler) DeleteAllMemories(ctx context.Context, params DeleteAllMemoriesParams) (r *DeleteAllResponse, _ error)
DeleteAllMemories implements deleteAllMemories operation.
Delete all memories for an identifier.
DELETE /v1/memories/
func (UnimplementedHandler) DeleteEntity ¶
func (UnimplementedHandler) DeleteEntity(ctx context.Context, params DeleteEntityParams) (r DeleteEntityRes, _ error)
DeleteEntity implements deleteEntity operation.
Cascade-delete all memories for entity.
DELETE /v2/entities/{entity_type}/{entity_id}/
func (UnimplementedHandler) DeleteMemory ¶
func (UnimplementedHandler) DeleteMemory(ctx context.Context, params DeleteMemoryParams) (r DeleteMemoryRes, _ error)
DeleteMemory implements deleteMemory operation.
Remove a single memory record.
DELETE /v1/memories/{memory_id}/
func (UnimplementedHandler) GetEntity ¶
func (UnimplementedHandler) GetEntity(ctx context.Context, params GetEntityParams) (r GetEntityRes, _ error)
GetEntity implements getEntity operation.
Get entity details.
GET /v2/entities/{entity_type}/{entity_id}/
func (UnimplementedHandler) GetEventStatus ¶
func (UnimplementedHandler) GetEventStatus(ctx context.Context, params GetEventStatusParams) (r GetEventStatusRes, _ error)
GetEventStatus implements getEventStatus operation.
Retrieve final status of asynchronous operations.
GET /v1/event/{event_id}/
func (UnimplementedHandler) GetMemories ¶
func (UnimplementedHandler) GetMemories(ctx context.Context, req OptGetMemoriesRequest) (r GetMemoriesRes, _ error)
GetMemories implements getMemories operation.
Paginated retrieval of memories with optional filtering.
POST /v3/memories/
func (UnimplementedHandler) GetMemory ¶
func (UnimplementedHandler) GetMemory(ctx context.Context, params GetMemoryParams) (r GetMemoryRes, _ error)
GetMemory implements getMemory operation.
Fetch a specific memory record by ID.
GET /v1/memories/{memory_id}/
func (UnimplementedHandler) GetMemoryHistory ¶
func (UnimplementedHandler) GetMemoryHistory(ctx context.Context, params GetMemoryHistoryParams) (r GetMemoryHistoryRes, _ error)
GetMemoryHistory implements getMemoryHistory operation.
Access memory change history.
GET /v1/memories/{memory_id}/history/
func (UnimplementedHandler) SearchMemories ¶
func (UnimplementedHandler) SearchMemories(ctx context.Context, req *SearchMemoriesRequest) (r SearchMemoriesRes, _ error)
SearchMemories implements searchMemories operation.
Performs hybrid search combining semantic, BM25, and entity matching.
POST /v3/memories/search/
func (UnimplementedHandler) UpdateMemory ¶
func (UnimplementedHandler) UpdateMemory(ctx context.Context, req *UpdateMemoryRequest, params UpdateMemoryParams) (r UpdateMemoryRes, _ error)
UpdateMemory implements updateMemory operation.
Modify an existing memory record.
PUT /v1/memories/{memory_id}/
type UpdateMemoryParams ¶
type UpdateMemoryParams struct {
MemoryID string
}
UpdateMemoryParams is parameters of updateMemory operation.
type UpdateMemoryRequest ¶
type UpdateMemoryRequest struct {
Text string `json:"text"`
}
Ref: #/components/schemas/UpdateMemoryRequest
func (*UpdateMemoryRequest) Decode ¶
func (s *UpdateMemoryRequest) Decode(d *jx.Decoder) error
Decode decodes UpdateMemoryRequest from json.
func (*UpdateMemoryRequest) Encode ¶
func (s *UpdateMemoryRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdateMemoryRequest) GetText ¶
func (s *UpdateMemoryRequest) GetText() string
GetText returns the value of Text.
func (*UpdateMemoryRequest) MarshalJSON ¶
func (s *UpdateMemoryRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateMemoryRequest) SetText ¶
func (s *UpdateMemoryRequest) SetText(val string)
SetText sets the value of Text.
func (*UpdateMemoryRequest) UnmarshalJSON ¶
func (s *UpdateMemoryRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdateMemoryRes ¶
type UpdateMemoryRes interface {
// contains filtered or unexported methods
}
Source Files
¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_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_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go