mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-09 13:48:05 -05:00
re-add accidentally deleted file
This commit is contained in:
29
custom_components/llama_conversation/output.gbnf
Normal file
29
custom_components/llama_conversation/output.gbnf
Normal file
@@ -0,0 +1,29 @@
|
||||
root ::= (tosay "\n")+ functioncalls?
|
||||
|
||||
tosay ::= [0-9a-zA-Z #%.?!]*
|
||||
functioncalls ::=
|
||||
"```homeassistant\n" (object ws)* "```"
|
||||
|
||||
value ::= object | array | string | number | ("true" | "false" | "null") ws
|
||||
object ::=
|
||||
"{" ws (
|
||||
string ":" ws value
|
||||
("," ws string ":" ws value)*
|
||||
)? "}" ws
|
||||
|
||||
array ::=
|
||||
"[" ws (
|
||||
value
|
||||
("," ws value)*
|
||||
)? "]" ws
|
||||
|
||||
string ::=
|
||||
"\"" (
|
||||
[^"\\] |
|
||||
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
|
||||
)* "\"" ws
|
||||
|
||||
number ::= ("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)? ws
|
||||
|
||||
# Optional space: by convention, applied in this grammar after literal chars when allowed
|
||||
ws ::= ([ \t\n] ws)?
|
||||
Reference in New Issue
Block a user