How tokencanopy/agentdrive-sdk works
This repository provides generated REST SDKs for AgentDrive, an artifact store for AI agents; it contains no server implementation. The main workflow is an application using a language client and resource helpers to make authenticated REST operations, such as managing files and folders, searching, and sharing. Python and TypeScript add ergonomic facades for paths, pagination, and errors; Go exposes generated API clients. Auth-provider code obtains Hub-issued tokens. The README documents the SDKs and API; sampled excerpts show facade wiring and selected calls, but not every operation.
Main entry points: client.py Client and transport · client.ts Client and transport · resources.py Resource operations · resources.ts Resource operations
Components 22
Python SDK
- Client and transport
sdk/python/agentdrive_sdk/client.py - Token providers
sdk/python/agentdrive_sdk/auth.py - Resource operations
sdk/python/agentdrive_sdk/resources.py - Path safety
sdk/python/agentdrive_sdk/paths.py - Cursor iteration
sdk/python/agentdrive_sdk/iteration.py - Typed errors
sdk/python/agentdrive_sdk/errors.py
TypeScript SDK
- Client and transport
sdk/typescript/src/facade/client.ts - Token providers
sdk/typescript/src/facade/auth.ts - Resource operations
sdk/typescript/src/facade/resources.ts - Path safety
sdk/typescript/src/facade/paths.ts - Cursor iteration
sdk/typescript/src/facade/iteration.ts - Typed errors
sdk/typescript/src/facade/errors.ts
Go SDK
- Artifacts API
sdk/go/api_artifacts.go - Drives API
sdk/go/api_drives.go - Folders API
sdk/go/api_folders.go - Search API
sdk/go/api_search.go - Sheets API
sdk/go/api_sheets.go - Viewer sessions API
sdk/go/api_viewer_sessions.go - Generated client
sdk/go/client.go
Other components
- Agent application
- AgentDrive REST API
- Hub token service
Connections 18
- Agent application → Client and transport: uses
README.md - Agent application → Client and transport: uses
README.md - Agent application → Generated client: uses
README.md - Client and transport → AgentDrive REST API: sends REST requests
README.md - Client and transport → AgentDrive REST API: sends REST requests
README.md - Generated client → AgentDrive REST API: sends REST requests
README.md - Resource operations → Client and transport: invokes operations
sdk/python/agentdrive_sdk/resources.py - Client and transport → Resource operations: creates resources
sdk/python/agentdrive_sdk/client.py - Token providers → Hub token service: requests tokens
sdk/python/agentdrive_sdk/auth.py - Client and transport → Resource operations: creates resources
sdk/typescript/src/facade/client.ts - Resource operations → Client and transport: invokes operations
sdk/typescript/src/facade/resources.ts - Token providers → Hub token service: requests tokens
sdk/typescript/src/facade/auth.ts - Artifacts API → AgentDrive REST API: exposes REST operations
README.md - Drives API → AgentDrive REST API: exposes REST operations
README.md - Folders API → AgentDrive REST API: exposes REST operations
README.md - Search API → AgentDrive REST API: exposes REST operations
README.md - Sheets API → AgentDrive REST API: exposes REST operations
README.md - Viewer sessions API → AgentDrive REST API: exposes REST operations
README.md