Class AgentInvocation.Builder
-
- All Implemented Interfaces:
public final class AgentInvocation.BuilderBuilder for configuring and creating instances of AgentInvocation.
Use this builder to set process options such as context, blackboard, verbosity, budget, and control policies before constructing the agent invocation.
-
-
Method Summary
Modifier and Type Method Description final AgentInvocation.Builderoptions(ProcessOptions processOptions)Set the ProcessOptions to use for this invocation. final AgentInvocation.Builderoptions(Consumer<ProcessOptions.Builder> consumer)Begin configuring process options via a builder. final <T extends Any> AgentInvocation<T>build(Class<T> resultType)Build the AgentInvocation with the given explicit result type. -
-
Method Detail
-
options
final AgentInvocation.Builder options(ProcessOptions processOptions)
Set the ProcessOptions to use for this invocation.
- Parameters:
processOptions- the process-level options- Returns:
this builder instance for chaining
-
options
final AgentInvocation.Builder options(Consumer<ProcessOptions.Builder> consumer)
Begin configuring process options via a builder.
- Returns:
a ProcessOptions.Builder for fine-grained option setup
-
build
final <T extends Any> AgentInvocation<T> build(Class<T> resultType)
Build the AgentInvocation with the given explicit result type.
- Parameters:
resultType- the Java Class of the result type T- Returns:
a new AgentInvocation producing values of type T
-
-
-
-