Skip to content

Commit cda7a6a

Browse files
committed
fix: error function response type
Signed-off-by: zeeland <zeeland4work@gmail.com>
1 parent e2edf1d commit cda7a6a

File tree

1 file changed

+4
-2
lines changed
  • packages/sdk/python/agent_protocol

1 file changed

+4
-2
lines changed

packages/sdk/python/agent_protocol/agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ async def create_agent_task(body: TaskRequestBody | None = None) -> Task:
5151

5252

5353
@base_router.get("/ap/v1/agent/tasks", response_model=TaskListResponse, tags=["agent"])
54-
async def list_agent_tasks_ids(page_size: int = 10, current_page: int = 1) -> List[str]:
54+
async def list_agent_tasks_ids(
55+
page_size: int = 10, current_page: int = 1
56+
) -> TaskListResponse:
5557
"""
5658
List all tasks that have been created for the agent.
5759
"""
@@ -84,7 +86,7 @@ async def get_agent_task(task_id: str) -> Task:
8486
)
8587
async def list_agent_task_steps(
8688
task_id: str, page_size: int = 10, current_page: int = 1
87-
) -> List[str]:
89+
) -> TaskStepsListResponse:
8890
"""
8991
List all steps for the specified task.
9092
"""

0 commit comments

Comments
 (0)