You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: docs/zh/index.md
+20-36Lines changed: 20 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -1,51 +1,36 @@
1
-
# OpenAI Agents SDK (OpenAI智能体SDK)
1
+
# OpenAI智能体SDK
2
2
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:
-**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**,`防护栏`用于验证智能体的输入
12
8
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.
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. 开箱即用效果良好,但你可以精确自定义行为。
25
17
26
-
Here are the main features of the SDK:
27
-
(以下是该SDK的主要功能:)
18
+
以下是该SDK的主要功能:
28
19
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.
0 commit comments