Skip to content

feat(tools): support GraphAgent in AgentTool#69

Merged
raychen911 merged 1 commit into
trpc-group:mainfrom
mjn96:feat/agent-tool-support-graph-agent
May 21, 2026
Merged

feat(tools): support GraphAgent in AgentTool#69
raychen911 merged 1 commit into
trpc-group:mainfrom
mjn96:feat/agent-tool-support-graph-agent

Conversation

@mjn96
Copy link
Copy Markdown
Contributor

@mjn96 mjn96 commented May 20, 2026

Add GraphAgent support in AgentTool._run_async_impl so that when the wrapped agent is a GraphAgent, the tool result is retrieved from tool_context.state using STATE_KEY_LAST_RESPONSE.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@dde5f18). Learn more about missing BASE report.

Files with missing lines Patch % Lines
trpc_agent_sdk/tools/_agent_tool.py 66.66667% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main         #69   +/-   ##
==========================================
  Coverage        ?   87.31930%           
==========================================
  Files           ?         413           
  Lines           ?       40053           
  Branches        ?           0           
==========================================
  Hits            ?       34974           
  Misses          ?        5079           
  Partials        ?           0           

☔ View full report in Codecov by Sentry.
📢 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.

Add GraphAgent support in _run_async_impl so that when the wrapped
agent is a GraphAgent, the tool result is retrieved from
tool_context.state using STATE_KEY_LAST_RESPONSE.
@mjn96 mjn96 force-pushed the feat/agent-tool-support-graph-agent branch from 7e8be8d to 966f877 Compare May 20, 2026 09:55
@mjn96
Copy link
Copy Markdown
Contributor Author

mjn96 commented May 20, 2026

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

Rook1ex added a commit to trpc-group/cla-database that referenced this pull request May 20, 2026
@raychen911 raychen911 merged commit 146c8b3 into trpc-group:main May 21, 2026
6 of 7 checks passed
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.

2 participants