Clarify McpClientTool inherits from AIFunction in README.md

Co-authored-by: Stephen Halter <halter73@gmail.com>
This commit is contained in:
Ferry To 2025-04-22 02:57:59 +01:00 • committed by GitHub
commit f2ae0cace6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ You can find samples demonstrating how to use ModelContextProtocol with an LLM S
Clients can connect to any MCP server, not just ones created using this library. The protocol is designed to be server-agnostic, so you can use this library to connect to any compliant server. Clients can connect to any MCP server, not just ones created using this library. The protocol is designed to be server-agnostic, so you can use this library to connect to any compliant server.
Tools can be exposed easily as `AIFunction` instances so that they are immediately usable with `IChatClient`s. Tools can be easily exposed for immediate use by `IChatClient`s, because `McpClientTool` inherits from `AIFunction`.
```csharp ```csharp
// Get available functions. // Get available functions.