run_behavior_test
Test whether an LLM output semantically satisfies an expected behavior using embedding similarity. Validate model output against a plain-language description to ensure behavioral compliance.
Instructions
Run a single behavioral assertion using llm-behave embedding similarity.
Checks whether the model output semantically satisfies the expected behavior. Uses sentence-level max similarity so long outputs are handled correctly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The original prompt sent to the LLM (used for context/logging). | |
| expected_behavior | Yes | A plain-language description of what the output should do. | |
| model_output | Yes | The actual text returned by the LLM. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||