Changed order of parameters

This commit is contained in:
Sarthak Deshpande 2024-10-18 17:50:14 +05:30
parent 761217dcc4
commit a542509399
2 changed files with 4 additions and 4 deletions

View file

@ -442,13 +442,13 @@ class Agents(Protocol):
async def get_agents_turn( async def get_agents_turn(
self, self,
agent_id: str, agent_id: str,
turn_id: str, session_id: str,
session_id: str turn_id: str
) -> Turn: ... ) -> Turn: ...
@webmethod(route="/agents/step/get") @webmethod(route="/agents/step/get")
async def get_agents_step( async def get_agents_step(
self, agent_id: str, turn_id: str, step_id: str, session_id: str self, agent_id: str, session_id: str, turn_id: str, step_id: str
) -> AgentStepResponse: ... ) -> AgentStepResponse: ...
@webmethod(route="/agents/session/create") @webmethod(route="/agents/session/create")

View file

@ -155,7 +155,7 @@ class MetaReferenceAgentsImpl(Agents):
return turn return turn
async def get_agents_step( async def get_agents_step(
self, agent_id: str, turn_id: str, session_id: str, step_id: str self, agent_id: str, session_id: str, turn_id: str, step_id: str
) -> AgentStepResponse: ) -> AgentStepResponse:
turn = await self.persistence_store.get(f"session:{agent_id}:{session_id}:{turn_id}") turn = await self.persistence_store.get(f"session:{agent_id}:{session_id}:{turn_id}")
try: try: