Skip to content

Commit c0be217

Browse files
Merge pull request anthropics#198 from anthropics/zh/naming-updates
Rename Anthropic references to Claude for consistency
2 parents b01dea7 + 4146b91 commit c0be217

File tree

65 files changed

+3614
-3806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+3614
-3806
lines changed

.claude/commands/model-check.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Validate Claude model usage against current public models
66
Review the changed files for Claude model usage.
77

88
First, fetch the current list of allowed models from:
9-
https://docs.anthropic.com/en/docs/about-claude/models/overview.md
9+
https://docs.claude.com/en/docs/about-claude/models/overview.md
1010

1111
Then check:
1212
1. All model references are from the current public models list

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Anthropic API Configuration
1+
# Claude API Configuration
22
# Copy this file to .env and add your API key
33
# Get your API key at: https://console.anthropic.com/settings/keys
44

.github/workflows/notebook-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
github.event.pull_request.author_association == 'MEMBER' ||
8989
github.event.pull_request.author_association == 'OWNER'
9090
env:
91-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
91+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
9292
run: |
9393
mkdir -p test_outputs
9494
for notebook in $(find . -name "*.ipynb" -not -path "*/.*" -not -path "*/test_outputs/*"); do

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to Anthropic Cookbook
1+
# Contributing to Claude Cookbook
22

3-
Thank you for your interest in contributing to the Anthropic Cookbook! This guide will help you get started with development and ensure your contributions meet our quality standards.
3+
Thank you for your interest in contributing to the Claude Cookbook! This guide will help you get started with development and ensure your contributions meet our quality standards.
44

55
## Development Setup
66

@@ -45,7 +45,7 @@ Thank you for your interest in contributing to the Anthropic Cookbook! This guid
4545
5. **Set up your API key**:
4646
```bash
4747
cp .env.example .env
48-
# Edit .env and add your Anthropic API key
48+
# Edit .env and add your Claude API key
4949
```
5050

5151
## Quality Standards
@@ -118,7 +118,7 @@ If a hook fails, fix the issues and try committing again.
118118

119119
2. **Use current Claude models**:
120120
- Use model aliases (e.g., `claude-3-5-haiku-latest`) for better maintainability
121-
- Check current models at: https://docs.anthropic.com/en/docs/about-claude/models/overview
121+
- Check current models at: https://docs.claude.com/en/docs/about-claude/models/overview
122122
- Claude will automatically validate model usage in PR reviews
123123

124124
3. **Keep notebooks focused**:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# Anthropic Cookbook
1+
# Claude Cookbook
22

3-
The Anthropic Cookbook provides code and guides designed to help developers build with Claude, offering copy-able code snippets that you can easily integrate into your own projects.
3+
The Claude Cookbook provides code and guides designed to help developers build with Claude, offering copy-able code snippets that you can easily integrate into your own projects.
44

55
## Prerequisites
66

7-
To make the most of the examples in this cookbook, you'll need an Anthropic API key (sign up for free [here](https://www.anthropic.com)).
7+
To make the most of the examples in this cookbook, you'll need an Claude API key (sign up for free [here](https://www.anthropic.com)).
88

9-
While the code examples are primarily written in Python, the concepts can be adapted to any programming language that supports interaction with the Anthropic API.
9+
While the code examples are primarily written in Python, the concepts can be adapted to any programming language that supports interaction with the Claude API.
1010

11-
If you're new to working with the Anthropic API, we recommend starting with our [Anthropic API Fundamentals course](https://github.com/anthropics/courses/tree/master/anthropic_api_fundamentals) to get a solid foundation.
11+
If you're new to working with the Claude API, we recommend starting with our [Claude API Fundamentals course](https://github.com/anthropics/courses/tree/master/anthropic_api_fundamentals) to get a solid foundation.
1212

1313
## Explore Further
1414

1515
Looking for more resources to enhance your experience with Claude and AI assistants? Check out these helpful links:
1616

17-
- [Anthropic developer documentation](https://docs.anthropic.com/claude/docs/guide-to-anthropics-prompt-engineering-resources)
17+
- [Anthropic developer documentation](https://docs.claude.com/claude/docs/guide-to-anthropics-prompt-engineering-resources)
1818
- [Anthropic support docs](https://support.anthropic.com)
1919
- [Anthropic Discord community](https://www.anthropic.com/discord)
2020

2121
## Contributing
2222

23-
The Anthropic Cookbook thrives on the contributions of the developer community. We value your input, whether it's submitting an idea, fixing a typo, adding a new guide, or improving an existing one. By contributing, you help make this resource even more valuable for everyone.
23+
The Claude Cookbook thrives on the contributions of the developer community. We value your input, whether it's submitting an idea, fixing a typo, adding a new guide, or improving an existing one. By contributing, you help make this resource even more valuable for everyone.
2424

2525
To avoid duplication of efforts, please review the existing issues and pull requests before contributing.
2626

claude_code_sdk/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Create a token at: https://github.com/settings/tokens
44
GITHUB_TOKEN="your-github-personal-access-token-here"
55

6-
# Anthropic API Key
6+
# Claude API Key
77
# Required for using Claude SDK
88
# Get your key at: https://console.anthropic.com/settings/keys
99
ANTHROPIC_API_KEY="sk-ant-api03-your-api-key-here"

claude_code_sdk/00_The_one_liner_research_agent.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
"\n",
4242
"Instead, a research agent requires the flexibility to explore unexpected leads and change direction based on what it finds. In its simplest form, a research agent can be an agent that simply searches the internet and summarizes it for you. \n",
4343
"\n",
44-
"Below, we'll implement a basic research agent with just a few lines of code. We provide Claude with exactly one tool which the Claude Code SDK contains straight out of the box: [web search tool](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/web-search-tool). \n",
44+
"Below, we'll implement a basic research agent with just a few lines of code. We provide Claude with exactly one tool which the Claude Code SDK contains straight out of the box: [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool). \n",
4545
"\n",
46-
"> Check [here](https://docs.anthropic.com/en/docs/claude-code/settings#tools-available-to-claude) for a list of Claude Code's readily available tools"
46+
"> Check [here](https://docs.claude.com/en/docs/claude-code/settings#tools-available-to-claude) for a list of Claude Code's readily available tools"
4747
]
4848
},
4949
{
@@ -120,7 +120,7 @@
120120
"\n",
121121
"So far, we have laid out a very simple (maybe naive) implementation to illustrate how you can start leveraging the SDK to build a research agent. However, there are various ways we can improve our agent to turn it production ready. Let's cover a few of them:\n",
122122
"\n",
123-
"1. Notice how before we only sent one query? In many systems, a human will look at the output of the system, potentially assigning a follow up task. Just like text completions, if we want to send multiple queries to the agent (e.g., 1. analyze abc, 2. make xyz based on your analysis) we would have to copy over the entire analysis context in our second query. Instead, we can **[use the ClaudeSDKClient](https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-python#1-the-claudesdkclient-class-recommended)** to maintain the conversation context for us.\n",
123+
"1. Notice how before we only sent one query? In many systems, a human will look at the output of the system, potentially assigning a follow up task. Just like text completions, if we want to send multiple queries to the agent (e.g., 1. analyze abc, 2. make xyz based on your analysis) we would have to copy over the entire analysis context in our second query. Instead, we can **[use the ClaudeSDKClient](https://docs.claude.com/en/docs/claude-code/sdk/sdk-python#1-the-claudesdkclient-class-recommended)** to maintain the conversation context for us.\n",
124124
"\n",
125125
"2. Another great way of steering the system is **providing a system prompt**, akin to a system prompt used for text completions. To learn how to write a good system prompt for a research agent, we recommend looking [here](https://github.com/anthropics/anthropic-cookbook/tree/main/patterns/agents/prompts).\n",
126126
"\n",

claude_code_sdk/02_The_observability_agent.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"cell_type": "markdown",
2929
"id": "08cc95b6",
3030
"metadata": {},
31-
"source": "In the previous notebooks we have built a basic research agent and a Chief of Staff multi-agent framework. While the agents we have built are already powerful, they were still limited in what they could do: the web search agent is limited to searching the internet and our Chief of Staff agent was limited to interacting with its own filesystem.\n\nThis is a serious constraint: real-world agents often need to interact with other systems like databases, APIs, file systems, and other specialized services. [MCP (Model Context Protocol)](https://modelcontextprotocol.io/docs/getting-started/intro) is an open-source standard for AI-tool integrations that allows for an easy connection between our agents and these external systems. In this notebook, we will explore how to connect MCP servers to our agent.\n\n**Need more details on MCP?** For comprehensive setup instructions, configuration best practices, and troubleshooting tips, see the [Claude Code MCP documentation](https://docs.anthropic.com/en/docs/claude-code/mcp)."
31+
"source": "In the previous notebooks we have built a basic research agent and a Chief of Staff multi-agent framework. While the agents we have built are already powerful, they were still limited in what they could do: the web search agent is limited to searching the internet and our Chief of Staff agent was limited to interacting with its own filesystem.\n\nThis is a serious constraint: real-world agents often need to interact with other systems like databases, APIs, file systems, and other specialized services. [MCP (Model Context Protocol)](https://modelcontextprotocol.io/docs/getting-started/intro) is an open-source standard for AI-tool integrations that allows for an easy connection between our agents and these external systems. In this notebook, we will explore how to connect MCP servers to our agent.\n\n**Need more details on MCP?** For comprehensive setup instructions, configuration best practices, and troubleshooting tips, see the [Claude Code MCP documentation](https://docs.claude.com/en/docs/claude-code/mcp)."
3232
},
3333
{
3434
"cell_type": "markdown",

claude_code_sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ A tutorial series demonstrating how to build sophisticated general-purpose agent
2222

2323
```uv run python -m ipykernel install --user --name="cc-sdk-tutorial" --display-name "Python (cc-sdk-tutorial)" ```
2424

25-
#### 4. Anthropic API Key
25+
#### 4. Claude API Key
2626
1. Visit [console.anthropic.com](https://console.anthropic.com/dashboard)
2727
2. Sign up or log in to your account
2828
3. Click on "Get API keys"

extended_thinking/extended_thinking.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"\n",
1717
"This notebook demonstrates how to use Claude 3.7 Sonnet's extended thinking feature with various examples and edge cases.\n",
1818
"\n",
19-
"Extended thinking gives Claude 3.7 Sonnet enhanced reasoning capabilities for complex tasks, while also providing transparency into its step-by-step thought process before it delivers its final answer. When extended thinking is turned on, Claude creates `thinking` content blocks where it outputs its internal reasoning. Claude incorporates insights from this reasoning before crafting a final response. For more information on extended thinking, see our [documentation](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking)."
19+
"Extended thinking gives Claude 3.7 Sonnet enhanced reasoning capabilities for complex tasks, while also providing transparency into its step-by-step thought process before it delivers its final answer. When extended thinking is turned on, Claude creates `thinking` content blocks where it outputs its internal reasoning. Claude incorporates insights from this reasoning before crafting a final response. For more information on extended thinking, see our [documentation](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)."
2020
]
2121
},
2222
{
@@ -561,7 +561,7 @@
561561
"\n",
562562
"Error with too small thinking budget: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'thinking.enabled.budget_tokens: Input should be greater than or equal to 1024'}}\n",
563563
"\n",
564-
"Error with temperature and thinking: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': '`temperature` may only be set to 1 when thinking is enabled. Please consult our documentation at https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking#important-considerations-when-using-extended-thinking'}}\n",
564+
"Error with temperature and thinking: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': '`temperature` may only be set to 1 when thinking is enabled. Please consult our documentation at https://docs.claude.com/en/docs/build-with-claude/extended-thinking#important-considerations-when-using-extended-thinking'}}\n",
565565
"\n",
566566
"Error from exceeding context window: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'prompt is too long: 214315 tokens > 204798 maximum'}}\n"
567567
]

0 commit comments

Comments
 (0)