Skip to content

feat: 支持 OpenAI Responses API、Agent Node HITL 多轮交互及工具错误检测#227

Open
pcerypeng wants to merge 1 commit into
trpc-group:mainfrom
pcerypeng:main
Open

feat: 支持 OpenAI Responses API、Agent Node HITL 多轮交互及工具错误检测#227
pcerypeng wants to merge 1 commit into
trpc-group:mainfrom
pcerypeng:main

Conversation

@pcerypeng

Copy link
Copy Markdown
  • OpenAIModel 新增 use_responses_api 参数,使用 client.responses.create 替代 Chat Completions
  • 支持 responses_api_params 透传 store、reasoning、truncation 等待有参数
  • AgentNodeAction 支持 LongRunningEvent 中断并传播到父 Graph
  • 支持多轮 HITL 交互及服务重启后正确恢复
  • 新增 is_tool_execution_error() 函数,区分 Provider 参数解析错误和 HITL 检查点
  • 更新 Graph 和 Model 中英文文档
  • 升级 openai 最低版本依赖至 1.66.0

- OpenAIModel 新增 use_responses_api 参数,使用 client.responses.create 替代 Chat Completions
- 支持 responses_api_params 透传 store、reasoning、truncation 等待有参数
- AgentNodeAction 支持 LongRunningEvent 中断并传播到父 Graph
- 支持多轮 HITL 交互及服务重启后正确恢复
- 新增 is_tool_execution_error() 函数,区分 Provider 参数解析错误和 HITL 检查点
- 更新 Graph 和 Model 中英文文档
- 升级 openai 最低版本依赖至 1.66.0
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.70252% with 45 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@86781c7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
trpc_agent_sdk/models/_openai_model.py 88.00000% 36 Missing ⚠️
trpc_agent_sdk/agents/_llm_agent.py 79.16667% 5 Missing ⚠️
trpc_agent_sdk/dsl/graph/_node_action/_agent.py 96.20253% 3 Missing ⚠️
trpc_agent_sdk/tools/_long_running_tool.py 83.33333% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main        #227   +/-   ##
==========================================
  Coverage        ?   87.87212%           
==========================================
  Files           ?         482           
  Lines           ?       45416           
  Branches        ?           0           
==========================================
  Hits            ?       39908           
  Misses          ?        5508           
  Partials        ?           0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant