Uses of Class
com.google.genkit.ai.Tool
Packages that use Tool
Package
Description
Middleware plugin for Genkit providing higher-level generation building blocks.
-
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. -
Uses of Tool in com.google.genkit.agent
Methods in com.google.genkit.agent that return types with arguments of type ToolModifier and TypeMethodDescriptionAgentConfig.getTools()Returns the tools available to the agent.Methods in com.google.genkit.agent with parameters of type ToolModifier and TypeMethodDescriptionSets the tools available to the agent.Method parameters in com.google.genkit.agent with type arguments of type ToolModifier and TypeMethodDescriptionSets the tools available to the agent. -
Uses of Tool in com.google.genkit.ai
Methods in com.google.genkit.ai that return ToolMethods in com.google.genkit.ai that return types with arguments of type ToolMethod parameters in com.google.genkit.ai with type arguments of type ToolModifier and TypeMethodDescription -
Uses of Tool in com.google.genkit.ai.middleware
Methods in com.google.genkit.ai.middleware that return ToolModifier and TypeMethodDescriptionTool<?, ?> ToolParams.getTool()Returns the resolved tool being called.Methods in com.google.genkit.ai.middleware that return types with arguments of type ToolModifier and TypeMethodDescriptionBaseGenerationMiddleware.tools()GenerationMiddleware.tools()Returns additional tools to make available during generation.Constructors in com.google.genkit.ai.middleware with parameters of type Tool -
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. -
Uses of Tool in com.google.genkit.plugins.middleware
Methods in com.google.genkit.plugins.middleware that return types with arguments of type ToolModifier and TypeMethodDescriptionAgents.delegationTools(AgentsOptions options) Builds the delegation tools (one per configured sub-agent).Artifacts.tools()Builds the artifact tools using default options (read_artifact+write_artifact).Artifacts.tools(ArtifactsOptions options) Builds the artifact tools.