MCPcopy
hub / github.com/idank/explainshell / _build_messages

Method _build_messages

explainshell/extraction/llm/extractor.py:525–530  ·  view source on GitHub ↗

Build messages list for debug output.

(user_content: str)

Source from the content-addressed store, hash-verified

523
524 @staticmethod
525 def _build_messages(user_content: str) -> list[dict[str, str]]:
526 """Build messages list for debug output."""
527 return [
528 {"role": "system", "content": SYSTEM_PROMPT},
529 {"role": "user", "content": user_content},
530 ]
531
532 def _artifact_stem(self, gz_path: str) -> str:
533 """Encode the gz file as a flat artifact-filename stem.

Callers 2

finalizeMethod · 0.95
_call_llmMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected