---
title: "服务器端工具"
description: "学习如何从 AI 代理调用服务器端工具。"
canonical_url: "https://tiptap.zhcndoc.com/content-ai/capabilities/agent/custom-llms/server-side-tools"
---

# 服务器端工具

学习如何从 AI 代理调用服务器端工具。

服务器端工具是在服务器上运行的工具。使用它们来与外部数据源交互。例如：

- 在网上搜索信息
- 查询数据库
- 调用外部 API

该指南有不同版本，取决于你使用的 AI 库。

- [Vercel AI SDK](https://tiptap.zhcndoc.com/content-ai/capabilities/agent/custom-llms/server-side-tools/vercel-ai-sdk.md)
- [OpenAI 聊天完成 API](https://tiptap.zhcndoc.com/content-ai/capabilities/agent/custom-llms/server-side-tools/openai-chat-completions.md)
- [OpenAI 响应 API](https://tiptap.zhcndoc.com/content-ai/capabilities/agent/custom-llms/server-side-tools/openai-responses.md)
- [Anthropic Claude 消息 API](https://tiptap.zhcndoc.com/content-ai/capabilities/agent/custom-llms/server-side-tools/anthropic-messages.md)
