8.6 平台级产品:平台接口与工具使用
8.6.1 托管式智能体接口(形态)
client = PlatformClient()
agent = client.create_agent(instructions="...", tools=["code_exec", "file_search"])
thread = client.create_thread()
client.add_message(thread, role="user", content="分析上传的数据")
run = client.run_agent(thread, agent)
result = client.wait(run)
print(result.output_text)8.6.2 直接工具调用接口(形态)
8.6.3 平台对比
能力对比
特性
托管式接口
直接工具调用接口
选型建议
8.6.4 小结
形态
核心优势
适用团队
Last updated
