wise-agents / wise-agents

https://wise-agents.github.io/
Apache License 2.0
4 stars 7 forks source link

Test the case where a phased coordinator agent goes down and is restarted #224

Open maeste opened 2 weeks ago

maeste commented 2 weeks ago

This is discussed in discussion #222

fjuma commented 2 weeks ago

As mentioned in https://github.com/wise-agents/wise-agents/discussions/222:

Realized that we actually have all of the state related information as part of the context already.

The phases, max_iterations, confidence_score, and optionally the system_message to use are part of the coordinator agent configuration and aren't related to the state itself. Note that phases only contains the phase names. I'll likely rename this. If a coordinator agent were to go down and be restarted, it would be restarted with these values.

When a coordinator receives a request, it creates a new chat id for the request and adds the following information to the context to keep track of the state. This information from the context gets updated by the coordinator when processing a response.

I'll add this information to WiseAgentContext as part of https://github.com/wise-agents/wise-agents/issues/211.

Have updated the title of this issue to be about testing the case where the coordinator agent goes down and needs to be restarted to check that we can handle this case.

fjuma commented 2 weeks ago

Just realized that both coordinators have a route_response_to variable that should be moved to the context. That's included in my PR here: https://github.com/wise-agents/wise-agents/pull/228