SmartMemory
POST
/memory/reasoning/challenge

Challenge an assertion against existing knowledge to detect contradictions.

Uses a multi-method detection cascade:

  1. LLM-based (if enabled) - most accurate
  2. Graph-based - structural analysis
  3. Embedding-based - semantic similarity + polarity
  4. Heuristic - pattern matching fallback

Returns detected conflicts with confidence scores and suggested resolutions.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request to challenge an assertion.

Response Body

application/json

application/json

curl -X POST "https://example.com/memory/reasoning/challenge" \  -H "Content-Type: application/json" \  -d '{    "assertion": "string"  }'
{
  "new_assertion": "string",
  "has_conflicts": true,
  "conflicts": [
    {
      "existing_item_id": "string",
      "existing_fact": "string",
      "new_fact": "string",
      "conflict_type": "string",
      "confidence": 0,
      "explanation": "string",
      "suggested_resolution": "string"
    }
  ],
  "related_facts_count": 0,
  "overall_confidence": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}