feat: Implemented a built-in task management system to help smaller LLMs complete larger multistep tasks and minimize context drift
This commit is contained in:
1 parent
cc7fcd0b5b
commit
a6b0acc35d
13 files changed
+868
-9
No files matched your search
@@ -299,6 +299,9 @@ impl Session {
|
||||
self.role_prompt = agent.interpolated_instructions();
|
||||
self.agent_variables = agent.variables().clone();
|
||||
self.agent_instructions = self.role_prompt.clone();
|
||||
if let Some(threshold) = agent.compression_threshold() {
|
||||
self.set_compression_threshold(Some(threshold));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn agent_variables(&self) -> &AgentVariables {
|
||||
|
||||
Reference in new issue
Block a user