Claudeskills.frClaudeskills.fr

giuseppe-trisciuoglio/developer-kit

Appels de fonctions avec LangChain4j

Langchain4j Tool Function Calling Patterns

3,9 kinstallations371étoiles GitHub

1 188e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.

Description

Apprend à brancher des appels de fonctions externes dans les agents LangChain4j avec le système d'annotations @Tool. Vous annotez des méthodes avec @Tool et @P, les enregistrez avec AiServices.builder().tools() et le LLM peut les invoquer en conversation. Le Skill couvre les gestionnaires d'erreurs pour les noms d'outils inventés ou les arguments erronés.

Voir la description originale (anglais)

This one teaches you how to wire up external function calls in LangChain4j agents using the @Tool annotation system. You annotate methods with @Tool and @P, register them with AiServices.builder().tools(), and the LLM can invoke them during conversations. The skill covers error handlers for when the model hallucinates tool names or passes bad arguments, concurrent execution for independent tools, and timeout configs for external API calls. It's practical if you're building agents that need to query databases, hit APIs, or perform calculations beyond what the LLM can do natively. The examples show calculator tools, email senders with immediate return behavior, and dynamic tool providers that change based on user context.

Installer le skill

  1. 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
  2. 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
  3. 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.
Skill non audité par Claudeskills.fr. Des tiers publient les skills de l'annuaire. Lisez leur source avant de les installer, surtout sur des données sensibles.