pipeworks_mud_mapper.callbacks.ollama_validation_callbacks

Callbacks for validating Ollama responses.

This module provides the validation panel logic that checks generated text against hard/soft rules and maintains a small history buffer.

Functions

validate_ollama_response(response_text, target_words, ...)

Validate the latest LLM response and update the staging panel.

Module Contents

pipeworks_mud_mapper.callbacks.ollama_validation_callbacks.validate_ollama_response(response_text, target_words, history)[source]

Validate the latest LLM response and update the staging panel.

This callback is advisory. It never blocks authors from applying a description. Instead, it surfaces hard-rule hits and aggregates a small in-memory history to make drift visible during iteration.