# Class A2AAgent

java.lang.Object
com.example.a2a_basic.A2AAgent

public final class A2AAgent extends Object
Provides local roll logic plus a remote A2A agent for the demo.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final LlmAgent`
  `ROLL_AGENT`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static LlmAgent`
  `createRootAgent(String primeAgentBaseUrl)`
  `static com.google.common.collect.ImmutableMap<String,Object>`
  `rollDie(int sides, ToolContext toolContext)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### ROLL_AGENT

    public static final LlmAgent ROLL_AGENT

- ## Method Details

  - ### rollDie

    public static com.google.common.collect.ImmutableMap<String,Object> rollDie(int sides, ToolContext toolContext)

  - ### createRootAgent

    public static LlmAgent createRootAgent(String primeAgentBaseUrl)