View a markdown version of this page

Search and traverse an Agent context - AWS Context

Search and traverse an Agent context

Search and traversal are the low-level retrieval primitives. SearchAgentContext finds the entities that match a query, and TraverseAgentContext follows the relationships around a result. Both return entities with the metadata you need to trace a result back to its source. An entity is a node in the Agent context, such as a table, column, metric, business term, or document; a relationship is an edge between two nodes; the ontology defines the node and edge types. For these concepts, see How AWS Context works.

A typical flow is to search for entry-point entities, choose a result, and traverse its relationships. Search returns nodes only; traversal is how you get edges. For the full request and response fields, see SearchAgentContext and TraverseAgentContext in the AWS Context API Reference.