validate_llm_response
Validate LLM response format and content against expected schemas for different Plex prompt types including playlist descriptions, content recommendations, smart playlist rules, and media analysis.
Instructions
Validate LLM response format and content against expected schemas for different prompt types
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response | Yes | The LLM response object to validate | |
| prompt_type | Yes | The type of prompt that generated this response |
Input Schema (JSON Schema)
{
"properties": {
"prompt_type": {
"description": "The type of prompt that generated this response",
"enum": [
"playlist_description",
"content_recommendation",
"smart_playlist_rules",
"media_analysis"
],
"type": "string"
},
"response": {
"description": "The LLM response object to validate",
"type": "object"
}
},
"required": [
"response",
"prompt_type"
],
"type": "object"
}