set_valid_contexts
set_valid_contexts
Set which contexts the agent can navigate to from this context. Acts as a
context-level default; step-level set_valid_contexts() can further restrict or
expand navigation for individual steps.
Parameters
contexts
List of context names that are reachable from this context.
Returns
Context — Self for method chaining.