Metadata-Version: 2.4
Name: promptledger-promptfoo
Version: 0.1.0
Summary: Optional promptfoo provider for PromptLedger
Author: PromptLedger Contributors
License-Expression: MIT
Project-URL: Repository, https://github.com/Ertugrulmutlu/promptledger
Project-URL: Documentation, https://github.com/Ertugrulmutlu/promptledger/blob/main/docs/plugin-sdk.md
Project-URL: Issues, https://github.com/Ertugrulmutlu/promptledger/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: promptledger<0.9,>=0.8
Dynamic: license-file

# PromptLedger Promptfoo provider

Optional provider for PromptLedger 0.8.x (SDK v1).

Offline import of Promptfoo evaluation JSON reports. A report is manually associated with a saved prompt version; importing it does not run Promptfoo or independently verify the association.

## Installation

```sh
python -m pip install promptledger-promptfoo
promptledger plugins conformance promptfoo --confirm
```

From a source checkout, install Core first and use `python -m pip install -e ./plugins/promptfoo` instead.

## Usage

Initialize a workspace and create the referenced prompt where required. Example:

```sh
promptledger integrations promptfoo-import --id greeting --ref 1 --file report.json
```

## Reading results

```sh
promptledger eval list --id greeting
```

Importing a report records its summary counts and pass rate for the selected version. Reports with multiple prompts/providers are not split automatically. Use a report that corresponds to the selected prompt and model.

Providers are trusted Python code, not sandboxed. Explicit confirmation is required for network execution. No automatic synchronization or publication. Review the [SDK guide](https://github.com/Ertugrulmutlu/promptledger/blob/main/docs/plugin-sdk.md) for the trust boundary and provider options.

MIT license.
