Skip to content

Commit 9c1c564

Browse files
committed
chore: deprecate ToolResponseMessage in agent.resume API
Summary: Test Plan:
1 parent d33b8ea commit 9c1c564

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llama_stack/apis/agents/agents.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class AgentTurnResumeRequest(BaseModel):
353353
agent_id: str
354354
session_id: str
355355
turn_id: str
356-
tool_responses: Union[List[ToolResponse], List[ToolResponseMessage]]
356+
tool_responses: List[ToolResponse]
357357
stream: Optional[bool] = False
358358

359359

@@ -432,7 +432,7 @@ async def resume_agent_turn(
432432
agent_id: str,
433433
session_id: str,
434434
turn_id: str,
435-
tool_responses: Union[List[ToolResponse], List[ToolResponseMessage]],
435+
tool_responses: List[ToolResponse],
436436
stream: Optional[bool] = False,
437437
) -> Union[Turn, AsyncIterator[AgentTurnResponseStreamChunk]]:
438438
"""Resume an agent turn with executed tool call responses.
@@ -443,7 +443,6 @@ async def resume_agent_turn(
443443
:param session_id: The ID of the session to resume.
444444
:param turn_id: The ID of the turn to resume.
445445
:param tool_responses: The tool call responses to resume the turn with.
446-
NOTE: ToolResponseMessage will be deprecated. Use ToolResponse.
447446
:param stream: Whether to stream the response.
448447
:returns: A Turn object if stream is False, otherwise an AsyncIterator of AgentTurnResponseStreamChunk objects.
449448
"""

0 commit comments

Comments
 (0)