Uses of Class
com.google.genkit.ai.Tool
Packages that use Tool
Package
Description
Provides session management for multi-turn agent conversations with
persistence.
-
Uses of Tool in com.google.genkit
Methods in com.google.genkit that return ToolModifier and TypeMethodDescription<I,O> Tool <I, O> Genkit.defineInterrupt(InterruptConfig<I, O> config) Defines an interrupt tool for human-in-the-loop interactions.<I,O> Tool <I, O> Genkit.defineTool(String name, String description, BiFunction<ActionContext, I, O> handler, Class<I> inputClass, Class<O> outputClass) Defines a tool with typed input and output classes.<I,O> Tool <I, O> Genkit.defineTool(String name, String description, Map<String, Object> inputSchema, Class<I> inputClass, BiFunction<ActionContext, I, O> handler) Defines a tool.Methods in com.google.genkit that return types with arguments of type ToolModifier and TypeMethodDescriptionGenkit.getAllToolsForAgent(Agent agent) Gets all tools for an agent, including sub-agent tools. -
Uses of Tool in com.google.genkit.ai
Methods in com.google.genkit.ai that return ToolModifier and TypeMethodDescriptionAgent.asTool()Returns this agent as a tool that can be used by other agents.Tool.Builder.build()Methods in com.google.genkit.ai that return types with arguments of type ToolModifier and TypeMethodDescriptionAgent.getAllTools(Map<String, Agent> agentRegistry) Gets all tools including sub-agent tools for handoff pattern.Agent.getTools()Gets the tools available to this agent.AgentConfig.getTools()Gets the tools available to this agent.GenerateOptions.getTools()Gets the available tools.Method parameters in com.google.genkit.ai with type arguments of type ToolModifier and TypeMethodDescriptionvoidSets the tools available to this agent.Sets the tools available to this agent. -
Uses of Tool in com.google.genkit.ai.session
Methods in com.google.genkit.ai.session that return types with arguments of type ToolModifier and TypeMethodDescriptionChat.SendOptions.getTools()Gets the tools.ChatOptions.getTools()Gets the available tools.Method parameters in com.google.genkit.ai.session with type arguments of type ToolModifier and TypeMethodDescriptionvoidSets the tools.voidSets the available tools.Sets the tools.Sets the available tools. -
Uses of Tool in com.google.genkit.plugins.mcp
Methods in com.google.genkit.plugins.mcp that return types with arguments of type ToolModifier and TypeMethodDescriptionGets tools from the MCP server as Genkit tools.MCPPlugin.getTools()Gets all tools from all connected MCP servers.Gets tools from a specific MCP server.