-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Adds meta parameter and method for LLM hidden info #1376
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
base: main
Are you sure you want to change the base?
Adds meta parameter and method for LLM hidden info #1376
Conversation
@dsp-ant, @LucaButBoring Request you to review this very small change this is my first contribution just exploring the repo as of now. |
src/mcp/client/session.py
Outdated
@@ -271,17 +271,22 @@ async def call_tool( | |||
self, | |||
name: str, | |||
arguments: dict[str, Any] | None = None, | |||
meta: dict[str, Any] | None = None, |
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.
Move this to the end for backwards-compatibility — we should have probably added a , *,
before, but I'll leave that up to a maintainer to decide if we should start doing that or not (it would also be a breaking change if we started doing that now).
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.
Done, except the second thing would wait on that for the same
…28/python-sdk into ishan121028/issue-1224
LGTM after changes (I do not have merge permissions, however) |
This is a fix for the bug 1224 and implements the parameter and method for the metadata that is passed for cases when the info is to be hidden from LLMs.
Motivation and Context
1224
How Has This Been Tested?
Yes I have tested with
Breaking Changes
Types of changes
Checklist
Additional context