技能 人工智能 Anthropic工具使用与智能体工作流

Anthropic工具使用与智能体工作流

v20260423
clade-core-workflow-b
本技能指南深入讲解Anthropic的工具使用(函数调用)和智能体工作流。它指导用户如何使用JSON Schema定义工具,执行工具调用,并构建复杂的、循环式的智能体流程,从而实现高级的AI自动化应用和功能调用。
获取技能
60 次下载
概览

Anthropic Core Workflow B → Tool Use

Overview

This skill redirects to clade-embeddings-search which covers tool use (function calling), the agentic tool loop, and building Claude-powered agents.

Prerequisites

  • Completed clade-model-inference
  • Understanding of JSON Schema for tool definitions

Instructions

Step 1: Use claude-embeddings-search instead

This skill has been replaced. The secondary Anthropic workflow is tool use / function calling, covered in full by clade-embeddings-search.

Step 2: Key topics covered there

  • Defining tools with JSON Schema input schemas
  • Sending messages with tools attached
  • Executing tool calls and returning results
  • Building an agentic loop that runs until Claude stops calling tools
  • Error handling for tool use edge cases

Output

  • Redirected to clade-embeddings-search
  • Complete tool use patterns available there

Error Handling

Issue Solution
Skill not found Run clade-embeddings-search directly
Tool use errors See tool validation patterns in that skill

Examples

// Use claude-embeddings-search for the full tool use guide
const tools: Anthropic.Tool[] = [{
  name: 'get_weather',
  description: 'Get weather for a city',
  input_schema: {
    type: 'object',
    properties: { city: { type: 'string' } },
    required: ['city'],
  },
}];
const response = await client.messages.create({
  model: 'claude-sonnet-4-20250514',
  max_tokens: 1024,
  tools,
  messages: [{ role: 'user', content: "What's the weather in Paris?" }],
});

Resources

Next Steps

Run clade-embeddings-search for the complete tool use guide.

信息
Category 人工智能
Name clade-core-workflow-b
版本 v20260423
大小 2.14KB
更新时间 2026-04-28
语言