Eric Botti
commited on
Commit
·
587e98a
1
Parent(s):
f12d2e1
save retry messages
Browse files- src/agent_interfaces.py +1 -0
src/agent_interfaces.py
CHANGED
@@ -42,6 +42,7 @@ class BaseAgentInterface(BaseModel):
|
|
42 |
def respond_to(self, message: Message) -> Message:
|
43 |
"""Take a message as input and return a response. Both the message and the response are added to history."""
|
44 |
self.add_message(message)
|
|
|
45 |
response = self.generate_response()
|
46 |
return response
|
47 |
|
|
|
42 |
def respond_to(self, message: Message) -> Message:
|
43 |
"""Take a message as input and return a response. Both the message and the response are added to history."""
|
44 |
self.add_message(message)
|
45 |
+
save(AgentMessage.from_message(message, [self.agent_id], self.game_id))
|
46 |
response = self.generate_response()
|
47 |
return response
|
48 |
|