tools
Use when implementing function calling, tool use, or agents with LLMs - unified tool API works across OpenAI, Anthropic, Google, and Ollama with consistent tool definition and execution patterns
Security Assessment
About tools
The 'tools' skill enables seamless integration of external tools with LLMs (Large Language Models) for function calling and tool usage. It offers a unified API that works across multiple AI platforms, including OpenAI, Anthropic, Google, and Ollama, making it ideal for use cases that require leveraging external functionalities or agents in conjunction with LLMs. By providing a consistent tool definition format and execution patterns, this skill allows developers to implement more complex workflows and enhance LLM capabilities with minimal friction. Whether you're working with AI models for weather information, data analysis, or other domain-specific tasks, the 'tools' skill ensures that external tools are easily invoked within LLM workflows, enhancing the overall functionality and utility of the system.
The key features of this skill include support for multi-turn tool execution, the use of JSON Schema for tool definition, and the ability to control tool selection through parameters like 'tool_choice'. It enables tools to be defined with function names, descriptions, and parameter schemas, offering flexibility in creating a variety of tool-based integrations. The 'tools' skill also allows developers to define specific tool use policies, such as auto-selection by the model, forcing tool usage, or specifying a particular tool. This flexibility makes it suitable for a wide range of applications, from simple utility functions like weather fetching to more complex integrations with external APIs and services. Additionally, its compatibility across major AI providers ensures a broad application base.
This skill is primarily targeted at developers building advanced AI systems and those working on agent-based architectures that require external tool integration. It is particularly useful for projects that involve multi-turn conversations or dynamic API calls, making it ideal for virtual assistants, automation systems, and AI-driven applications that need to leverage external data sources or services. By standardizing tool invocation patterns, the 'tools' skill simplifies the development process for LLM-based applications, allowing developers to focus on business logic while the skill handles the tool integration and execution.
FAQ
How do I install the 'tools' skill?
You can install the 'tools' skill using either the 'uv' or 'pip' package manager. For 'uv', use the command 'uv add llmring'. For 'pip', use 'pip install llmring'. Additionally, you need to install the provider SDKs that suit your environment, such as 'openai', 'anthropic', 'google-genai', or 'ollama'.
Which AI providers are supported by the 'tools' skill?
The 'tools' skill supports OpenAI, Anthropic, Google Gemini, and Ollama. You can choose the appropriate provider SDK based on your project requirements.
How do I control which tool is used during function calling?
You can control tool selection using the 'tool_choice' parameter in the LLMRequest. Options include 'auto' (model decides), 'none' (no tool use), 'required' (force tool use, OpenAI only), 'any' (force tool use, Anthropic equivalent), or specify a particular tool by name with a dictionary format like {'type': 'function', 'function': {'name': 'tool_name'}}.
What is the format for defining a tool?
Tools are defined using JSON Schema format. Each tool includes a 'name', 'description', and 'parameters'. The parameters are structured as a JSON object with 'type', 'properties', and 'required' fields. For example, a weather-fetching tool would define parameters like 'location' and 'unit'.
Is the 'tools' skill compatible with multi-turn conversations?
Yes, the 'tools' skill supports multi-turn tool execution patterns. This allows tools to be invoked multiple times within a conversation, enabling dynamic and context-aware tool usage.
Install tools
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
juanre/llmring