reset memory to not make it stop working after being used twice (i hope)
Browse files- Gradio_UI.py +1 -1
Gradio_UI.py
CHANGED
@@ -126,7 +126,7 @@ def pull_messages_from_step(
|
|
126 |
def stream_to_gradio(
|
127 |
agent,
|
128 |
task: str,
|
129 |
-
reset_agent_memory: bool =
|
130 |
additional_args: Optional[dict] = None,
|
131 |
):
|
132 |
"""Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages."""
|
|
|
126 |
def stream_to_gradio(
|
127 |
agent,
|
128 |
task: str,
|
129 |
+
reset_agent_memory: bool = True,
|
130 |
additional_args: Optional[dict] = None,
|
131 |
):
|
132 |
"""Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages."""
|