Release v1.0.81#44
Conversation
Greptile SummaryThis release (v1.0.81) adds three new API endpoints to the SDK — model discovery, agent engine type discovery, and CSV table upload — along with their generated models and endpoint wrappers, and corrects a version-string typo (
Confidence Score: 4/5Safe to merge for the discovery endpoints; the table upload path has a bug in multipart serialisation that will surface when callers explicitly pass The discovery endpoints and their models are straightforward and look correct. The table upload multipart serialiser sends the literal string src/roe/_generated/models/table_upload_request.py — specifically the Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant SDK Client
participant Roe API
Caller->>SDK Client: discovery.sync(client) [GET /v1/agents/types/]
SDK Client->>Roe API: GET /v1/agents/types/
Roe API-->>SDK Client: 200 AgentEngineTypeList JSON
SDK Client-->>Caller: AgentEngineTypeList
Caller->>SDK Client: discovery.sync(client, capability=...) [GET /v1/agents/models/]
SDK Client->>Roe API: GET /v1/agents/models/?capability=...
Roe API-->>SDK Client: 200 SupportedLLMModelList JSON
SDK Client-->>Caller: SupportedLLMModelList
Caller->>SDK Client: upload_table.sync(client, body=TableUploadRequest(...))
SDK Client->>SDK Client: body.to_multipart()
Note over SDK Client: ⚠️ organization_id=None → "None" string
SDK Client->>Roe API: POST /v1/tables/upload/ (multipart/form-data)
alt 201 Created
Roe API-->>SDK Client: TableUploadResponse JSON
SDK Client-->>Caller: TableUploadResponse
else 400 Bad Request
Roe API-->>SDK Client: ErrorResponse JSON
SDK Client-->>Caller: ErrorResponse
end
|
| from http import HTTPStatus | ||
| from typing import Any, cast | ||
| from urllib.parse import quote | ||
|
|
||
| import httpx | ||
|
|
||
| from ...client import AuthenticatedClient, Client | ||
| from ...types import Response, UNSET | ||
| from ... import errors |
There was a problem hiding this comment.
Duplicate and unused imports in generated API files
from typing import cast is imported twice (once via from typing import Any, cast and again as a standalone statement). Additionally, from urllib.parse import quote is imported but never referenced. The same pattern appears in discovery_supported_models_list.py (duplicate from ...types import UNSET, Unset and cast), upload_table.py (duplicate cast), table_upload_request.py (duplicate from ..types import UNSET, Unset), and table_upload_response.py (duplicate from ..types import UNSET, Unset). These are artefacts of the code generator and do not affect runtime, but they will produce linter warnings.
|
Closing per request. |
This PR updates the Python SDK for release
1.0.81.Generated from:
1-0-81cbdcb2f2c12b5fbf1983da92c1597d28f6178e55