ConversationWindow Module
Functions and values
| Function or value |
Description
|
Full Usage:
apply strategy conversation
Parameters:
WindowStrategy
conversation : Conversation
Returns: Conversation
|
Apply a window strategy to a conversation
|
Full Usage:
applyLastN n conversation
Parameters:
int
conversation : Conversation
Returns: Conversation
|
Apply LastN strategy: keep the last N messages
|
Full Usage:
applyTokenBudget maxTokens conversation
Parameters:
int
conversation : Conversation
Returns: Conversation
|
Apply TokenBudget strategy: keep as many recent messages as fit within budget
|
|
|
Full Usage:
partitionForSummary threshold conversation
Parameters:
int
conversation : Conversation
Returns: Conversation * Conversation
|
Mark messages that should be summarized (those beyond the threshold)
|
Nao