Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 10 KB
Bundled scripts: none
Version: 1.1.0
Allowed tools: ReadWriteBashWebFetch
Path: skills/ai-llm/langchain4j-tool-function-calling-patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Setup and Configuration
  3. Basic Tool Registration
  4. Builder Configuration Options
  5. Core Patterns
  6. Basic Tool Definition
  7. Parameter Descriptions and Validation
  8. Complex Parameter Types
  9. Advanced Features
  10. Memory Context Integration
  11. Dynamic Tool Provisioning
  12. Immediate Return Tools
  13. Error Handling
  14. Tool Error Handling
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going