ogenhosted

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRolesForTokenAuth

func GetRolesForTokenAuth(operation string) []string

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.

func WithServerURL

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

WithServerURL sets context key to override server URL.

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

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

type AddMemoryRequestMetadata map[string]jx.Raw

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

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

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

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) Decode

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

Decode decodes Entity from json.

func (*Entity) Encode

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

Encode implements json.Marshaler.

func (*Entity) GetCreatedAt

func (s *Entity) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*Entity) GetID

func (s *Entity) GetID() OptString

GetID returns the value of ID.

func (*Entity) GetMemoryCount

func (s *Entity) GetMemoryCount() OptInt

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

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

MarshalJSON implements stdjson.Marshaler.

func (*Entity) SetCreatedAt

func (s *Entity) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*Entity) SetID

func (s *Entity) SetID(val OptString)

SetID sets the value of ID.

func (*Entity) SetMemoryCount

func (s *Entity) SetMemoryCount(val OptInt)

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Entity) Validate

func (s *Entity) Validate() error

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 ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ErrorResponse

type ErrorResponse struct {
	Detail OptString `json:"detail"`
	Code   OptString `json:"code"`
}

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

type FilterCondition map[string]jx.Raw

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) Decode

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

Decode decodes Filters from json.

func (*Filters) Encode

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

Encode implements json.Marshaler.

func (*Filters) GetAND

func (s *Filters) GetAND() []FilterCondition

GetAND returns the value of AND.

func (*Filters) GetAgentID

func (s *Filters) GetAgentID() OptString

GetAgentID returns the value of AgentID.

func (*Filters) GetAppID

func (s *Filters) GetAppID() OptString

GetAppID returns the value of AppID.

func (*Filters) GetOR

func (s *Filters) GetOR() []FilterCondition

GetOR returns the value of OR.

func (*Filters) GetRunID

func (s *Filters) GetRunID() OptString

GetRunID returns the value of RunID.

func (*Filters) GetUserID

func (s *Filters) GetUserID() OptString

GetUserID returns the value of UserID.

func (*Filters) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (*Filters) SetAND

func (s *Filters) SetAND(val []FilterCondition)

SetAND sets the value of AND.

func (*Filters) SetAgentID

func (s *Filters) SetAgentID(val OptString)

SetAgentID sets the value of AgentID.

func (*Filters) SetAppID

func (s *Filters) SetAppID(val OptString)

SetAppID sets the value of AppID.

func (*Filters) SetOR

func (s *Filters) SetOR(val []FilterCondition)

SetOR sets the value of OR.

func (*Filters) SetRunID

func (s *Filters) SetRunID(val OptString)

SetRunID sets the value of RunID.

func (*Filters) SetUserID

func (s *Filters) SetUserID(val OptString)

SetUserID sets the value of UserID.

func (*Filters) UnmarshalJSON

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

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

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

Decode decodes GetMemoryHistoryOKApplicationJSON from json.

func (GetMemoryHistoryOKApplicationJSON) Encode

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

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) GetID

func (s *HistoryItem) GetID() OptString

GetID returns the value of ID.

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) SetID

func (s *HistoryItem) SetID(val OptString)

SetID sets the value of ID.

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

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

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

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

func (*Labeler) Add

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

Add attributes to the Labeler.

func (*Labeler) AttributeSet

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

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

type 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) GetID

func (s *MemoryItem) GetID() OptString

GetID returns the value of ID.

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) SetID

func (s *MemoryItem) SetID(val OptString)

SetID sets the value of ID.

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

type MemoryItemMetadata map[string]jx.Raw

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) Decode

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

Decode decodes Message from json.

func (*Message) Encode

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

Encode implements json.Marshaler.

func (*Message) GetContent

func (s *Message) GetContent() string

GetContent returns the value of Content.

func (*Message) GetRole

func (s *Message) GetRole() MessageRole

GetRole returns the value of Role.

func (*Message) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (*Message) SetContent

func (s *Message) SetContent(val string)

SetContent sets the value of Content.

func (*Message) SetRole

func (s *Message) SetRole(val MessageRole)

SetRole sets the value of Role.

func (*Message) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Message) Validate

func (s *Message) Validate() error

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 Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

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

Decode decodes AddMemoryRequestMetadata from json.

func (OptAddMemoryRequestMetadata) Encode

func (o OptAddMemoryRequestMetadata) Encode(e *jx.Encoder)

Encode encodes AddMemoryRequestMetadata as json.

func (OptAddMemoryRequestMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptAddMemoryRequestMetadata) IsSet

IsSet returns true if OptAddMemoryRequestMetadata was set.

func (OptAddMemoryRequestMetadata) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (OptAddMemoryRequestMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptAddMemoryRequestMetadata) Reset

func (o *OptAddMemoryRequestMetadata) Reset()

Reset unsets value.

func (*OptAddMemoryRequestMetadata) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptAddMemoryResultEvent) Reset

func (o *OptAddMemoryResultEvent) Reset()

Reset unsets value.

func (*OptAddMemoryResultEvent) SetTo

SetTo sets value to v.

func (*OptAddMemoryResultEvent) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

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) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptEntityType) Reset

func (o *OptEntityType) Reset()

Reset unsets value.

func (*OptEntityType) SetTo

func (o *OptEntityType) SetTo(v EntityType)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptEventStatusStatus) Reset

func (o *OptEventStatusStatus) Reset()

Reset unsets value.

func (*OptEventStatusStatus) SetTo

SetTo sets value to v.

func (*OptEventStatusStatus) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFilters

type OptFilters struct {
	Value Filters
	Set   bool
}

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) Reset

func (o *OptFilters) Reset()

Reset unsets value.

func (*OptFilters) SetTo

func (o *OptFilters) SetTo(v Filters)

SetTo sets value to v.

func (*OptFilters) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat32

type OptFloat32 struct {
	Value float32
	Set   bool
}

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) Reset

func (o *OptFloat32) Reset()

Reset unsets value.

func (*OptFloat32) SetTo

func (o *OptFloat32) SetTo(v float32)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptGetMemoriesRequest) Reset

func (o *OptGetMemoriesRequest) Reset()

Reset unsets value.

func (*OptGetMemoriesRequest) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptHistoryItemEvent) Reset

func (o *OptHistoryItemEvent) Reset()

Reset unsets value.

func (*OptHistoryItemEvent) SetTo

SetTo sets value to v.

func (*OptHistoryItemEvent) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type 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

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

Or returns value if set, or given parameter if does not.

func (*OptMemoryItemMetadata) Reset

func (o *OptMemoryItemMetadata) Reset()

Reset unsets value.

func (*OptMemoryItemMetadata) SetTo

SetTo sets value to v.

func (*OptMemoryItemMetadata) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDateTime

type OptNilDateTime struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDateTime is optional nullable time.Time.

func NewOptNilDateTime

func NewOptNilDateTime(v time.Time) OptNilDateTime

NewOptNilDateTime returns new OptNilDateTime with value set to v.

func (*OptNilDateTime) Decode

func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptNilDateTime) Encode

func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

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) Reset

func (o *OptNilDateTime) Reset()

Reset unsets value.

func (*OptNilDateTime) SetTo

func (o *OptNilDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDateTime) SetToNull

func (o *OptNilDateTime) SetToNull()

SetToNull sets value to null.

func (*OptNilDateTime) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) 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) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetToNull sets value to null.

func (*OptNilString) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type 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

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

Or returns value if set, or given parameter if does not.

func (*OptSearchResultMetadata) Reset

func (o *OptSearchResultMetadata) Reset()

Reset unsets value.

func (*OptSearchResultMetadata) SetTo

SetTo sets value to v.

func (*OptSearchResultMetadata) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithAttributes

func WithAttributes(attributes ...attribute.KeyValue) Option

WithAttributes specifies default otel attributes.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationGroup

func (r Route) OperationGroup() string

OperationGroup returns the x-ogen-operation-group value.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type 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

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

type SearchResultMetadata map[string]jx.Raw

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.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

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

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type TokenAuth

type TokenAuth struct {
	APIKey string
	Roles  []string
}

func (*TokenAuth) GetAPIKey

func (s *TokenAuth) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*TokenAuth) GetRoles

func (s *TokenAuth) GetRoles() []string

GetRoles returns the value of Roles.

func (*TokenAuth) SetAPIKey

func (s *TokenAuth) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

func (*TokenAuth) SetRoles

func (s *TokenAuth) SetRoles(val []string)

SetRoles sets the value of Roles.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) AddMemory

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

DeleteEntity implements deleteEntity operation.

Cascade-delete all memories for entity.

DELETE /v2/entities/{entity_type}/{entity_id}/

func (UnimplementedHandler) DeleteMemory

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

GetEventStatus implements getEventStatus operation.

Retrieve final status of asynchronous operations.

GET /v1/event/{event_id}/

func (UnimplementedHandler) GetMemories

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

GetMemoryHistory implements getMemoryHistory operation.

Access memory change history.

GET /v1/memories/{memory_id}/history/

func (UnimplementedHandler) SearchMemories

SearchMemories implements searchMemories operation.

Performs hybrid search combining semantic, BM25, and entity matching.

POST /v3/memories/search/

func (UnimplementedHandler) UpdateMemory

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL