-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
Is your feature request related to a problem? Please describe.
- Trying to name a function
getfails with
pdl.pdl_ast.PDLRuntimeError: Type error: ${utils.get} is of type <class 'builtin_function_or_method'> but should be a function.
- Accidentally indenting the
with:whenmatch:is empty, i.e.,
match:
with:
# ^^ <- wrong
- if: condition
then: result
- then: defaultfails with the vague exception:
['utils.pdl:0 - Missing required field: function', 'utils.pdl:0 - Missing required field: return', "utils.pdl:11 - {'temperature': '${temperature}', 'top_p': '${top_p}'} should be of type: {'anyOf': [{'$ref': '#/$defs/LocalizedExpression_TypeVar_'}... (truncated)
- Accidentally using the keyword
dictinstead ofobjectto describe an (optional) function parameter type fails with the same vague exception above.
Describe the solution you'd like
A clearer and more concise description of what went wrong.