微信扫码
添加专属顾问
我要投稿
OpenAI最新Agent工具发布,开发者的智能体构建利器! 核心内容: 1. OpenAI推出Agent SDK和Responses API,简化智能体开发 2. Responses API集成多种工具,提升开发效率 3. Agent SDK开源,支持多智能体workflow编排和行为追踪
刚刚OpenAI举行了一个19分钟的线上发布会,推出全新Agent工具,OpenAI直接祭出自研Agent SDK和Responses API两大杀器!旨在彻底简化agent开发流程,让开发者和企业都能轻松构建实用又可靠的智能体!
划重点:
Responses API就像一个超级胶水,把OpenAI强大的模型和各种实用工具无缝衔接
内置工具箱,开箱即用: 网页搜索、文件搜索、电脑控制三大工具直接集成,无需额外开发!
* 网页搜索: 基于ChatGPT同款搜索引擎,准确率高达90%!信息溯源、引用标注一步到位
* 文件搜索: 支持多种文件格式,快速检索海量文档,企业知识库的福音!价格还很亲民,首GB存储免费!
* 电脑控制: 让agent直接操作电脑!网页自动化、数据录入不在话下
代码示例抢先看 (JavaScript):
// 网页搜索示例
const response = await openai.responses.create({
model: "gpt-4o",
tools: [ { type: "web_search_preview" } ],
input: "今天发生了什么积极的新闻?"
});
console.log(response.output_text);
// 文件搜索示例
const productDocs = await openai.vectorStores.create({
name: "产品文档",
file_ids: [file1.id, file2.id, file3.id],
});
const response = await openai.responses.create({
model: "gpt-4o-mini",
tools: [{
type: "file_search",
vector_store_ids: [productDocs.id],
}],
input: "OpenAI的深度研究是什么?"
});
console.log(response.output_text);
// 电脑控制示例
const response = await openai.responses.create({
model: "computer-use-preview",
tools: [{
type: "computer_use_preview",
display_width: 1024,
display_height: 768,
environment: "browser",
}],
truncation: "auto",
input: "我想买个新相机,帮我找到最好的。",
});
console.log(response.output);如果你想构建更复杂的agent系统,Agents SDK绝对是你的不二之选!它让多智能体workflow的编排变得前所未有的简单
代码示例抢先看 (Python):
from openai_agent import Agent, function_tool
@function_tool
defsubmit_refund_request(refund_amount: float, reason: str):
"""提交退款申请"""
print(f"提交退款申请,金额:{refund_amount},原因:{reason}")
return {"success": True}
# 定义Agent
shopping_agent = Agent(
name="Shopping Assistant",
instructions="你是一个购物助手,可以搜索网络商品信息。",
tools=[WebSearchTool()],
)
triage_agent = Agent(
name="Triage Agent",
instructions="引导用户到正确的客服 Agent。",
)
support_agent = Agent(
name="Support Agent",
instructions="你是一个客服 Agent,可以提交退款。",
tools=[submit_refund_request],
)53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2026-02-06
OpenAI 推桌面版 CodeX,多智能体并行,硬刚 Claude Code!
2026-02-06
国产最强 AI 进军终端!Kimi Code CLI 正式发布,让你的命令行直接起飞
2026-02-06
AI记忆正成为新操作系统:检索已过时,生成式记忆才是未来
2026-02-06
简单就是美!Claude Code Ralph循环机制详解
2026-02-06
OpenAI 发布 GPT-5.3-Codex,一文详解
2026-02-06
火拼升级!OpenAI、Anthropic同日发布新模型,一个能替你写代码,一个能替公司管流程
2026-02-06
Claude Code最佳实践
2026-02-06
Claude Agent SDK 构建 AI Agent 实践:服务端向 Claude Agent SDK 注入环境变量的实践
2026-01-24
2026-01-10
2025-11-19
2025-11-13
2026-01-26
2026-01-01
2025-12-09
2025-11-12
2026-01-09
2025-12-21
2026-02-04
2026-02-03
2026-02-03
2026-02-02
2026-02-02
2026-02-02
2026-01-31
2026-01-30