Class Agent
java.lang.Object
com.google.genai.gaos.models.agents.Agent
Agent
An agent definition for the CreateAgent API. This message is the target for annotation-parser-based JSON parsing. New format: { "id": "customer-sentinel", "base_agent": "", "system_instruction": "...", "base_environment": { "type": "remote", "sources": [...] }, "tools": [ {"type": "code_execution"} ] }
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgent()Agent(AgentConfig agentConfig, String baseAgent, BaseEnvironment baseEnvironment, String description, String id, String systemInstruction, List<AgentTool> tools) -
Method Summary
Modifier and TypeMethodDescriptionConfiguration parameters for the agent.The base agent to extend.The environment configuration for the agent.static Agent.Builderbuilder()Agent description for developers to quickly read and understand.booleaninthashCode()id()The unique identifier for the agent.System instruction for the agent.tools()The tools available to the agent.toString()withAgentConfig(AgentConfig agentConfig) Configuration parameters for the agent.withBaseAgent(String baseAgent) The base agent to extend.withBaseEnvironment(BaseEnvironment baseEnvironment) The environment configuration for the agent.withDescription(String description) Agent description for developers to quickly read and understand.The unique identifier for the agent.withSystemInstruction(String systemInstruction) System instruction for the agent.The tools available to the agent.
-
Constructor Details
-
Agent
public Agent(@Nullable AgentConfig agentConfig, @Nullable String baseAgent, @Nullable BaseEnvironment baseEnvironment, @Nullable String description, @Nullable String id, @Nullable String systemInstruction, @Nullable List<AgentTool> tools) -
Agent
public Agent()
-
-
Method Details
-
agentConfig
Configuration parameters for the agent. -
baseAgent
The base agent to extend. -
baseEnvironment
The environment configuration for the agent. -
description
Agent description for developers to quickly read and understand. -
id
The unique identifier for the agent. -
systemInstruction
System instruction for the agent. -
tools
The tools available to the agent. -
builder
-
withAgentConfig
Configuration parameters for the agent. -
withBaseAgent
The base agent to extend. -
withBaseEnvironment
The environment configuration for the agent. -
withDescription
Agent description for developers to quickly read and understand. -
withId
The unique identifier for the agent. -
withSystemInstruction
System instruction for the agent. -
withTools
The tools available to the agent. -
equals
-
hashCode
public int hashCode() -
toString
-