Spaces:
Running
Running
Henri Bonamy commited on
Commit ·
fb5f967
1
Parent(s): d574d65
prompt change
Browse files
agent/context_manager/manager.py
CHANGED
|
@@ -27,7 +27,7 @@ class ContextManager:
|
|
| 27 |
"""Load the system prompt"""
|
| 28 |
|
| 29 |
# TODO: get system prompt from jinja template
|
| 30 |
-
return "You are a helpful assistant."
|
| 31 |
|
| 32 |
def add_message(self, message: Message, token_count: int = None) -> None:
|
| 33 |
"""Add a message to the history"""
|
|
|
|
| 27 |
"""Load the system prompt"""
|
| 28 |
|
| 29 |
# TODO: get system prompt from jinja template
|
| 30 |
+
return "You are a helpful assistant, primarly for ML. Do the task you are asked to as efficiently as possible. Don't invent tasks."
|
| 31 |
|
| 32 |
def add_message(self, message: Message, token_count: int = None) -> None:
|
| 33 |
"""Add a message to the history"""
|
agent/core/session.py
CHANGED
|
@@ -34,7 +34,7 @@ class Session:
|
|
| 34 |
event_queue: asyncio.Queue,
|
| 35 |
config: Config | None = None,
|
| 36 |
):
|
| 37 |
-
self.context_manager = ContextManager(max_context=
|
| 38 |
self.event_queue = event_queue
|
| 39 |
self.session_id = str(uuid.uuid4())
|
| 40 |
self.config = config or Config(
|
|
|
|
| 34 |
event_queue: asyncio.Queue,
|
| 35 |
config: Config | None = None,
|
| 36 |
):
|
| 37 |
+
self.context_manager = ContextManager(max_context=180_000, compact_size=0.1, untouched_messages=5)
|
| 38 |
self.event_queue = event_queue
|
| 39 |
self.session_id = str(uuid.uuid4())
|
| 40 |
self.config = config or Config(
|