AI Function Calling Patterns
Implements a robust decision framework for designing, securing, and optimizing LLM function calling and tool use.
This skill provides a comprehensive architecture and decision framework for building production-ready LLM applications that utilize external tools. It offers expert guidance on tool design granularity, provider-specific implementation patterns for Anthropic and OpenAI, and a rigorous security checklist to prevent prompt injection or unauthorized system access. By applying these patterns, developers can improve tool selection accuracy, implement resilient error handling, and optimize performance for complex agentic workflows.
Key Features
01Performance patterns including parallel execution and result caching
02Provider-specific implementation guides for Claude, GPT, and Gemini
03Structured error handling and retry strategies for self-correcting agents
041 GitHub stars
05Comprehensive security checklist for sanitization and sandbox execution
06Tool design optimization rules to maximize selection accuracy
Use Cases
01Building resilient AI agents that interact with external APIs or databases
02Hardening LLM tool security to prevent data leakage and system injection
03Standardizing function calling across multiple LLM providers in a single app