微信扫码
添加专属顾问
我要投稿
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+中大型企业
2025-10-30
Cursor 2.0的一些有趣的新特性
2025-10-30
Anthropic 发布最新研究:LLM 展现初步自省迹象
2025-10-30
让Agent系统更聪明之前,先让它能被信任
2025-10-30
Rag不行?谷歌DeepMind同款,文档阅读新助手:ReadAgent
2025-10-29
4大阶段,10个步骤,助你高效构建企业级智能体(Agent)
2025-10-29
DocReward:让智能体“写得更专业”的文档奖励模型
2025-10-29
沃尔沃RAG实战:企业级知识库,早就该放弃小分块策略
2025-10-29
大模型的Funcation Calling是什么?
2025-08-21
2025-08-21
2025-08-19
2025-09-16
2025-10-02
2025-09-08
2025-09-17
2025-08-19
2025-09-29
2025-08-20
2025-10-29
2025-10-29
2025-10-28
2025-10-28
2025-10-27
2025-10-26
2025-10-25
2025-10-23