Download Latest Version Version 0.7.1 source code.tar.gz (4.8 MB)
Email in envelope

Get an email when there's a new version of Prompt Declaration Language

Home / v0.6.0
Name Modified Size InfoDownloads / Week
Parent folder
PDL_0.6.0_x64-setup.exe 2025-04-08 7.9 MB
PDL_0.6.0_x64_en-US.msi 2025-04-08 10.9 MB
PDL-0.6.0-1.aarch64.rpm 2025-04-08 12.4 MB
PDL_0.6.0_aarch64.AppImage 2025-04-08 97.3 MB
PDL_0.6.0_arm64.deb 2025-04-08 12.4 MB
PDL_universal.app.tar.gz 2025-04-08 22.9 MB
PDL_0.6.0_universal.dmg 2025-04-08 22.9 MB
PDL_0.6.0_amd64.AppImage 2025-04-08 99.5 MB
PDL-0.6.0-1.x86_64.rpm 2025-04-08 12.7 MB
PDL_0.6.0_amd64.deb 2025-04-08 12.7 MB
README.md 2025-04-08 2.9 kB
Version 0.6.0 source code.tar.gz 2025-04-08 4.3 MB
Version 0.6.0 source code.zip 2025-04-08 4.5 MB
Totals: 13 Items   320.5 MB 1

This new release has two major changes: - pdl-lint, a linter for PDL programs (thanks to @vite-falcon!) - mesages in the context with the same role are not automatically merged anymore.

For example, the following program generates 3 messages:

lastOf:
  - role: user
    text:
      - hello
      - "\n"
      - world
  - ${pdl_context}

result:

[{"role": "user", "content": "hello", "defsite": "lastOf.text.0"}, {"role": "user", "content": "\n", "defsite": "lastOf.text.1"}, {"role": "user", "content": "world", "defsite": "lastOf.text.2"}]

To generate only one message, you have to use a message block:

lastOf:
  - role: user
    content:
      text:
        - hello
        - "\n"
        - world
  - ${pdl_context}

result

[{"role": "user", "content": "hello\nworld", "defsite": "lastOf.message"}]

What's Changed

New Contributors

Full Changelog: https://github.com/IBM/prompt-declaration-language/compare/v0.5.1...v0.6.0

Source: README.md, updated 2025-04-08