diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6538ca917..2b28d6ece 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.8.0" + ".": "0.8.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index bc57821e7..a7042876e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 35 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-cdb8c2bba2a7afe729633081644f04f118739f8c5119ed6947003ca1beb356c9.yml -openapi_spec_hash: 53c804f1c35a6733b69499e47b109664 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-43921054bad3c6969dc10f5899faa5924f3c029ccffb55965bbb6e7c9a0f22c6.yml +openapi_spec_hash: 17b74748a86bc159767dbb66ba46f54d config_hash: 32eb65911c08ac84d117cecdf2759869 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a101fef8..739ce7637 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,43 @@ # Changelog +## 0.8.1 (2025-12-22) + +Full Changelog: [v0.8.0...v0.8.1](https://github.com/scaleapi/scale-agentex-python/compare/v0.8.0...v0.8.1) + +### Features + +* **api:** add messages/paginated endpoint ([3e03aff](https://github.com/scaleapi/scale-agentex-python/commit/3e03aff8490e0556cb05052d385156eda8f28107)) +* **api:** add messages/paginated to stainless config ([2473ded](https://github.com/scaleapi/scale-agentex-python/commit/2473ded39274bcd0a16d7314667fcf7f55e829c2)) +* **api:** api update ([2e4ec2f](https://github.com/scaleapi/scale-agentex-python/commit/2e4ec2f28413ee58afa664b793565d6be4da5dfe)) +* **api:** api update ([ed21ad8](https://github.com/scaleapi/scale-agentex-python/commit/ed21ad8c34cd11e80af9128181764489a0541740)) +* **api:** api update ([86a166a](https://github.com/scaleapi/scale-agentex-python/commit/86a166aba5538411ebcc0ed74291505e01a466f2)) +* **api:** api update ([4c95c94](https://github.com/scaleapi/scale-agentex-python/commit/4c95c94df570277fc49281f1343cb012e8da2334)) +* **api:** api update ([f6eccdf](https://github.com/scaleapi/scale-agentex-python/commit/f6eccdf975eaef9b257ef3f20f087f2f2f9b3665)) +* **api:** api update ([41067fb](https://github.com/scaleapi/scale-agentex-python/commit/41067fb79725787e0ceb20dcf16029998bcbca24)) +* **api:** api update ([cdc9c63](https://github.com/scaleapi/scale-agentex-python/commit/cdc9c636be6f26e84772d1d1ef9d47cddcd9dabc)) +* **api:** api update ([413d9c8](https://github.com/scaleapi/scale-agentex-python/commit/413d9c806d918d7c5da3d0249c0f11d4b9f0894e)) +* **api:** api update ([1b4bf7d](https://github.com/scaleapi/scale-agentex-python/commit/1b4bf7d3a11306a50ec0eb9c20764c585d0e98e4)) +* **api:** manual updates ([131e836](https://github.com/scaleapi/scale-agentex-python/commit/131e836b5bda8248f847b00308b6711a1ee84ee0)) +* **api:** update via SDK Studio ([2a6c7fa](https://github.com/scaleapi/scale-agentex-python/commit/2a6c7fa919ad255f9e53e7f97f195065599a05e9)) + + +### Bug Fixes + +* ensure streams are always closed ([7bb9db8](https://github.com/scaleapi/scale-agentex-python/commit/7bb9db851a213d261e585cd2f156046f05cf85db)) +* **types:** allow pyright to infer TypedDict types within SequenceNotStr ([9cfc9d6](https://github.com/scaleapi/scale-agentex-python/commit/9cfc9d66579a11f3eaf248bafbfddb422e878a58)) +* use async_to_httpx_files in patch method ([8abb539](https://github.com/scaleapi/scale-agentex-python/commit/8abb539a340af3a2a42482757412c0c408817461)) + + +### Chores + +* add missing docstrings ([81f1fa9](https://github.com/scaleapi/scale-agentex-python/commit/81f1fa9b3c440d893b8ea8f773ab2592eb333d65)) +* **deps:** mypy 1.18.1 has a regression, pin to 1.17 ([e20aaa4](https://github.com/scaleapi/scale-agentex-python/commit/e20aaa495384f547dd18c8d31496f70b4a37e0dd)) +* **docs:** use environment variables for authentication in code snippets ([a30f6ae](https://github.com/scaleapi/scale-agentex-python/commit/a30f6aebca8de5be72eb7bcf7a3b3ccea28479bc)) +* **internal:** add `--fix` argument to lint script ([0ef4242](https://github.com/scaleapi/scale-agentex-python/commit/0ef4242888cc6ed341536e1ab1fbf6b03c723de9)) +* **internal:** add missing files argument to base client ([28d1738](https://github.com/scaleapi/scale-agentex-python/commit/28d1738d3af8feb00f6f641e159221fb41c42983)) +* speedup initial import ([8e50946](https://github.com/scaleapi/scale-agentex-python/commit/8e50946321c32e42a7b25cf9ae8b8e9b020a7ac9)) +* update lockfile ([a3a2e4f](https://github.com/scaleapi/scale-agentex-python/commit/a3a2e4fbcf6e6e4bcbadab50c6b9236e4514dae2)) + ## 0.8.0 (2025-12-17) Full Changelog: [v0.7.4...v0.8.0](https://github.com/scaleapi/scale-agentex-python/compare/v0.7.4...v0.8.0) diff --git a/pyproject.toml b/pyproject.toml index 997d43c84..e0190b7d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "agentex-sdk" -version = "0.8.0" +version = "0.8.1" description = "The official Python library for the agentex API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/scripts/lint b/scripts/lint index 69fa62e91..add940371 100755 --- a/scripts/lint +++ b/scripts/lint @@ -4,8 +4,13 @@ set -e cd "$(dirname "$0")/.." -echo "==> Running lints" -rye run lint +if [ "$1" = "--fix" ]; then + echo "==> Running lints with --fix" + rye run fix:ruff +else + echo "==> Running lints" + rye run lint +fi echo "==> Making sure it imports" rye run python -c 'import agentex' diff --git a/src/agentex/_client.py b/src/agentex/_client.py index 0cb9fc452..f3eeeb819 100644 --- a/src/agentex/_client.py +++ b/src/agentex/_client.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from .resources import spans, tasks, agents, events, states, tracker, messages + from .resources import spans, tasks, agents, events, states, tracker, messages, deployment_history from .resources.spans import SpansResource, AsyncSpansResource from .resources.tasks import TasksResource, AsyncTasksResource from .resources.agents import AgentsResource, AsyncAgentsResource @@ -39,6 +39,7 @@ from .resources.states import StatesResource, AsyncStatesResource from .resources.tracker import TrackerResource, AsyncTrackerResource from .resources.messages.messages import MessagesResource, AsyncMessagesResource + from .resources.deployment_history import DeploymentHistoryResource, AsyncDeploymentHistoryResource __all__ = [ "ENVIRONMENTS", @@ -175,6 +176,12 @@ def tracker(self) -> TrackerResource: return TrackerResource(self) + @cached_property + def deployment_history(self) -> DeploymentHistoryResource: + from .resources.deployment_history import DeploymentHistoryResource + + return DeploymentHistoryResource(self) + @cached_property def with_raw_response(self) -> AgentexWithRawResponse: return AgentexWithRawResponse(self) @@ -409,6 +416,12 @@ def tracker(self) -> AsyncTrackerResource: return AsyncTrackerResource(self) + @cached_property + def deployment_history(self) -> AsyncDeploymentHistoryResource: + from .resources.deployment_history import AsyncDeploymentHistoryResource + + return AsyncDeploymentHistoryResource(self) + @cached_property def with_raw_response(self) -> AsyncAgentexWithRawResponse: return AsyncAgentexWithRawResponse(self) @@ -574,6 +587,12 @@ def tracker(self) -> tracker.TrackerResourceWithRawResponse: return TrackerResourceWithRawResponse(self._client.tracker) + @cached_property + def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithRawResponse: + from .resources.deployment_history import DeploymentHistoryResourceWithRawResponse + + return DeploymentHistoryResourceWithRawResponse(self._client.deployment_history) + class AsyncAgentexWithRawResponse: _client: AsyncAgentex @@ -623,6 +642,12 @@ def tracker(self) -> tracker.AsyncTrackerResourceWithRawResponse: return AsyncTrackerResourceWithRawResponse(self._client.tracker) + @cached_property + def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithRawResponse: + from .resources.deployment_history import AsyncDeploymentHistoryResourceWithRawResponse + + return AsyncDeploymentHistoryResourceWithRawResponse(self._client.deployment_history) + class AgentexWithStreamedResponse: _client: Agentex @@ -672,6 +697,12 @@ def tracker(self) -> tracker.TrackerResourceWithStreamingResponse: return TrackerResourceWithStreamingResponse(self._client.tracker) + @cached_property + def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithStreamingResponse: + from .resources.deployment_history import DeploymentHistoryResourceWithStreamingResponse + + return DeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history) + class AsyncAgentexWithStreamedResponse: _client: AsyncAgentex @@ -721,6 +752,12 @@ def tracker(self) -> tracker.AsyncTrackerResourceWithStreamingResponse: return AsyncTrackerResourceWithStreamingResponse(self._client.tracker) + @cached_property + def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithStreamingResponse: + from .resources.deployment_history import AsyncDeploymentHistoryResourceWithStreamingResponse + + return AsyncDeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history) + Client = Agentex diff --git a/src/agentex/_version.py b/src/agentex/_version.py index 455d4ff34..4fff5a371 100644 --- a/src/agentex/_version.py +++ b/src/agentex/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "agentex" -__version__ = "0.8.0" # x-release-please-version +__version__ = "0.8.1" # x-release-please-version diff --git a/src/agentex/types/__init__.py b/src/agentex/types/__init__.py index 34f5fb902..140acd92f 100644 --- a/src/agentex/types/__init__.py +++ b/src/agentex/types/__init__.py @@ -62,9 +62,9 @@ from .task_message_content_param import TaskMessageContentParam as TaskMessageContentParam from .tool_request_content_param import ToolRequestContentParam as ToolRequestContentParam from .tool_response_content_param import ToolResponseContentParam as ToolResponseContentParam -from .deployment_history_list_params import DeploymentHistoryListParams as DeploymentHistoryListParams -from .deployment_history_list_response import DeploymentHistoryListResponse as DeploymentHistoryListResponse from .task_retrieve_by_name_params import TaskRetrieveByNameParams as TaskRetrieveByNameParams from .message_list_paginated_params import MessageListPaginatedParams as MessageListPaginatedParams +from .deployment_history_list_params import DeploymentHistoryListParams as DeploymentHistoryListParams from .task_retrieve_by_name_response import TaskRetrieveByNameResponse as TaskRetrieveByNameResponse from .message_list_paginated_response import MessageListPaginatedResponse as MessageListPaginatedResponse +from .deployment_history_list_response import DeploymentHistoryListResponse as DeploymentHistoryListResponse