Fix RAGAgent initialization (#53)

This commit is contained in:
Yuge Zhang
2025-08-15 14:06:09 +08:00
committed by GitHub
parent bea013632e
commit d00cc3e4aa
+3 -2
View File
@@ -6,7 +6,7 @@ import shutil
import sys
import tempfile
import time
from typing import Any, Literal, Optional
from typing import Any, Literal
import dotenv
import termcolor
@@ -50,7 +50,8 @@ Repeat as needed. When done, wrap your final, concise answer in <answer> tags.""
class RAGAgent(LitAgent):
def __init__(self):
def __init__(self, trained_agents: str | None = None) -> None:
super().__init__(trained_agents=trained_agents)
self.mcp_server_url = "http://127.0.0.1:8099/sse"
async def training_rollout_async(self, task: Any, rollout_id: str, resources: NamedResources) -> Any: