Class Agent
java.lang.Object
com.google.genai.gaos.models.agents.Agent
Agent
An agent definition, used when creating an agent. 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
Constructors -
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.template()Optional template version the agent is instantiated from (e.g.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.withTemplate(String template) Optional template version the agent is instantiated from (e.g.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 String template, @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. -
template
Optional template version the agent is instantiated from (e.g. "video-agent@v1" or "video-agent@latest"). -
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. -
withTemplate
Optional template version the agent is instantiated from (e.g. "video-agent@v1" or "video-agent@latest"). -
withTools
The tools available to the agent. -
equals
-
hashCode
public int hashCode() -
toString
-