TraversalStrategy
¶
Used by
-
AsyncContextClient-
Operations
traverse_agent_context -
Paginators
iter_traverse_agent_context
-
Operations
-
ContextClient-
Operations
traverse_agent_context -
Paginators
iter_traverse_agent_context
-
Operations
Source code in docs_src/capo_context/types/traversal_strategy.py
direction
instance-attribute
¶
direction: TraversalDirection
Direction of edge traversal.
Valid values:
-
OUTGOING- Follow edges pointing away from the current node (source -> target). -
INCOMING- Follow edges pointing toward the current node (target -> source). -
BOTH- Follow edges in both directions.
edge_types
instance-attribute
¶
edge_types: NotRequired[EdgeTypeList]
Edge types to follow. When omitted, all edge types are traversed.