Download nodes/planner/grammar.gf from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/nodes/planner/grammar.gf
- Command line
-
hf download hf://datasets/tailot/codex-python/nodes/planner/grammar.gf
-
curl -L -o grammar.gf https://huggingface.co/datasets/tailot/codex-python/resolve/main/nodes/planner/grammar.gf
758 Bytes
| -- Node planner (to retriever): fixes the Python task order and required gates. | |
| -- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment. | |
| abstract PythonPlan = { | |
| cat | |
| Plan ; Tasks ; Task ; Gate ; Gates ; | |
| fun | |
| Schedule : Tasks -> Gates -> Plan ; | |
| Start : Task -> Tasks ; | |
| Then : Task -> Tasks -> Tasks ; | |
| GateNamed : String -> Gate ; | |
| Required : Gate -> Gates ; | |
| Demand : Gate -> Gates -> Gates ; | |
| } | |
| concrete PythonPlanEng of PythonPlan = { | |
| lincat | |
| Plan, Tasks, Task, Gate, Gates = Str ; | |
| lin | |
| Schedule ts gs = "plan" ++ ts ++ "gates" ++ gs ; | |
| Start t = t ; | |
| Then t ts = t ++ "then" ++ ts ; | |
| GateNamed s = s.s ; | |
| Required g = g ; | |
| Demand g gs = g ++ "and" ++ gs ; | |
| } | |