add_context
add_context
Create a new context and add it to the builder. Returns the Context object for method chaining.
Raises ValueError if the context name already exists or the maximum context limit
(50) is exceeded.
A single-context agent must name its context "default" or validation will fail.
Multi-context agents can use any names.
Parameters
name
Unique context name. When using a single context, it must be named "default".
Returns
Context — The newly
created context, ready for adding steps.