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 full Memory objects in the response. | [optional] |
| FetchMemoryContent | Pointer to NullableBool | Whether to include memory content in the response. Requires fetchMemory=true. | [optional] |
| PostProcessor | Pointer to PostProcessor | [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
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.