Skip to main content

Documentation Index

Fetch the complete documentation index at: https://kremis.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

method
POST
/query
Authentication: Required (if enabled) Uses DFS with backtracking to find the simple path with maximum total weight between two nodes, correctly handling all graph topologies including cycles.

Request

{
  "type": "strongest_path",
  "start": 0,
  "end": 5
}
FieldTypeRequiredDescription
typestringYesMust be "strongest_path".
startinteger (u64)YesStarting node ID.
endinteger (u64)YesTarget node ID.

Response

{
  "success": true,
  "found": true,
  "path": [0, 3, 5],
  "edges": [
    {"from": 0, "to": 3, "weight": 15},
    {"from": 3, "to": 5, "weight": 12}
  ],
  "grounding": "inference",
  "error": null
}
When found is false, diagnostic explains why: start_not_found, end_not_found, or no_path (both nodes exist but no path connects them).

Example

curl -X POST http://localhost:8080/query \
     -H "Content-Type: application/json" \
     -d '{"type": "strongest_path", "start": 0, "end": 5}'
Last modified on March 21, 2026