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 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