Skip to navigation

Assemble graph context

Authentication

AuthorizationApi-Key

Type "Api-Key" followed by a space and the project API key.

Path parameters

graph_uuidstringRequired
Graph UUID

Request

Request body
querystringRequired
The search query used to assemble the context block.
filtersobjectOptional
Filters constraining which graph data can be selected for the context block.
include_resultsbooleanOptional
When true, includes the raw graph results selected for the context block.
max_charactersintegerOptional1-50000
The maximum number of characters in the assembled context block.
recency_biasenumOptional
Adjusts result selection to favor more recent graph data.
Allowed values:
template_uuidstringOptional
The UUID of a context template used to render the context block.

Response

OK
contextstringOptional

The assembled context block of facts, entities, observations, and thread summaries. Pass it through the model provider's untrusted-data channel.

resultsobjectOptional
The individual edges, nodes, episodes, observations, and thread summaries selected to build the context. Episodes are always empty because context assembly does not select episodes. Present only when requested.
truncatedbooleanOptional
Whether the character budget limited the size of the context block.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error