langchain4j-tool-function-calling-patterns
Tool and function calling patterns with LangChain4j. Define tools, handle function calls, and integrate with LLM agents. Use when building agentic applications that interact with tools.
npx skills add majiayu000/claude-skill-registry --skill langchain4j-tool-function-calling-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LangChain4j Tool & Function Calling Patterns Define tools and enable AI agents to interact with external systems, APIs, and services using LangChain4j's annotation-based and programmatic tool system. ## When to Use This Skill Use this skill when: - Building AI applications that need to interact with external APIs and services - Creating AI assistants that can perform actions beyond text generation - Implementing AI systems that need access to real-time data (weather, stocks, etc.) - Building multi-agent systems where agents can use specialized tools - Creating AI applications with database read/write capabilities - Implementing AI systems that need to integrate with existing business systems - Building context-aware AI applications where tool availability depends on user state - Developing production AI applications that require robust error handling and monitoring ## Setup and Configuration ### Basic Tool Registration ```java // Define tools using @Tool annotation public class CalculatorTools { @Tool("Add two numbers") public double add(double a, double b) { return a + b; } } // Register with AiServices builder interface MathAssistant { String ask(String question); } MathAssista
- When to Use This Skill
- Setup and Configuration
- Basic Tool Registration
- Builder Configuration Options
- Core Patterns
- Basic Tool Definition
- Parameter Descriptions and Validation
- Complex Parameter Types
- Advanced Features
- Memory Context Integration
- Dynamic Tool Provisioning
- Immediate Return Tools
- Error Handling
- Tool Error Handling
What does the langchain4j-tool-function-calling-patterns skill do?
Tool and function calling patterns with LangChain4j. Define tools, handle function calls, and integrate with LLM agents. Use when building agentic applications that interact with tools.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill langchain4j-tool-function-calling-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
