Skip to main content

Module query_enhancer

Module query_enhancer 

Source
Expand description

Query enhancement and message preparation for the REPL.

Mirrors opendev/repl/query_enhancer.py.

Responsibilities:

  • Strip @ references from queries while injecting file contents
  • Prepare the full message list for LLM API calls (system prompt, session history, multimodal content, playbook context)

Structsยง

QueryEnhancer
Handles query enhancement (@ file injection) and message preparation.