lint(agent): Fix line length in docstring of EpisodicActionHistory.handle_compression

This commit is contained in:
Reinier van der Leer
2024-02-02 17:43:42 +01:00
parent 266fe3a3f7
commit 925269d17b

View File

@@ -179,10 +179,10 @@ class EpisodicActionHistory(BaseModel):
async def handle_compression(
self, llm_provider: ChatModelProvider, app_config: Config
) -> None:
"""Compresses each episode in the action history using a ChatModelProvider.
"""Compresses each episode in the action history using an LLM.
This method iterates over all episodes in the action history, uses a ChatModelProvider
to generate a summary for each episode, and then sets the `summary` property of the episode.
This method iterates over all episodes in the action history without a summary,
and generates a summary for them using an LLM.
"""
compress_instruction = (
"The text represents an action, the reason for its execution, "