Open m0nsky opened 5 months ago
Yes somewhat, that PR sparked my initial interest in developing the C# class -> GBNF converter. However, the JSON Schema functionality seems to be already implemented on main & server on the llama.cpp side by passing the -j
parameter, so it wouldn't make sense to reinvent the wheel.
As someone slowly working on my own C# agentic system and has been exploring using JSON to format communication with the LLM, getting access to the llama.cpp JSON and grammar tools through LLamaSharp would be really useful.👍
Background & Description
I was working on a C# class -> GBNF converter, and came across this:
https://github.com/ggerganov/llama.cpp/blob/master/grammars/README.md#json-schemas--gbnf
Here's an example, thanks to this reddit post.
Example JSON:
Example output:
API & Usage
No response
How to implement
No response