# Uses of Class
com.google.adk.tools.FunctionTool

Packages that use FunctionTool
Package
Description
com.example
com.google.adk.tools
com.google.adk.tools.computeruse

- ## Uses of FunctionTool in com.example

  Fields in com.example declared as FunctionTool
  Modifier and Type
  Field
  Description
  `static final FunctionTool`
  CustomDieTool.`CHECK_PRIME_INSTANCE`
  `static final FunctionTool`
  CustomDieTool.`ROLL_DIE_INSTANCE`

- ## Uses of FunctionTool in com.google.adk.tools

  Subclasses of FunctionTool in com.google.adk.tools
  Modifier and Type
  Class
  Description
  `class`
  `LoadMemoryTool`
  A tool that loads memory for the current user.
  `class`
  `LongRunningFunctionTool`
  A function tool that returns the result asynchronously.
  Fields in com.google.adk.tools declared as FunctionTool
  Modifier and Type
  Field
  Description
  `static final FunctionTool`
  ExitLoopTool.`INSTANCE`
  Methods in com.google.adk.tools that return FunctionTool
  Modifier and Type
  Method
  Description
  `static FunctionTool`
  FunctionTool.`create(Class<?> cls, String methodName)`
  `static FunctionTool`
  FunctionTool.`create(Class<?> cls, String methodName, boolean requireConfirmation)`
  `static FunctionTool`
  FunctionTool.`create(Class<?> cls, String methodName, boolean requireConfirmation, boolean isLongRunning)`
  `static FunctionTool`
  FunctionTool.`create(Object instance, Method func)`
  `static FunctionTool`
  FunctionTool.`create(Object instance, Method func, boolean requireConfirmation)`
  `static FunctionTool`
  FunctionTool.`create(Object instance, Method func, boolean requireConfirmation, boolean isLongRunning)`
  `static FunctionTool`
  FunctionTool.`create(Object instance, String methodName)`
  `static FunctionTool`
  FunctionTool.`create(Object instance, String methodName, boolean requireConfirmation)`
  `static FunctionTool`
  FunctionTool.`create(Object instance, String methodName, boolean requireConfirmation, boolean isLongRunning)`
  `static FunctionTool`
  FunctionTool.`create(Method func)`
  `static FunctionTool`
  FunctionTool.`create(Method func, boolean requireConfirmation)`
  `static FunctionTool`
  FunctionTool.`create(Method func, boolean requireConfirmation, boolean isLongRunning)`
  Methods in com.google.adk.tools with parameters of type FunctionTool
  Modifier and Type
  Method
  Description
  `static LongRunningFunctionTool`
  LongRunningFunctionTool.`create(FunctionTool tool)`
  Creates a LongRunningFunctionTool from a FunctionTool.

- ## Uses of FunctionTool in com.google.adk.tools.computeruse

  Subclasses of FunctionTool in com.google.adk.tools.computeruse
  Modifier and Type
  Class
  Description
  `class`
  `ComputerUseTool`
  A tool that wraps computer control functions for use with LLMs.