get rid of pointless fn

This commit is contained in:
AI Christianson 2025-03-16 12:53:00 -04:00
parent 80e8a712ac
commit 18dd8a7c06
1 changed files with 1 additions and 13 deletions

View File

@ -67,18 +67,6 @@ class SpawnAgentResponse(BaseModel):
) )
def get_repository() -> SessionRepository:
"""
Get the SessionRepository instance.
This function is used as a FastAPI dependency and can be overridden
in tests using dependency_overrides.
Returns:
SessionRepository: The repository instance
"""
return get_session_repository()
def run_agent_thread( def run_agent_thread(
message: str, message: str,
session_id: str, session_id: str,
@ -159,7 +147,7 @@ def run_agent_thread(
) )
async def spawn_agent( async def spawn_agent(
request: SpawnAgentRequest, request: SpawnAgentRequest,
repo: SessionRepository = Depends(get_repository), repo: SessionRepository = Depends(get_session_repository),
) -> SpawnAgentResponse: ) -> SpawnAgentResponse:
""" """
Spawn a new RA.Aid agent to process a message or task. Spawn a new RA.Aid agent to process a message or task.