Replies: 1 comment
-
@eloycoto This would be great! When you make the change to the AST (src/pdl/pdl_ast.pdl), you can run the following command to regenerate the PDL schema:
Also follow instructions that are here to update the Live Viewer: Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working with functions in PDL, there is a small disadvantage: you need to declare the function twice to use it. Once for PDL consumption, and another time to attach it to the tools section in the LLM call.
I was thinking of adding a new parser that takes advantage of:
prompt-declaration-language/src/pdl/pdl_schema_utils.py
Lines 32 to 76 in ad048b8
This way, the PDL script could look like this:
Here, you define the jsonschema, and tools can be defined in an array using a for loop with all available PDL functions. The PDL script will be easier to read and feel more natural.
A small change to the PDL schema is needed, such as adding descriptions for arguments and functions, so it might be more complicated than it initially seems due to changes in the schema.
Beta Was this translation helpful? Give feedback.
All reactions