tghamm / Anthropic.SDK

An unofficial C#/.NET SDK for accessing the Anthropic Claude API
https://www.nuget.org/packages/Anthropic.SDK
MIT License
55 stars 10 forks source link

[question] about function calling #39

Closed sabbadino closed 1 month ago

sabbadino commented 2 months ago

Hi, I have raw JSON schema strings extracted from an open api doc .. Is it possible setup a function with a raw string ? Is it possible to get the raw JSON response (and function name) from the LLM ? Thanks

tghamm commented 1 month ago

Yes, take a look at the final example in the README, where a c# schema is serialized into a JSON string and then declared as a function, and then the raw response is read. There are similar examples in the unit tests.