Skip to main content
Section ID: DOC-API-MODEL-schema-1igd5iut01#overview

MemorySearchParams

Parameters used to retrieve relevant memories during generation.

Type-reference view: API Schema 9frhv4euve, API Schema 9ftjkkjhfa. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-1igd5iut01#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-1igd5iut01#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-1igd5iut01#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1igd5iut01#request-field-queryquerystringOptionalText submitted to memory retrieval for this generation.
Section ID: DOC-API-MODEL-schema-1igd5iut01#request-field-topktopKstring (int64)OptionalMaximum memory matches requested during generation-context retrieval. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1igd5iut01#request-field-thresholdthresholdnumber (double) or string (NaN, Infinity, -Infinity)OptionalMinimum relevance threshold requested for the memory query.
Section ID: DOC-API-MODEL-schema-1igd5iut01#request-field-rerankrerankbooleanOptionalWhether reranking was requested for the memory search.
Section ID: DOC-API-MODEL-schema-1igd5iut01#request-field-resultsreturnedresultsReturnedstring (int64)OptionalNumber of memory records returned by the search. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1igd5iut01#request-field-relationsreturnedrelationsReturnedstring (int64)OptionalNumber of graph relationships returned by the search. Pattern: ^-?\d+$.

In responses​

Section ID: DOC-API-MODEL-schema-1igd5iut01#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1igd5iut01#field-querySection ID: DOC-API-MODEL-schema-1igd5iut01#response-field-queryquerystringOptionalText submitted to memory retrieval for this generation.
Section ID: DOC-API-MODEL-schema-1igd5iut01#field-topkSection ID: DOC-API-MODEL-schema-1igd5iut01#response-field-topktopKstring (int64)OptionalMaximum memory matches requested during generation-context retrieval. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1igd5iut01#field-thresholdSection ID: DOC-API-MODEL-schema-1igd5iut01#response-field-thresholdthresholdnumber (double) or string (NaN, Infinity, -Infinity)OptionalMinimum relevance threshold requested for the memory query.
Section ID: DOC-API-MODEL-schema-1igd5iut01#field-rerankSection ID: DOC-API-MODEL-schema-1igd5iut01#response-field-rerankrerankbooleanOptionalWhether reranking was requested for the memory search.
Section ID: DOC-API-MODEL-schema-1igd5iut01#field-resultsreturnedSection ID: DOC-API-MODEL-schema-1igd5iut01#response-field-resultsreturnedresultsReturnedstring (int64)OptionalNumber of memory records returned by the search. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1igd5iut01#field-relationsreturnedSection ID: DOC-API-MODEL-schema-1igd5iut01#response-field-relationsreturnedrelationsReturnedstring (int64)OptionalNumber of graph relationships returned by the search. Pattern: ^-?\d+$.

Where used​

Section ID: DOC-API-MODEL-schema-1igd5iut01#where-used

ReferenceRelationship
Withdraw your rating on a messagePOST /api/v1/llm/delete-message-rating
Get full conversation statePOST /api/v1/llm/conversation-state
Rate an assistant messagePOST /api/v1/llm/rate-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Append a message without generatingPOST /api/v1/llm/append-message
Send a message to a conversationPOST /api/v1/llm/send-message
ReceiveMessageRequestAPI JSON uses JSON field names (camelCase).
ClientToolDispatchAPI JSON uses JSON field names (camelCase).
Models containing this value
ModelRelationship
GenerationContextNested in model
GenerationContextNested in model

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-1igd5iut01