Provides and generates LangChain4j tool and function calling patterns: annotates methods as tools with @Tool, configures tool executors, registers tools with AiServices, validates tool parameters…
Install the "langchain4j-tool-function-calling-patterns" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns into .claude/skills/langchain4j-tool-function-calling-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "langchain4j-tool-function-calling-patterns", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "langchain4j-tool-function-calling-patterns" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns into .agents/skills/langchain4j-tool-function-calling-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "langchain4j-tool-function-calling-patterns", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "langchain4j-tool-function-calling-patterns" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns into .cursor/skills/langchain4j-tool-function-calling-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "langchain4j-tool-function-calling-patterns", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "langchain4j-tool-function-calling-patterns" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns into .gemini/skills/langchain4j-tool-function-calling-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "langchain4j-tool-function-calling-patterns", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "langchain4j-tool-function-calling-patterns" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns into .github/skills/langchain4j-tool-function-calling-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "langchain4j-tool-function-calling-patterns", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "langchain4j-tool-function-calling-patterns" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns into .opencode/skills/langchain4j-tool-function-calling-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "langchain4j-tool-function-calling-patterns", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
langchain4j-tool-function-calling-patterns
GitHub stars
356
Token cost
~2.4k tokens
SKILL.md length
707 words
Files
9 (incl. references)
Skills in repo
115
Repo updated
First seen
Licence
MIT
At a glance
Provides and generates LangChain4j tool and function calling patterns: annotates methods as tools with @Tool, configures tool executors, registers tools with AiServices, validates tool parameters…
Works in 5 steps: Annotate Methods with @Tool → Register Tools with AiServices → Test Tool Invocation End-to-End → …
Building AI agents that call tools
SKILL.md covers Overview, When to Use, Instructions and Examples, plus 6 more sections
Needs API_KEY
What it does
Langchain4j Tool Function Calling Patterns is an agent skill from giuseppe-trisciuoglio/developer-kit. Provides and generates LangChain4j tool and function calling patterns: annotates methods as tools with @Tool, configures tool executors, registers tools with AiServices, validates tool parameters, and handles tool execution errors. Use when building AI agents that call tools, define function specifications, manage tool responses, or integrate external APIs with LLM-driven applications.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/advanced-features.md`, `references/core-patterns.md` and `references/error-handling.md`).
It sits in AI & LLM Engineering, covering Structured output and tool calling and Building AI agents. The repository describes itself as: Modular plugin marketplace for Claude Code and agentic CLIs, with validated, spec-driven skills, agents, commands, and workflows for Java, TypeScript, Python, PHP, AWS, and AI. The licence is MIT.
When your agent uses it
Building AI agents that call tools
Define function specifications
Manage tool responses
Integrate external APIs with LLM-driven applications
Example prompts
“Use the langchain4j-tool-function-calling-patterns skill to provide and generates LangChain4j tool and function calling patterns: annotates methods…”
Read from SKILL.md and the folder at commit fe73fb3. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves these tools, so the agent can use them without asking each time:
Read
Write
Edit
Bash
Glob
Grep
WebFetch
From allowed-tools in the SKILL.md frontmatter.
Runs code
No scripts in the folder and no shell commands in SKILL.md (its code samples are java).
From the folder's file list and the shell code blocks in SKILL.md.
Network
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names these keys or tokens, usually read from environment variables:
API_KEY
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Langchain4j Tool Function Calling Patterns loads about 2.4k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 707 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~108
When it runs· the whole SKILL.md, loaded when a task matches
~2.4k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~16k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check: notes
The automated check noted patterns worth knowing about, such as sudo or a known installer.
NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/langchain4j-tool-function-calling-patterns/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
langchain4j-tool-function-calling-patterns
description
Provides and generates LangChain4j tool and function calling patterns: annotates methods as tools with @Tool, configures tool executors, registers tools with AiServices, validates tool parameters, and handles tool execution errors. Use when building AI agents that call tools, define function specifications, manage tool responses, or integrate external APIs with LLM-driven applications.
allowed-tools
Read, Write, Edit, Bash, Glob, Grep, WebFetch
LangChain4j Tool & Function Calling Patterns
Provides patterns for annotating methods as tools, configuring tool executors, registering tools with AI services, validating parameters, and handling tool execution errors in LangChain4j applications.
Overview
LangChain4j uses the @Tool annotation to expose Java methods as callable functions for AI agents. The AiServices builder registers tools with a chat model, enabling LLMs to perform actions beyond text generation: database queries, API calls, calculations, and business system integrations. Parameters use @P for descriptions that guide the LLM.
When to Use
Building AI agents that call external tools (weather, stocks, database queries)
Defining function specifications for LLM tool use (@Tool, @P annotations)
Registering and managing tool sets with AiServices.builder().tools()
Handling tool execution errors, timeouts, and hallucinated tool names
Implementing context-aware tools that inject user state via @ToolMemoryId
Configuring dynamic tool providers for large or conditional tool sets
Instructions
1. Annotate Methods with @Tool
Define a tool class with methods annotated @Tool. Provide a description as the first parameter. Use @P for each parameter description.
java
public class WeatherTools {
private final WeatherService weatherService;
public WeatherTools(WeatherService weatherService) {
this.weatherService = weatherService;
}
@Tool("Get current weather for a city")
public String getWeather(
@P("City name") String city,
@P("Temperature unit: celsius or fahrenheit") String unit) {
return weatherService.getWeather(city, unit);
}
}
Validate: Create an instance and confirm the class loads without errors.
2. Register Tools with AiServices
Use AiServices.builder() to register tool instances with the chat model.
java
MathAssistant assistant = AiServices.builder(MathAssistant.class)
.chatModel(chatModel)
.tools(new Calculator(), new WeatherTools(weatherService))
.build();
Validate: Call assistant.chat("What is 2 + 2?") and verify the LLM responds without throwing.
3. Test Tool Invocation End-to-End
Send a prompt that triggers tool usage and verify the tool executes and its result is incorporated.
java
String response = assistant.chat("What is the weather in Rome?");
System.out.println(response);
Validate: Check logs for tool invocation and confirm the response uses the tool output.
4. Handle Tool Execution Errors
Add error handlers to gracefully manage failures without exposing stack traces.
SKILL.md and 8 other files (references) in plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns of giuseppe-trisciuoglio/developer-kit.
Langchain4j Tool Function Calling Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Langchain4j Tool Function Calling Patterns compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Langchain4j Tool Function Calling Patterns this skillgiuseppe-trisciuoglio/developer-kit
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent…
Provides patterns to configure Spring Boot Actuator for production-grade monitoring, health probes, secured management endpoints, and Micrometer metrics across JVM services.
Provides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based…
Questions about Langchain4j Tool Function Calling Patterns
What does Langchain4j Tool Function Calling Patterns do?
Provides and generates LangChain4j tool and function calling patterns: annotates methods as tools with @Tool, configures tool executors, registers tools with AiServices, validates tool parameters…. Langchain4j Tool Function Calling Patterns is an agent skill from giuseppe-trisciuoglio/developer-kit. Provides and generates LangChain4j tool and function calling patterns: annotates methods as tools with @Tool, configures tool executors, registers tools with AiServices, validates tool parameters, and handles tool execution errors.
When should I use Langchain4j Tool Function Calling Patterns?
Langchain4j Tool Function Calling Patterns fits situations like: building AI agents that call tools; define function specifications; manage tool responses; integrate external APIs with LLM-driven applications.
How do I install Langchain4j Tool Function Calling Patterns in Claude Code?
Run `npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a claude-code`. Or copy the skill folder (plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns in giuseppe-trisciuoglio/developer-kit) into .claude/skills/langchain4j-tool-function-calling-patterns in your project. Claude Code loads it when a task matches its description.
How do I install Langchain4j Tool Function Calling Patterns in Codex?
Run `npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a codex`. Or copy the skill folder (plugins/developer-kit-java/skills/langchain4j-tool-function-calling-patterns in giuseppe-trisciuoglio/developer-kit) into .agents/skills/langchain4j-tool-function-calling-patterns in your project. Codex loads it when a task matches its description.
Can I use Langchain4j Tool Function Calling Patterns in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-tool-function-calling-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/langchain4j-tool-function-calling-patterns, .gemini/skills/langchain4j-tool-function-calling-patterns, .github/skills/langchain4j-tool-function-calling-patterns and .opencode/skills/langchain4j-tool-function-calling-patterns in your project.
What does Langchain4j Tool Function Calling Patterns need to run?
Going by SKILL.md and its folder, Langchain4j Tool Function Calling Patterns needs credentials named API_KEY. Our summary lists: A credential in API_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch.
Does Langchain4j Tool Function Calling Patterns access the network?
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Is Langchain4j Tool Function Calling Patterns safe to install?
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
What licence does Langchain4j Tool Function Calling Patterns use?
Langchain4j Tool Function Calling Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Langchain4j Tool Function Calling Patterns use?
About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.
What are the alternatives to Langchain4j Tool Function Calling Patterns?
Skills that share tags, products or a category with Langchain4j Tool Function Calling Patterns: Google Agents CLI Adk Code (pifferologo/cloud-agents-cli, 129 stars), E2b Code Interpreter (agent-sandbox/agent-sandbox, 218 stars), Output Dev Agent Class (growthxai/output, 442 stars) and Agents And Middleware (VectorSpaceLab/AREX-Skill, 330 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Langchain4j Tool Function Calling Patterns?
giuseppe-trisciuoglio (a GitHub user) maintains it in giuseppe-trisciuoglio/developer-kit, which has 356 GitHub stars. The repository holds 115 skills in this directory. The repository was last updated on September 10, 2026.