Skip to content

Commit 7730dd6

Browse files
authored
Merge pull request #31 from digitalocean/release-please--branches--main--changes--next
release: 3.0.0-beta.2
2 parents d01b51d + 8cf97d9 commit 7730dd6

20 files changed

+168
-105
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.0.0-beta.1"
2+
".": "3.0.0-beta.2"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 170
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-015417b36365dfcb32166e67379c38de8bf5127c33dff646097a819a7b4dc588.yml
3-
openapi_spec_hash: d7d811c13cc79f15d82fe680cf425859
4-
config_hash: 77ddef130940a6ad8ea6c6f66aee8757
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-9aca3802735e1375125412aa28ac36bf2175144b8218610a73d2e7f775694dff.yml
3+
openapi_spec_hash: e29d14e3e4679fcf22b3e760e49931b1
4+
config_hash: de89a9c8fde0120577d2aca8be4ae027

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.0.0-beta.2 (2025-08-04)
4+
5+
Full Changelog: [v3.0.0-beta.1...v3.0.0-beta.2](https://github.com/digitalocean/gradient-python/compare/v3.0.0-beta.1...v3.0.0-beta.2)
6+
7+
### Features
8+
9+
* **api:** collected updates 8/4 ([90ff9f2](https://github.com/digitalocean/gradient-python/commit/90ff9f227aa00805deb270e8e1de0ea9b56e3b4e))
10+
311
## 3.0.0-beta.1 (2025-07-31)
412

513
Full Changelog: [v0.1.0-beta.4...v3.0.0-beta.1](https://github.com/digitalocean/gradient-python/compare/v0.1.0-beta.4...v3.0.0-beta.1)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "gradient"
3-
version = "3.0.0-beta.1"
3+
version = "3.0.0-beta.2"
44
description = "The official Python library for the Gradient API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/gradient/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(
118118
base_url = os.environ.get("GRADIENT_BASE_URL")
119119
self._base_url_overridden = base_url is not None
120120
if base_url is None:
121-
base_url = f"https://api.digitalocean.com/"
121+
base_url = f"https://api.digitalocean.com"
122122

123123
super().__init__(
124124
version=__version__,
@@ -386,7 +386,7 @@ def __init__(
386386
base_url = os.environ.get("GRADIENT_BASE_URL")
387387
self._base_url_overridden = base_url is not None
388388
if base_url is None:
389-
base_url = f"https://api.digitalocean.com/"
389+
base_url = f"https://api.digitalocean.com"
390390

391391
super().__init__(
392392
version=__version__,

src/gradient/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "gradient"
4-
__version__ = "3.0.0-beta.1" # x-release-please-version
4+
__version__ = "3.0.0-beta.2" # x-release-please-version

src/gradient/resources/agents/agents.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def update(
300300
self,
301301
path_uuid: str,
302302
*,
303+
agent_log_insights_enabled: bool | NotGiven = NOT_GIVEN,
303304
anthropic_key_uuid: str | NotGiven = NOT_GIVEN,
304305
conversation_logs_enabled: bool | NotGiven = NOT_GIVEN,
305306
description: str | NotGiven = NOT_GIVEN,
@@ -388,6 +389,7 @@ def update(
388389
else f"https://api.digitalocean.com/v2/gen-ai/agents/{path_uuid}",
389390
body=maybe_transform(
390391
{
392+
"agent_log_insights_enabled": agent_log_insights_enabled,
391393
"anthropic_key_uuid": anthropic_key_uuid,
392394
"conversation_logs_enabled": conversation_logs_enabled,
393395
"description": description,
@@ -741,6 +743,7 @@ async def update(
741743
self,
742744
path_uuid: str,
743745
*,
746+
agent_log_insights_enabled: bool | NotGiven = NOT_GIVEN,
744747
anthropic_key_uuid: str | NotGiven = NOT_GIVEN,
745748
conversation_logs_enabled: bool | NotGiven = NOT_GIVEN,
746749
description: str | NotGiven = NOT_GIVEN,
@@ -829,6 +832,7 @@ async def update(
829832
else f"https://api.digitalocean.com/v2/gen-ai/agents/{path_uuid}",
830833
body=await async_maybe_transform(
831834
{
835+
"agent_log_insights_enabled": agent_log_insights_enabled,
832836
"anthropic_key_uuid": anthropic_key_uuid,
833837
"conversation_logs_enabled": conversation_logs_enabled,
834838
"description": description,

src/gradient/types/agent_update_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313

1414
class AgentUpdateParams(TypedDict, total=False):
15+
agent_log_insights_enabled: bool
16+
1517
anthropic_key_uuid: str
1618
"""Optional anthropic key uuid for use with anthropic models"""
1719

src/gradient/types/api_agent.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ class LoggingConfig(BaseModel):
173173
galileo_project_name: Optional[str] = None
174174
"""Name of the Galileo project"""
175175

176+
insights_enabled: Optional[bool] = None
177+
"""Whether insights are enabled"""
178+
179+
insights_enabled_at: Optional[datetime] = None
180+
"""Timestamp when insights were enabled"""
181+
176182
log_stream_id: Optional[str] = None
177183
"""Identifier for the log stream"""
178184

src/gradient/types/api_model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212

1313
class APIModel(BaseModel):
14+
id: Optional[str] = None
15+
"""Human-readable model identifier"""
16+
1417
agreement: Optional[APIAgreement] = None
1518
"""Agreement Description"""
1619

@@ -21,7 +24,7 @@ class APIModel(BaseModel):
2124
"""True if it is a foundational model provided by do"""
2225

2326
name: Optional[str] = None
24-
"""Name of the model"""
27+
"""Display name of the model"""
2528

2629
parent_uuid: Optional[str] = None
2730
"""Unique id of the model, this model is based on"""

0 commit comments

Comments
 (0)