Developers can turn Java methods into tools that AI agents can call. The LangChain4j library uses the @Tool annotation to mark methods as callable functions. This helps agents do tasks like fetching weather data, running calculations, or querying databases.
With AiServices, you register these tools with a language model. The model then knows when and how to use them. You can also add error handlers to keep responses safe and clear. This pattern makes AI agents more useful and reliable.
Global
mkdir -p ~/.claude/skills/langchain4j-tool-function-calling-patternsProject
mkdir -p .claude/skills/langchain4j-tool-function-calling-patternsSource Repository
Find Skillsvercel-labs/skills
Find and install the perfect skill to extend your AI agent
Microsoft Foundrymicrosoft/azure-skills
Build, deploy, and improve AI agents on Microsoft Foundry from start to finish
Azure Aimicrosoft/azure-skills
Search, transcribe, and analyze with Azure AI tools for smarter apps
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Build, deploy, and manage your Copilot SDK apps on Azure with ease
Triagemattpocock/skills
Triage issues with a state machine driven by clear roles and agent briefs
Handoffmattpocock/skills
Hand off your work to another AI agent with a clear summary
Image Editagentspace-so/runcomfy-agent-skills
Smart router picks the best AI model for your image editing needs
Agentspaceagentspace-so/skills
See your AI agent's live folder from any browser instantly