Skip to main content

Module tools_session

Module tools_session 

Source
Expand description

The session_search tool: read the archive that a compiled handoff cites.

A compaction hands back a shorter conversation and cites the rows it summarised as [#N]. That citation is only worth printing if a ref can be followed, and before this tool it could not be: eclipse sessions show prints a whole transcript, there was no “read around row N”, and the agent had no way to look anything up. So the handoff promised something the agent could not do — the one thing worse than losing the middle of a conversation.

Three shapes, matching the three ways a ref is used:

  • around_message_id — the window a [#N] names, with a few rows either side.
  • query — full-text search, in this session or across all of them, returning row refs so a match can be read in context with the first shape.
  • neither — the newest rows, which is what “what were we doing” means.

The store is the agent’s own archive, so this is allow: reading a session it is already in writes nothing and reveals nothing the model was not given minutes ago.

Structs§

SessionSearchTool