Pesquisa a memória de longo prazo por tipo (semântica, episódica, processual ou taxativa). O escopo do projeto é realizado pelo parâmetro route id path e a organização é derivada desse projeto. O tipo seleciona o endpoint de recuperação; A validação de campo por tipo rejeita campos que o tipo de destino não aceita.
Respostas
-
Versão de API não permitida ou malformada, uma operação indisponível no contrato publicado selecionado ou uma representação inaceitável (incluindo parâmetros de tipo de mídia não suportados ou SSE excluído). Falhas existentes de autenticação, autorização e limite de taxa têm precedência.
-
Resultados da pesquisa
-
Tipo inválido, tipo ausente, campos não permitidos ou top_k fora de 1-500
-
Credenciais ausentes ou inválidas
-
O chamador não tem acesso de leitura ao projeto
-
Erro interno
-
Serviço de memória inacessível
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/projects/{id}/memory/search' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: string" \
--data '{
"dedup_threshold": 42.0,
"deduplicate": true,
"domain": "string",
"metadata_filter": {},
"query": "string",
"rank": true,
"session_id": "string",
"similarity_threshold": 42.0,
"tags": [
"string"
],
"top_k": 42,
"type": "string",
"user_id": "string",
"visibility": "string"
}'
# Headers
Idempotency-Key: string
# Payload
{
"dedup_threshold": 42.0,
"deduplicate": true,
"domain": "string",
"metadata_filter": {},
"query": "string",
"rank": true,
"session_id": "string",
"similarity_threshold": 42.0,
"tags": [
"string"
],
"top_k": 42,
"type": "string",
"user_id": "string",
"visibility": "string"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{}
{}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}