技能 人工智能 Anthropic核心消息API工作流

Anthropic核心消息API工作流

v20260423
clade-core-workflow-a
本技能是Anthropic消息API的综合工作流指南,全面涵盖了与Claude模型交互的各种高级功能。包括流式响应、多模态视觉输入、使用系统提示进行结构化JSON输出,以及处理多轮对话等所有最新的API模式,是开发者集成Anthropic模型的首选入口。
获取技能
158 次下载
概览

Anthropic Core Workflow A → Model Inference

Overview

This skill redirects to clade-model-inference which covers streaming, vision, structured output, and all Messages API patterns.

Prerequisites

  • Completed clade-install-auth setup
  • ANTHROPIC_API_KEY configured

Instructions

Step 1: Use claude-model-inference instead

This skill has been replaced. The primary Anthropic workflow is the Messages API, covered in full by clade-model-inference.

Step 2: Key topics covered there

  • Streaming responses with client.messages.stream()
  • Vision — sending images to Claude
  • Structured JSON output via system prompts
  • Multi-turn conversations
  • All Messages API parameters

Output

  • Redirected to clade-model-inference
  • All Messages API patterns available there

Error Handling

Issue Solution
Skill not found Run clade-model-inference directly

Examples

// Use claude-model-inference for the full Messages API guide
import Anthropic from '@claude-ai/sdk';
const client = new Anthropic();
const stream = client.messages.stream({
  model: 'claude-sonnet-4-20250514',
  max_tokens: 1024,
  messages: [{ role: 'user', content: 'Hello!' }],
});

Resources

Next Steps

Run clade-model-inference for the complete guide.

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