# Class Agent

java.lang.Object
com.google.adk.samples.a2aagent.agent.Agent

public final class Agent extends Object
Agent that can check whether numbers are prime.

- ## Field Summary

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static com.google.common.collect.ImmutableMap<String,Object>`
  `checkPrime(List<Integer> nums)`
  Checks if a list of numbers are prime.

  ### Methods inherited from class Object

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

- ## Field Details

  - ### ROOT_AGENT

    public static final LlmAgent ROOT_AGENT

- ## Method Details

  - ### checkPrime

    public static com.google.common.collect.ImmutableMap<String,Object> checkPrime(List<Integer> nums)
    Checks if a list of numbers are prime.
    Parameters:
      `nums` - The list of numbers to check
    Returns:
      A map containing the result message