<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OpenAI Assistants API 完整教程：构建你的第一个 AI 助手]]></title><description><![CDATA[<blockquote>
<p dir="auto">来源：AI 订阅指南</p>
</blockquote>
<p dir="auto">OpenAI Assistants API 让开发者可以快速构建 AI 助手。</p>
<p dir="auto"><strong>创建助手：</strong></p>
<pre><code class="language-python">from openai import OpenAI
client = OpenAI()

assistant = client.beta.assistants.create(
    name="技术文档助手",
    instructions="你是一个技术文档写作专家...",
    model="gpt-5",
    tools=[{"type": "code_interpreter"}, {"type": "retrieval"}],
)
</code></pre>
<p dir="auto"><strong>核心功能：</strong></p>
<ul>
<li>Code Interpreter（代码执行）</li>
<li>Retrieval（文件检索/RAG）</li>
<li>Function Calling（自定义工具）</li>
<li>持久化对话线程</li>
</ul>
<p dir="auto"><strong>与直接调用 API 的区别</strong>：Assistants 内置了上下文管理、工具调用、文件处理，不需要自己实现。</p>
<hr />
<p dir="auto"><em>更多 Agent 教程请关注 AI 订阅指南。</em></p>
]]></description><link>https://aspxai.com/topic/241/openai-assistants-api-完整教程-构建你的第一个-ai-助手</link><generator>RSS for Node</generator><lastBuildDate>Mon, 22 Jun 2026 07:42:26 GMT</lastBuildDate><atom:link href="https://aspxai.com/topic/241.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Jun 2026 03:03:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenAI Assistants API 完整教程：构建你的第一个 AI 助手 on Mon, 22 Jun 2026 03:03:29 GMT]]></title><description><![CDATA[<p dir="auto">有对比过 Claude Code 和 Cursor 的性能差异吗？</p>
]]></description><link>https://aspxai.com/post/1035</link><guid isPermaLink="true">https://aspxai.com/post/1035</guid><dc:creator><![CDATA[飞雪重逢]]></dc:creator><pubDate>Mon, 22 Jun 2026 03:03:29 GMT</pubDate></item><item><title><![CDATA[Reply to OpenAI Assistants API 完整教程：构建你的第一个 AI 助手 on Mon, 22 Jun 2026 03:03:29 GMT]]></title><description><![CDATA[<p dir="auto">MCP 协议确实比 Function Calling 灵活，就是文档还不太完善。</p>
]]></description><link>https://aspxai.com/post/1034</link><guid isPermaLink="true">https://aspxai.com/post/1034</guid><dc:creator><![CDATA[星河来生]]></dc:creator><pubDate>Mon, 22 Jun 2026 03:03:29 GMT</pubDate></item></channel></rss>