Class ToolAdapter

java.lang.Object
com.google.adk.tools.BaseTool
dev.enola.ai.tool.ToolAdapter

public class ToolAdapter extends com.google.adk.tools.BaseTool
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.adk.tools.BaseTool

    com.google.adk.tools.BaseTool.ToolArgsConfig, com.google.adk.tools.BaseTool.ToolConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<com.google.genai.types.FunctionDeclaration>
     
    io.reactivex.rxjava3.core.Single<Map<String,Object>>
    runAsync(Map<String,Object> args, com.google.adk.tools.ToolContext toolContext)
     

    Methods inherited from class com.google.adk.tools.BaseTool

    customMetadata, description, fromConfig, longRunning, name, processLlmRequest, setCustomMetadata

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • declaration

      public Optional<com.google.genai.types.FunctionDeclaration> declaration()
      Overrides:
      declaration in class com.google.adk.tools.BaseTool
    • runAsync

      public io.reactivex.rxjava3.core.Single<Map<String,Object>> runAsync(Map<String,Object> args, com.google.adk.tools.ToolContext toolContext)
      Overrides:
      runAsync in class com.google.adk.tools.BaseTool