From 44b3f90d13b2884d97d1d371bbef0a886e354191 Mon Sep 17 00:00:00 2001 From: Sarthak Deshpande Date: Mon, 25 Nov 2024 15:05:24 +0530 Subject: [PATCH] Added /alpha to api endpoints of client file to represent the latest API endpoint --- llama_stack/apis/agents/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llama_stack/apis/agents/client.py b/llama_stack/apis/agents/client.py index 1726e5455..4fe006038 100644 --- a/llama_stack/apis/agents/client.py +++ b/llama_stack/apis/agents/client.py @@ -45,7 +45,7 @@ class AgentsClient(Agents): async def create_agent(self, agent_config: AgentConfig) -> AgentCreateResponse: async with httpx.AsyncClient() as client: response = await client.post( - f"{self.base_url}/agents/create", + f"{self.base_url}/alpha/agents/create", json={ "agent_config": encodable_dict(agent_config), }, @@ -61,7 +61,7 @@ class AgentsClient(Agents): ) -> AgentSessionCreateResponse: async with httpx.AsyncClient() as client: response = await client.post( - f"{self.base_url}/agents/session/create", + f"{self.base_url}/alpha/agents/session/create", json={ "agent_id": agent_id, "session_name": session_name, @@ -86,7 +86,7 @@ class AgentsClient(Agents): async with httpx.AsyncClient() as client: async with client.stream( "POST", - f"{self.base_url}/agents/turn/create", + f"{self.base_url}/alpha/agents/turn/create", json=encodable_dict(request), headers={"Content-Type": "application/json"}, timeout=20,