Skip to main content

Module episodes

Module episodes 

Source
Expand description

Episodes: a model summarizes a finished stretch of conversation into a recallable episode (summary, topics, tone, outcome, importance).

Structs§

SessionAnalysis
What the analysis model said about a session.
SessionAnalyst
Summarizes sessions into episodes with a model.
SessionEpisode
A session episode for the store to record.
TranscriptEntry
One message of a session, as an episode transcript reads it.

Functions§

clean_transcript
The transcript an analysis model reads: the user’s words in full, the assistant’s actions and (shortened) text, and tool outputs compressed to a line each.
parse_session_analysis
The JSON object in a reply, leniently; anything unusable becomes the neutral default analysis.