Skip to content

Unhelpful error message #71

@claudiosv

Description

@claudiosv

I had a simple PDL program containing only defs:

defs:

  # ... several other defs, ~85 lines
  get_current_weather:
    function:
      subject: str
    return:
      api: https
      url: https://api.weatherapi.com/v1/current.json?key=cf601276764642cb96224947230712&q=
      input: "{{ subject }}"
      show_result: false

Upon executing the error message is:

examples/prompt_library/tools.pdl:0 - Missing required field: function
examples/prompt_library/tools.pdl:0 - Missing required field: return

The problem is actually show_result: false which is not on line 0 and not clear from the missing field errors.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions