Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -125,6 +125,10 @@ class Agent:
|
|
| 125 |
"""Clear the conversation history."""
|
| 126 |
self._history = []
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
def available_strategies(self) -> List[str]:
|
| 129 |
"""Return a list of available strategy names."""
|
| 130 |
return StrategyFactory.available_strategies()
|
|
|
|
| 125 |
"""Clear the conversation history."""
|
| 126 |
self._history = []
|
| 127 |
|
| 128 |
+
def chat(self, user_input: str) -> str:
|
| 129 |
+
"""Process user input and return the assistant's response."""
|
| 130 |
+
return self.execute(user_input)
|
| 131 |
+
|
| 132 |
def available_strategies(self) -> List[str]:
|
| 133 |
"""Return a list of available strategy names."""
|
| 134 |
return StrategyFactory.available_strategies()
|