clade-embeddings-search

Featured

Implement tool use (function calling) with Claude to let it execute actions, Use when working with embeddings-search patterns. query databases, call APIs, and interact with external systems. Trigger with "anthropic tool use", "claude function calling", "claude tools", "anthropic structured output with tools".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Anthropic Tool Use (Function Calling) ## Overview Tool use lets Claude call functions you define — query databases, hit APIs, read files, do math. Claude decides when to call a tool, you execute it, and feed the result back. This is how you build Claude-powered agents. > **Note:** Anthropic does not offer an embeddings API. For embeddings + vector search, pair Claude with a dedicated embedding model (OpenAI, Cohere, or Voyage). ## Prerequisites - Completed `clade-model-inference` - Understanding of JSON Schema for tool definitions ## Instructions ### Step 1: Define Tools ```typescript import Anthropic from '@claude-ai/sdk'; const client = new Anthropic(); const tools: Anthropic.Tool[] = [ { name: 'get_weather', description: 'Get current weather for a city. Call this when the user asks about weather.', input_schema: { type: 'object', properties: { city: { type: 'string', description: 'City name, e.g. "San Francisco"' }, unit: { type: 'string', enum: ['celsius', 'fahrenheit'], description: 'Temperature unit' }, }, required: ['city'], }, }, ]; ``` ### Step 2: Send Message with Tools ```typescript const response = await client.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 1024, tools, messages: [{ role: 'user', content: "What's the weather in San Francisco?" }], }); // Claude responds with stop_reason: 'tool_use' // response.content includes a tool_use block: // { type: 'tool_use', i...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

clade-core-workflow-b

Redirect to claude-embeddings-search for tool use (function calling) and agentic loop patterns with Claude. Use when looking for the secondary Anthropic workflow. Trigger with "anthropic tools", "claude function calling".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-core-workflow-a

Build Claude tool use (function calling) workflows with the Messages API. Use when implementing tool use, function calling, agent loops, or building AI assistants that interact with external systems. Trigger with phrases like "claude tool use", "anthropic function calling", "claude tools", "agent loop anthropic", "tool_use blocks".

2,266 Updated today
jeremylongshore
AI & Automation Listed

tool-use-architect

Design and implement Claude tool/function calling patterns with error handling, parallel execution, and validation. Based on Anthropic's Claude Cookbooks.

1 Updated today
Marine-softdrink524
AI & Automation Featured

anth-advanced-troubleshooting

Debug complex Claude API issues including context window overflow, tool use failures, streaming corruption, and response quality problems. Trigger with phrases like "anthropic advanced debug", "claude complex issue", "claude tool use failing", "claude context overflow".

2,266 Updated today
jeremylongshore
AI & Automation Listed

claude-api

Build apps with the Claude API or Anthropic SDK. TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK. DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.

1 Updated 1 weeks ago
DROOdotFOO