> For the complete documentation index, see [llms.txt](https://yeasy.gitbook.io/prompt_engineering_guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yeasy.gitbook.io/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/08_react_tools.md).

# 第八章 ReAct 与工具使用

进入高级应用篇的第一章，我们将探索如何让大语言模型不仅进行推理，还能与外部世界交互。ReAct（Reasoning and Acting）框架将推理与行动相结合，使模型能够调用外部工具、查询数据库、执行代码，从而大大扩展其能力边界。

在实际应用中，语言模型仅依靠预训练知识往往不够——信息可能过时、计算可能不精确、访问权限可能受限。通过工具使用，模型可以获取实时信息、执行精确计算、操作外部系统，成为真正的“智能助手”。

本章将介绍 ReAct 框架的原理、函数调用的实现方法，以及如何设计支持工具使用的智能体系统。

***

## 本章目标

* 理解本章核心概念与适用场景
* 掌握可复用的提示词/工作流模式
* 能将方法迁移到自己的任务中

## 先修知识

* 建议先阅读上一章或同等基础内容
* 如涉及代码示例，具备基本编程与 API 调用常识

## 本章内容

* [8.1 ReAct 框架：推理与行动的结合](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/08_react_tools/8.1_react_framework.md)
* [8.2 函数调用与工具集成](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/08_react_tools/8.2_function_calling.md)
* [8.3 外部知识源的接入](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/08_react_tools/8.3_external_knowledge.md)
* [8.4 智能体系统的提示词设计](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/08_react_tools/8.4_agent_prompts.md)
* [8.5 本章实战练习](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/08_react_tools/8.5_practice.md)
* [本章小结](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/08_react_tools/summary.md)
