Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03d4048

Browse files
committed
Rename and align Chinese documentation headings and formatting.
Simplified and standardized headings, formatting, and translations in the Chinese documentation for consistency. Removed redundant English titles and ensured clearer integration of descriptions and examples.
1 parent bd91702 commit 03d4048

File tree

1 file changed

+20
-36
lines changed

1 file changed

+20
-36
lines changed

docs/zh/index.md

Lines changed: 20 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,36 @@
1-
# OpenAI Agents SDK (OpenAI智能体SDK)
1+
# OpenAI智能体SDK
22

3-
The [OpenAI Agents SDK](https://github.com/openai/openai-agents-python) enables you to build agentic AI apps in a lightweight, easy-to-use package with very few abstractions. It's a production-ready upgrade of our previous experimentation for agents, [Swarm](https://github.com/openai/swarm/tree/main). The Agents SDK has a very small set of primitives:
4-
([OpenAI Agents SDK](https://github.com/openai/openai-agents-python)让你能够以轻量级、易用且抽象极少的方式构建智能AI应用。它是我们之前智能体实验项目[Swarm](https://github.com/openai/swarm/tree/main)的生产就绪升级版。该智能体SDK提供了一组非常精简的基础组件:)
3+
[OpenAI Agents SDK](https://github.com/openai/openai-agents-python)让你能够以轻量级、易用且抽象极少的方式构建智能AI应用。它是我们之前智能体实验项目[Swarm](https://github.com/openai/swarm/tree/main)的生产就绪升级版。该智能体SDK提供了一组非常精简的基础组件:
54

6-
- **Agents**, which are LLMs equipped with instructions and tools
7-
(**智能体**,即配备了指令和工具的大语言模型)
8-
- **Handoffs**, which allow agents to delegate to other agents for specific tasks
9-
(**交接**,允许智能体将特定任务委托给其他智能体)
10-
- **Guardrails**, which enable the inputs to agents to be validated
11-
(**防护栏**,用于验证智能体的输入)
5+
- **Agents**`智能体`即配备了指令和工具的大语言模型
6+
- **Handoffs**`交接`允许智能体将特定任务委托给其他智能体
7+
- **Guardrails**`防护栏`用于验证智能体的输入
128

13-
In combination with Python, these primitives are powerful enough to express complex relationships between tools and agents, and allow you to build real-world applications without a steep learning curve. In addition, the SDK comes with built-in **tracing** that lets you visualize and debug your agentic flows, as well as evaluate them and even fine-tune models for your application.
14-
(结合Python使用,这些基础组件足以表达工具和智能体之间的复杂关系,让你能够构建真实世界的应用而无需陡峭的学习曲线。此外,该SDK还内置了**追踪**功能,让你可以可视化和调试智能体流程,以及评估它们甚至为你的应用微调模型。)
9+
结合Python使用,这些基础组件足以表达工具和智能体之间的复杂关系,让你能够构建真实世界的应用而无需陡峭的学习曲线。此外,该SDK还内置了**追踪**功能,让你可以可视化和调试智能体流程,以及评估它们甚至为你的应用微调模型。
1510

16-
## Why use the Agents SDK (为什么使用智能体SDK)
11+
## 为什么使用智能体SDK
1712

18-
The SDK has two driving design principles:
19-
(该SDK有两个核心设计原则:)
13+
该SDK有两个核心设计原则:
2014

21-
1. Enough features to be worth using, but few enough primitives to make it quick to learn.
22-
(功能足够丰富值得使用,但基础组件足够少以便快速学习。)
23-
2. Works great out of the box, but you can customize exactly what happens.
24-
(开箱即用效果良好,但你可以精确自定义行为。)
15+
1. 功能足够丰富值得使用,但基础组件足够少以便快速学习。
16+
2. 开箱即用效果良好,但你可以精确自定义行为。
2517

26-
Here are the main features of the SDK:
27-
(以下是该SDK的主要功能:)
18+
以下是该SDK的主要功能:
2819

29-
- Agent loop: Built-in agent loop that handles calling tools, sending results to the LLM, and looping until the LLM is done.
30-
(智能体循环:内置的智能体循环,处理工具调用、将结果发送给大语言模型,并循环直到大语言模型完成。)
31-
- Python-first: Use built-in language features to orchestrate and chain agents, rather than needing to learn new abstractions.
32-
(Python优先:使用内置语言特性来编排和链式调用智能体,而无需学习新的抽象概念。)
33-
- Handoffs: A powerful feature to coordinate and delegate between multiple agents.
34-
(交接:在多个智能体之间协调和委托的强大功能。)
35-
- Guardrails: Run input validations and checks in parallel to your agents, breaking early if the checks fail.
36-
(防护栏:与智能体并行运行输入验证和检查,如果检查失败则提前终止。)
37-
- Function tools: Turn any Python function into a tool, with automatic schema generation and Pydantic-powered validation.
38-
(函数工具:将任何Python函数转换为工具,具有自动模式生成和Pydantic驱动的验证功能。)
39-
- Tracing: Built-in tracing that lets you visualize, debug and monitor your workflows, as well as use the OpenAI suite of evaluation, fine-tuning and distillation tools.
40-
(追踪:内置的追踪功能,让你可以可视化、调试和监控工作流,以及使用OpenAI的评估、微调和蒸馏工具套件。)
20+
- Agent loop: `智能体循环`内置的智能体循环,处理工具调用、将结果发送给大语言模型,并循环直到大语言模型完成。
21+
- Python-first: `Python优先`使用内置语言特性来编排和链式调用智能体,而无需学习新的抽象概念。
22+
- Handoffs: `交接`在多个智能体之间协调和委托的强大功能。
23+
- Guardrails: `防护栏`与智能体并行运行输入验证和检查,如果检查失败则提前终止。
24+
- Function tools: `函数工具`将任何Python函数转换为工具,具有自动模式生成和Pydantic驱动的验证功能。
25+
- Tracing: `追踪`内置的追踪功能,让你可以可视化、调试和监控工作流,以及使用OpenAI的评估、微调和蒸馏工具套件。
4126

42-
## Installation (安装)
27+
## 安装
4328

4429
```bash
4530
pip install openai-agents
4631
```
4732

48-
## Hello world example (Hello world示例)
33+
## Hello world示例
4934

5035
```python
5136
from agents import Agent, Runner
@@ -60,8 +45,7 @@ print(result.final_output)
6045
# Infinite loop's dance.
6146
```
6247

63-
(_If running this, ensure you set the `OPENAI_API_KEY` environment variable_)
64-
(运行此代码前,请确保设置了`OPENAI_API_KEY`环境变量)
48+
运行此代码前,请确保设置了`OPENAI_API_KEY`环境变量
6549

6650
```bash
6751
export OPENAI_API_KEY=sk-...

0 commit comments

Comments
 (0)