Expand description
Prompt construction from ChatMessage sequences
Structs§
- Prepared
Prompt - Prompt with materialized image files for CLI runners
Functions§
- build_
prompt - Build a single prompt string from a slice of chat messages
- build_
user_ prompt - Build a prompt string from non-system messages only
- extract_
system_ message - Extract the content of the first system message, if any
- prepare_
prompt - Build a prompt with images materialized to temp files
- prepare_
user_ prompt - Build a prompt with images materialized, excluding system messages
- warn_
images_ via_ tempfile - Log a warning when images are present but the runner cannot process them