fleet-memory/hindsight-clients/go/internal/ogenapi/oas_schemas_gen.go
Eliah Rusin 2a47389f2c
feat: add Go client SDK with ogen code generation (#375)
Add a Go client for the Hindsight API using ogen for strongly-typed code
generation from the OpenAPI 3.1 spec. The client provides a high-level
wrapper with functional options around the generated code, covering all
core operations (retain, recall, reflect, bank management).

Includes:
- ogen-based code generation with OpenAPI 3.1 spec preprocessing
- High-level Client wrapper with idiomatic Go API
- Functional options for all operations (WithBudget, WithTags, etc.)
- OgenClient() escape hatch for advanced operations
- Integration tests and godoc examples
- Go SDK reference docs and cookbook entries (quickstart, concurrent
  pipeline, memory-augmented API service)
- Updated generate-clients.sh with Go generation step

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 11:35:40 +01:00

5666 lines
147 KiB
Go

// Code generated by ogen, DO NOT EDIT.
package ogenapi
import (
"time"
"github.com/go-faster/errors"
"github.com/go-faster/jx"
)
// Request model for adding/merging background information. Deprecated: use SetMissionRequest instead.
// Ref: #/components/schemas/AddBackgroundRequest
type AddBackgroundRequest struct {
// New background information to add or merge.
Content string `json:"content"`
// Deprecated - disposition is no longer auto-inferred from mission.
UpdateDisposition OptBool `json:"update_disposition"`
}
// GetContent returns the value of Content.
func (s *AddBackgroundRequest) GetContent() string {
return s.Content
}
// GetUpdateDisposition returns the value of UpdateDisposition.
func (s *AddBackgroundRequest) GetUpdateDisposition() OptBool {
return s.UpdateDisposition
}
// SetContent sets the value of Content.
func (s *AddBackgroundRequest) SetContent(val string) {
s.Content = val
}
// SetUpdateDisposition sets the value of UpdateDisposition.
func (s *AddBackgroundRequest) SetUpdateDisposition(val OptBool) {
s.UpdateDisposition = val
}
// Response model for submitting an async operation.
// Ref: #/components/schemas/AsyncOperationSubmitResponse
type AsyncOperationSubmitResponse struct {
OperationID string `json:"operation_id"`
Status string `json:"status"`
}
// GetOperationID returns the value of OperationID.
func (s *AsyncOperationSubmitResponse) GetOperationID() string {
return s.OperationID
}
// GetStatus returns the value of Status.
func (s *AsyncOperationSubmitResponse) GetStatus() string {
return s.Status
}
// SetOperationID sets the value of OperationID.
func (s *AsyncOperationSubmitResponse) SetOperationID(val string) {
s.OperationID = val
}
// SetStatus sets the value of Status.
func (s *AsyncOperationSubmitResponse) SetStatus(val string) {
s.Status = val
}
func (*AsyncOperationSubmitResponse) refreshMentalModelRes() {}
// Response model for background update. Deprecated: use MissionResponse instead.
// Ref: #/components/schemas/BackgroundResponse
type BackgroundResponse struct {
// Deprecated: same as mission.
Background OptString `json:"background"`
Disposition OptDispositionTraits `json:"disposition"`
Mission string `json:"mission"`
}
// GetBackground returns the value of Background.
func (s *BackgroundResponse) GetBackground() OptString {
return s.Background
}
// GetDisposition returns the value of Disposition.
func (s *BackgroundResponse) GetDisposition() OptDispositionTraits {
return s.Disposition
}
// GetMission returns the value of Mission.
func (s *BackgroundResponse) GetMission() string {
return s.Mission
}
// SetBackground sets the value of Background.
func (s *BackgroundResponse) SetBackground(val OptString) {
s.Background = val
}
// SetDisposition sets the value of Disposition.
func (s *BackgroundResponse) SetDisposition(val OptDispositionTraits) {
s.Disposition = val
}
// SetMission sets the value of Mission.
func (s *BackgroundResponse) SetMission(val string) {
s.Mission = val
}
func (*BackgroundResponse) addBankBackgroundRes() {}
// Response model for bank configuration.
// Ref: #/components/schemas/BankConfigResponse
type BankConfigResponse struct {
// Bank identifier.
BankID string `json:"bank_id"`
// Fully resolved configuration with all hierarchical overrides applied (Python field names).
Config BankConfigResponseConfig `json:"config"`
// Bank-specific configuration overrides only (Python field names).
Overrides BankConfigResponseOverrides `json:"overrides"`
}
// GetBankID returns the value of BankID.
func (s *BankConfigResponse) GetBankID() string {
return s.BankID
}
// GetConfig returns the value of Config.
func (s *BankConfigResponse) GetConfig() BankConfigResponseConfig {
return s.Config
}
// GetOverrides returns the value of Overrides.
func (s *BankConfigResponse) GetOverrides() BankConfigResponseOverrides {
return s.Overrides
}
// SetBankID sets the value of BankID.
func (s *BankConfigResponse) SetBankID(val string) {
s.BankID = val
}
// SetConfig sets the value of Config.
func (s *BankConfigResponse) SetConfig(val BankConfigResponseConfig) {
s.Config = val
}
// SetOverrides sets the value of Overrides.
func (s *BankConfigResponse) SetOverrides(val BankConfigResponseOverrides) {
s.Overrides = val
}
func (*BankConfigResponse) getBankConfigRes() {}
func (*BankConfigResponse) resetBankConfigRes() {}
func (*BankConfigResponse) updateBankConfigRes() {}
// Fully resolved configuration with all hierarchical overrides applied (Python field names).
type BankConfigResponseConfig map[string]jx.Raw
func (s *BankConfigResponseConfig) init() BankConfigResponseConfig {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Bank-specific configuration overrides only (Python field names).
type BankConfigResponseOverrides map[string]jx.Raw
func (s *BankConfigResponseOverrides) init() BankConfigResponseOverrides {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Request model for updating bank configuration.
// Ref: #/components/schemas/BankConfigUpdate
type BankConfigUpdate struct {
// Configuration overrides. Keys can be in Python field format (llm_provider) or environment variable
// format (HINDSIGHT_API_LLM_PROVIDER). Only hierarchical fields can be overridden per-bank.
Updates BankConfigUpdateUpdates `json:"updates"`
}
// GetUpdates returns the value of Updates.
func (s *BankConfigUpdate) GetUpdates() BankConfigUpdateUpdates {
return s.Updates
}
// SetUpdates sets the value of Updates.
func (s *BankConfigUpdate) SetUpdates(val BankConfigUpdateUpdates) {
s.Updates = val
}
// Configuration overrides. Keys can be in Python field format (llm_provider) or environment variable
// format (HINDSIGHT_API_LLM_PROVIDER). Only hierarchical fields can be overridden per-bank.
type BankConfigUpdateUpdates map[string]jx.Raw
func (s *BankConfigUpdateUpdates) init() BankConfigUpdateUpdates {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Bank list item with profile summary.
// Ref: #/components/schemas/BankListItem
type BankListItem struct {
BankID string `json:"bank_id"`
CreatedAt OptString `json:"created_at"`
Disposition DispositionTraits `json:"disposition"`
Mission OptString `json:"mission"`
Name OptString `json:"name"`
UpdatedAt OptString `json:"updated_at"`
}
// GetBankID returns the value of BankID.
func (s *BankListItem) GetBankID() string {
return s.BankID
}
// GetCreatedAt returns the value of CreatedAt.
func (s *BankListItem) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetDisposition returns the value of Disposition.
func (s *BankListItem) GetDisposition() DispositionTraits {
return s.Disposition
}
// GetMission returns the value of Mission.
func (s *BankListItem) GetMission() OptString {
return s.Mission
}
// GetName returns the value of Name.
func (s *BankListItem) GetName() OptString {
return s.Name
}
// GetUpdatedAt returns the value of UpdatedAt.
func (s *BankListItem) GetUpdatedAt() OptString {
return s.UpdatedAt
}
// SetBankID sets the value of BankID.
func (s *BankListItem) SetBankID(val string) {
s.BankID = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *BankListItem) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetDisposition sets the value of Disposition.
func (s *BankListItem) SetDisposition(val DispositionTraits) {
s.Disposition = val
}
// SetMission sets the value of Mission.
func (s *BankListItem) SetMission(val OptString) {
s.Mission = val
}
// SetName sets the value of Name.
func (s *BankListItem) SetName(val OptString) {
s.Name = val
}
// SetUpdatedAt sets the value of UpdatedAt.
func (s *BankListItem) SetUpdatedAt(val OptString) {
s.UpdatedAt = val
}
// Response model for listing all banks.
// Ref: #/components/schemas/BankListResponse
type BankListResponse struct {
Banks []BankListItem `json:"banks"`
}
// GetBanks returns the value of Banks.
func (s *BankListResponse) GetBanks() []BankListItem {
return s.Banks
}
// SetBanks sets the value of Banks.
func (s *BankListResponse) SetBanks(val []BankListItem) {
s.Banks = val
}
func (*BankListResponse) listBanksRes() {}
// Response model for bank profile.
// Ref: #/components/schemas/BankProfileResponse
type BankProfileResponse struct {
// Deprecated: use mission instead.
Background OptString `json:"background"`
BankID string `json:"bank_id"`
Disposition DispositionTraits `json:"disposition"`
// The agent's mission - who they are and what they're trying to accomplish.
Mission string `json:"mission"`
Name string `json:"name"`
}
// GetBackground returns the value of Background.
func (s *BankProfileResponse) GetBackground() OptString {
return s.Background
}
// GetBankID returns the value of BankID.
func (s *BankProfileResponse) GetBankID() string {
return s.BankID
}
// GetDisposition returns the value of Disposition.
func (s *BankProfileResponse) GetDisposition() DispositionTraits {
return s.Disposition
}
// GetMission returns the value of Mission.
func (s *BankProfileResponse) GetMission() string {
return s.Mission
}
// GetName returns the value of Name.
func (s *BankProfileResponse) GetName() string {
return s.Name
}
// SetBackground sets the value of Background.
func (s *BankProfileResponse) SetBackground(val OptString) {
s.Background = val
}
// SetBankID sets the value of BankID.
func (s *BankProfileResponse) SetBankID(val string) {
s.BankID = val
}
// SetDisposition sets the value of Disposition.
func (s *BankProfileResponse) SetDisposition(val DispositionTraits) {
s.Disposition = val
}
// SetMission sets the value of Mission.
func (s *BankProfileResponse) SetMission(val string) {
s.Mission = val
}
// SetName sets the value of Name.
func (s *BankProfileResponse) SetName(val string) {
s.Name = val
}
func (*BankProfileResponse) createOrUpdateBankRes() {}
func (*BankProfileResponse) getBankProfileRes() {}
func (*BankProfileResponse) updateBankDispositionRes() {}
func (*BankProfileResponse) updateBankRes() {}
// Response model for bank statistics endpoint.
// Ref: #/components/schemas/BankStatsResponse
type BankStatsResponse struct {
BankID string `json:"bank_id"`
FailedOperations int `json:"failed_operations"`
// When consolidation last ran (ISO format).
LastConsolidatedAt OptString `json:"last_consolidated_at"`
LinksBreakdown BankStatsResponseLinksBreakdown `json:"links_breakdown"`
LinksByFactType BankStatsResponseLinksByFactType `json:"links_by_fact_type"`
LinksByLinkType BankStatsResponseLinksByLinkType `json:"links_by_link_type"`
NodesByFactType BankStatsResponseNodesByFactType `json:"nodes_by_fact_type"`
// Number of memories not yet processed into observations.
PendingConsolidation OptInt `json:"pending_consolidation"`
PendingOperations int `json:"pending_operations"`
TotalDocuments int `json:"total_documents"`
TotalLinks int `json:"total_links"`
TotalNodes int `json:"total_nodes"`
// Total number of observations.
TotalObservations OptInt `json:"total_observations"`
}
// GetBankID returns the value of BankID.
func (s *BankStatsResponse) GetBankID() string {
return s.BankID
}
// GetFailedOperations returns the value of FailedOperations.
func (s *BankStatsResponse) GetFailedOperations() int {
return s.FailedOperations
}
// GetLastConsolidatedAt returns the value of LastConsolidatedAt.
func (s *BankStatsResponse) GetLastConsolidatedAt() OptString {
return s.LastConsolidatedAt
}
// GetLinksBreakdown returns the value of LinksBreakdown.
func (s *BankStatsResponse) GetLinksBreakdown() BankStatsResponseLinksBreakdown {
return s.LinksBreakdown
}
// GetLinksByFactType returns the value of LinksByFactType.
func (s *BankStatsResponse) GetLinksByFactType() BankStatsResponseLinksByFactType {
return s.LinksByFactType
}
// GetLinksByLinkType returns the value of LinksByLinkType.
func (s *BankStatsResponse) GetLinksByLinkType() BankStatsResponseLinksByLinkType {
return s.LinksByLinkType
}
// GetNodesByFactType returns the value of NodesByFactType.
func (s *BankStatsResponse) GetNodesByFactType() BankStatsResponseNodesByFactType {
return s.NodesByFactType
}
// GetPendingConsolidation returns the value of PendingConsolidation.
func (s *BankStatsResponse) GetPendingConsolidation() OptInt {
return s.PendingConsolidation
}
// GetPendingOperations returns the value of PendingOperations.
func (s *BankStatsResponse) GetPendingOperations() int {
return s.PendingOperations
}
// GetTotalDocuments returns the value of TotalDocuments.
func (s *BankStatsResponse) GetTotalDocuments() int {
return s.TotalDocuments
}
// GetTotalLinks returns the value of TotalLinks.
func (s *BankStatsResponse) GetTotalLinks() int {
return s.TotalLinks
}
// GetTotalNodes returns the value of TotalNodes.
func (s *BankStatsResponse) GetTotalNodes() int {
return s.TotalNodes
}
// GetTotalObservations returns the value of TotalObservations.
func (s *BankStatsResponse) GetTotalObservations() OptInt {
return s.TotalObservations
}
// SetBankID sets the value of BankID.
func (s *BankStatsResponse) SetBankID(val string) {
s.BankID = val
}
// SetFailedOperations sets the value of FailedOperations.
func (s *BankStatsResponse) SetFailedOperations(val int) {
s.FailedOperations = val
}
// SetLastConsolidatedAt sets the value of LastConsolidatedAt.
func (s *BankStatsResponse) SetLastConsolidatedAt(val OptString) {
s.LastConsolidatedAt = val
}
// SetLinksBreakdown sets the value of LinksBreakdown.
func (s *BankStatsResponse) SetLinksBreakdown(val BankStatsResponseLinksBreakdown) {
s.LinksBreakdown = val
}
// SetLinksByFactType sets the value of LinksByFactType.
func (s *BankStatsResponse) SetLinksByFactType(val BankStatsResponseLinksByFactType) {
s.LinksByFactType = val
}
// SetLinksByLinkType sets the value of LinksByLinkType.
func (s *BankStatsResponse) SetLinksByLinkType(val BankStatsResponseLinksByLinkType) {
s.LinksByLinkType = val
}
// SetNodesByFactType sets the value of NodesByFactType.
func (s *BankStatsResponse) SetNodesByFactType(val BankStatsResponseNodesByFactType) {
s.NodesByFactType = val
}
// SetPendingConsolidation sets the value of PendingConsolidation.
func (s *BankStatsResponse) SetPendingConsolidation(val OptInt) {
s.PendingConsolidation = val
}
// SetPendingOperations sets the value of PendingOperations.
func (s *BankStatsResponse) SetPendingOperations(val int) {
s.PendingOperations = val
}
// SetTotalDocuments sets the value of TotalDocuments.
func (s *BankStatsResponse) SetTotalDocuments(val int) {
s.TotalDocuments = val
}
// SetTotalLinks sets the value of TotalLinks.
func (s *BankStatsResponse) SetTotalLinks(val int) {
s.TotalLinks = val
}
// SetTotalNodes sets the value of TotalNodes.
func (s *BankStatsResponse) SetTotalNodes(val int) {
s.TotalNodes = val
}
// SetTotalObservations sets the value of TotalObservations.
func (s *BankStatsResponse) SetTotalObservations(val OptInt) {
s.TotalObservations = val
}
func (*BankStatsResponse) getAgentStatsRes() {}
type BankStatsResponseLinksBreakdown map[string]BankStatsResponseLinksBreakdownItem
func (s *BankStatsResponseLinksBreakdown) init() BankStatsResponseLinksBreakdown {
m := *s
if m == nil {
m = map[string]BankStatsResponseLinksBreakdownItem{}
*s = m
}
return m
}
type BankStatsResponseLinksBreakdownItem map[string]int
func (s *BankStatsResponseLinksBreakdownItem) init() BankStatsResponseLinksBreakdownItem {
m := *s
if m == nil {
m = map[string]int{}
*s = m
}
return m
}
type BankStatsResponseLinksByFactType map[string]int
func (s *BankStatsResponseLinksByFactType) init() BankStatsResponseLinksByFactType {
m := *s
if m == nil {
m = map[string]int{}
*s = m
}
return m
}
type BankStatsResponseLinksByLinkType map[string]int
func (s *BankStatsResponseLinksByLinkType) init() BankStatsResponseLinksByLinkType {
m := *s
if m == nil {
m = map[string]int{}
*s = m
}
return m
}
type BankStatsResponseNodesByFactType map[string]int
func (s *BankStatsResponseNodesByFactType) init() BankStatsResponseNodesByFactType {
m := *s
if m == nil {
m = map[string]int{}
*s = m
}
return m
}
// Budget levels for recall/reflect operations.
// Ref: #/components/schemas/Budget
type Budget string
const (
BudgetLow Budget = "low"
BudgetMid Budget = "mid"
BudgetHigh Budget = "high"
)
// AllValues returns all Budget values.
func (Budget) AllValues() []Budget {
return []Budget{
BudgetLow,
BudgetMid,
BudgetHigh,
}
}
// MarshalText implements encoding.TextMarshaler.
func (s Budget) MarshalText() ([]byte, error) {
switch s {
case BudgetLow:
return []byte(s), nil
case BudgetMid:
return []byte(s), nil
case BudgetHigh:
return []byte(s), nil
default:
return nil, errors.Errorf("invalid value: %q", s)
}
}
// UnmarshalText implements encoding.TextUnmarshaler.
func (s *Budget) UnmarshalText(data []byte) error {
switch Budget(data) {
case BudgetLow:
*s = BudgetLow
return nil
case BudgetMid:
*s = BudgetMid
return nil
case BudgetHigh:
*s = BudgetHigh
return nil
default:
return errors.Errorf("invalid value: %q", data)
}
}
// Response model for cancel operation endpoint.
// Ref: #/components/schemas/CancelOperationResponse
type CancelOperationResponse struct {
Message string `json:"message"`
OperationID string `json:"operation_id"`
Success bool `json:"success"`
}
// GetMessage returns the value of Message.
func (s *CancelOperationResponse) GetMessage() string {
return s.Message
}
// GetOperationID returns the value of OperationID.
func (s *CancelOperationResponse) GetOperationID() string {
return s.OperationID
}
// GetSuccess returns the value of Success.
func (s *CancelOperationResponse) GetSuccess() bool {
return s.Success
}
// SetMessage sets the value of Message.
func (s *CancelOperationResponse) SetMessage(val string) {
s.Message = val
}
// SetOperationID sets the value of OperationID.
func (s *CancelOperationResponse) SetOperationID(val string) {
s.OperationID = val
}
// SetSuccess sets the value of Success.
func (s *CancelOperationResponse) SetSuccess(val bool) {
s.Success = val
}
func (*CancelOperationResponse) cancelOperationRes() {}
// Chunk data for a single chunk.
// Ref: #/components/schemas/ChunkData
type ChunkData struct {
ChunkIndex int `json:"chunk_index"`
ID string `json:"id"`
Text string `json:"text"`
// Whether the chunk text was truncated due to token limits.
Truncated OptBool `json:"truncated"`
}
// GetChunkIndex returns the value of ChunkIndex.
func (s *ChunkData) GetChunkIndex() int {
return s.ChunkIndex
}
// GetID returns the value of ID.
func (s *ChunkData) GetID() string {
return s.ID
}
// GetText returns the value of Text.
func (s *ChunkData) GetText() string {
return s.Text
}
// GetTruncated returns the value of Truncated.
func (s *ChunkData) GetTruncated() OptBool {
return s.Truncated
}
// SetChunkIndex sets the value of ChunkIndex.
func (s *ChunkData) SetChunkIndex(val int) {
s.ChunkIndex = val
}
// SetID sets the value of ID.
func (s *ChunkData) SetID(val string) {
s.ID = val
}
// SetText sets the value of Text.
func (s *ChunkData) SetText(val string) {
s.Text = val
}
// SetTruncated sets the value of Truncated.
func (s *ChunkData) SetTruncated(val OptBool) {
s.Truncated = val
}
// Options for including chunks in recall results.
// Ref: #/components/schemas/ChunkIncludeOptions
type ChunkIncludeOptions struct {
// Maximum tokens for chunks (chunks may be truncated).
MaxTokens OptInt `json:"max_tokens"`
}
// GetMaxTokens returns the value of MaxTokens.
func (s *ChunkIncludeOptions) GetMaxTokens() OptInt {
return s.MaxTokens
}
// SetMaxTokens sets the value of MaxTokens.
func (s *ChunkIncludeOptions) SetMaxTokens(val OptInt) {
s.MaxTokens = val
}
// Response model for get chunk endpoint.
// Ref: #/components/schemas/ChunkResponse
type ChunkResponse struct {
BankID string `json:"bank_id"`
ChunkID string `json:"chunk_id"`
ChunkIndex int `json:"chunk_index"`
ChunkText string `json:"chunk_text"`
CreatedAt string `json:"created_at"`
DocumentID string `json:"document_id"`
}
// GetBankID returns the value of BankID.
func (s *ChunkResponse) GetBankID() string {
return s.BankID
}
// GetChunkID returns the value of ChunkID.
func (s *ChunkResponse) GetChunkID() string {
return s.ChunkID
}
// GetChunkIndex returns the value of ChunkIndex.
func (s *ChunkResponse) GetChunkIndex() int {
return s.ChunkIndex
}
// GetChunkText returns the value of ChunkText.
func (s *ChunkResponse) GetChunkText() string {
return s.ChunkText
}
// GetCreatedAt returns the value of CreatedAt.
func (s *ChunkResponse) GetCreatedAt() string {
return s.CreatedAt
}
// GetDocumentID returns the value of DocumentID.
func (s *ChunkResponse) GetDocumentID() string {
return s.DocumentID
}
// SetBankID sets the value of BankID.
func (s *ChunkResponse) SetBankID(val string) {
s.BankID = val
}
// SetChunkID sets the value of ChunkID.
func (s *ChunkResponse) SetChunkID(val string) {
s.ChunkID = val
}
// SetChunkIndex sets the value of ChunkIndex.
func (s *ChunkResponse) SetChunkIndex(val int) {
s.ChunkIndex = val
}
// SetChunkText sets the value of ChunkText.
func (s *ChunkResponse) SetChunkText(val string) {
s.ChunkText = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *ChunkResponse) SetCreatedAt(val string) {
s.CreatedAt = val
}
// SetDocumentID sets the value of DocumentID.
func (s *ChunkResponse) SetDocumentID(val string) {
s.DocumentID = val
}
func (*ChunkResponse) getChunkRes() {}
// Response model for consolidation trigger endpoint.
// Ref: #/components/schemas/ConsolidationResponse
type ConsolidationResponse struct {
// True if an existing pending task was reused.
Deduplicated OptBool `json:"deduplicated"`
// ID of the async consolidation operation.
OperationID string `json:"operation_id"`
}
// GetDeduplicated returns the value of Deduplicated.
func (s *ConsolidationResponse) GetDeduplicated() OptBool {
return s.Deduplicated
}
// GetOperationID returns the value of OperationID.
func (s *ConsolidationResponse) GetOperationID() string {
return s.OperationID
}
// SetDeduplicated sets the value of Deduplicated.
func (s *ConsolidationResponse) SetDeduplicated(val OptBool) {
s.Deduplicated = val
}
// SetOperationID sets the value of OperationID.
func (s *ConsolidationResponse) SetOperationID(val string) {
s.OperationID = val
}
func (*ConsolidationResponse) triggerConsolidationRes() {}
// Request model for creating/updating a bank.
// Ref: #/components/schemas/CreateBankRequest
type CreateBankRequest struct {
// Deprecated: use mission instead.
Background OptString `json:"background"`
Disposition OptDispositionTraits `json:"disposition"`
// The agent's mission.
Mission OptString `json:"mission"`
Name OptString `json:"name"`
}
// GetBackground returns the value of Background.
func (s *CreateBankRequest) GetBackground() OptString {
return s.Background
}
// GetDisposition returns the value of Disposition.
func (s *CreateBankRequest) GetDisposition() OptDispositionTraits {
return s.Disposition
}
// GetMission returns the value of Mission.
func (s *CreateBankRequest) GetMission() OptString {
return s.Mission
}
// GetName returns the value of Name.
func (s *CreateBankRequest) GetName() OptString {
return s.Name
}
// SetBackground sets the value of Background.
func (s *CreateBankRequest) SetBackground(val OptString) {
s.Background = val
}
// SetDisposition sets the value of Disposition.
func (s *CreateBankRequest) SetDisposition(val OptDispositionTraits) {
s.Disposition = val
}
// SetMission sets the value of Mission.
func (s *CreateBankRequest) SetMission(val OptString) {
s.Mission = val
}
// SetName sets the value of Name.
func (s *CreateBankRequest) SetName(val OptString) {
s.Name = val
}
// Request model for creating a directive.
// Ref: #/components/schemas/CreateDirectiveRequest
type CreateDirectiveRequest struct {
// The directive text to inject into prompts.
Content string `json:"content"`
// Whether this directive is active.
IsActive OptBool `json:"is_active"`
// Human-readable name for the directive.
Name string `json:"name"`
// Higher priority directives are injected first.
Priority OptInt `json:"priority"`
// Tags for filtering.
Tags []string `json:"tags"`
}
// GetContent returns the value of Content.
func (s *CreateDirectiveRequest) GetContent() string {
return s.Content
}
// GetIsActive returns the value of IsActive.
func (s *CreateDirectiveRequest) GetIsActive() OptBool {
return s.IsActive
}
// GetName returns the value of Name.
func (s *CreateDirectiveRequest) GetName() string {
return s.Name
}
// GetPriority returns the value of Priority.
func (s *CreateDirectiveRequest) GetPriority() OptInt {
return s.Priority
}
// GetTags returns the value of Tags.
func (s *CreateDirectiveRequest) GetTags() []string {
return s.Tags
}
// SetContent sets the value of Content.
func (s *CreateDirectiveRequest) SetContent(val string) {
s.Content = val
}
// SetIsActive sets the value of IsActive.
func (s *CreateDirectiveRequest) SetIsActive(val OptBool) {
s.IsActive = val
}
// SetName sets the value of Name.
func (s *CreateDirectiveRequest) SetName(val string) {
s.Name = val
}
// SetPriority sets the value of Priority.
func (s *CreateDirectiveRequest) SetPriority(val OptInt) {
s.Priority = val
}
// SetTags sets the value of Tags.
func (s *CreateDirectiveRequest) SetTags(val []string) {
s.Tags = val
}
// Request model for creating a mental model.
// Ref: #/components/schemas/CreateMentalModelRequest
type CreateMentalModelRequest struct {
// Optional custom ID for the mental model (alphanumeric lowercase with hyphens).
ID OptString `json:"id"`
// Maximum tokens for generated content.
MaxTokens OptInt `json:"max_tokens"`
// Human-readable name for the mental model.
Name string `json:"name"`
// The query to run to generate content.
SourceQuery string `json:"source_query"`
// Tags for scoped visibility.
Tags []string `json:"tags"`
// Trigger settings.
Trigger OptMentalModelTrigger `json:"trigger"`
}
// GetID returns the value of ID.
func (s *CreateMentalModelRequest) GetID() OptString {
return s.ID
}
// GetMaxTokens returns the value of MaxTokens.
func (s *CreateMentalModelRequest) GetMaxTokens() OptInt {
return s.MaxTokens
}
// GetName returns the value of Name.
func (s *CreateMentalModelRequest) GetName() string {
return s.Name
}
// GetSourceQuery returns the value of SourceQuery.
func (s *CreateMentalModelRequest) GetSourceQuery() string {
return s.SourceQuery
}
// GetTags returns the value of Tags.
func (s *CreateMentalModelRequest) GetTags() []string {
return s.Tags
}
// GetTrigger returns the value of Trigger.
func (s *CreateMentalModelRequest) GetTrigger() OptMentalModelTrigger {
return s.Trigger
}
// SetID sets the value of ID.
func (s *CreateMentalModelRequest) SetID(val OptString) {
s.ID = val
}
// SetMaxTokens sets the value of MaxTokens.
func (s *CreateMentalModelRequest) SetMaxTokens(val OptInt) {
s.MaxTokens = val
}
// SetName sets the value of Name.
func (s *CreateMentalModelRequest) SetName(val string) {
s.Name = val
}
// SetSourceQuery sets the value of SourceQuery.
func (s *CreateMentalModelRequest) SetSourceQuery(val string) {
s.SourceQuery = val
}
// SetTags sets the value of Tags.
func (s *CreateMentalModelRequest) SetTags(val []string) {
s.Tags = val
}
// SetTrigger sets the value of Trigger.
func (s *CreateMentalModelRequest) SetTrigger(val OptMentalModelTrigger) {
s.Trigger = val
}
// Response model for mental model creation.
// Ref: #/components/schemas/CreateMentalModelResponse
type CreateMentalModelResponse struct {
// ID of the created mental model.
MentalModelID OptString `json:"mental_model_id"`
// Operation ID to track refresh progress.
OperationID string `json:"operation_id"`
}
// GetMentalModelID returns the value of MentalModelID.
func (s *CreateMentalModelResponse) GetMentalModelID() OptString {
return s.MentalModelID
}
// GetOperationID returns the value of OperationID.
func (s *CreateMentalModelResponse) GetOperationID() string {
return s.OperationID
}
// SetMentalModelID sets the value of MentalModelID.
func (s *CreateMentalModelResponse) SetMentalModelID(val OptString) {
s.MentalModelID = val
}
// SetOperationID sets the value of OperationID.
func (s *CreateMentalModelResponse) SetOperationID(val string) {
s.OperationID = val
}
func (*CreateMentalModelResponse) createMentalModelRes() {}
type DeleteDirectiveOKApplicationJSON jx.Raw
func (*DeleteDirectiveOKApplicationJSON) deleteDirectiveRes() {}
// Response model for delete document endpoint.
// Ref: #/components/schemas/DeleteDocumentResponse
type DeleteDocumentResponse struct {
DocumentID string `json:"document_id"`
MemoryUnitsDeleted int `json:"memory_units_deleted"`
Message string `json:"message"`
Success bool `json:"success"`
}
// GetDocumentID returns the value of DocumentID.
func (s *DeleteDocumentResponse) GetDocumentID() string {
return s.DocumentID
}
// GetMemoryUnitsDeleted returns the value of MemoryUnitsDeleted.
func (s *DeleteDocumentResponse) GetMemoryUnitsDeleted() int {
return s.MemoryUnitsDeleted
}
// GetMessage returns the value of Message.
func (s *DeleteDocumentResponse) GetMessage() string {
return s.Message
}
// GetSuccess returns the value of Success.
func (s *DeleteDocumentResponse) GetSuccess() bool {
return s.Success
}
// SetDocumentID sets the value of DocumentID.
func (s *DeleteDocumentResponse) SetDocumentID(val string) {
s.DocumentID = val
}
// SetMemoryUnitsDeleted sets the value of MemoryUnitsDeleted.
func (s *DeleteDocumentResponse) SetMemoryUnitsDeleted(val int) {
s.MemoryUnitsDeleted = val
}
// SetMessage sets the value of Message.
func (s *DeleteDocumentResponse) SetMessage(val string) {
s.Message = val
}
// SetSuccess sets the value of Success.
func (s *DeleteDocumentResponse) SetSuccess(val bool) {
s.Success = val
}
func (*DeleteDocumentResponse) deleteDocumentRes() {}
type DeleteMentalModelOKApplicationJSON jx.Raw
func (*DeleteMentalModelOKApplicationJSON) deleteMentalModelRes() {}
// Response model for delete operations.
// Ref: #/components/schemas/DeleteResponse
type DeleteResponse struct {
DeletedCount OptInt `json:"deleted_count"`
Message OptString `json:"message"`
Success bool `json:"success"`
}
// GetDeletedCount returns the value of DeletedCount.
func (s *DeleteResponse) GetDeletedCount() OptInt {
return s.DeletedCount
}
// GetMessage returns the value of Message.
func (s *DeleteResponse) GetMessage() OptString {
return s.Message
}
// GetSuccess returns the value of Success.
func (s *DeleteResponse) GetSuccess() bool {
return s.Success
}
// SetDeletedCount sets the value of DeletedCount.
func (s *DeleteResponse) SetDeletedCount(val OptInt) {
s.DeletedCount = val
}
// SetMessage sets the value of Message.
func (s *DeleteResponse) SetMessage(val OptString) {
s.Message = val
}
// SetSuccess sets the value of Success.
func (s *DeleteResponse) SetSuccess(val bool) {
s.Success = val
}
func (*DeleteResponse) clearBankMemoriesRes() {}
func (*DeleteResponse) clearObservationsRes() {}
func (*DeleteResponse) deleteBankRes() {}
// Response model for listing directives.
// Ref: #/components/schemas/DirectiveListResponse
type DirectiveListResponse struct {
Items []DirectiveResponse `json:"items"`
}
// GetItems returns the value of Items.
func (s *DirectiveListResponse) GetItems() []DirectiveResponse {
return s.Items
}
// SetItems sets the value of Items.
func (s *DirectiveListResponse) SetItems(val []DirectiveResponse) {
s.Items = val
}
func (*DirectiveListResponse) listDirectivesRes() {}
// Response model for a directive.
// Ref: #/components/schemas/DirectiveResponse
type DirectiveResponse struct {
BankID string `json:"bank_id"`
Content string `json:"content"`
CreatedAt OptString `json:"created_at"`
ID string `json:"id"`
IsActive OptBool `json:"is_active"`
Name string `json:"name"`
Priority OptInt `json:"priority"`
Tags []string `json:"tags"`
UpdatedAt OptString `json:"updated_at"`
}
// GetBankID returns the value of BankID.
func (s *DirectiveResponse) GetBankID() string {
return s.BankID
}
// GetContent returns the value of Content.
func (s *DirectiveResponse) GetContent() string {
return s.Content
}
// GetCreatedAt returns the value of CreatedAt.
func (s *DirectiveResponse) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetID returns the value of ID.
func (s *DirectiveResponse) GetID() string {
return s.ID
}
// GetIsActive returns the value of IsActive.
func (s *DirectiveResponse) GetIsActive() OptBool {
return s.IsActive
}
// GetName returns the value of Name.
func (s *DirectiveResponse) GetName() string {
return s.Name
}
// GetPriority returns the value of Priority.
func (s *DirectiveResponse) GetPriority() OptInt {
return s.Priority
}
// GetTags returns the value of Tags.
func (s *DirectiveResponse) GetTags() []string {
return s.Tags
}
// GetUpdatedAt returns the value of UpdatedAt.
func (s *DirectiveResponse) GetUpdatedAt() OptString {
return s.UpdatedAt
}
// SetBankID sets the value of BankID.
func (s *DirectiveResponse) SetBankID(val string) {
s.BankID = val
}
// SetContent sets the value of Content.
func (s *DirectiveResponse) SetContent(val string) {
s.Content = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *DirectiveResponse) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetID sets the value of ID.
func (s *DirectiveResponse) SetID(val string) {
s.ID = val
}
// SetIsActive sets the value of IsActive.
func (s *DirectiveResponse) SetIsActive(val OptBool) {
s.IsActive = val
}
// SetName sets the value of Name.
func (s *DirectiveResponse) SetName(val string) {
s.Name = val
}
// SetPriority sets the value of Priority.
func (s *DirectiveResponse) SetPriority(val OptInt) {
s.Priority = val
}
// SetTags sets the value of Tags.
func (s *DirectiveResponse) SetTags(val []string) {
s.Tags = val
}
// SetUpdatedAt sets the value of UpdatedAt.
func (s *DirectiveResponse) SetUpdatedAt(val OptString) {
s.UpdatedAt = val
}
func (*DirectiveResponse) createDirectiveRes() {}
func (*DirectiveResponse) getDirectiveRes() {}
func (*DirectiveResponse) updateDirectiveRes() {}
// Disposition traits that influence how memories are formed and interpreted.
// Ref: #/components/schemas/DispositionTraits
type DispositionTraits struct {
// How much to consider emotional context (1=detached, 5=empathetic).
Empathy int `json:"empathy"`
// How literally to interpret information (1=flexible, 5=literal).
Literalism int `json:"literalism"`
// How skeptical vs trusting (1=trusting, 5=skeptical).
Skepticism int `json:"skepticism"`
}
// GetEmpathy returns the value of Empathy.
func (s *DispositionTraits) GetEmpathy() int {
return s.Empathy
}
// GetLiteralism returns the value of Literalism.
func (s *DispositionTraits) GetLiteralism() int {
return s.Literalism
}
// GetSkepticism returns the value of Skepticism.
func (s *DispositionTraits) GetSkepticism() int {
return s.Skepticism
}
// SetEmpathy sets the value of Empathy.
func (s *DispositionTraits) SetEmpathy(val int) {
s.Empathy = val
}
// SetLiteralism sets the value of Literalism.
func (s *DispositionTraits) SetLiteralism(val int) {
s.Literalism = val
}
// SetSkepticism sets the value of Skepticism.
func (s *DispositionTraits) SetSkepticism(val int) {
s.Skepticism = val
}
// Response model for get document endpoint.
// Ref: #/components/schemas/DocumentResponse
type DocumentResponse struct {
BankID string `json:"bank_id"`
ContentHash string `json:"content_hash"`
CreatedAt string `json:"created_at"`
ID string `json:"id"`
MemoryUnitCount int `json:"memory_unit_count"`
OriginalText string `json:"original_text"`
// Tags associated with this document.
Tags []string `json:"tags"`
UpdatedAt string `json:"updated_at"`
}
// GetBankID returns the value of BankID.
func (s *DocumentResponse) GetBankID() string {
return s.BankID
}
// GetContentHash returns the value of ContentHash.
func (s *DocumentResponse) GetContentHash() string {
return s.ContentHash
}
// GetCreatedAt returns the value of CreatedAt.
func (s *DocumentResponse) GetCreatedAt() string {
return s.CreatedAt
}
// GetID returns the value of ID.
func (s *DocumentResponse) GetID() string {
return s.ID
}
// GetMemoryUnitCount returns the value of MemoryUnitCount.
func (s *DocumentResponse) GetMemoryUnitCount() int {
return s.MemoryUnitCount
}
// GetOriginalText returns the value of OriginalText.
func (s *DocumentResponse) GetOriginalText() string {
return s.OriginalText
}
// GetTags returns the value of Tags.
func (s *DocumentResponse) GetTags() []string {
return s.Tags
}
// GetUpdatedAt returns the value of UpdatedAt.
func (s *DocumentResponse) GetUpdatedAt() string {
return s.UpdatedAt
}
// SetBankID sets the value of BankID.
func (s *DocumentResponse) SetBankID(val string) {
s.BankID = val
}
// SetContentHash sets the value of ContentHash.
func (s *DocumentResponse) SetContentHash(val string) {
s.ContentHash = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *DocumentResponse) SetCreatedAt(val string) {
s.CreatedAt = val
}
// SetID sets the value of ID.
func (s *DocumentResponse) SetID(val string) {
s.ID = val
}
// SetMemoryUnitCount sets the value of MemoryUnitCount.
func (s *DocumentResponse) SetMemoryUnitCount(val int) {
s.MemoryUnitCount = val
}
// SetOriginalText sets the value of OriginalText.
func (s *DocumentResponse) SetOriginalText(val string) {
s.OriginalText = val
}
// SetTags sets the value of Tags.
func (s *DocumentResponse) SetTags(val []string) {
s.Tags = val
}
// SetUpdatedAt sets the value of UpdatedAt.
func (s *DocumentResponse) SetUpdatedAt(val string) {
s.UpdatedAt = val
}
func (*DocumentResponse) getDocumentRes() {}
// Response model for entity detail endpoint.
// Ref: #/components/schemas/EntityDetailResponse
type EntityDetailResponse struct {
CanonicalName string `json:"canonical_name"`
FirstSeen OptString `json:"first_seen"`
ID string `json:"id"`
LastSeen OptString `json:"last_seen"`
MentionCount int `json:"mention_count"`
Metadata OptEntityDetailResponseMetadata `json:"metadata"`
Observations []EntityObservationResponse `json:"observations"`
}
// GetCanonicalName returns the value of CanonicalName.
func (s *EntityDetailResponse) GetCanonicalName() string {
return s.CanonicalName
}
// GetFirstSeen returns the value of FirstSeen.
func (s *EntityDetailResponse) GetFirstSeen() OptString {
return s.FirstSeen
}
// GetID returns the value of ID.
func (s *EntityDetailResponse) GetID() string {
return s.ID
}
// GetLastSeen returns the value of LastSeen.
func (s *EntityDetailResponse) GetLastSeen() OptString {
return s.LastSeen
}
// GetMentionCount returns the value of MentionCount.
func (s *EntityDetailResponse) GetMentionCount() int {
return s.MentionCount
}
// GetMetadata returns the value of Metadata.
func (s *EntityDetailResponse) GetMetadata() OptEntityDetailResponseMetadata {
return s.Metadata
}
// GetObservations returns the value of Observations.
func (s *EntityDetailResponse) GetObservations() []EntityObservationResponse {
return s.Observations
}
// SetCanonicalName sets the value of CanonicalName.
func (s *EntityDetailResponse) SetCanonicalName(val string) {
s.CanonicalName = val
}
// SetFirstSeen sets the value of FirstSeen.
func (s *EntityDetailResponse) SetFirstSeen(val OptString) {
s.FirstSeen = val
}
// SetID sets the value of ID.
func (s *EntityDetailResponse) SetID(val string) {
s.ID = val
}
// SetLastSeen sets the value of LastSeen.
func (s *EntityDetailResponse) SetLastSeen(val OptString) {
s.LastSeen = val
}
// SetMentionCount sets the value of MentionCount.
func (s *EntityDetailResponse) SetMentionCount(val int) {
s.MentionCount = val
}
// SetMetadata sets the value of Metadata.
func (s *EntityDetailResponse) SetMetadata(val OptEntityDetailResponseMetadata) {
s.Metadata = val
}
// SetObservations sets the value of Observations.
func (s *EntityDetailResponse) SetObservations(val []EntityObservationResponse) {
s.Observations = val
}
func (*EntityDetailResponse) getEntityRes() {}
func (*EntityDetailResponse) regenerateEntityObservationsRes() {}
type EntityDetailResponseMetadata map[string]jx.Raw
func (s *EntityDetailResponseMetadata) init() EntityDetailResponseMetadata {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Options for including entity observations in recall results.
// Ref: #/components/schemas/EntityIncludeOptions
type EntityIncludeOptions struct {
// Maximum tokens for entity observations.
MaxTokens OptInt `json:"max_tokens"`
}
// GetMaxTokens returns the value of MaxTokens.
func (s *EntityIncludeOptions) GetMaxTokens() OptInt {
return s.MaxTokens
}
// SetMaxTokens sets the value of MaxTokens.
func (s *EntityIncludeOptions) SetMaxTokens(val OptInt) {
s.MaxTokens = val
}
// Entity to associate with retained content.
// Ref: #/components/schemas/EntityInput
type EntityInput struct {
// The entity name/text.
Text string `json:"text"`
// Optional entity type (e.g., 'PERSON', 'ORG', 'CONCEPT').
Type OptString `json:"type"`
}
// GetText returns the value of Text.
func (s *EntityInput) GetText() string {
return s.Text
}
// GetType returns the value of Type.
func (s *EntityInput) GetType() OptString {
return s.Type
}
// SetText sets the value of Text.
func (s *EntityInput) SetText(val string) {
s.Text = val
}
// SetType sets the value of Type.
func (s *EntityInput) SetType(val OptString) {
s.Type = val
}
// Entity list item with summary.
// Ref: #/components/schemas/EntityListItem
type EntityListItem struct {
CanonicalName string `json:"canonical_name"`
FirstSeen OptString `json:"first_seen"`
ID string `json:"id"`
LastSeen OptString `json:"last_seen"`
MentionCount int `json:"mention_count"`
Metadata OptEntityListItemMetadata `json:"metadata"`
}
// GetCanonicalName returns the value of CanonicalName.
func (s *EntityListItem) GetCanonicalName() string {
return s.CanonicalName
}
// GetFirstSeen returns the value of FirstSeen.
func (s *EntityListItem) GetFirstSeen() OptString {
return s.FirstSeen
}
// GetID returns the value of ID.
func (s *EntityListItem) GetID() string {
return s.ID
}
// GetLastSeen returns the value of LastSeen.
func (s *EntityListItem) GetLastSeen() OptString {
return s.LastSeen
}
// GetMentionCount returns the value of MentionCount.
func (s *EntityListItem) GetMentionCount() int {
return s.MentionCount
}
// GetMetadata returns the value of Metadata.
func (s *EntityListItem) GetMetadata() OptEntityListItemMetadata {
return s.Metadata
}
// SetCanonicalName sets the value of CanonicalName.
func (s *EntityListItem) SetCanonicalName(val string) {
s.CanonicalName = val
}
// SetFirstSeen sets the value of FirstSeen.
func (s *EntityListItem) SetFirstSeen(val OptString) {
s.FirstSeen = val
}
// SetID sets the value of ID.
func (s *EntityListItem) SetID(val string) {
s.ID = val
}
// SetLastSeen sets the value of LastSeen.
func (s *EntityListItem) SetLastSeen(val OptString) {
s.LastSeen = val
}
// SetMentionCount sets the value of MentionCount.
func (s *EntityListItem) SetMentionCount(val int) {
s.MentionCount = val
}
// SetMetadata sets the value of Metadata.
func (s *EntityListItem) SetMetadata(val OptEntityListItemMetadata) {
s.Metadata = val
}
type EntityListItemMetadata map[string]jx.Raw
func (s *EntityListItemMetadata) init() EntityListItemMetadata {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Response model for entity list endpoint.
// Ref: #/components/schemas/EntityListResponse
type EntityListResponse struct {
Items []EntityListItem `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
// GetItems returns the value of Items.
func (s *EntityListResponse) GetItems() []EntityListItem {
return s.Items
}
// GetLimit returns the value of Limit.
func (s *EntityListResponse) GetLimit() int {
return s.Limit
}
// GetOffset returns the value of Offset.
func (s *EntityListResponse) GetOffset() int {
return s.Offset
}
// GetTotal returns the value of Total.
func (s *EntityListResponse) GetTotal() int {
return s.Total
}
// SetItems sets the value of Items.
func (s *EntityListResponse) SetItems(val []EntityListItem) {
s.Items = val
}
// SetLimit sets the value of Limit.
func (s *EntityListResponse) SetLimit(val int) {
s.Limit = val
}
// SetOffset sets the value of Offset.
func (s *EntityListResponse) SetOffset(val int) {
s.Offset = val
}
// SetTotal sets the value of Total.
func (s *EntityListResponse) SetTotal(val int) {
s.Total = val
}
func (*EntityListResponse) listEntitiesRes() {}
// An observation about an entity.
// Ref: #/components/schemas/EntityObservationResponse
type EntityObservationResponse struct {
MentionedAt OptString `json:"mentioned_at"`
Text string `json:"text"`
}
// GetMentionedAt returns the value of MentionedAt.
func (s *EntityObservationResponse) GetMentionedAt() OptString {
return s.MentionedAt
}
// GetText returns the value of Text.
func (s *EntityObservationResponse) GetText() string {
return s.Text
}
// SetMentionedAt sets the value of MentionedAt.
func (s *EntityObservationResponse) SetMentionedAt(val OptString) {
s.MentionedAt = val
}
// SetText sets the value of Text.
func (s *EntityObservationResponse) SetText(val string) {
s.Text = val
}
// Current mental model of an entity.
// Ref: #/components/schemas/EntityStateResponse
type EntityStateResponse struct {
CanonicalName string `json:"canonical_name"`
EntityID string `json:"entity_id"`
Observations []EntityObservationResponse `json:"observations"`
}
// GetCanonicalName returns the value of CanonicalName.
func (s *EntityStateResponse) GetCanonicalName() string {
return s.CanonicalName
}
// GetEntityID returns the value of EntityID.
func (s *EntityStateResponse) GetEntityID() string {
return s.EntityID
}
// GetObservations returns the value of Observations.
func (s *EntityStateResponse) GetObservations() []EntityObservationResponse {
return s.Observations
}
// SetCanonicalName sets the value of CanonicalName.
func (s *EntityStateResponse) SetCanonicalName(val string) {
s.CanonicalName = val
}
// SetEntityID sets the value of EntityID.
func (s *EntityStateResponse) SetEntityID(val string) {
s.EntityID = val
}
// SetObservations sets the value of Observations.
func (s *EntityStateResponse) SetObservations(val []EntityObservationResponse) {
s.Observations = val
}
// Options for including facts (based_on) in reflect results.
// Ref: #/components/schemas/FactsIncludeOptions
type FactsIncludeOptions struct{}
// Feature flags indicating which capabilities are enabled.
// Ref: #/components/schemas/FeaturesInfo
type FeaturesInfo struct {
// Whether per-bank configuration API is enabled.
BankConfigAPI bool `json:"bank_config_api"`
// Whether MCP (Model Context Protocol) server is enabled.
Mcp bool `json:"mcp"`
// Whether observations (auto-consolidation) are enabled.
Observations bool `json:"observations"`
// Whether the background worker is enabled.
Worker bool `json:"worker"`
}
// GetBankConfigAPI returns the value of BankConfigAPI.
func (s *FeaturesInfo) GetBankConfigAPI() bool {
return s.BankConfigAPI
}
// GetMcp returns the value of Mcp.
func (s *FeaturesInfo) GetMcp() bool {
return s.Mcp
}
// GetObservations returns the value of Observations.
func (s *FeaturesInfo) GetObservations() bool {
return s.Observations
}
// GetWorker returns the value of Worker.
func (s *FeaturesInfo) GetWorker() bool {
return s.Worker
}
// SetBankConfigAPI sets the value of BankConfigAPI.
func (s *FeaturesInfo) SetBankConfigAPI(val bool) {
s.BankConfigAPI = val
}
// SetMcp sets the value of Mcp.
func (s *FeaturesInfo) SetMcp(val bool) {
s.Mcp = val
}
// SetObservations sets the value of Observations.
func (s *FeaturesInfo) SetObservations(val bool) {
s.Observations = val
}
// SetWorker sets the value of Worker.
func (s *FeaturesInfo) SetWorker(val bool) {
s.Worker = val
}
type GetMemoryOKApplicationJSON jx.Raw
func (*GetMemoryOKApplicationJSON) getMemoryRes() {}
// Response model for graph data endpoint.
// Ref: #/components/schemas/GraphDataResponse
type GraphDataResponse struct {
Edges []GraphDataResponseEdgesItem `json:"edges"`
Limit int `json:"limit"`
Nodes []GraphDataResponseNodesItem `json:"nodes"`
TableRows []GraphDataResponseTableRowsItem `json:"table_rows"`
TotalUnits int `json:"total_units"`
}
// GetEdges returns the value of Edges.
func (s *GraphDataResponse) GetEdges() []GraphDataResponseEdgesItem {
return s.Edges
}
// GetLimit returns the value of Limit.
func (s *GraphDataResponse) GetLimit() int {
return s.Limit
}
// GetNodes returns the value of Nodes.
func (s *GraphDataResponse) GetNodes() []GraphDataResponseNodesItem {
return s.Nodes
}
// GetTableRows returns the value of TableRows.
func (s *GraphDataResponse) GetTableRows() []GraphDataResponseTableRowsItem {
return s.TableRows
}
// GetTotalUnits returns the value of TotalUnits.
func (s *GraphDataResponse) GetTotalUnits() int {
return s.TotalUnits
}
// SetEdges sets the value of Edges.
func (s *GraphDataResponse) SetEdges(val []GraphDataResponseEdgesItem) {
s.Edges = val
}
// SetLimit sets the value of Limit.
func (s *GraphDataResponse) SetLimit(val int) {
s.Limit = val
}
// SetNodes sets the value of Nodes.
func (s *GraphDataResponse) SetNodes(val []GraphDataResponseNodesItem) {
s.Nodes = val
}
// SetTableRows sets the value of TableRows.
func (s *GraphDataResponse) SetTableRows(val []GraphDataResponseTableRowsItem) {
s.TableRows = val
}
// SetTotalUnits sets the value of TotalUnits.
func (s *GraphDataResponse) SetTotalUnits(val int) {
s.TotalUnits = val
}
func (*GraphDataResponse) getGraphRes() {}
type GraphDataResponseEdgesItem map[string]jx.Raw
func (s *GraphDataResponseEdgesItem) init() GraphDataResponseEdgesItem {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GraphDataResponseNodesItem map[string]jx.Raw
func (s *GraphDataResponseNodesItem) init() GraphDataResponseNodesItem {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GraphDataResponseTableRowsItem map[string]jx.Raw
func (s *GraphDataResponseTableRowsItem) init() GraphDataResponseTableRowsItem {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/HTTPValidationError
type HTTPValidationError struct {
Detail []ValidationError `json:"detail"`
}
// GetDetail returns the value of Detail.
func (s *HTTPValidationError) GetDetail() []ValidationError {
return s.Detail
}
// SetDetail sets the value of Detail.
func (s *HTTPValidationError) SetDetail(val []ValidationError) {
s.Detail = val
}
func (*HTTPValidationError) addBankBackgroundRes() {}
func (*HTTPValidationError) cancelOperationRes() {}
func (*HTTPValidationError) clearBankMemoriesRes() {}
func (*HTTPValidationError) clearObservationsRes() {}
func (*HTTPValidationError) createDirectiveRes() {}
func (*HTTPValidationError) createMentalModelRes() {}
func (*HTTPValidationError) createOrUpdateBankRes() {}
func (*HTTPValidationError) deleteBankRes() {}
func (*HTTPValidationError) deleteDirectiveRes() {}
func (*HTTPValidationError) deleteDocumentRes() {}
func (*HTTPValidationError) deleteMentalModelRes() {}
func (*HTTPValidationError) getAgentStatsRes() {}
func (*HTTPValidationError) getBankConfigRes() {}
func (*HTTPValidationError) getBankProfileRes() {}
func (*HTTPValidationError) getChunkRes() {}
func (*HTTPValidationError) getDirectiveRes() {}
func (*HTTPValidationError) getDocumentRes() {}
func (*HTTPValidationError) getEntityRes() {}
func (*HTTPValidationError) getGraphRes() {}
func (*HTTPValidationError) getMemoryRes() {}
func (*HTTPValidationError) getMentalModelRes() {}
func (*HTTPValidationError) getOperationStatusRes() {}
func (*HTTPValidationError) listBanksRes() {}
func (*HTTPValidationError) listDirectivesRes() {}
func (*HTTPValidationError) listDocumentsRes() {}
func (*HTTPValidationError) listEntitiesRes() {}
func (*HTTPValidationError) listMemoriesRes() {}
func (*HTTPValidationError) listMentalModelsRes() {}
func (*HTTPValidationError) listOperationsRes() {}
func (*HTTPValidationError) listTagsRes() {}
func (*HTTPValidationError) recallMemoriesRes() {}
func (*HTTPValidationError) reflectRes() {}
func (*HTTPValidationError) refreshMentalModelRes() {}
func (*HTTPValidationError) regenerateEntityObservationsRes() {}
func (*HTTPValidationError) resetBankConfigRes() {}
func (*HTTPValidationError) retainMemoriesRes() {}
func (*HTTPValidationError) triggerConsolidationRes() {}
func (*HTTPValidationError) updateBankConfigRes() {}
func (*HTTPValidationError) updateBankDispositionRes() {}
func (*HTTPValidationError) updateBankRes() {}
func (*HTTPValidationError) updateDirectiveRes() {}
func (*HTTPValidationError) updateMentalModelRes() {}
// Options for including additional data in recall results.
// Ref: #/components/schemas/IncludeOptions
type IncludeOptions struct {
// Include raw chunks. Set to {} to enable, null to disable (default: disabled).
Chunks OptChunkIncludeOptions `json:"chunks"`
// Include entity observations. Set to null to disable entity inclusion.
Entities OptEntityIncludeOptions `json:"entities"`
}
// GetChunks returns the value of Chunks.
func (s *IncludeOptions) GetChunks() OptChunkIncludeOptions {
return s.Chunks
}
// GetEntities returns the value of Entities.
func (s *IncludeOptions) GetEntities() OptEntityIncludeOptions {
return s.Entities
}
// SetChunks sets the value of Chunks.
func (s *IncludeOptions) SetChunks(val OptChunkIncludeOptions) {
s.Chunks = val
}
// SetEntities sets the value of Entities.
func (s *IncludeOptions) SetEntities(val OptEntityIncludeOptions) {
s.Entities = val
}
// How to match tags.
type ListDirectivesTagsMatch string
const (
ListDirectivesTagsMatchAny ListDirectivesTagsMatch = "any"
ListDirectivesTagsMatchAll ListDirectivesTagsMatch = "all"
ListDirectivesTagsMatchExact ListDirectivesTagsMatch = "exact"
)
// AllValues returns all ListDirectivesTagsMatch values.
func (ListDirectivesTagsMatch) AllValues() []ListDirectivesTagsMatch {
return []ListDirectivesTagsMatch{
ListDirectivesTagsMatchAny,
ListDirectivesTagsMatchAll,
ListDirectivesTagsMatchExact,
}
}
// MarshalText implements encoding.TextMarshaler.
func (s ListDirectivesTagsMatch) MarshalText() ([]byte, error) {
switch s {
case ListDirectivesTagsMatchAny:
return []byte(s), nil
case ListDirectivesTagsMatchAll:
return []byte(s), nil
case ListDirectivesTagsMatchExact:
return []byte(s), nil
default:
return nil, errors.Errorf("invalid value: %q", s)
}
}
// UnmarshalText implements encoding.TextUnmarshaler.
func (s *ListDirectivesTagsMatch) UnmarshalText(data []byte) error {
switch ListDirectivesTagsMatch(data) {
case ListDirectivesTagsMatchAny:
*s = ListDirectivesTagsMatchAny
return nil
case ListDirectivesTagsMatchAll:
*s = ListDirectivesTagsMatchAll
return nil
case ListDirectivesTagsMatchExact:
*s = ListDirectivesTagsMatchExact
return nil
default:
return errors.Errorf("invalid value: %q", data)
}
}
// Response model for list documents endpoint.
// Ref: #/components/schemas/ListDocumentsResponse
type ListDocumentsResponse struct {
Items []ListDocumentsResponseItemsItem `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
// GetItems returns the value of Items.
func (s *ListDocumentsResponse) GetItems() []ListDocumentsResponseItemsItem {
return s.Items
}
// GetLimit returns the value of Limit.
func (s *ListDocumentsResponse) GetLimit() int {
return s.Limit
}
// GetOffset returns the value of Offset.
func (s *ListDocumentsResponse) GetOffset() int {
return s.Offset
}
// GetTotal returns the value of Total.
func (s *ListDocumentsResponse) GetTotal() int {
return s.Total
}
// SetItems sets the value of Items.
func (s *ListDocumentsResponse) SetItems(val []ListDocumentsResponseItemsItem) {
s.Items = val
}
// SetLimit sets the value of Limit.
func (s *ListDocumentsResponse) SetLimit(val int) {
s.Limit = val
}
// SetOffset sets the value of Offset.
func (s *ListDocumentsResponse) SetOffset(val int) {
s.Offset = val
}
// SetTotal sets the value of Total.
func (s *ListDocumentsResponse) SetTotal(val int) {
s.Total = val
}
func (*ListDocumentsResponse) listDocumentsRes() {}
type ListDocumentsResponseItemsItem map[string]jx.Raw
func (s *ListDocumentsResponseItemsItem) init() ListDocumentsResponseItemsItem {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Response model for list memory units endpoint.
// Ref: #/components/schemas/ListMemoryUnitsResponse
type ListMemoryUnitsResponse struct {
Items []ListMemoryUnitsResponseItemsItem `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
// GetItems returns the value of Items.
func (s *ListMemoryUnitsResponse) GetItems() []ListMemoryUnitsResponseItemsItem {
return s.Items
}
// GetLimit returns the value of Limit.
func (s *ListMemoryUnitsResponse) GetLimit() int {
return s.Limit
}
// GetOffset returns the value of Offset.
func (s *ListMemoryUnitsResponse) GetOffset() int {
return s.Offset
}
// GetTotal returns the value of Total.
func (s *ListMemoryUnitsResponse) GetTotal() int {
return s.Total
}
// SetItems sets the value of Items.
func (s *ListMemoryUnitsResponse) SetItems(val []ListMemoryUnitsResponseItemsItem) {
s.Items = val
}
// SetLimit sets the value of Limit.
func (s *ListMemoryUnitsResponse) SetLimit(val int) {
s.Limit = val
}
// SetOffset sets the value of Offset.
func (s *ListMemoryUnitsResponse) SetOffset(val int) {
s.Offset = val
}
// SetTotal sets the value of Total.
func (s *ListMemoryUnitsResponse) SetTotal(val int) {
s.Total = val
}
func (*ListMemoryUnitsResponse) listMemoriesRes() {}
type ListMemoryUnitsResponseItemsItem map[string]jx.Raw
func (s *ListMemoryUnitsResponseItemsItem) init() ListMemoryUnitsResponseItemsItem {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// How to match tags.
type ListMentalModelsTagsMatch string
const (
ListMentalModelsTagsMatchAny ListMentalModelsTagsMatch = "any"
ListMentalModelsTagsMatchAll ListMentalModelsTagsMatch = "all"
ListMentalModelsTagsMatchExact ListMentalModelsTagsMatch = "exact"
)
// AllValues returns all ListMentalModelsTagsMatch values.
func (ListMentalModelsTagsMatch) AllValues() []ListMentalModelsTagsMatch {
return []ListMentalModelsTagsMatch{
ListMentalModelsTagsMatchAny,
ListMentalModelsTagsMatchAll,
ListMentalModelsTagsMatchExact,
}
}
// MarshalText implements encoding.TextMarshaler.
func (s ListMentalModelsTagsMatch) MarshalText() ([]byte, error) {
switch s {
case ListMentalModelsTagsMatchAny:
return []byte(s), nil
case ListMentalModelsTagsMatchAll:
return []byte(s), nil
case ListMentalModelsTagsMatchExact:
return []byte(s), nil
default:
return nil, errors.Errorf("invalid value: %q", s)
}
}
// UnmarshalText implements encoding.TextUnmarshaler.
func (s *ListMentalModelsTagsMatch) UnmarshalText(data []byte) error {
switch ListMentalModelsTagsMatch(data) {
case ListMentalModelsTagsMatchAny:
*s = ListMentalModelsTagsMatchAny
return nil
case ListMentalModelsTagsMatchAll:
*s = ListMentalModelsTagsMatchAll
return nil
case ListMentalModelsTagsMatchExact:
*s = ListMentalModelsTagsMatchExact
return nil
default:
return errors.Errorf("invalid value: %q", data)
}
}
// Response model for list tags endpoint.
// Ref: #/components/schemas/ListTagsResponse
type ListTagsResponse struct {
Items []TagItem `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
// GetItems returns the value of Items.
func (s *ListTagsResponse) GetItems() []TagItem {
return s.Items
}
// GetLimit returns the value of Limit.
func (s *ListTagsResponse) GetLimit() int {
return s.Limit
}
// GetOffset returns the value of Offset.
func (s *ListTagsResponse) GetOffset() int {
return s.Offset
}
// GetTotal returns the value of Total.
func (s *ListTagsResponse) GetTotal() int {
return s.Total
}
// SetItems sets the value of Items.
func (s *ListTagsResponse) SetItems(val []TagItem) {
s.Items = val
}
// SetLimit sets the value of Limit.
func (s *ListTagsResponse) SetLimit(val int) {
s.Limit = val
}
// SetOffset sets the value of Offset.
func (s *ListTagsResponse) SetOffset(val int) {
s.Offset = val
}
// SetTotal sets the value of Total.
func (s *ListTagsResponse) SetTotal(val int) {
s.Total = val
}
func (*ListTagsResponse) listTagsRes() {}
// Single memory item for retain.
// Ref: #/components/schemas/MemoryItem
type MemoryItem struct {
Content string `json:"content"`
Context OptString `json:"context"`
// Optional document ID for this memory item.
DocumentID OptString `json:"document_id"`
// Optional entities to combine with auto-extracted entities.
Entities []EntityInput `json:"entities"`
Metadata OptMemoryItemMetadata `json:"metadata"`
// Optional tags for visibility scoping. Memories with tags can be filtered during recall.
Tags []string `json:"tags"`
Timestamp OptDateTime `json:"timestamp"`
}
// GetContent returns the value of Content.
func (s *MemoryItem) GetContent() string {
return s.Content
}
// GetContext returns the value of Context.
func (s *MemoryItem) GetContext() OptString {
return s.Context
}
// GetDocumentID returns the value of DocumentID.
func (s *MemoryItem) GetDocumentID() OptString {
return s.DocumentID
}
// GetEntities returns the value of Entities.
func (s *MemoryItem) GetEntities() []EntityInput {
return s.Entities
}
// GetMetadata returns the value of Metadata.
func (s *MemoryItem) GetMetadata() OptMemoryItemMetadata {
return s.Metadata
}
// GetTags returns the value of Tags.
func (s *MemoryItem) GetTags() []string {
return s.Tags
}
// GetTimestamp returns the value of Timestamp.
func (s *MemoryItem) GetTimestamp() OptDateTime {
return s.Timestamp
}
// SetContent sets the value of Content.
func (s *MemoryItem) SetContent(val string) {
s.Content = val
}
// SetContext sets the value of Context.
func (s *MemoryItem) SetContext(val OptString) {
s.Context = val
}
// SetDocumentID sets the value of DocumentID.
func (s *MemoryItem) SetDocumentID(val OptString) {
s.DocumentID = val
}
// SetEntities sets the value of Entities.
func (s *MemoryItem) SetEntities(val []EntityInput) {
s.Entities = val
}
// SetMetadata sets the value of Metadata.
func (s *MemoryItem) SetMetadata(val OptMemoryItemMetadata) {
s.Metadata = val
}
// SetTags sets the value of Tags.
func (s *MemoryItem) SetTags(val []string) {
s.Tags = val
}
// SetTimestamp sets the value of Timestamp.
func (s *MemoryItem) SetTimestamp(val OptDateTime) {
s.Timestamp = val
}
type MemoryItemMetadata map[string]string
func (s *MemoryItemMetadata) init() MemoryItemMetadata {
m := *s
if m == nil {
m = map[string]string{}
*s = m
}
return m
}
// Response model for listing mental models.
// Ref: #/components/schemas/MentalModelListResponse
type MentalModelListResponse struct {
Items []MentalModelResponse `json:"items"`
}
// GetItems returns the value of Items.
func (s *MentalModelListResponse) GetItems() []MentalModelResponse {
return s.Items
}
// SetItems sets the value of Items.
func (s *MentalModelListResponse) SetItems(val []MentalModelResponse) {
s.Items = val
}
func (*MentalModelListResponse) listMentalModelsRes() {}
// Response model for a mental model (stored reflect response).
// Ref: #/components/schemas/MentalModelResponse
type MentalModelResponse struct {
BankID string `json:"bank_id"`
// The mental model content as well-formatted markdown (auto-generated from reflect endpoint).
Content string `json:"content"`
CreatedAt OptString `json:"created_at"`
ID string `json:"id"`
LastRefreshedAt OptString `json:"last_refreshed_at"`
MaxTokens OptInt `json:"max_tokens"`
Name string `json:"name"`
// Full reflect API response payload including based_on facts and observations.
ReflectResponse OptMentalModelResponseReflectResponse `json:"reflect_response"`
SourceQuery string `json:"source_query"`
Tags []string `json:"tags"`
Trigger OptMentalModelTrigger `json:"trigger"`
}
// GetBankID returns the value of BankID.
func (s *MentalModelResponse) GetBankID() string {
return s.BankID
}
// GetContent returns the value of Content.
func (s *MentalModelResponse) GetContent() string {
return s.Content
}
// GetCreatedAt returns the value of CreatedAt.
func (s *MentalModelResponse) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetID returns the value of ID.
func (s *MentalModelResponse) GetID() string {
return s.ID
}
// GetLastRefreshedAt returns the value of LastRefreshedAt.
func (s *MentalModelResponse) GetLastRefreshedAt() OptString {
return s.LastRefreshedAt
}
// GetMaxTokens returns the value of MaxTokens.
func (s *MentalModelResponse) GetMaxTokens() OptInt {
return s.MaxTokens
}
// GetName returns the value of Name.
func (s *MentalModelResponse) GetName() string {
return s.Name
}
// GetReflectResponse returns the value of ReflectResponse.
func (s *MentalModelResponse) GetReflectResponse() OptMentalModelResponseReflectResponse {
return s.ReflectResponse
}
// GetSourceQuery returns the value of SourceQuery.
func (s *MentalModelResponse) GetSourceQuery() string {
return s.SourceQuery
}
// GetTags returns the value of Tags.
func (s *MentalModelResponse) GetTags() []string {
return s.Tags
}
// GetTrigger returns the value of Trigger.
func (s *MentalModelResponse) GetTrigger() OptMentalModelTrigger {
return s.Trigger
}
// SetBankID sets the value of BankID.
func (s *MentalModelResponse) SetBankID(val string) {
s.BankID = val
}
// SetContent sets the value of Content.
func (s *MentalModelResponse) SetContent(val string) {
s.Content = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *MentalModelResponse) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetID sets the value of ID.
func (s *MentalModelResponse) SetID(val string) {
s.ID = val
}
// SetLastRefreshedAt sets the value of LastRefreshedAt.
func (s *MentalModelResponse) SetLastRefreshedAt(val OptString) {
s.LastRefreshedAt = val
}
// SetMaxTokens sets the value of MaxTokens.
func (s *MentalModelResponse) SetMaxTokens(val OptInt) {
s.MaxTokens = val
}
// SetName sets the value of Name.
func (s *MentalModelResponse) SetName(val string) {
s.Name = val
}
// SetReflectResponse sets the value of ReflectResponse.
func (s *MentalModelResponse) SetReflectResponse(val OptMentalModelResponseReflectResponse) {
s.ReflectResponse = val
}
// SetSourceQuery sets the value of SourceQuery.
func (s *MentalModelResponse) SetSourceQuery(val string) {
s.SourceQuery = val
}
// SetTags sets the value of Tags.
func (s *MentalModelResponse) SetTags(val []string) {
s.Tags = val
}
// SetTrigger sets the value of Trigger.
func (s *MentalModelResponse) SetTrigger(val OptMentalModelTrigger) {
s.Trigger = val
}
func (*MentalModelResponse) getMentalModelRes() {}
func (*MentalModelResponse) updateMentalModelRes() {}
// Full reflect API response payload including based_on facts and observations.
type MentalModelResponseReflectResponse map[string]jx.Raw
func (s *MentalModelResponseReflectResponse) init() MentalModelResponseReflectResponse {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Trigger settings for a mental model.
// Ref: #/components/schemas/MentalModelTrigger
type MentalModelTrigger struct {
// If true, refresh this mental model after observations consolidation (real-time mode).
RefreshAfterConsolidation OptBool `json:"refresh_after_consolidation"`
}
// GetRefreshAfterConsolidation returns the value of RefreshAfterConsolidation.
func (s *MentalModelTrigger) GetRefreshAfterConsolidation() OptBool {
return s.RefreshAfterConsolidation
}
// SetRefreshAfterConsolidation sets the value of RefreshAfterConsolidation.
func (s *MentalModelTrigger) SetRefreshAfterConsolidation(val OptBool) {
s.RefreshAfterConsolidation = val
}
// Response model for a single async operation.
// Ref: #/components/schemas/OperationResponse
type OperationResponse struct {
CreatedAt string `json:"created_at"`
DocumentID OptString `json:"document_id"`
ErrorMessage string `json:"error_message"`
ID string `json:"id"`
ItemsCount int `json:"items_count"`
Status string `json:"status"`
TaskType string `json:"task_type"`
}
// GetCreatedAt returns the value of CreatedAt.
func (s *OperationResponse) GetCreatedAt() string {
return s.CreatedAt
}
// GetDocumentID returns the value of DocumentID.
func (s *OperationResponse) GetDocumentID() OptString {
return s.DocumentID
}
// GetErrorMessage returns the value of ErrorMessage.
func (s *OperationResponse) GetErrorMessage() string {
return s.ErrorMessage
}
// GetID returns the value of ID.
func (s *OperationResponse) GetID() string {
return s.ID
}
// GetItemsCount returns the value of ItemsCount.
func (s *OperationResponse) GetItemsCount() int {
return s.ItemsCount
}
// GetStatus returns the value of Status.
func (s *OperationResponse) GetStatus() string {
return s.Status
}
// GetTaskType returns the value of TaskType.
func (s *OperationResponse) GetTaskType() string {
return s.TaskType
}
// SetCreatedAt sets the value of CreatedAt.
func (s *OperationResponse) SetCreatedAt(val string) {
s.CreatedAt = val
}
// SetDocumentID sets the value of DocumentID.
func (s *OperationResponse) SetDocumentID(val OptString) {
s.DocumentID = val
}
// SetErrorMessage sets the value of ErrorMessage.
func (s *OperationResponse) SetErrorMessage(val string) {
s.ErrorMessage = val
}
// SetID sets the value of ID.
func (s *OperationResponse) SetID(val string) {
s.ID = val
}
// SetItemsCount sets the value of ItemsCount.
func (s *OperationResponse) SetItemsCount(val int) {
s.ItemsCount = val
}
// SetStatus sets the value of Status.
func (s *OperationResponse) SetStatus(val string) {
s.Status = val
}
// SetTaskType sets the value of TaskType.
func (s *OperationResponse) SetTaskType(val string) {
s.TaskType = val
}
// Response model for getting a single operation status.
// Ref: #/components/schemas/OperationStatusResponse
type OperationStatusResponse struct {
CompletedAt OptString `json:"completed_at"`
CreatedAt OptString `json:"created_at"`
ErrorMessage OptString `json:"error_message"`
OperationID string `json:"operation_id"`
OperationType OptString `json:"operation_type"`
Status OperationStatusResponseStatus `json:"status"`
UpdatedAt OptString `json:"updated_at"`
}
// GetCompletedAt returns the value of CompletedAt.
func (s *OperationStatusResponse) GetCompletedAt() OptString {
return s.CompletedAt
}
// GetCreatedAt returns the value of CreatedAt.
func (s *OperationStatusResponse) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetErrorMessage returns the value of ErrorMessage.
func (s *OperationStatusResponse) GetErrorMessage() OptString {
return s.ErrorMessage
}
// GetOperationID returns the value of OperationID.
func (s *OperationStatusResponse) GetOperationID() string {
return s.OperationID
}
// GetOperationType returns the value of OperationType.
func (s *OperationStatusResponse) GetOperationType() OptString {
return s.OperationType
}
// GetStatus returns the value of Status.
func (s *OperationStatusResponse) GetStatus() OperationStatusResponseStatus {
return s.Status
}
// GetUpdatedAt returns the value of UpdatedAt.
func (s *OperationStatusResponse) GetUpdatedAt() OptString {
return s.UpdatedAt
}
// SetCompletedAt sets the value of CompletedAt.
func (s *OperationStatusResponse) SetCompletedAt(val OptString) {
s.CompletedAt = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *OperationStatusResponse) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetErrorMessage sets the value of ErrorMessage.
func (s *OperationStatusResponse) SetErrorMessage(val OptString) {
s.ErrorMessage = val
}
// SetOperationID sets the value of OperationID.
func (s *OperationStatusResponse) SetOperationID(val string) {
s.OperationID = val
}
// SetOperationType sets the value of OperationType.
func (s *OperationStatusResponse) SetOperationType(val OptString) {
s.OperationType = val
}
// SetStatus sets the value of Status.
func (s *OperationStatusResponse) SetStatus(val OperationStatusResponseStatus) {
s.Status = val
}
// SetUpdatedAt sets the value of UpdatedAt.
func (s *OperationStatusResponse) SetUpdatedAt(val OptString) {
s.UpdatedAt = val
}
func (*OperationStatusResponse) getOperationStatusRes() {}
type OperationStatusResponseStatus string
const (
OperationStatusResponseStatusPending OperationStatusResponseStatus = "pending"
OperationStatusResponseStatusCompleted OperationStatusResponseStatus = "completed"
OperationStatusResponseStatusFailed OperationStatusResponseStatus = "failed"
OperationStatusResponseStatusNotFound OperationStatusResponseStatus = "not_found"
)
// AllValues returns all OperationStatusResponseStatus values.
func (OperationStatusResponseStatus) AllValues() []OperationStatusResponseStatus {
return []OperationStatusResponseStatus{
OperationStatusResponseStatusPending,
OperationStatusResponseStatusCompleted,
OperationStatusResponseStatusFailed,
OperationStatusResponseStatusNotFound,
}
}
// MarshalText implements encoding.TextMarshaler.
func (s OperationStatusResponseStatus) MarshalText() ([]byte, error) {
switch s {
case OperationStatusResponseStatusPending:
return []byte(s), nil
case OperationStatusResponseStatusCompleted:
return []byte(s), nil
case OperationStatusResponseStatusFailed:
return []byte(s), nil
case OperationStatusResponseStatusNotFound:
return []byte(s), nil
default:
return nil, errors.Errorf("invalid value: %q", s)
}
}
// UnmarshalText implements encoding.TextUnmarshaler.
func (s *OperationStatusResponseStatus) UnmarshalText(data []byte) error {
switch OperationStatusResponseStatus(data) {
case OperationStatusResponseStatusPending:
*s = OperationStatusResponseStatusPending
return nil
case OperationStatusResponseStatusCompleted:
*s = OperationStatusResponseStatusCompleted
return nil
case OperationStatusResponseStatusFailed:
*s = OperationStatusResponseStatusFailed
return nil
case OperationStatusResponseStatusNotFound:
*s = OperationStatusResponseStatusNotFound
return nil
default:
return errors.Errorf("invalid value: %q", data)
}
}
// Response model for list operations endpoint.
// Ref: #/components/schemas/OperationsListResponse
type OperationsListResponse struct {
BankID string `json:"bank_id"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Operations []OperationResponse `json:"operations"`
Total int `json:"total"`
}
// GetBankID returns the value of BankID.
func (s *OperationsListResponse) GetBankID() string {
return s.BankID
}
// GetLimit returns the value of Limit.
func (s *OperationsListResponse) GetLimit() int {
return s.Limit
}
// GetOffset returns the value of Offset.
func (s *OperationsListResponse) GetOffset() int {
return s.Offset
}
// GetOperations returns the value of Operations.
func (s *OperationsListResponse) GetOperations() []OperationResponse {
return s.Operations
}
// GetTotal returns the value of Total.
func (s *OperationsListResponse) GetTotal() int {
return s.Total
}
// SetBankID sets the value of BankID.
func (s *OperationsListResponse) SetBankID(val string) {
s.BankID = val
}
// SetLimit sets the value of Limit.
func (s *OperationsListResponse) SetLimit(val int) {
s.Limit = val
}
// SetOffset sets the value of Offset.
func (s *OperationsListResponse) SetOffset(val int) {
s.Offset = val
}
// SetOperations sets the value of Operations.
func (s *OperationsListResponse) SetOperations(val []OperationResponse) {
s.Operations = val
}
// SetTotal sets the value of Total.
func (s *OperationsListResponse) SetTotal(val int) {
s.Total = val
}
func (*OperationsListResponse) listOperationsRes() {}
// NewOptBool returns new OptBool with value set to v.
func NewOptBool(v bool) OptBool {
return OptBool{
Value: v,
Set: true,
}
}
// OptBool is optional bool.
type OptBool struct {
Value bool
Set bool
}
// IsSet returns true if OptBool was set.
func (o OptBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBool) Reset() {
var v bool
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBool) SetTo(v bool) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBool) Get() (v bool, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptBudget returns new OptBudget with value set to v.
func NewOptBudget(v Budget) OptBudget {
return OptBudget{
Value: v,
Set: true,
}
}
// OptBudget is optional Budget.
type OptBudget struct {
Value Budget
Set bool
}
// IsSet returns true if OptBudget was set.
func (o OptBudget) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBudget) Reset() {
var v Budget
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBudget) SetTo(v Budget) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBudget) Get() (v Budget, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptBudget) Or(d Budget) Budget {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptChunkIncludeOptions returns new OptChunkIncludeOptions with value set to v.
func NewOptChunkIncludeOptions(v ChunkIncludeOptions) OptChunkIncludeOptions {
return OptChunkIncludeOptions{
Value: v,
Set: true,
}
}
// OptChunkIncludeOptions is optional ChunkIncludeOptions.
type OptChunkIncludeOptions struct {
Value ChunkIncludeOptions
Set bool
}
// IsSet returns true if OptChunkIncludeOptions was set.
func (o OptChunkIncludeOptions) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptChunkIncludeOptions) Reset() {
var v ChunkIncludeOptions
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptChunkIncludeOptions) SetTo(v ChunkIncludeOptions) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptChunkIncludeOptions) Get() (v ChunkIncludeOptions, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptChunkIncludeOptions) Or(d ChunkIncludeOptions) ChunkIncludeOptions {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptDateTime returns new OptDateTime with value set to v.
func NewOptDateTime(v time.Time) OptDateTime {
return OptDateTime{
Value: v,
Set: true,
}
}
// OptDateTime is optional time.Time.
type OptDateTime struct {
Value time.Time
Set bool
}
// IsSet returns true if OptDateTime was set.
func (o OptDateTime) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptDateTime) Reset() {
var v time.Time
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptDateTime) SetTo(v time.Time) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptDateTime) Get() (v time.Time, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptDateTime) Or(d time.Time) time.Time {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptDispositionTraits returns new OptDispositionTraits with value set to v.
func NewOptDispositionTraits(v DispositionTraits) OptDispositionTraits {
return OptDispositionTraits{
Value: v,
Set: true,
}
}
// OptDispositionTraits is optional DispositionTraits.
type OptDispositionTraits struct {
Value DispositionTraits
Set bool
}
// IsSet returns true if OptDispositionTraits was set.
func (o OptDispositionTraits) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptDispositionTraits) Reset() {
var v DispositionTraits
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptDispositionTraits) SetTo(v DispositionTraits) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptDispositionTraits) Get() (v DispositionTraits, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptDispositionTraits) Or(d DispositionTraits) DispositionTraits {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptEntityDetailResponseMetadata returns new OptEntityDetailResponseMetadata with value set to v.
func NewOptEntityDetailResponseMetadata(v EntityDetailResponseMetadata) OptEntityDetailResponseMetadata {
return OptEntityDetailResponseMetadata{
Value: v,
Set: true,
}
}
// OptEntityDetailResponseMetadata is optional EntityDetailResponseMetadata.
type OptEntityDetailResponseMetadata struct {
Value EntityDetailResponseMetadata
Set bool
}
// IsSet returns true if OptEntityDetailResponseMetadata was set.
func (o OptEntityDetailResponseMetadata) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptEntityDetailResponseMetadata) Reset() {
var v EntityDetailResponseMetadata
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptEntityDetailResponseMetadata) SetTo(v EntityDetailResponseMetadata) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptEntityDetailResponseMetadata) Get() (v EntityDetailResponseMetadata, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptEntityDetailResponseMetadata) Or(d EntityDetailResponseMetadata) EntityDetailResponseMetadata {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptEntityIncludeOptions returns new OptEntityIncludeOptions with value set to v.
func NewOptEntityIncludeOptions(v EntityIncludeOptions) OptEntityIncludeOptions {
return OptEntityIncludeOptions{
Value: v,
Set: true,
}
}
// OptEntityIncludeOptions is optional EntityIncludeOptions.
type OptEntityIncludeOptions struct {
Value EntityIncludeOptions
Set bool
}
// IsSet returns true if OptEntityIncludeOptions was set.
func (o OptEntityIncludeOptions) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptEntityIncludeOptions) Reset() {
var v EntityIncludeOptions
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptEntityIncludeOptions) SetTo(v EntityIncludeOptions) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptEntityIncludeOptions) Get() (v EntityIncludeOptions, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptEntityIncludeOptions) Or(d EntityIncludeOptions) EntityIncludeOptions {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptEntityListItemMetadata returns new OptEntityListItemMetadata with value set to v.
func NewOptEntityListItemMetadata(v EntityListItemMetadata) OptEntityListItemMetadata {
return OptEntityListItemMetadata{
Value: v,
Set: true,
}
}
// OptEntityListItemMetadata is optional EntityListItemMetadata.
type OptEntityListItemMetadata struct {
Value EntityListItemMetadata
Set bool
}
// IsSet returns true if OptEntityListItemMetadata was set.
func (o OptEntityListItemMetadata) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptEntityListItemMetadata) Reset() {
var v EntityListItemMetadata
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptEntityListItemMetadata) SetTo(v EntityListItemMetadata) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptEntityListItemMetadata) Get() (v EntityListItemMetadata, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptEntityListItemMetadata) Or(d EntityListItemMetadata) EntityListItemMetadata {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptIncludeOptions returns new OptIncludeOptions with value set to v.
func NewOptIncludeOptions(v IncludeOptions) OptIncludeOptions {
return OptIncludeOptions{
Value: v,
Set: true,
}
}
// OptIncludeOptions is optional IncludeOptions.
type OptIncludeOptions struct {
Value IncludeOptions
Set bool
}
// IsSet returns true if OptIncludeOptions was set.
func (o OptIncludeOptions) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptIncludeOptions) Reset() {
var v IncludeOptions
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptIncludeOptions) SetTo(v IncludeOptions) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptIncludeOptions) Get() (v IncludeOptions, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptIncludeOptions) Or(d IncludeOptions) IncludeOptions {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptInt returns new OptInt with value set to v.
func NewOptInt(v int) OptInt {
return OptInt{
Value: v,
Set: true,
}
}
// OptInt is optional int.
type OptInt struct {
Value int
Set bool
}
// IsSet returns true if OptInt was set.
func (o OptInt) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt) Reset() {
var v int
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt) SetTo(v int) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt) Get() (v int, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt) Or(d int) int {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptListDirectivesTagsMatch returns new OptListDirectivesTagsMatch with value set to v.
func NewOptListDirectivesTagsMatch(v ListDirectivesTagsMatch) OptListDirectivesTagsMatch {
return OptListDirectivesTagsMatch{
Value: v,
Set: true,
}
}
// OptListDirectivesTagsMatch is optional ListDirectivesTagsMatch.
type OptListDirectivesTagsMatch struct {
Value ListDirectivesTagsMatch
Set bool
}
// IsSet returns true if OptListDirectivesTagsMatch was set.
func (o OptListDirectivesTagsMatch) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptListDirectivesTagsMatch) Reset() {
var v ListDirectivesTagsMatch
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptListDirectivesTagsMatch) SetTo(v ListDirectivesTagsMatch) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptListDirectivesTagsMatch) Get() (v ListDirectivesTagsMatch, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptListDirectivesTagsMatch) Or(d ListDirectivesTagsMatch) ListDirectivesTagsMatch {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptListMentalModelsTagsMatch returns new OptListMentalModelsTagsMatch with value set to v.
func NewOptListMentalModelsTagsMatch(v ListMentalModelsTagsMatch) OptListMentalModelsTagsMatch {
return OptListMentalModelsTagsMatch{
Value: v,
Set: true,
}
}
// OptListMentalModelsTagsMatch is optional ListMentalModelsTagsMatch.
type OptListMentalModelsTagsMatch struct {
Value ListMentalModelsTagsMatch
Set bool
}
// IsSet returns true if OptListMentalModelsTagsMatch was set.
func (o OptListMentalModelsTagsMatch) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptListMentalModelsTagsMatch) Reset() {
var v ListMentalModelsTagsMatch
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptListMentalModelsTagsMatch) SetTo(v ListMentalModelsTagsMatch) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptListMentalModelsTagsMatch) Get() (v ListMentalModelsTagsMatch, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptListMentalModelsTagsMatch) Or(d ListMentalModelsTagsMatch) ListMentalModelsTagsMatch {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptMemoryItemMetadata returns new OptMemoryItemMetadata with value set to v.
func NewOptMemoryItemMetadata(v MemoryItemMetadata) OptMemoryItemMetadata {
return OptMemoryItemMetadata{
Value: v,
Set: true,
}
}
// OptMemoryItemMetadata is optional MemoryItemMetadata.
type OptMemoryItemMetadata struct {
Value MemoryItemMetadata
Set bool
}
// IsSet returns true if OptMemoryItemMetadata was set.
func (o OptMemoryItemMetadata) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptMemoryItemMetadata) Reset() {
var v MemoryItemMetadata
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptMemoryItemMetadata) SetTo(v MemoryItemMetadata) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptMemoryItemMetadata) Get() (v MemoryItemMetadata, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptMemoryItemMetadata) Or(d MemoryItemMetadata) MemoryItemMetadata {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptMentalModelResponseReflectResponse returns new OptMentalModelResponseReflectResponse with value set to v.
func NewOptMentalModelResponseReflectResponse(v MentalModelResponseReflectResponse) OptMentalModelResponseReflectResponse {
return OptMentalModelResponseReflectResponse{
Value: v,
Set: true,
}
}
// OptMentalModelResponseReflectResponse is optional MentalModelResponseReflectResponse.
type OptMentalModelResponseReflectResponse struct {
Value MentalModelResponseReflectResponse
Set bool
}
// IsSet returns true if OptMentalModelResponseReflectResponse was set.
func (o OptMentalModelResponseReflectResponse) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptMentalModelResponseReflectResponse) Reset() {
var v MentalModelResponseReflectResponse
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptMentalModelResponseReflectResponse) SetTo(v MentalModelResponseReflectResponse) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptMentalModelResponseReflectResponse) Get() (v MentalModelResponseReflectResponse, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptMentalModelResponseReflectResponse) Or(d MentalModelResponseReflectResponse) MentalModelResponseReflectResponse {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptMentalModelTrigger returns new OptMentalModelTrigger with value set to v.
func NewOptMentalModelTrigger(v MentalModelTrigger) OptMentalModelTrigger {
return OptMentalModelTrigger{
Value: v,
Set: true,
}
}
// OptMentalModelTrigger is optional MentalModelTrigger.
type OptMentalModelTrigger struct {
Value MentalModelTrigger
Set bool
}
// IsSet returns true if OptMentalModelTrigger was set.
func (o OptMentalModelTrigger) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptMentalModelTrigger) Reset() {
var v MentalModelTrigger
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptMentalModelTrigger) SetTo(v MentalModelTrigger) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptMentalModelTrigger) Get() (v MentalModelTrigger, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptMentalModelTrigger) Or(d MentalModelTrigger) MentalModelTrigger {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptRecallRequestTagsMatch returns new OptRecallRequestTagsMatch with value set to v.
func NewOptRecallRequestTagsMatch(v RecallRequestTagsMatch) OptRecallRequestTagsMatch {
return OptRecallRequestTagsMatch{
Value: v,
Set: true,
}
}
// OptRecallRequestTagsMatch is optional RecallRequestTagsMatch.
type OptRecallRequestTagsMatch struct {
Value RecallRequestTagsMatch
Set bool
}
// IsSet returns true if OptRecallRequestTagsMatch was set.
func (o OptRecallRequestTagsMatch) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptRecallRequestTagsMatch) Reset() {
var v RecallRequestTagsMatch
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptRecallRequestTagsMatch) SetTo(v RecallRequestTagsMatch) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptRecallRequestTagsMatch) Get() (v RecallRequestTagsMatch, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptRecallRequestTagsMatch) Or(d RecallRequestTagsMatch) RecallRequestTagsMatch {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptRecallResponseChunks returns new OptRecallResponseChunks with value set to v.
func NewOptRecallResponseChunks(v RecallResponseChunks) OptRecallResponseChunks {
return OptRecallResponseChunks{
Value: v,
Set: true,
}
}
// OptRecallResponseChunks is optional RecallResponseChunks.
type OptRecallResponseChunks struct {
Value RecallResponseChunks
Set bool
}
// IsSet returns true if OptRecallResponseChunks was set.
func (o OptRecallResponseChunks) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptRecallResponseChunks) Reset() {
var v RecallResponseChunks
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptRecallResponseChunks) SetTo(v RecallResponseChunks) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptRecallResponseChunks) Get() (v RecallResponseChunks, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptRecallResponseChunks) Or(d RecallResponseChunks) RecallResponseChunks {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptRecallResponseEntities returns new OptRecallResponseEntities with value set to v.
func NewOptRecallResponseEntities(v RecallResponseEntities) OptRecallResponseEntities {
return OptRecallResponseEntities{
Value: v,
Set: true,
}
}
// OptRecallResponseEntities is optional RecallResponseEntities.
type OptRecallResponseEntities struct {
Value RecallResponseEntities
Set bool
}
// IsSet returns true if OptRecallResponseEntities was set.
func (o OptRecallResponseEntities) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptRecallResponseEntities) Reset() {
var v RecallResponseEntities
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptRecallResponseEntities) SetTo(v RecallResponseEntities) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptRecallResponseEntities) Get() (v RecallResponseEntities, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptRecallResponseEntities) Or(d RecallResponseEntities) RecallResponseEntities {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptRecallResponseTrace returns new OptRecallResponseTrace with value set to v.
func NewOptRecallResponseTrace(v RecallResponseTrace) OptRecallResponseTrace {
return OptRecallResponseTrace{
Value: v,
Set: true,
}
}
// OptRecallResponseTrace is optional RecallResponseTrace.
type OptRecallResponseTrace struct {
Value RecallResponseTrace
Set bool
}
// IsSet returns true if OptRecallResponseTrace was set.
func (o OptRecallResponseTrace) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptRecallResponseTrace) Reset() {
var v RecallResponseTrace
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptRecallResponseTrace) SetTo(v RecallResponseTrace) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptRecallResponseTrace) Get() (v RecallResponseTrace, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptRecallResponseTrace) Or(d RecallResponseTrace) RecallResponseTrace {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptRecallResultMetadata returns new OptRecallResultMetadata with value set to v.
func NewOptRecallResultMetadata(v RecallResultMetadata) OptRecallResultMetadata {
return OptRecallResultMetadata{
Value: v,
Set: true,
}
}
// OptRecallResultMetadata is optional RecallResultMetadata.
type OptRecallResultMetadata struct {
Value RecallResultMetadata
Set bool
}
// IsSet returns true if OptRecallResultMetadata was set.
func (o OptRecallResultMetadata) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptRecallResultMetadata) Reset() {
var v RecallResultMetadata
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptRecallResultMetadata) SetTo(v RecallResultMetadata) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptRecallResultMetadata) Get() (v RecallResultMetadata, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptRecallResultMetadata) Or(d RecallResultMetadata) RecallResultMetadata {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptReflectBasedOn returns new OptReflectBasedOn with value set to v.
func NewOptReflectBasedOn(v ReflectBasedOn) OptReflectBasedOn {
return OptReflectBasedOn{
Value: v,
Set: true,
}
}
// OptReflectBasedOn is optional ReflectBasedOn.
type OptReflectBasedOn struct {
Value ReflectBasedOn
Set bool
}
// IsSet returns true if OptReflectBasedOn was set.
func (o OptReflectBasedOn) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptReflectBasedOn) Reset() {
var v ReflectBasedOn
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptReflectBasedOn) SetTo(v ReflectBasedOn) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptReflectBasedOn) Get() (v ReflectBasedOn, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptReflectBasedOn) Or(d ReflectBasedOn) ReflectBasedOn {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptReflectIncludeOptions returns new OptReflectIncludeOptions with value set to v.
func NewOptReflectIncludeOptions(v ReflectIncludeOptions) OptReflectIncludeOptions {
return OptReflectIncludeOptions{
Value: v,
Set: true,
}
}
// OptReflectIncludeOptions is optional ReflectIncludeOptions.
type OptReflectIncludeOptions struct {
Value ReflectIncludeOptions
Set bool
}
// IsSet returns true if OptReflectIncludeOptions was set.
func (o OptReflectIncludeOptions) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptReflectIncludeOptions) Reset() {
var v ReflectIncludeOptions
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptReflectIncludeOptions) SetTo(v ReflectIncludeOptions) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptReflectIncludeOptions) Get() (v ReflectIncludeOptions, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptReflectIncludeOptions) Or(d ReflectIncludeOptions) ReflectIncludeOptions {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptReflectRequestResponseSchema returns new OptReflectRequestResponseSchema with value set to v.
func NewOptReflectRequestResponseSchema(v ReflectRequestResponseSchema) OptReflectRequestResponseSchema {
return OptReflectRequestResponseSchema{
Value: v,
Set: true,
}
}
// OptReflectRequestResponseSchema is optional ReflectRequestResponseSchema.
type OptReflectRequestResponseSchema struct {
Value ReflectRequestResponseSchema
Set bool
}
// IsSet returns true if OptReflectRequestResponseSchema was set.
func (o OptReflectRequestResponseSchema) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptReflectRequestResponseSchema) Reset() {
var v ReflectRequestResponseSchema
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptReflectRequestResponseSchema) SetTo(v ReflectRequestResponseSchema) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptReflectRequestResponseSchema) Get() (v ReflectRequestResponseSchema, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptReflectRequestResponseSchema) Or(d ReflectRequestResponseSchema) ReflectRequestResponseSchema {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptReflectRequestTagsMatch returns new OptReflectRequestTagsMatch with value set to v.
func NewOptReflectRequestTagsMatch(v ReflectRequestTagsMatch) OptReflectRequestTagsMatch {
return OptReflectRequestTagsMatch{
Value: v,
Set: true,
}
}
// OptReflectRequestTagsMatch is optional ReflectRequestTagsMatch.
type OptReflectRequestTagsMatch struct {
Value ReflectRequestTagsMatch
Set bool
}
// IsSet returns true if OptReflectRequestTagsMatch was set.
func (o OptReflectRequestTagsMatch) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptReflectRequestTagsMatch) Reset() {
var v ReflectRequestTagsMatch
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptReflectRequestTagsMatch) SetTo(v ReflectRequestTagsMatch) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptReflectRequestTagsMatch) Get() (v ReflectRequestTagsMatch, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptReflectRequestTagsMatch) Or(d ReflectRequestTagsMatch) ReflectRequestTagsMatch {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptReflectResponseStructuredOutput returns new OptReflectResponseStructuredOutput with value set to v.
func NewOptReflectResponseStructuredOutput(v ReflectResponseStructuredOutput) OptReflectResponseStructuredOutput {
return OptReflectResponseStructuredOutput{
Value: v,
Set: true,
}
}
// OptReflectResponseStructuredOutput is optional ReflectResponseStructuredOutput.
type OptReflectResponseStructuredOutput struct {
Value ReflectResponseStructuredOutput
Set bool
}
// IsSet returns true if OptReflectResponseStructuredOutput was set.
func (o OptReflectResponseStructuredOutput) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptReflectResponseStructuredOutput) Reset() {
var v ReflectResponseStructuredOutput
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptReflectResponseStructuredOutput) SetTo(v ReflectResponseStructuredOutput) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptReflectResponseStructuredOutput) Get() (v ReflectResponseStructuredOutput, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptReflectResponseStructuredOutput) Or(d ReflectResponseStructuredOutput) ReflectResponseStructuredOutput {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptReflectToolCallOutput returns new OptReflectToolCallOutput with value set to v.
func NewOptReflectToolCallOutput(v ReflectToolCallOutput) OptReflectToolCallOutput {
return OptReflectToolCallOutput{
Value: v,
Set: true,
}
}
// OptReflectToolCallOutput is optional ReflectToolCallOutput.
type OptReflectToolCallOutput struct {
Value ReflectToolCallOutput
Set bool
}
// IsSet returns true if OptReflectToolCallOutput was set.
func (o OptReflectToolCallOutput) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptReflectToolCallOutput) Reset() {
var v ReflectToolCallOutput
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptReflectToolCallOutput) SetTo(v ReflectToolCallOutput) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptReflectToolCallOutput) Get() (v ReflectToolCallOutput, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptReflectToolCallOutput) Or(d ReflectToolCallOutput) ReflectToolCallOutput {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptReflectTrace returns new OptReflectTrace with value set to v.
func NewOptReflectTrace(v ReflectTrace) OptReflectTrace {
return OptReflectTrace{
Value: v,
Set: true,
}
}
// OptReflectTrace is optional ReflectTrace.
type OptReflectTrace struct {
Value ReflectTrace
Set bool
}
// IsSet returns true if OptReflectTrace was set.
func (o OptReflectTrace) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptReflectTrace) Reset() {
var v ReflectTrace
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptReflectTrace) SetTo(v ReflectTrace) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptReflectTrace) Get() (v ReflectTrace, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptReflectTrace) Or(d ReflectTrace) ReflectTrace {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptString returns new OptString with value set to v.
func NewOptString(v string) OptString {
return OptString{
Value: v,
Set: true,
}
}
// OptString is optional string.
type OptString struct {
Value string
Set bool
}
// IsSet returns true if OptString was set.
func (o OptString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptString) Reset() {
var v string
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptString) SetTo(v string) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptString) Get() (v string, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptTokenUsage returns new OptTokenUsage with value set to v.
func NewOptTokenUsage(v TokenUsage) OptTokenUsage {
return OptTokenUsage{
Value: v,
Set: true,
}
}
// OptTokenUsage is optional TokenUsage.
type OptTokenUsage struct {
Value TokenUsage
Set bool
}
// IsSet returns true if OptTokenUsage was set.
func (o OptTokenUsage) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptTokenUsage) Reset() {
var v TokenUsage
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptTokenUsage) SetTo(v TokenUsage) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptTokenUsage) Get() (v TokenUsage, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptTokenUsage) Or(d TokenUsage) TokenUsage {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptToolCallsIncludeOptions returns new OptToolCallsIncludeOptions with value set to v.
func NewOptToolCallsIncludeOptions(v ToolCallsIncludeOptions) OptToolCallsIncludeOptions {
return OptToolCallsIncludeOptions{
Value: v,
Set: true,
}
}
// OptToolCallsIncludeOptions is optional ToolCallsIncludeOptions.
type OptToolCallsIncludeOptions struct {
Value ToolCallsIncludeOptions
Set bool
}
// IsSet returns true if OptToolCallsIncludeOptions was set.
func (o OptToolCallsIncludeOptions) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptToolCallsIncludeOptions) Reset() {
var v ToolCallsIncludeOptions
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptToolCallsIncludeOptions) SetTo(v ToolCallsIncludeOptions) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptToolCallsIncludeOptions) Get() (v ToolCallsIncludeOptions, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptToolCallsIncludeOptions) Or(d ToolCallsIncludeOptions) ToolCallsIncludeOptions {
if v, ok := o.Get(); ok {
return v
}
return d
}
// Request model for recall endpoint.
// Ref: #/components/schemas/RecallRequest
type RecallRequest struct {
Budget OptBudget `json:"budget"`
// Options for including additional data (entities are included by default).
Include OptIncludeOptions `json:"include"`
MaxTokens OptInt `json:"max_tokens"`
Query string `json:"query"`
// ISO format date string (e.g., '2023-05-30T23:40:00').
QueryTimestamp OptString `json:"query_timestamp"`
// Filter memories by tags. If not specified, all memories are returned.
Tags []string `json:"tags"`
// How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR,
// excludes untagged), 'all_strict' (AND, excludes untagged).
TagsMatch OptRecallRequestTagsMatch `json:"tags_match"`
Trace OptBool `json:"trace"`
// List of fact types to recall: 'world', 'experience', 'observation'. Defaults to world and
// experience if not specified.
Types []string `json:"types"`
}
// GetBudget returns the value of Budget.
func (s *RecallRequest) GetBudget() OptBudget {
return s.Budget
}
// GetInclude returns the value of Include.
func (s *RecallRequest) GetInclude() OptIncludeOptions {
return s.Include
}
// GetMaxTokens returns the value of MaxTokens.
func (s *RecallRequest) GetMaxTokens() OptInt {
return s.MaxTokens
}
// GetQuery returns the value of Query.
func (s *RecallRequest) GetQuery() string {
return s.Query
}
// GetQueryTimestamp returns the value of QueryTimestamp.
func (s *RecallRequest) GetQueryTimestamp() OptString {
return s.QueryTimestamp
}
// GetTags returns the value of Tags.
func (s *RecallRequest) GetTags() []string {
return s.Tags
}
// GetTagsMatch returns the value of TagsMatch.
func (s *RecallRequest) GetTagsMatch() OptRecallRequestTagsMatch {
return s.TagsMatch
}
// GetTrace returns the value of Trace.
func (s *RecallRequest) GetTrace() OptBool {
return s.Trace
}
// GetTypes returns the value of Types.
func (s *RecallRequest) GetTypes() []string {
return s.Types
}
// SetBudget sets the value of Budget.
func (s *RecallRequest) SetBudget(val OptBudget) {
s.Budget = val
}
// SetInclude sets the value of Include.
func (s *RecallRequest) SetInclude(val OptIncludeOptions) {
s.Include = val
}
// SetMaxTokens sets the value of MaxTokens.
func (s *RecallRequest) SetMaxTokens(val OptInt) {
s.MaxTokens = val
}
// SetQuery sets the value of Query.
func (s *RecallRequest) SetQuery(val string) {
s.Query = val
}
// SetQueryTimestamp sets the value of QueryTimestamp.
func (s *RecallRequest) SetQueryTimestamp(val OptString) {
s.QueryTimestamp = val
}
// SetTags sets the value of Tags.
func (s *RecallRequest) SetTags(val []string) {
s.Tags = val
}
// SetTagsMatch sets the value of TagsMatch.
func (s *RecallRequest) SetTagsMatch(val OptRecallRequestTagsMatch) {
s.TagsMatch = val
}
// SetTrace sets the value of Trace.
func (s *RecallRequest) SetTrace(val OptBool) {
s.Trace = val
}
// SetTypes sets the value of Types.
func (s *RecallRequest) SetTypes(val []string) {
s.Types = val
}
// How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR,
//
// excludes untagged), 'all_strict' (AND, excludes untagged).
type RecallRequestTagsMatch string
const (
RecallRequestTagsMatchAny RecallRequestTagsMatch = "any"
RecallRequestTagsMatchAll RecallRequestTagsMatch = "all"
RecallRequestTagsMatchAnyStrict RecallRequestTagsMatch = "any_strict"
RecallRequestTagsMatchAllStrict RecallRequestTagsMatch = "all_strict"
)
// AllValues returns all RecallRequestTagsMatch values.
func (RecallRequestTagsMatch) AllValues() []RecallRequestTagsMatch {
return []RecallRequestTagsMatch{
RecallRequestTagsMatchAny,
RecallRequestTagsMatchAll,
RecallRequestTagsMatchAnyStrict,
RecallRequestTagsMatchAllStrict,
}
}
// MarshalText implements encoding.TextMarshaler.
func (s RecallRequestTagsMatch) MarshalText() ([]byte, error) {
switch s {
case RecallRequestTagsMatchAny:
return []byte(s), nil
case RecallRequestTagsMatchAll:
return []byte(s), nil
case RecallRequestTagsMatchAnyStrict:
return []byte(s), nil
case RecallRequestTagsMatchAllStrict:
return []byte(s), nil
default:
return nil, errors.Errorf("invalid value: %q", s)
}
}
// UnmarshalText implements encoding.TextUnmarshaler.
func (s *RecallRequestTagsMatch) UnmarshalText(data []byte) error {
switch RecallRequestTagsMatch(data) {
case RecallRequestTagsMatchAny:
*s = RecallRequestTagsMatchAny
return nil
case RecallRequestTagsMatchAll:
*s = RecallRequestTagsMatchAll
return nil
case RecallRequestTagsMatchAnyStrict:
*s = RecallRequestTagsMatchAnyStrict
return nil
case RecallRequestTagsMatchAllStrict:
*s = RecallRequestTagsMatchAllStrict
return nil
default:
return errors.Errorf("invalid value: %q", data)
}
}
// Response model for recall endpoints.
// Ref: #/components/schemas/RecallResponse
type RecallResponse struct {
// Chunks for facts, keyed by chunk_id.
Chunks OptRecallResponseChunks `json:"chunks"`
// Entity states for entities mentioned in results.
Entities OptRecallResponseEntities `json:"entities"`
Results []RecallResult `json:"results"`
Trace OptRecallResponseTrace `json:"trace"`
}
// GetChunks returns the value of Chunks.
func (s *RecallResponse) GetChunks() OptRecallResponseChunks {
return s.Chunks
}
// GetEntities returns the value of Entities.
func (s *RecallResponse) GetEntities() OptRecallResponseEntities {
return s.Entities
}
// GetResults returns the value of Results.
func (s *RecallResponse) GetResults() []RecallResult {
return s.Results
}
// GetTrace returns the value of Trace.
func (s *RecallResponse) GetTrace() OptRecallResponseTrace {
return s.Trace
}
// SetChunks sets the value of Chunks.
func (s *RecallResponse) SetChunks(val OptRecallResponseChunks) {
s.Chunks = val
}
// SetEntities sets the value of Entities.
func (s *RecallResponse) SetEntities(val OptRecallResponseEntities) {
s.Entities = val
}
// SetResults sets the value of Results.
func (s *RecallResponse) SetResults(val []RecallResult) {
s.Results = val
}
// SetTrace sets the value of Trace.
func (s *RecallResponse) SetTrace(val OptRecallResponseTrace) {
s.Trace = val
}
func (*RecallResponse) recallMemoriesRes() {}
// Chunks for facts, keyed by chunk_id.
type RecallResponseChunks map[string]ChunkData
func (s *RecallResponseChunks) init() RecallResponseChunks {
m := *s
if m == nil {
m = map[string]ChunkData{}
*s = m
}
return m
}
// Entity states for entities mentioned in results.
type RecallResponseEntities map[string]EntityStateResponse
func (s *RecallResponseEntities) init() RecallResponseEntities {
m := *s
if m == nil {
m = map[string]EntityStateResponse{}
*s = m
}
return m
}
type RecallResponseTrace map[string]jx.Raw
func (s *RecallResponseTrace) init() RecallResponseTrace {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Single recall result item.
// Ref: #/components/schemas/RecallResult
type RecallResult struct {
ChunkID OptString `json:"chunk_id"`
Context OptString `json:"context"`
DocumentID OptString `json:"document_id"`
Entities []string `json:"entities"`
ID string `json:"id"`
MentionedAt OptString `json:"mentioned_at"`
Metadata OptRecallResultMetadata `json:"metadata"`
OccurredEnd OptString `json:"occurred_end"`
OccurredStart OptString `json:"occurred_start"`
Tags []string `json:"tags"`
Text string `json:"text"`
Type OptString `json:"type"`
}
// GetChunkID returns the value of ChunkID.
func (s *RecallResult) GetChunkID() OptString {
return s.ChunkID
}
// GetContext returns the value of Context.
func (s *RecallResult) GetContext() OptString {
return s.Context
}
// GetDocumentID returns the value of DocumentID.
func (s *RecallResult) GetDocumentID() OptString {
return s.DocumentID
}
// GetEntities returns the value of Entities.
func (s *RecallResult) GetEntities() []string {
return s.Entities
}
// GetID returns the value of ID.
func (s *RecallResult) GetID() string {
return s.ID
}
// GetMentionedAt returns the value of MentionedAt.
func (s *RecallResult) GetMentionedAt() OptString {
return s.MentionedAt
}
// GetMetadata returns the value of Metadata.
func (s *RecallResult) GetMetadata() OptRecallResultMetadata {
return s.Metadata
}
// GetOccurredEnd returns the value of OccurredEnd.
func (s *RecallResult) GetOccurredEnd() OptString {
return s.OccurredEnd
}
// GetOccurredStart returns the value of OccurredStart.
func (s *RecallResult) GetOccurredStart() OptString {
return s.OccurredStart
}
// GetTags returns the value of Tags.
func (s *RecallResult) GetTags() []string {
return s.Tags
}
// GetText returns the value of Text.
func (s *RecallResult) GetText() string {
return s.Text
}
// GetType returns the value of Type.
func (s *RecallResult) GetType() OptString {
return s.Type
}
// SetChunkID sets the value of ChunkID.
func (s *RecallResult) SetChunkID(val OptString) {
s.ChunkID = val
}
// SetContext sets the value of Context.
func (s *RecallResult) SetContext(val OptString) {
s.Context = val
}
// SetDocumentID sets the value of DocumentID.
func (s *RecallResult) SetDocumentID(val OptString) {
s.DocumentID = val
}
// SetEntities sets the value of Entities.
func (s *RecallResult) SetEntities(val []string) {
s.Entities = val
}
// SetID sets the value of ID.
func (s *RecallResult) SetID(val string) {
s.ID = val
}
// SetMentionedAt sets the value of MentionedAt.
func (s *RecallResult) SetMentionedAt(val OptString) {
s.MentionedAt = val
}
// SetMetadata sets the value of Metadata.
func (s *RecallResult) SetMetadata(val OptRecallResultMetadata) {
s.Metadata = val
}
// SetOccurredEnd sets the value of OccurredEnd.
func (s *RecallResult) SetOccurredEnd(val OptString) {
s.OccurredEnd = val
}
// SetOccurredStart sets the value of OccurredStart.
func (s *RecallResult) SetOccurredStart(val OptString) {
s.OccurredStart = val
}
// SetTags sets the value of Tags.
func (s *RecallResult) SetTags(val []string) {
s.Tags = val
}
// SetText sets the value of Text.
func (s *RecallResult) SetText(val string) {
s.Text = val
}
// SetType sets the value of Type.
func (s *RecallResult) SetType(val OptString) {
s.Type = val
}
type RecallResultMetadata map[string]string
func (s *RecallResultMetadata) init() RecallResultMetadata {
m := *s
if m == nil {
m = map[string]string{}
*s = m
}
return m
}
// Evidence the response is based on: memories, mental models, and directives.
// Ref: #/components/schemas/ReflectBasedOn
type ReflectBasedOn struct {
// Directives applied during reflection.
Directives []ReflectDirective `json:"directives"`
// Memory facts used to generate the response.
Memories []ReflectFact `json:"memories"`
// Mental models used during reflection.
MentalModels []ReflectMentalModel `json:"mental_models"`
}
// GetDirectives returns the value of Directives.
func (s *ReflectBasedOn) GetDirectives() []ReflectDirective {
return s.Directives
}
// GetMemories returns the value of Memories.
func (s *ReflectBasedOn) GetMemories() []ReflectFact {
return s.Memories
}
// GetMentalModels returns the value of MentalModels.
func (s *ReflectBasedOn) GetMentalModels() []ReflectMentalModel {
return s.MentalModels
}
// SetDirectives sets the value of Directives.
func (s *ReflectBasedOn) SetDirectives(val []ReflectDirective) {
s.Directives = val
}
// SetMemories sets the value of Memories.
func (s *ReflectBasedOn) SetMemories(val []ReflectFact) {
s.Memories = val
}
// SetMentalModels sets the value of MentalModels.
func (s *ReflectBasedOn) SetMentalModels(val []ReflectMentalModel) {
s.MentalModels = val
}
// A directive applied during reflect.
// Ref: #/components/schemas/ReflectDirective
type ReflectDirective struct {
// Directive content.
Content string `json:"content"`
// Directive ID.
ID string `json:"id"`
// Directive name.
Name string `json:"name"`
}
// GetContent returns the value of Content.
func (s *ReflectDirective) GetContent() string {
return s.Content
}
// GetID returns the value of ID.
func (s *ReflectDirective) GetID() string {
return s.ID
}
// GetName returns the value of Name.
func (s *ReflectDirective) GetName() string {
return s.Name
}
// SetContent sets the value of Content.
func (s *ReflectDirective) SetContent(val string) {
s.Content = val
}
// SetID sets the value of ID.
func (s *ReflectDirective) SetID(val string) {
s.ID = val
}
// SetName sets the value of Name.
func (s *ReflectDirective) SetName(val string) {
s.Name = val
}
// A fact used in think response.
// Ref: #/components/schemas/ReflectFact
type ReflectFact struct {
Context OptString `json:"context"`
ID OptString `json:"id"`
OccurredEnd OptString `json:"occurred_end"`
OccurredStart OptString `json:"occurred_start"`
// Fact text. When type='observation', this contains markdown-formatted consolidated knowledge.
Text string `json:"text"`
Type OptString `json:"type"`
}
// GetContext returns the value of Context.
func (s *ReflectFact) GetContext() OptString {
return s.Context
}
// GetID returns the value of ID.
func (s *ReflectFact) GetID() OptString {
return s.ID
}
// GetOccurredEnd returns the value of OccurredEnd.
func (s *ReflectFact) GetOccurredEnd() OptString {
return s.OccurredEnd
}
// GetOccurredStart returns the value of OccurredStart.
func (s *ReflectFact) GetOccurredStart() OptString {
return s.OccurredStart
}
// GetText returns the value of Text.
func (s *ReflectFact) GetText() string {
return s.Text
}
// GetType returns the value of Type.
func (s *ReflectFact) GetType() OptString {
return s.Type
}
// SetContext sets the value of Context.
func (s *ReflectFact) SetContext(val OptString) {
s.Context = val
}
// SetID sets the value of ID.
func (s *ReflectFact) SetID(val OptString) {
s.ID = val
}
// SetOccurredEnd sets the value of OccurredEnd.
func (s *ReflectFact) SetOccurredEnd(val OptString) {
s.OccurredEnd = val
}
// SetOccurredStart sets the value of OccurredStart.
func (s *ReflectFact) SetOccurredStart(val OptString) {
s.OccurredStart = val
}
// SetText sets the value of Text.
func (s *ReflectFact) SetText(val string) {
s.Text = val
}
// SetType sets the value of Type.
func (s *ReflectFact) SetType(val OptString) {
s.Type = val
}
// Options for including additional data in reflect results.
// Ref: #/components/schemas/ReflectIncludeOptions
type ReflectIncludeOptions struct {
// Include facts that the answer is based on. Set to {} to enable, null to disable (default:
// disabled).
Facts *FactsIncludeOptions `json:"facts"`
// Include tool calls trace. Set to {} for full trace (input+output), {output: false} for inputs only.
ToolCalls OptToolCallsIncludeOptions `json:"tool_calls"`
}
// GetFacts returns the value of Facts.
func (s *ReflectIncludeOptions) GetFacts() *FactsIncludeOptions {
return s.Facts
}
// GetToolCalls returns the value of ToolCalls.
func (s *ReflectIncludeOptions) GetToolCalls() OptToolCallsIncludeOptions {
return s.ToolCalls
}
// SetFacts sets the value of Facts.
func (s *ReflectIncludeOptions) SetFacts(val *FactsIncludeOptions) {
s.Facts = val
}
// SetToolCalls sets the value of ToolCalls.
func (s *ReflectIncludeOptions) SetToolCalls(val OptToolCallsIncludeOptions) {
s.ToolCalls = val
}
// An LLM call made during reflect agent execution.
// Ref: #/components/schemas/ReflectLLMCall
type ReflectLLMCall struct {
// Execution time in milliseconds.
DurationMs int `json:"duration_ms"`
// Call scope: agent_1, agent_2, final, etc.
Scope string `json:"scope"`
}
// GetDurationMs returns the value of DurationMs.
func (s *ReflectLLMCall) GetDurationMs() int {
return s.DurationMs
}
// GetScope returns the value of Scope.
func (s *ReflectLLMCall) GetScope() string {
return s.Scope
}
// SetDurationMs sets the value of DurationMs.
func (s *ReflectLLMCall) SetDurationMs(val int) {
s.DurationMs = val
}
// SetScope sets the value of Scope.
func (s *ReflectLLMCall) SetScope(val string) {
s.Scope = val
}
// A mental model used during reflect.
// Ref: #/components/schemas/ReflectMentalModel
type ReflectMentalModel struct {
// Additional context.
Context OptString `json:"context"`
// Mental model ID.
ID string `json:"id"`
// Mental model content.
Text string `json:"text"`
}
// GetContext returns the value of Context.
func (s *ReflectMentalModel) GetContext() OptString {
return s.Context
}
// GetID returns the value of ID.
func (s *ReflectMentalModel) GetID() string {
return s.ID
}
// GetText returns the value of Text.
func (s *ReflectMentalModel) GetText() string {
return s.Text
}
// SetContext sets the value of Context.
func (s *ReflectMentalModel) SetContext(val OptString) {
s.Context = val
}
// SetID sets the value of ID.
func (s *ReflectMentalModel) SetID(val string) {
s.ID = val
}
// SetText sets the value of Text.
func (s *ReflectMentalModel) SetText(val string) {
s.Text = val
}
// Request model for reflect endpoint.
// Ref: #/components/schemas/ReflectRequest
type ReflectRequest struct {
Budget OptBudget `json:"budget"`
// DEPRECATED: Additional context is now concatenated with the query. Pass context directly in the
// query field instead. If provided, it will be appended to the query for backward compatibility.
//
// Deprecated: schema marks this property as deprecated.
Context OptString `json:"context"`
// Options for including additional data (disabled by default).
Include OptReflectIncludeOptions `json:"include"`
// Maximum tokens for the response.
MaxTokens OptInt `json:"max_tokens"`
Query string `json:"query"`
// Optional JSON Schema for structured output. When provided, the response will include a
// 'structured_output' field with the LLM response parsed according to this schema.
ResponseSchema OptReflectRequestResponseSchema `json:"response_schema"`
// Filter memories by tags during reflection. If not specified, all memories are considered.
Tags []string `json:"tags"`
// How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR,
// excludes untagged), 'all_strict' (AND, excludes untagged).
TagsMatch OptReflectRequestTagsMatch `json:"tags_match"`
}
// GetBudget returns the value of Budget.
func (s *ReflectRequest) GetBudget() OptBudget {
return s.Budget
}
// GetContext returns the value of Context.
func (s *ReflectRequest) GetContext() OptString {
return s.Context
}
// GetInclude returns the value of Include.
func (s *ReflectRequest) GetInclude() OptReflectIncludeOptions {
return s.Include
}
// GetMaxTokens returns the value of MaxTokens.
func (s *ReflectRequest) GetMaxTokens() OptInt {
return s.MaxTokens
}
// GetQuery returns the value of Query.
func (s *ReflectRequest) GetQuery() string {
return s.Query
}
// GetResponseSchema returns the value of ResponseSchema.
func (s *ReflectRequest) GetResponseSchema() OptReflectRequestResponseSchema {
return s.ResponseSchema
}
// GetTags returns the value of Tags.
func (s *ReflectRequest) GetTags() []string {
return s.Tags
}
// GetTagsMatch returns the value of TagsMatch.
func (s *ReflectRequest) GetTagsMatch() OptReflectRequestTagsMatch {
return s.TagsMatch
}
// SetBudget sets the value of Budget.
func (s *ReflectRequest) SetBudget(val OptBudget) {
s.Budget = val
}
// SetContext sets the value of Context.
func (s *ReflectRequest) SetContext(val OptString) {
s.Context = val
}
// SetInclude sets the value of Include.
func (s *ReflectRequest) SetInclude(val OptReflectIncludeOptions) {
s.Include = val
}
// SetMaxTokens sets the value of MaxTokens.
func (s *ReflectRequest) SetMaxTokens(val OptInt) {
s.MaxTokens = val
}
// SetQuery sets the value of Query.
func (s *ReflectRequest) SetQuery(val string) {
s.Query = val
}
// SetResponseSchema sets the value of ResponseSchema.
func (s *ReflectRequest) SetResponseSchema(val OptReflectRequestResponseSchema) {
s.ResponseSchema = val
}
// SetTags sets the value of Tags.
func (s *ReflectRequest) SetTags(val []string) {
s.Tags = val
}
// SetTagsMatch sets the value of TagsMatch.
func (s *ReflectRequest) SetTagsMatch(val OptReflectRequestTagsMatch) {
s.TagsMatch = val
}
// Optional JSON Schema for structured output. When provided, the response will include a
// 'structured_output' field with the LLM response parsed according to this schema.
type ReflectRequestResponseSchema map[string]jx.Raw
func (s *ReflectRequestResponseSchema) init() ReflectRequestResponseSchema {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR,
//
// excludes untagged), 'all_strict' (AND, excludes untagged).
type ReflectRequestTagsMatch string
const (
ReflectRequestTagsMatchAny ReflectRequestTagsMatch = "any"
ReflectRequestTagsMatchAll ReflectRequestTagsMatch = "all"
ReflectRequestTagsMatchAnyStrict ReflectRequestTagsMatch = "any_strict"
ReflectRequestTagsMatchAllStrict ReflectRequestTagsMatch = "all_strict"
)
// AllValues returns all ReflectRequestTagsMatch values.
func (ReflectRequestTagsMatch) AllValues() []ReflectRequestTagsMatch {
return []ReflectRequestTagsMatch{
ReflectRequestTagsMatchAny,
ReflectRequestTagsMatchAll,
ReflectRequestTagsMatchAnyStrict,
ReflectRequestTagsMatchAllStrict,
}
}
// MarshalText implements encoding.TextMarshaler.
func (s ReflectRequestTagsMatch) MarshalText() ([]byte, error) {
switch s {
case ReflectRequestTagsMatchAny:
return []byte(s), nil
case ReflectRequestTagsMatchAll:
return []byte(s), nil
case ReflectRequestTagsMatchAnyStrict:
return []byte(s), nil
case ReflectRequestTagsMatchAllStrict:
return []byte(s), nil
default:
return nil, errors.Errorf("invalid value: %q", s)
}
}
// UnmarshalText implements encoding.TextUnmarshaler.
func (s *ReflectRequestTagsMatch) UnmarshalText(data []byte) error {
switch ReflectRequestTagsMatch(data) {
case ReflectRequestTagsMatchAny:
*s = ReflectRequestTagsMatchAny
return nil
case ReflectRequestTagsMatchAll:
*s = ReflectRequestTagsMatchAll
return nil
case ReflectRequestTagsMatchAnyStrict:
*s = ReflectRequestTagsMatchAnyStrict
return nil
case ReflectRequestTagsMatchAllStrict:
*s = ReflectRequestTagsMatchAllStrict
return nil
default:
return errors.Errorf("invalid value: %q", data)
}
}
// Response model for think endpoint.
// Ref: #/components/schemas/ReflectResponse
type ReflectResponse struct {
// Evidence used to generate the response. Only present when include.facts is set.
BasedOn OptReflectBasedOn `json:"based_on"`
// Structured output parsed according to the request's response_schema. Only present when
// response_schema was provided in the request.
StructuredOutput OptReflectResponseStructuredOutput `json:"structured_output"`
// The reflect response as well-formatted markdown (headers, lists, bold/italic, code blocks, etc.).
Text string `json:"text"`
// Execution trace of tool and LLM calls. Only present when include.tool_calls is set.
Trace OptReflectTrace `json:"trace"`
// Token usage metrics for LLM calls during reflection.
Usage OptTokenUsage `json:"usage"`
}
// GetBasedOn returns the value of BasedOn.
func (s *ReflectResponse) GetBasedOn() OptReflectBasedOn {
return s.BasedOn
}
// GetStructuredOutput returns the value of StructuredOutput.
func (s *ReflectResponse) GetStructuredOutput() OptReflectResponseStructuredOutput {
return s.StructuredOutput
}
// GetText returns the value of Text.
func (s *ReflectResponse) GetText() string {
return s.Text
}
// GetTrace returns the value of Trace.
func (s *ReflectResponse) GetTrace() OptReflectTrace {
return s.Trace
}
// GetUsage returns the value of Usage.
func (s *ReflectResponse) GetUsage() OptTokenUsage {
return s.Usage
}
// SetBasedOn sets the value of BasedOn.
func (s *ReflectResponse) SetBasedOn(val OptReflectBasedOn) {
s.BasedOn = val
}
// SetStructuredOutput sets the value of StructuredOutput.
func (s *ReflectResponse) SetStructuredOutput(val OptReflectResponseStructuredOutput) {
s.StructuredOutput = val
}
// SetText sets the value of Text.
func (s *ReflectResponse) SetText(val string) {
s.Text = val
}
// SetTrace sets the value of Trace.
func (s *ReflectResponse) SetTrace(val OptReflectTrace) {
s.Trace = val
}
// SetUsage sets the value of Usage.
func (s *ReflectResponse) SetUsage(val OptTokenUsage) {
s.Usage = val
}
func (*ReflectResponse) reflectRes() {}
// Structured output parsed according to the request's response_schema. Only present when
// response_schema was provided in the request.
type ReflectResponseStructuredOutput map[string]jx.Raw
func (s *ReflectResponseStructuredOutput) init() ReflectResponseStructuredOutput {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// A tool call made during reflect agent execution.
// Ref: #/components/schemas/ReflectToolCall
type ReflectToolCall struct {
// Execution time in milliseconds.
DurationMs int `json:"duration_ms"`
// Tool input parameters.
Input ReflectToolCallInput `json:"input"`
// Iteration number (1-based) when this tool was called.
Iteration OptInt `json:"iteration"`
// Tool output (only included when include.tool_calls.output is true).
Output OptReflectToolCallOutput `json:"output"`
// Tool name: lookup, recall, learn, expand.
Tool string `json:"tool"`
}
// GetDurationMs returns the value of DurationMs.
func (s *ReflectToolCall) GetDurationMs() int {
return s.DurationMs
}
// GetInput returns the value of Input.
func (s *ReflectToolCall) GetInput() ReflectToolCallInput {
return s.Input
}
// GetIteration returns the value of Iteration.
func (s *ReflectToolCall) GetIteration() OptInt {
return s.Iteration
}
// GetOutput returns the value of Output.
func (s *ReflectToolCall) GetOutput() OptReflectToolCallOutput {
return s.Output
}
// GetTool returns the value of Tool.
func (s *ReflectToolCall) GetTool() string {
return s.Tool
}
// SetDurationMs sets the value of DurationMs.
func (s *ReflectToolCall) SetDurationMs(val int) {
s.DurationMs = val
}
// SetInput sets the value of Input.
func (s *ReflectToolCall) SetInput(val ReflectToolCallInput) {
s.Input = val
}
// SetIteration sets the value of Iteration.
func (s *ReflectToolCall) SetIteration(val OptInt) {
s.Iteration = val
}
// SetOutput sets the value of Output.
func (s *ReflectToolCall) SetOutput(val OptReflectToolCallOutput) {
s.Output = val
}
// SetTool sets the value of Tool.
func (s *ReflectToolCall) SetTool(val string) {
s.Tool = val
}
// Tool input parameters.
type ReflectToolCallInput map[string]jx.Raw
func (s *ReflectToolCallInput) init() ReflectToolCallInput {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Tool output (only included when include.tool_calls.output is true).
type ReflectToolCallOutput map[string]jx.Raw
func (s *ReflectToolCallOutput) init() ReflectToolCallOutput {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Execution trace of LLM and tool calls during reflection.
// Ref: #/components/schemas/ReflectTrace
type ReflectTrace struct {
// LLM calls made during reflection.
LlmCalls []ReflectLLMCall `json:"llm_calls"`
// Tool calls made during reflection.
ToolCalls []ReflectToolCall `json:"tool_calls"`
}
// GetLlmCalls returns the value of LlmCalls.
func (s *ReflectTrace) GetLlmCalls() []ReflectLLMCall {
return s.LlmCalls
}
// GetToolCalls returns the value of ToolCalls.
func (s *ReflectTrace) GetToolCalls() []ReflectToolCall {
return s.ToolCalls
}
// SetLlmCalls sets the value of LlmCalls.
func (s *ReflectTrace) SetLlmCalls(val []ReflectLLMCall) {
s.LlmCalls = val
}
// SetToolCalls sets the value of ToolCalls.
func (s *ReflectTrace) SetToolCalls(val []ReflectToolCall) {
s.ToolCalls = val
}
// Request model for retain endpoint.
// Ref: #/components/schemas/RetainRequest
type RetainRequest struct {
// If true, process asynchronously in background. If false, wait for completion (default: false).
Async OptBool `json:"async"`
// Tags applied to all items in this request. These are merged with any item-level tags.
DocumentTags []string `json:"document_tags"`
Items []MemoryItem `json:"items"`
}
// GetAsync returns the value of Async.
func (s *RetainRequest) GetAsync() OptBool {
return s.Async
}
// GetDocumentTags returns the value of DocumentTags.
func (s *RetainRequest) GetDocumentTags() []string {
return s.DocumentTags
}
// GetItems returns the value of Items.
func (s *RetainRequest) GetItems() []MemoryItem {
return s.Items
}
// SetAsync sets the value of Async.
func (s *RetainRequest) SetAsync(val OptBool) {
s.Async = val
}
// SetDocumentTags sets the value of DocumentTags.
func (s *RetainRequest) SetDocumentTags(val []string) {
s.DocumentTags = val
}
// SetItems sets the value of Items.
func (s *RetainRequest) SetItems(val []MemoryItem) {
s.Items = val
}
// Response model for retain endpoint.
// Ref: #/components/schemas/RetainResponse
type RetainResponse struct {
// Whether the operation was processed asynchronously.
Async bool `json:"async"`
BankID string `json:"bank_id"`
ItemsCount int `json:"items_count"`
// Operation ID for tracking async operations. Use GET /v1/default/banks/{bank_id}/operations to list
// operations and find this ID. Only present when async=true.
OperationID OptString `json:"operation_id"`
Success bool `json:"success"`
// Token usage metrics for LLM calls during fact extraction (only present for synchronous operations).
Usage OptTokenUsage `json:"usage"`
}
// GetAsync returns the value of Async.
func (s *RetainResponse) GetAsync() bool {
return s.Async
}
// GetBankID returns the value of BankID.
func (s *RetainResponse) GetBankID() string {
return s.BankID
}
// GetItemsCount returns the value of ItemsCount.
func (s *RetainResponse) GetItemsCount() int {
return s.ItemsCount
}
// GetOperationID returns the value of OperationID.
func (s *RetainResponse) GetOperationID() OptString {
return s.OperationID
}
// GetSuccess returns the value of Success.
func (s *RetainResponse) GetSuccess() bool {
return s.Success
}
// GetUsage returns the value of Usage.
func (s *RetainResponse) GetUsage() OptTokenUsage {
return s.Usage
}
// SetAsync sets the value of Async.
func (s *RetainResponse) SetAsync(val bool) {
s.Async = val
}
// SetBankID sets the value of BankID.
func (s *RetainResponse) SetBankID(val string) {
s.BankID = val
}
// SetItemsCount sets the value of ItemsCount.
func (s *RetainResponse) SetItemsCount(val int) {
s.ItemsCount = val
}
// SetOperationID sets the value of OperationID.
func (s *RetainResponse) SetOperationID(val OptString) {
s.OperationID = val
}
// SetSuccess sets the value of Success.
func (s *RetainResponse) SetSuccess(val bool) {
s.Success = val
}
// SetUsage sets the value of Usage.
func (s *RetainResponse) SetUsage(val OptTokenUsage) {
s.Usage = val
}
func (*RetainResponse) retainMemoriesRes() {}
// Single tag with usage count.
// Ref: #/components/schemas/TagItem
type TagItem struct {
// Number of memories with this tag.
Count int `json:"count"`
// The tag value.
Tag string `json:"tag"`
}
// GetCount returns the value of Count.
func (s *TagItem) GetCount() int {
return s.Count
}
// GetTag returns the value of Tag.
func (s *TagItem) GetTag() string {
return s.Tag
}
// SetCount sets the value of Count.
func (s *TagItem) SetCount(val int) {
s.Count = val
}
// SetTag sets the value of Tag.
func (s *TagItem) SetTag(val string) {
s.Tag = val
}
// Token usage metrics for LLM calls.
// Tracks input/output tokens for a single request to enable
// per-request cost tracking and monitoring.
// Ref: #/components/schemas/TokenUsage
type TokenUsage struct {
// Number of input/prompt tokens consumed.
InputTokens OptInt `json:"input_tokens"`
// Number of output/completion tokens generated.
OutputTokens OptInt `json:"output_tokens"`
// Total tokens (input + output).
TotalTokens OptInt `json:"total_tokens"`
}
// GetInputTokens returns the value of InputTokens.
func (s *TokenUsage) GetInputTokens() OptInt {
return s.InputTokens
}
// GetOutputTokens returns the value of OutputTokens.
func (s *TokenUsage) GetOutputTokens() OptInt {
return s.OutputTokens
}
// GetTotalTokens returns the value of TotalTokens.
func (s *TokenUsage) GetTotalTokens() OptInt {
return s.TotalTokens
}
// SetInputTokens sets the value of InputTokens.
func (s *TokenUsage) SetInputTokens(val OptInt) {
s.InputTokens = val
}
// SetOutputTokens sets the value of OutputTokens.
func (s *TokenUsage) SetOutputTokens(val OptInt) {
s.OutputTokens = val
}
// SetTotalTokens sets the value of TotalTokens.
func (s *TokenUsage) SetTotalTokens(val OptInt) {
s.TotalTokens = val
}
// Options for including tool calls in reflect results.
// Ref: #/components/schemas/ToolCallsIncludeOptions
type ToolCallsIncludeOptions struct {
// Include tool outputs in the trace. Set to false to only include inputs (smaller payload).
Output OptBool `json:"output"`
}
// GetOutput returns the value of Output.
func (s *ToolCallsIncludeOptions) GetOutput() OptBool {
return s.Output
}
// SetOutput sets the value of Output.
func (s *ToolCallsIncludeOptions) SetOutput(val OptBool) {
s.Output = val
}
// Request model for updating a directive.
// Ref: #/components/schemas/UpdateDirectiveRequest
type UpdateDirectiveRequest struct {
// New content.
Content OptString `json:"content"`
// New active status.
IsActive OptBool `json:"is_active"`
// New name.
Name OptString `json:"name"`
// New priority.
Priority OptInt `json:"priority"`
// New tags.
Tags []string `json:"tags"`
}
// GetContent returns the value of Content.
func (s *UpdateDirectiveRequest) GetContent() OptString {
return s.Content
}
// GetIsActive returns the value of IsActive.
func (s *UpdateDirectiveRequest) GetIsActive() OptBool {
return s.IsActive
}
// GetName returns the value of Name.
func (s *UpdateDirectiveRequest) GetName() OptString {
return s.Name
}
// GetPriority returns the value of Priority.
func (s *UpdateDirectiveRequest) GetPriority() OptInt {
return s.Priority
}
// GetTags returns the value of Tags.
func (s *UpdateDirectiveRequest) GetTags() []string {
return s.Tags
}
// SetContent sets the value of Content.
func (s *UpdateDirectiveRequest) SetContent(val OptString) {
s.Content = val
}
// SetIsActive sets the value of IsActive.
func (s *UpdateDirectiveRequest) SetIsActive(val OptBool) {
s.IsActive = val
}
// SetName sets the value of Name.
func (s *UpdateDirectiveRequest) SetName(val OptString) {
s.Name = val
}
// SetPriority sets the value of Priority.
func (s *UpdateDirectiveRequest) SetPriority(val OptInt) {
s.Priority = val
}
// SetTags sets the value of Tags.
func (s *UpdateDirectiveRequest) SetTags(val []string) {
s.Tags = val
}
// Request model for updating disposition traits.
// Ref: #/components/schemas/UpdateDispositionRequest
type UpdateDispositionRequest struct {
Disposition DispositionTraits `json:"disposition"`
}
// GetDisposition returns the value of Disposition.
func (s *UpdateDispositionRequest) GetDisposition() DispositionTraits {
return s.Disposition
}
// SetDisposition sets the value of Disposition.
func (s *UpdateDispositionRequest) SetDisposition(val DispositionTraits) {
s.Disposition = val
}
// Request model for updating a mental model.
// Ref: #/components/schemas/UpdateMentalModelRequest
type UpdateMentalModelRequest struct {
// Maximum tokens for generated content.
MaxTokens OptInt `json:"max_tokens"`
// New name for the mental model.
Name OptString `json:"name"`
// New source query for the mental model.
SourceQuery OptString `json:"source_query"`
// Tags for scoped visibility.
Tags []string `json:"tags"`
// Trigger settings.
Trigger OptMentalModelTrigger `json:"trigger"`
}
// GetMaxTokens returns the value of MaxTokens.
func (s *UpdateMentalModelRequest) GetMaxTokens() OptInt {
return s.MaxTokens
}
// GetName returns the value of Name.
func (s *UpdateMentalModelRequest) GetName() OptString {
return s.Name
}
// GetSourceQuery returns the value of SourceQuery.
func (s *UpdateMentalModelRequest) GetSourceQuery() OptString {
return s.SourceQuery
}
// GetTags returns the value of Tags.
func (s *UpdateMentalModelRequest) GetTags() []string {
return s.Tags
}
// GetTrigger returns the value of Trigger.
func (s *UpdateMentalModelRequest) GetTrigger() OptMentalModelTrigger {
return s.Trigger
}
// SetMaxTokens sets the value of MaxTokens.
func (s *UpdateMentalModelRequest) SetMaxTokens(val OptInt) {
s.MaxTokens = val
}
// SetName sets the value of Name.
func (s *UpdateMentalModelRequest) SetName(val OptString) {
s.Name = val
}
// SetSourceQuery sets the value of SourceQuery.
func (s *UpdateMentalModelRequest) SetSourceQuery(val OptString) {
s.SourceQuery = val
}
// SetTags sets the value of Tags.
func (s *UpdateMentalModelRequest) SetTags(val []string) {
s.Tags = val
}
// SetTrigger sets the value of Trigger.
func (s *UpdateMentalModelRequest) SetTrigger(val OptMentalModelTrigger) {
s.Trigger = val
}
// Ref: #/components/schemas/ValidationError
type ValidationError struct {
Loc []int `json:"loc"`
Msg string `json:"msg"`
Type string `json:"type"`
}
// GetLoc returns the value of Loc.
func (s *ValidationError) GetLoc() []int {
return s.Loc
}
// GetMsg returns the value of Msg.
func (s *ValidationError) GetMsg() string {
return s.Msg
}
// GetType returns the value of Type.
func (s *ValidationError) GetType() string {
return s.Type
}
// SetLoc sets the value of Loc.
func (s *ValidationError) SetLoc(val []int) {
s.Loc = val
}
// SetMsg sets the value of Msg.
func (s *ValidationError) SetMsg(val string) {
s.Msg = val
}
// SetType sets the value of Type.
func (s *ValidationError) SetType(val string) {
s.Type = val
}
// Response model for the version/info endpoint.
// Ref: #/components/schemas/VersionResponse
type VersionResponse struct {
// API version string.
APIVersion string `json:"api_version"`
// Enabled feature flags.
Features FeaturesInfo `json:"features"`
}
// GetAPIVersion returns the value of APIVersion.
func (s *VersionResponse) GetAPIVersion() string {
return s.APIVersion
}
// GetFeatures returns the value of Features.
func (s *VersionResponse) GetFeatures() FeaturesInfo {
return s.Features
}
// SetAPIVersion sets the value of APIVersion.
func (s *VersionResponse) SetAPIVersion(val string) {
s.APIVersion = val
}
// SetFeatures sets the value of Features.
func (s *VersionResponse) SetFeatures(val FeaturesInfo) {
s.Features = val
}