Skip to content

[agents extension] Add file operations for hosted agents #7132

Description

@therealjohn

Hosted agents have session-scoped files on the hosted agent sandboxes. Add support to the azd ai agent extension so developers can access the files, upload, download, etc. This is necessary for debugging, seeding data, setup of an agent, and more.

  • azd ai agent files upload <local-path> --path <remote-path> -n <name> -v <version> -s <session>

    • PUT /agents/{agent_name}/versions/{agent_version}/sessions/{session_id}/files?path=
  • azd ai agent files download <remote-path> -o <local-path> -n <name> -v <version> -s <session>

    • GET /agents/{agent_name}/versions/{agent_version}/sessions/{session_id}/files?path=
  • azd ai agent files list [remote-path] -n <name> -v <version> -s <session>

    • GET /agents/{agent_name}/versions/{agent_version}/sessions/{session_id}/files/list?path=
  • azd ai agent files remove <remote-path> [--recursive] -n <name> -v <version> -s <session>

    • DELETE /agents/{agent_name}/versions/{agent_version}/sessions/{session_id}/files?path=&recursive=

Reference Azure/azure-rest-api-specs#41157

Metadata

Metadata

Assignees

Labels

ext-agentsazure.ai.agents extension

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions