RetrieveMemoryRequest
RetrieveMemoryRequest documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Message | string | Primary query/message for semantic search. | |
| Context | Pointer to []ContextItem | Optional context items (text or binary) to provide additional context for the search. | [optional] |
| SpaceKeys | []SpaceKey | List of spaces to search with optional per-embedder weight overrides. | |
| RequestedSize | Pointer to NullableInt32 | Maximum number of memories to retrieve. | [optional] |
| FetchMemory | Pointer to NullableBool | Whether to include streamed memory-definition records in the response. Defaults to true when omitted. These records include memory metadata and audit fields, but omit originalContent unless fetchMemoryContent is true. | [optional] [default to true] |
| FetchMemoryContent | Pointer to NullableBool | Whether streamed memory-definition records include originalContent bytes. Requires fetchMemory=true. Defaults to false when omitted. | [optional] [default to false] |
| Hnsw | Pointer to NullableHnswOptions | [optional] | |
| PostProcessor | Pointer to NullablePostProcessor | [optional] |
Methods
NewRetrieveMemoryRequest
func NewRetrieveMemoryRequest(message string, spaceKeys []SpaceKey, ) *RetrieveMemoryRequest
NewRetrieveMemoryRequest instantiates a new RetrieveMemoryRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewRetrieveMemoryRequestWithDefaults
func NewRetrieveMemoryRequestWithDefaults() *RetrieveMemoryRequest
NewRetrieveMemoryRequestWithDefaults instantiates a new RetrieveMemoryRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetMessage
func (o *RetrieveMemoryRequest) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
GetMessageOk
func (o *RetrieveMemoryRequest) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMessage
func (o *RetrieveMemoryRequest) SetMessage(v string)
SetMessage sets Message field to given value.
GetContext
func (o *RetrieveMemoryRequest) GetContext() []ContextItem
GetContext returns the Context field if non-nil, zero value otherwise.
GetContextOk
func (o *RetrieveMemoryRequest) GetContextOk() (*[]ContextItem, bool)
GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetContext
func (o *RetrieveMemoryRequest) SetContext(v []ContextItem)
SetContext sets Context field to given value.
HasContext
func (o *RetrieveMemoryRequest) HasContext() bool
HasContext returns a boolean if a field has been set.
SetContextNil
func (o *RetrieveMemoryRequest) SetContextNil(b bool)
SetContextNil sets the value for Context to be an explicit nil
UnsetContext
func (o *RetrieveMemoryRequest) UnsetContext()
UnsetContext ensures that no value is present for Context, not even an explicit nil
GetSpaceKeys
func (o *RetrieveMemoryRequest) GetSpaceKeys() []SpaceKey
GetSpaceKeys returns the SpaceKeys field if non-nil, zero value otherwise.
GetSpaceKeysOk
func (o *RetrieveMemoryRequest) GetSpaceKeysOk() (*[]SpaceKey, bool)
GetSpaceKeysOk returns a tuple with the SpaceKeys field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSpaceKeys
func (o *RetrieveMemoryRequest) SetSpaceKeys(v []SpaceKey)
SetSpaceKeys sets SpaceKeys field to given value.
GetRequestedSize
func (o *RetrieveMemoryRequest) GetRequestedSize() int32
GetRequestedSize returns the RequestedSize field if non-nil, zero value otherwise.
GetRequestedSizeOk
func (o *RetrieveMemoryRequest) GetRequestedSizeOk() (*int32, bool)
GetRequestedSizeOk returns a tuple with the RequestedSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRequestedSize
func (o *RetrieveMemoryRequest) SetRequestedSize(v int32)
SetRequestedSize sets RequestedSize field to given value.
HasRequestedSize
func (o *RetrieveMemoryRequest) HasRequestedSize() bool
HasRequestedSize returns a boolean if a field has been set.
SetRequestedSizeNil
func (o *RetrieveMemoryRequest) SetRequestedSizeNil(b bool)
SetRequestedSizeNil sets the value for RequestedSize to be an explicit nil
UnsetRequestedSize
func (o *RetrieveMemoryRequest) UnsetRequestedSize()
UnsetRequestedSize ensures that no value is present for RequestedSize, not even an explicit nil
GetFetchMemory
func (o *RetrieveMemoryRequest) GetFetchMemory() bool
GetFetchMemory returns the FetchMemory field if non-nil, zero value otherwise.
GetFetchMemoryOk
func (o *RetrieveMemoryRequest) GetFetchMemoryOk() (*bool, bool)
GetFetchMemoryOk returns a tuple with the FetchMemory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFetchMemory
func (o *RetrieveMemoryRequest) SetFetchMemory(v bool)
SetFetchMemory sets FetchMemory field to given value.
HasFetchMemory
func (o *RetrieveMemoryRequest) HasFetchMemory() bool
HasFetchMemory returns a boolean if a field has been set.
SetFetchMemoryNil
func (o *RetrieveMemoryRequest) SetFetchMemoryNil(b bool)
SetFetchMemoryNil sets the value for FetchMemory to be an explicit nil
UnsetFetchMemory
func (o *RetrieveMemoryRequest) UnsetFetchMemory()
UnsetFetchMemory ensures that no value is present for FetchMemory, not even an explicit nil
GetFetchMemoryContent
func (o *RetrieveMemoryRequest) GetFetchMemoryContent() bool
GetFetchMemoryContent returns the FetchMemoryContent field if non-nil, zero value otherwise.
GetFetchMemoryContentOk
func (o *RetrieveMemoryRequest) GetFetchMemoryContentOk() (*bool, bool)
GetFetchMemoryContentOk returns a tuple with the FetchMemoryContent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFetchMemoryContent
func (o *RetrieveMemoryRequest) SetFetchMemoryContent(v bool)
SetFetchMemoryContent sets FetchMemoryContent field to given value.
HasFetchMemoryContent
func (o *RetrieveMemoryRequest) HasFetchMemoryContent() bool
HasFetchMemoryContent returns a boolean if a field has been set.
SetFetchMemoryContentNil
func (o *RetrieveMemoryRequest) SetFetchMemoryContentNil(b bool)
SetFetchMemoryContentNil sets the value for FetchMemoryContent to be an explicit nil
UnsetFetchMemoryContent
func (o *RetrieveMemoryRequest) UnsetFetchMemoryContent()
UnsetFetchMemoryContent ensures that no value is present for FetchMemoryContent, not even an explicit nil
GetHnsw
func (o *RetrieveMemoryRequest) GetHnsw() HnswOptions
GetHnsw returns the Hnsw field if non-nil, zero value otherwise.
GetHnswOk
func (o *RetrieveMemoryRequest) GetHnswOk() (*HnswOptions, bool)
GetHnswOk returns a tuple with the Hnsw field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetHnsw
func (o *RetrieveMemoryRequest) SetHnsw(v HnswOptions)
SetHnsw sets Hnsw field to given value.
HasHnsw
func (o *RetrieveMemoryRequest) HasHnsw() bool
HasHnsw returns a boolean if a field has been set.
SetHnswNil
func (o *RetrieveMemoryRequest) SetHnswNil(b bool)
SetHnswNil sets the value for Hnsw to be an explicit nil
UnsetHnsw
func (o *RetrieveMemoryRequest) UnsetHnsw()
UnsetHnsw ensures that no value is present for Hnsw, not even an explicit nil
GetPostProcessor
func (o *RetrieveMemoryRequest) GetPostProcessor() PostProcessor
GetPostProcessor returns the PostProcessor field if non-nil, zero value otherwise.
GetPostProcessorOk
func (o *RetrieveMemoryRequest) GetPostProcessorOk() (*PostProcessor, bool)
GetPostProcessorOk returns a tuple with the PostProcessor field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPostProcessor
func (o *RetrieveMemoryRequest) SetPostProcessor(v PostProcessor)
SetPostProcessor sets PostProcessor field to given value.
HasPostProcessor
func (o *RetrieveMemoryRequest) HasPostProcessor() bool
HasPostProcessor returns a boolean if a field has been set.
SetPostProcessorNil
func (o *RetrieveMemoryRequest) SetPostProcessorNil(b bool)
SetPostProcessorNil sets the value for PostProcessor to be an explicit nil
UnsetPostProcessor
func (o *RetrieveMemoryRequest) UnsetPostProcessor()
UnsetPostProcessor ensures that no value is present for PostProcessor, not even an explicit nil