(self, messages)
| 17 | ): |
| 18 | terminate_condition = lambda x: x.get("content", "").find("Final Answer:") > 0 or "_run" not in x.get("content", "") |
| 19 | def response_preparer(self, messages): |
| 20 | plain_messages = [message["content"] for message in messages] |
| 21 | query = plain_messages[0].split("Query: ")[-1].strip() |
| 22 | analysis = summarizer(f"Contexts: {' '.join(plain_messages[1:-1])}. Selectively choose the right context and answer the following `{query}`. You should remain the key code snippets.") |
| 23 | analysis += plain_messages[-1].replace("Final Answer:", "") |
| 24 | return analysis |
| 25 | |
| 26 | navigator_assistant = AssistantAgent( |
| 27 | "Inner-Navigator-Assistant", |
nothing calls this directly
no test coverage detected