-
Notifications
You must be signed in to change notification settings - Fork 764
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
Microsoft.Extensions.AI has no documentation nor Sample for Tool Usage #5739
Comments
No doubt samples and docs can be improved, but you can see tool use examples in the package readme: in the eshop sample: in the dotnet/Ai-samples, eg in the eShopSupport sample, eg etc. In short, set ChatOptions.Tools to the collection of tools you want advertised to the llm. And if you want them automatically invoked by the client when they're requested, add that support to the IChatClient, typically via UseFunctionInvocation. |
cc: @LadyNaggaga |
The problem is that this is so undiscoverable that even with Copilot doing web searches, it still can't find it, and if it can't find it, no one else will either. It also doesn't talk about Async, or any instructions on how to get good results from the tools (like meta data for parameters, DescriptionAttribute, JsonSchema) so one is left to stumble around in the dark. All of the documentation should be in the .net documentation like everything else too. |
Thanks for the feedback on this, @JohnGalt1717. We're still in preview milestones and we will have documentation integrated as you recommended when we approach a stable release. Thanks for the details on what you expected to find. |
Do you want to keep this open to track or should I close? |
We'll leave it open for now until we have a broader docs issue in place that incorporates your specific scenario. Thanks! |
Description
IChatClient clearly supports tool usage, but there's no documentation that I can find anywhere (I can't find real documentation for Microsoft.Extensions.AI, only the announcement) on this topic, and Copilot and Github Copilot are also clueless on how to use tools properly.
Reproduction Steps
Try and use tools with Microsoft.Extensions.AI.
Expected behavior
There should be a proper documentation page, the announcement should reference it, the nuget package should have that as the package home, and the documentation section should have explicit instructions on how to use tools.
Actual behavior
None of that is available.
Regression?
No response
Known Workarounds
🤷
Configuration
.net 9,
Other information
...
The text was updated successfully, but these errors were encountered: