You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when working in https://github.com/jrieken/v8-inspect-profiler. This is not a Python project, has no Python files, and I didn't do anything to set up a Python environment. I would expect Python tools are not added to the agent in this case.
But the tool shouldn't have been present at all for my project which has no Python and nothing to do with Python, right? Tool limits are a thing and having more tools, even if unused, degrades the model's tool calling accuracy--as seen here.
Tool limits are a thing and having more tools, even if unused, degrades the model's tool calling accuracy--as seen here.
I don't think we have a way to dynamically include tools without activating the extension.
I.e. if we had a when clause then what code will update the context variables.
If you think this is definitely possible please do share some information.
Also from what I recall having when clauses in tools doesn't work well, we did try this for notebook in the past and it didn't work.
& the plan was to only include/exclude tools via code. roblourens might have more thoughts on this.
Activity
DonJayamanne commentedon Aug 6, 2025
I think the root case here is the fact taht Python extension has been activated in this workspace and thus contributes tools.
karthiknadig commentedon Aug 6, 2025
Can you share extension host logs? It should show why the extension activated.
connor4312 commentedon Aug 6, 2025
The activation reason is
onLanguageModelTool:install_python_packagesDonJayamanne commentedon Aug 6, 2025
Model doing the wrong thing here,
I would have thought the name if the tool was a good enough clue as to what it’s for
Not sure what we can do here, apart from improving tool descriptions
DonJayamanne commentedon Aug 6, 2025
What model are you using?
connor4312 commentedon Aug 6, 2025
But the tool shouldn't have been present at all for my project which has no Python and nothing to do with Python, right? Tool limits are a thing and having more tools, even if unused, degrades the model's tool calling accuracy--as seen here.
This was with GPT-4.1
DonJayamanne commentedon Aug 6, 2025
I don't think we have a way to dynamically include tools without activating the extension.
I.e. if we had a when clause then what code will update the context variables.
If you think this is definitely possible please do share some information.
Also from what I recall having when clauses in tools doesn't work well, we did try this for notebook in the past and it didn't work.
& the plan was to only include/exclude tools via code.
roblourens might have more thoughts on this.
connor4312 commentedon Aug 6, 2025
Tools do support
whenclauses. If you run into problems with it please open an issue so we can get it fixed.Add conditional for Python agent tools (microsoft#25677)