OptionalcontextThe document's contextId for conceptsOf.
OptionalcontextdocsUnder and relationship: keeps only the documents whose context matches the filter. Filters on
context-record metadata only, not on per-chunk keys.
Optionaldepthsubtree: maximum depth below the resolved node. Default (and cap) 3.
Optionalhopsneighborhood: expansion hops from the resolved entity. Default 1, max 2.
The id of the AiKnowledgeBase.
OptionallimitdocsUnder and relationship: maximum documents returned. Default 25, max 100 (totalDocs always
reports the full count).
The operation to run.
OptionalqueryThe free-text question for globalSummary (ranks the KB's topic summaries against it).
OptionalrecursivedocsUnder: when true (default), include documents under the whole subtree, not just the node itself.
OptionalrefNode ref (name, facet nodeId, topic id or entity id). Required by resolve/describe/subtree/docsUnder/ neighborhood/pathBetween/relationship.
OptionalrefSecond node ref for pathBetween, and the target entity for relationship.
Request structure for querying a knowledge base's graph (documents, entities, topics, facets) through the closed op set.
refaccepts a facet nodeId (facet_…— exact; the only persistable concept handles), a topic id from KnowledgeBaseGraphTopic.id or an entity id from KnowledgeBaseGraphNode.id (both exact, both churn on rebuild) or a name, resolved server-side (exact → alias → similarity). An unresolvable ref fails withCONCEPT_NOT_FOUNDplus the nearest matching names.