Package com.google.genkit.ai
Class AgentConfig.Builder
java.lang.Object
com.google.genkit.ai.AgentConfig.Builder
- Enclosing class:
AgentConfig
Builder for AgentConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagents(List<AgentConfig> agents) Sets the sub-agents.build()Builds the AgentConfig.config(GenerationConfig config) Sets the generation config.description(String description) Sets the description.Sets the model name.Sets the agent name.output(OutputConfig output) Sets the output config.Sets the system prompt.Sets the tools available to this agent.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the agent name.- Parameters:
name- the name- Returns:
- this builder
-
description
Sets the description.- Parameters:
description- the description- Returns:
- this builder
-
system
Sets the system prompt.- Parameters:
system- the system prompt- Returns:
- this builder
-
model
Sets the model name.- Parameters:
model- the model name- Returns:
- this builder
-
tools
Sets the tools available to this agent.- Parameters:
tools- the tools- Returns:
- this builder
-
agents
Sets the sub-agents.- Parameters:
agents- the sub-agents- Returns:
- this builder
-
config
Sets the generation config.- Parameters:
config- the generation config- Returns:
- this builder
-
output
Sets the output config.- Parameters:
output- the output config- Returns:
- this builder
-
build
Builds the AgentConfig.- Returns:
- the built config
-