Expand description
Session message roles beyond the provider’s four, and their conversion.
Constants§
- BRANCH_
SUMMARY_ PREFIX - Wraps a branch summary when it is sent to the model.
- BRANCH_
SUMMARY_ SUFFIX - Closes
BRANCH_SUMMARY_PREFIX. - COMPACTION_
SUMMARY_ PREFIX - Wraps a compaction summary when it is sent to the model.
- COMPACTION_
SUMMARY_ SUFFIX - Closes
COMPACTION_SUMMARY_PREFIX.
Functions§
- bash_
execution_ text - How a user
!commandreads to the model. - block_
images - pi’s
blockImagesfilter: images in user and tool result messages become a notice, once for each run of images. - convert_
to_ llm - Converts session messages to provider roles: bash executions, custom messages
and summaries become user messages.
!!executions are dropped.