graph_context
Assembles a context pack around one entity: its graph neighbors and linked memories, trimmed to a character limit. Use to inject focused entity context.
Instructions
Build a compact, prompt-ready context pack centered on an entity: the entity, its graph neighbors, and the most relevant linked memories, budgeted to a character limit. Read-only. Use when an agent needs ready-to-inject context about one specific entity; use pack for query-driven context, or graph_neighbors for raw graph edges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Number of relationship hops to include. Default 1. | |
| max_chars | No | Character budget for the assembled pack. Default 4000. | |
| max_edges | No | Maximum relationships to include. Default 50. | |
| entity_key | Yes | Entity key the context pack is centered on. Required. | |
| max_memories | No | Maximum linked memories to include. Default 10. | |
| include_source | No | If true, reveal provenance/source metadata. Default false. |