支持 OpenAI Responses API 及 Agent Node HITL 交互#226
Conversation
- 新增 use_responses_api 参数,使用 client.responses.create 替代 Chat Completions - 支持 responses_api_params 透传 store、reasoning、truncation 等待有参数 - 新增 _convert_messages_to_responses_input 实现消息格式转换 - 新增 _create_responses_response 解析 Responses API 返回结果 - 支持流式 reasoning、文本和 tool call 增量 - 升级 openai 最低版本依赖至 1.66.0
- AgentNodeAction 支持 LongRunningEvent 中断并传播到父 Graph - 支持多轮 HITL 交互及服务重启后正确恢复 - 新增 _trpc_agent_node_hitl 标记区分 HITL 中断与其他中断 - 更新 Graph 中英文文档
- 新增 is_tool_execution_error() 函数,区分 Provider 参数解析错误和 HITL 检查点 - LongRunningFunctionTool 集成错误检测,避免错误的工具响应被误判为 HITL 恢复 - is_tool_execution_error 添加到公开 API
AI Code Review我已经掌握了足够的信息。现在我来整理审查报告。 发现的问题🚨 Critical(无)
|
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA pcerypeng seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #226 +/- ##
==========================================
Coverage ? 87.92616%
==========================================
Files ? 479
Lines ? 45230
Branches ? 0
==========================================
Hits ? 39769
Misses ? 5461
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
OpenAIModel 支持 OpenAI Responses API(use_responses_api 可选参数)
Agent Node 支持 HITL 多轮人机交互(LongRunningEvent 中断传播 + 恢复)
新增 is_tool_execution_error() 工具执行错误检测能力