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
User: I gave you a cookie.
Please respond in JSON format with your reply, mood, and intent:
{"reply": "Thank you for the cookie! It's delicious!", "mood": "Happy", "intent": "Express gratitude" }
API & Usage
No response
How to implement
No response
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: