forked from phoenix-oss/llama-stack-mirror
fix: remove :path in agents (#1077)
# What does this PR do? Remove :path in agents, we cannot have :path in params inside endpoints except last one ## Test Plan [Describe the tests you ran to verify your changes with result summaries. *Provide clear instructions so the plan can be easily re-executed.*] ``` llama stack run ``` [//]: # (## Documentation)
This commit is contained in:
parent
f9ca441974
commit
1527c30107
1 changed files with 7 additions and 7 deletions
|
@ -318,7 +318,7 @@ class Agents(Protocol):
|
||||||
agent_config: AgentConfig,
|
agent_config: AgentConfig,
|
||||||
) -> AgentCreateResponse: ...
|
) -> AgentCreateResponse: ...
|
||||||
|
|
||||||
@webmethod(route="/agents/{agent_id:path}/session/{session_id:path}/turn", method="POST")
|
@webmethod(route="/agents/{agent_id}/session/{session_id}/turn", method="POST")
|
||||||
async def create_agent_turn(
|
async def create_agent_turn(
|
||||||
self,
|
self,
|
||||||
agent_id: str,
|
agent_id: str,
|
||||||
|
@ -336,7 +336,7 @@ class Agents(Protocol):
|
||||||
) -> Union[Turn, AsyncIterator[AgentTurnResponseStreamChunk]]: ...
|
) -> Union[Turn, AsyncIterator[AgentTurnResponseStreamChunk]]: ...
|
||||||
|
|
||||||
@webmethod(
|
@webmethod(
|
||||||
route="/agents/{agent_id:path}/session/{session_id:path}/turn/{turn_id:path}",
|
route="/agents/{agent_id}/session/{session_id}/turn/{turn_id}",
|
||||||
method="GET",
|
method="GET",
|
||||||
)
|
)
|
||||||
async def get_agents_turn(
|
async def get_agents_turn(
|
||||||
|
@ -347,7 +347,7 @@ class Agents(Protocol):
|
||||||
) -> Turn: ...
|
) -> Turn: ...
|
||||||
|
|
||||||
@webmethod(
|
@webmethod(
|
||||||
route="/agents/{agent_id:path}/session/{session_id:path}/turn/{turn_id:path}/step/{step_id:path}",
|
route="/agents/{agent_id}/session/{session_id}/turn/{turn_id}/step/{step_id}",
|
||||||
method="GET",
|
method="GET",
|
||||||
)
|
)
|
||||||
async def get_agents_step(
|
async def get_agents_step(
|
||||||
|
@ -358,14 +358,14 @@ class Agents(Protocol):
|
||||||
step_id: str,
|
step_id: str,
|
||||||
) -> AgentStepResponse: ...
|
) -> AgentStepResponse: ...
|
||||||
|
|
||||||
@webmethod(route="/agents/{agent_id:path}/session", method="POST")
|
@webmethod(route="/agents/{agent_id}/session", method="POST")
|
||||||
async def create_agent_session(
|
async def create_agent_session(
|
||||||
self,
|
self,
|
||||||
agent_id: str,
|
agent_id: str,
|
||||||
session_name: str,
|
session_name: str,
|
||||||
) -> AgentSessionCreateResponse: ...
|
) -> AgentSessionCreateResponse: ...
|
||||||
|
|
||||||
@webmethod(route="/agents/{agent_id:path}/session/{session_id:path}", method="GET")
|
@webmethod(route="/agents/{agent_id}/session/{session_id}", method="GET")
|
||||||
async def get_agents_session(
|
async def get_agents_session(
|
||||||
self,
|
self,
|
||||||
session_id: str,
|
session_id: str,
|
||||||
|
@ -373,14 +373,14 @@ class Agents(Protocol):
|
||||||
turn_ids: Optional[List[str]] = None,
|
turn_ids: Optional[List[str]] = None,
|
||||||
) -> Session: ...
|
) -> Session: ...
|
||||||
|
|
||||||
@webmethod(route="/agents/{agent_id:path}/session/{session_id:path}", method="DELETE")
|
@webmethod(route="/agents/{agent_id}/session/{session_id}", method="DELETE")
|
||||||
async def delete_agents_session(
|
async def delete_agents_session(
|
||||||
self,
|
self,
|
||||||
session_id: str,
|
session_id: str,
|
||||||
agent_id: str,
|
agent_id: str,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
|
|
||||||
@webmethod(route="/agents/{agent_id:path}", method="DELETE")
|
@webmethod(route="/agents/{agent_id}", method="DELETE")
|
||||||
async def delete_agent(
|
async def delete_agent(
|
||||||
self,
|
self,
|
||||||
agent_id: str,
|
agent_id: str,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue