reset
Remove all contexts from the builder, returning it to its initial empty state. Use this in a dynamic config callback when you need to rebuild contexts from scratch for a specific request — for example, skipping a greeting context on transfers.
For convenience at the agent level, see
AgentBase.reset_contexts(), which wraps define_contexts().reset().
Parameters
None.
Returns
ContextBuilder — Self for method chaining.