-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix MCPServer error handling with Temporal
#3299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ck to agent on tool failure
|
this actually just fails the workflow.. so no good. |
…ntrol back to agent on tool failure" This reverts commit 5843105.
| self.tool_for_tool_def(params.tool_def), | ||
| ) | ||
| return _ToolReturn(result=result) | ||
| except ApprovalRequired: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please move this logic and the types to TemporalWrapperToolset, so that both TemporalFunctionToolset and TemporalMCPServer can use them?
|
@DouweM I've made the changes.. I'm not sure why coverage is failing.. running it locally (which I might be doing wrong..) it seems like I have 100% coverage. I'm not actually sure where the tests for this file live either though.. |
|
unfortunately... now I'm getting this that doesn't seem expected either... |
|
well, maybe that is expected.. I get that when running the plain pydantic agent for this query as well. |
|
yeah that was just me holding it wrong. :) I think the PR is good, minus the failed coverage check that I'm not sure how to resolve. |
MCPServer error handling with Temporal
|
@wreed4 Thanks William, I made a couple of tweaks that should also resolve the coverage issue. |
fixes #3298