Skip to content

Commit

Permalink
Rename get artifacts to list
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Aug 8, 2023
1 parent fd6751e commit 0343eca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion agent/python/agent_protocol/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def list_agent_task_artifacts(task_id: str) -> List[Artifact]:
"/agent/tasks/{task_id}/artifacts/{artifact_id}",
tags=["agent"],
)
async def get_agent_task_artifacts(task_id: str, artifact_id: str) -> FileResponse:
async def download_agent_task_artifacts(task_id: str, artifact_id: str) -> FileResponse:
"""
Download the specified artifact.
"""
Expand Down
2 changes: 1 addition & 1 deletion agent/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "agent-protocol"
version = "0.2.1"
version = "0.2.2"
description = "API for interacting with Agent"
authors = ["e2b <[email protected]>"]
license = "MIT"
Expand Down
8 changes: 1 addition & 7 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,14 @@ paths:
get:
summary: List all artifacts that have been created for the given task.
tags: [agent]
operationId: getAgentTaskArtifact
operationId: listAgentTaskArtifacts
parameters:
- name: task_id
in: path
description: ID of the task
required: true
schema:
type: string
- name: artifact_id
in: path
description: ID of the artifact
required: true
schema:
type: string
responses:
200:
description: Returned the content of the artifact.
Expand Down

0 comments on commit 0343eca

Please sign in to comment.