微信扫码
添加专属顾问
我要投稿
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-03-12
大模型 Token 的消耗可能是一笔糊涂账
2025-03-12
一位投资人的硬核观察:被DeepSeek和Manus改写的AI投资范式
2025-03-12
从DeepSeek MoE专家负载均衡谈起
2025-03-12
Manus爆火的背后,Agentic AI产品如何构筑持久的竞争优势?
2025-03-12
老板格局不大,但编码能力不错的Claude 3.7正式发布
2025-03-12
一文让你彻底了解「AI互联互通的标准MCP」
2025-03-12
联网/用电脑... OpenAI 新 Agent 套件全解析(另附:发布会没说的 30+ 要点)
2025-03-12
OpenAI 重磅发布:全新 AI Agent构建工具,让 AI 应用开发更简单、更强大
2024-08-13
2024-06-13
2024-09-23
2024-08-21
2024-05-28
2024-07-31
2024-08-04
2024-04-26
2024-07-09
2024-09-17
2025-03-12
2025-03-12
2025-03-10
2025-03-10
2025-03-10
2025-03-10
2025-03-08
2025-03-08