diff --git a/.roe-main-release-version b/.roe-main-release-version index f90227b..b5d092b 100644 --- a/.roe-main-release-version +++ b/.roe-main-release-version @@ -1 +1 @@ -1-0-94 +1-0-95 diff --git a/README.md b/README.md index aa1f96d..1a202f4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A Python SDK for the [Roe](https://www.roe-ai.com/) API. -> **v1.1.10** - SDK operation coverage is synchronized across Python, +> **v1.1.11** - SDK operation coverage is synchronized across Python, > TypeScript, and Go. See `SDK_EXAMPLES.md` for copy-ready examples and > use cases. diff --git a/openapi/openapi.yml b/openapi/openapi.yml index d7658c8..10124c6 100644 --- a/openapi/openapi.yml +++ b/openapi/openapi.yml @@ -1042,7 +1042,9 @@ paths: description: Agent version not found. delete: operationId: agents_versions_destroy - description: Delete a specific agent version. + description: Delete a specific agent version. Deleting the agent's current version + promotes the next-newest remaining version to current. Deleting an agent's + only version is refused — delete the agent instead. summary: Delete an agent version. parameters: - in: path @@ -1075,6 +1077,12 @@ paths: responses: '204': description: Agent version deleted successfully. + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetailResponse' + description: This is the agent's only version; delete the agent instead. '403': content: application/json: @@ -4207,7 +4215,10 @@ components: description: The unique identifier for this input definition data_type: type: string - description: The data type of the input (e.g., text, file, etc.) + description: MIME type of the input, from the closed DataType set. Use 'text/plain' + for ordinary strings such as URLs, names and free text; other values include + 'application/pdf', 'application/json', 'image/png', 'audio/mpeg', 'video/mp4' + and the wildcards 'text/*', 'image/*', 'audio/*', 'video/*', '*/*'. description: type: string description: Description of what this input is for @@ -5063,6 +5074,7 @@ components: - google_sheets - salesforce - web_application + - shield - custom_api - lexis_nexis - sardine @@ -5083,6 +5095,7 @@ components: * `google_sheets` - GOOGLE_SHEETS * `salesforce` - SALESFORCE * `web_application` - WEB_APPLICATION + * `shield` - SHIELD * `custom_api` - CUSTOM_API * `lexis_nexis` - LEXIS_NEXIS * `sardine` - SARDINE @@ -6108,6 +6121,8 @@ components: type: boolean supports_reasoning_effort: type: boolean + supports_thinking: + type: boolean supports_json_output: type: boolean supports_json_schema: @@ -6123,6 +6138,7 @@ components: - supports_reasoning_effort - supports_system_message - supports_temperature + - supports_thinking SupportedLLMModelList: type: object description: Serializer for non-deprecated LLM discovery. diff --git a/pyproject.toml b/pyproject.toml index b718ffa..df64d8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "roe-ai" -version = "1.1.10" +version = "1.1.11" authors = [ { name = "Roe", email = "founders@roe-ai.com" }, ] diff --git a/src/roe/_generated/api/agents/agents_versions_destroy.py b/src/roe/_generated/api/agents/agents_versions_destroy.py index abb284e..1a3d8b5 100644 --- a/src/roe/_generated/api/agents/agents_versions_destroy.py +++ b/src/roe/_generated/api/agents/agents_versions_destroy.py @@ -54,6 +54,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res response_204 = cast(Any, None) return response_204 + if response.status_code == 400: + response_400 = ErrorDetailResponse.from_dict(response.json()) + + + + return response_400 + if response.status_code == 403: response_403 = ErrorDetailResponse.from_dict(response.json()) @@ -100,7 +107,9 @@ def sync_detailed( ) -> Response[Any | ErrorDetailResponse | QdrantCleanupErrorResponse]: """ Delete an agent version. - Delete a specific agent version. + Delete a specific agent version. Deleting the agent's current version promotes the next-newest + remaining version to current. Deleting an agent's only version is refused — delete the agent + instead. Args: agent_id (UUID): @@ -139,7 +148,9 @@ def sync( ) -> Any | ErrorDetailResponse | QdrantCleanupErrorResponse | None: """ Delete an agent version. - Delete a specific agent version. + Delete a specific agent version. Deleting the agent's current version promotes the next-newest + remaining version to current. Deleting an agent's only version is refused — delete the agent + instead. Args: agent_id (UUID): @@ -173,7 +184,9 @@ async def asyncio_detailed( ) -> Response[Any | ErrorDetailResponse | QdrantCleanupErrorResponse]: """ Delete an agent version. - Delete a specific agent version. + Delete a specific agent version. Deleting the agent's current version promotes the next-newest + remaining version to current. Deleting an agent's only version is refused — delete the agent + instead. Args: agent_id (UUID): @@ -212,7 +225,9 @@ async def asyncio( ) -> Any | ErrorDetailResponse | QdrantCleanupErrorResponse | None: """ Delete an agent version. - Delete a specific agent version. + Delete a specific agent version. Deleting the agent's current version promotes the next-newest + remaining version to current. Deleting an agent's only version is refused — delete the agent + instead. Args: agent_id (UUID): diff --git a/src/roe/_generated/models/agent_input_definition.py b/src/roe/_generated/models/agent_input_definition.py index 5db2508..e809b0b 100644 --- a/src/roe/_generated/models/agent_input_definition.py +++ b/src/roe/_generated/models/agent_input_definition.py @@ -24,7 +24,9 @@ class AgentInputDefinition: """ Attributes: key (str): The unique identifier for this input definition - data_type (str): The data type of the input (e.g., text, file, etc.) + data_type (str): MIME type of the input, from the closed DataType set. Use 'text/plain' for ordinary strings + such as URLs, names and free text; other values include 'application/pdf', 'application/json', 'image/png', + 'audio/mpeg', 'video/mp4' and the wildcards 'text/*', 'image/*', 'audio/*', 'video/*', '*/*'. description (str): Description of what this input is for example (str | Unset): An example value for this input accepts_multiple_files (bool | Unset): Whether this input accepts multiple files diff --git a/src/roe/_generated/models/connector_type_enum.py b/src/roe/_generated/models/connector_type_enum.py index c5b4bc1..a1666e1 100644 --- a/src/roe/_generated/models/connector_type_enum.py +++ b/src/roe/_generated/models/connector_type_enum.py @@ -14,6 +14,7 @@ class ConnectorTypeEnum(str, Enum): SALESFORCE = "salesforce" SARDINE = "sardine" SHAREPOINT = "sharepoint" + SHIELD = "shield" SNOWFLAKE = "snowflake" SOCURE = "socure" STRIPE = "stripe" diff --git a/src/roe/_generated/models/create_connection_request.py b/src/roe/_generated/models/create_connection_request.py index e623257..aafb159 100644 --- a/src/roe/_generated/models/create_connection_request.py +++ b/src/roe/_generated/models/create_connection_request.py @@ -41,6 +41,7 @@ class CreateConnectionRequest: * `google_sheets` - GOOGLE_SHEETS * `salesforce` - SALESFORCE * `web_application` - WEB_APPLICATION + * `shield` - SHIELD * `custom_api` - CUSTOM_API * `lexis_nexis` - LEXIS_NEXIS * `sardine` - SARDINE diff --git a/src/roe/_generated/models/supported_llm_model.py b/src/roe/_generated/models/supported_llm_model.py index f6c08bb..d97b3aa 100644 --- a/src/roe/_generated/models/supported_llm_model.py +++ b/src/roe/_generated/models/supported_llm_model.py @@ -32,6 +32,7 @@ class SupportedLLMModel: supports_system_message (bool): supports_temperature (bool): supports_reasoning_effort (bool): + supports_thinking (bool): supports_json_output (bool): supports_json_schema (bool): """ @@ -44,6 +45,7 @@ class SupportedLLMModel: supports_system_message: bool supports_temperature: bool supports_reasoning_effort: bool + supports_thinking: bool supports_json_output: bool supports_json_schema: bool additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -73,6 +75,8 @@ def to_dict(self) -> dict[str, Any]: supports_reasoning_effort = self.supports_reasoning_effort + supports_thinking = self.supports_thinking + supports_json_output = self.supports_json_output supports_json_schema = self.supports_json_schema @@ -89,6 +93,7 @@ def to_dict(self) -> dict[str, Any]: "supports_system_message": supports_system_message, "supports_temperature": supports_temperature, "supports_reasoning_effort": supports_reasoning_effort, + "supports_thinking": supports_thinking, "supports_json_output": supports_json_output, "supports_json_schema": supports_json_schema, }) @@ -118,6 +123,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: supports_reasoning_effort = d.pop("supports_reasoning_effort") + supports_thinking = d.pop("supports_thinking") + supports_json_output = d.pop("supports_json_output") supports_json_schema = d.pop("supports_json_schema") @@ -131,6 +138,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: supports_system_message=supports_system_message, supports_temperature=supports_temperature, supports_reasoning_effort=supports_reasoning_effort, + supports_thinking=supports_thinking, supports_json_output=supports_json_output, supports_json_schema=supports_json_schema, ) diff --git a/src/roe/_generated/models/test_connection_credentials_request.py b/src/roe/_generated/models/test_connection_credentials_request.py index 7dfa663..385ccc6 100644 --- a/src/roe/_generated/models/test_connection_credentials_request.py +++ b/src/roe/_generated/models/test_connection_credentials_request.py @@ -39,6 +39,7 @@ class TestConnectionCredentialsRequest: * `google_sheets` - GOOGLE_SHEETS * `salesforce` - SALESFORCE * `web_application` - WEB_APPLICATION + * `shield` - SHIELD * `custom_api` - CUSTOM_API * `lexis_nexis` - LEXIS_NEXIS * `sardine` - SARDINE diff --git a/tests/unit/test_discovery.py b/tests/unit/test_discovery.py index 9a6cbb3..e4f45c8 100644 --- a/tests/unit/test_discovery.py +++ b/tests/unit/test_discovery.py @@ -152,6 +152,7 @@ def test_supported_llm_model_list_deserializes_public_model_payload(): "supports_system_message": True, "supports_temperature": True, "supports_reasoning_effort": False, + "supports_thinking": False, "supports_json_output": True, "supports_json_schema": True, } diff --git a/uv.lock b/uv.lock index ea8765d..0c0bc94 100644 --- a/uv.lock +++ b/uv.lock @@ -454,7 +454,7 @@ wheels = [ [[package]] name = "roe-ai" -version = "1.1.10" +version = "1.1.11" source = { editable = "." } dependencies = [ { name = "attrs" },