Skip to content

Commit 2730eea

Browse files
feat(api): api update
1 parent fb819d6 commit 2730eea

11 files changed

Lines changed: 17 additions & 204 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-39a99ab48c1c418a7cf1535c85ff115b2745b5a6fd04aa4d148ae91a58a3dcd8.yml
3-
openapi_spec_hash: 5c307d9da7c5debd964c0da4ebe82214
4-
config_hash: 236823a4936c76818117c16aa5c188df
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-e752e75a35d88b84870729ef94b0c32783172983420cbff1b204ca14375553f7.yml
3+
openapi_spec_hash: 34787afc1e1c84a643431a0f0eb352ae
4+
config_hash: 5a6e285f6e3a958a887b31b972a3f49c

src/oz_agent_sdk/resources/agent/agent_.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def create(
5252
name: str,
5353
base_model: Optional[str] | Omit = omit,
5454
description: Optional[str] | Omit = omit,
55-
memory_stores: Iterable[agent_create_params.MemoryStore] | Omit = omit,
5655
secrets: Iterable[agent_create_params.Secret] | Omit = omit,
5756
skills: SequenceNotStr[str] | Omit = omit,
5857
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -74,10 +73,6 @@ def create(
7473
7574
description: Optional description of the agent
7675
77-
memory_stores: Optional list of memory stores to attach to the agent. Each store must be
78-
team-owned by the same team as the agent. Duplicate UIDs within a single request
79-
are rejected.
80-
8176
secrets: Optional list of secrets associated with the agent. Duplicate names within a
8277
single request are rejected. Each entry is unioned into the run-time secret
8378
scope when the agent executes.
@@ -104,7 +99,6 @@ def create(
10499
"name": name,
105100
"base_model": base_model,
106101
"description": description,
107-
"memory_stores": memory_stores,
108102
"secrets": secrets,
109103
"skills": skills,
110104
},
@@ -122,7 +116,6 @@ def update(
122116
*,
123117
base_model: Optional[str] | Omit = omit,
124118
description: Optional[str] | Omit = omit,
125-
memory_stores: Optional[Iterable[agent_update_params.MemoryStore]] | Omit = omit,
126119
name: str | Omit = omit,
127120
secrets: Optional[Iterable[agent_update_params.Secret]] | Omit = omit,
128121
skills: Optional[SequenceNotStr[str]] | Omit = omit,
@@ -144,9 +137,6 @@ def update(
144137
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
145138
value to clear.
146139
147-
memory_stores: Replacement list of memory stores. Omit to leave unchanged, pass an empty array
148-
to clear, or pass a non-empty array to replace.
149-
150140
name: The new name for the agent
151141
152142
secrets: Replacement list of secrets. Omit to leave unchanged, pass an empty array to
@@ -171,7 +161,6 @@ def update(
171161
{
172162
"base_model": base_model,
173163
"description": description,
174-
"memory_stores": memory_stores,
175164
"name": name,
176165
"secrets": secrets,
177166
"skills": skills,
@@ -307,7 +296,6 @@ async def create(
307296
name: str,
308297
base_model: Optional[str] | Omit = omit,
309298
description: Optional[str] | Omit = omit,
310-
memory_stores: Iterable[agent_create_params.MemoryStore] | Omit = omit,
311299
secrets: Iterable[agent_create_params.Secret] | Omit = omit,
312300
skills: SequenceNotStr[str] | Omit = omit,
313301
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -329,10 +317,6 @@ async def create(
329317
330318
description: Optional description of the agent
331319
332-
memory_stores: Optional list of memory stores to attach to the agent. Each store must be
333-
team-owned by the same team as the agent. Duplicate UIDs within a single request
334-
are rejected.
335-
336320
secrets: Optional list of secrets associated with the agent. Duplicate names within a
337321
single request are rejected. Each entry is unioned into the run-time secret
338322
scope when the agent executes.
@@ -359,7 +343,6 @@ async def create(
359343
"name": name,
360344
"base_model": base_model,
361345
"description": description,
362-
"memory_stores": memory_stores,
363346
"secrets": secrets,
364347
"skills": skills,
365348
},
@@ -377,7 +360,6 @@ async def update(
377360
*,
378361
base_model: Optional[str] | Omit = omit,
379362
description: Optional[str] | Omit = omit,
380-
memory_stores: Optional[Iterable[agent_update_params.MemoryStore]] | Omit = omit,
381363
name: str | Omit = omit,
382364
secrets: Optional[Iterable[agent_update_params.Secret]] | Omit = omit,
383365
skills: Optional[SequenceNotStr[str]] | Omit = omit,
@@ -399,9 +381,6 @@ async def update(
399381
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
400382
value to clear.
401383
402-
memory_stores: Replacement list of memory stores. Omit to leave unchanged, pass an empty array
403-
to clear, or pass a non-empty array to replace.
404-
405384
name: The new name for the agent
406385
407386
secrets: Replacement list of secrets. Omit to leave unchanged, pass an empty array to
@@ -426,7 +405,6 @@ async def update(
426405
{
427406
"base_model": base_model,
428407
"description": description,
429-
"memory_stores": memory_stores,
430408
"name": name,
431409
"secrets": secrets,
432410
"skills": skills,

src/oz_agent_sdk/types/agent/agent_create_params.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from __future__ import annotations
44

55
from typing import Iterable, Optional
6-
from typing_extensions import Literal, Required, TypedDict
6+
from typing_extensions import Required, TypedDict
77

88
from ..._types import SequenceNotStr
99

10-
__all__ = ["AgentCreateParams", "MemoryStore", "Secret"]
10+
__all__ = ["AgentCreateParams", "Secret"]
1111

1212

1313
class AgentCreateParams(TypedDict, total=False):
@@ -20,13 +20,6 @@ class AgentCreateParams(TypedDict, total=False):
2020
description: Optional[str]
2121
"""Optional description of the agent"""
2222

23-
memory_stores: Iterable[MemoryStore]
24-
"""
25-
Optional list of memory stores to attach to the agent. Each store must be
26-
team-owned by the same team as the agent. Duplicate UIDs within a single request
27-
are rejected.
28-
"""
29-
3023
secrets: Iterable[Secret]
3124
"""
3225
Optional list of secrets associated with the agent. Duplicate names within a
@@ -44,19 +37,6 @@ class AgentCreateParams(TypedDict, total=False):
4437
"""
4538

4639

47-
class MemoryStore(TypedDict, total=False):
48-
"""Reference to a memory store to attach to an agent."""
49-
50-
access: Required[Literal["read_write", "read_only"]]
51-
"""Access level for the store."""
52-
53-
instructions: Required[str]
54-
"""Instructions for how the agent should use this memory store. Must not be empty."""
55-
56-
uid: Required[str]
57-
"""UID of the memory store."""
58-
59-
6040
class Secret(TypedDict, total=False):
6141
"""Reference to a managed secret by name."""
6242

src/oz_agent_sdk/types/agent/agent_response.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,10 @@
22

33
from typing import List, Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
65

76
from ..._models import BaseModel
87

9-
__all__ = ["AgentResponse", "MemoryStore", "Secret"]
10-
11-
12-
class MemoryStore(BaseModel):
13-
"""Reference to a memory store to attach to an agent."""
14-
15-
access: Literal["read_write", "read_only"]
16-
"""Access level for the store."""
17-
18-
instructions: str
19-
"""Instructions for how the agent should use this memory store. Must not be empty."""
20-
21-
uid: str
22-
"""UID of the memory store."""
8+
__all__ = ["AgentResponse", "Secret"]
239

2410

2511
class Secret(BaseModel):
@@ -36,12 +22,6 @@ class AgentResponse(BaseModel):
3622
created_at: datetime
3723
"""When the agent was created (RFC3339)"""
3824

39-
memory_stores: List[MemoryStore]
40-
"""
41-
Memory stores attached to this agent. Always present; empty when no stores are
42-
attached.
43-
"""
44-
4525
name: str
4626
"""Name of the agent"""
4727

src/oz_agent_sdk/types/agent/agent_update_params.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from __future__ import annotations
44

55
from typing import Iterable, Optional
6-
from typing_extensions import Literal, Required, TypedDict
6+
from typing_extensions import Required, TypedDict
77

88
from ..._types import SequenceNotStr
99

10-
__all__ = ["AgentUpdateParams", "MemoryStore", "Secret"]
10+
__all__ = ["AgentUpdateParams", "Secret"]
1111

1212

1313
class AgentUpdateParams(TypedDict, total=False):
@@ -23,13 +23,6 @@ class AgentUpdateParams(TypedDict, total=False):
2323
Omit or pass `null` to leave unchanged, or use an empty value to clear.
2424
"""
2525

26-
memory_stores: Optional[Iterable[MemoryStore]]
27-
"""Replacement list of memory stores.
28-
29-
Omit to leave unchanged, pass an empty array to clear, or pass a non-empty array
30-
to replace.
31-
"""
32-
3326
name: str
3427
"""The new name for the agent"""
3528

@@ -48,19 +41,6 @@ class AgentUpdateParams(TypedDict, total=False):
4841
"""
4942

5043

51-
class MemoryStore(TypedDict, total=False):
52-
"""Reference to a memory store to attach to an agent."""
53-
54-
access: Required[Literal["read_write", "read_only"]]
55-
"""Access level for the store."""
56-
57-
instructions: Required[str]
58-
"""Instructions for how the agent should use this memory store. Must not be empty."""
59-
60-
uid: Required[str]
61-
"""UID of the memory store."""
62-
63-
6444
class Secret(TypedDict, total=False):
6545
"""Reference to a managed secret by name."""
6646

src/oz_agent_sdk/types/agent/scheduled_agent_item.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ class ScheduledAgentItem(BaseModel):
4141
agent_config: Optional[AmbientAgentConfig] = None
4242
"""Configuration for a cloud agent run"""
4343

44-
agent_uid: Optional[str] = None
45-
"""UID of the agent that this schedule runs as"""
46-
4744
created_by: Optional[UserProfile] = None
4845

4946
environment: Optional[CloudEnvironmentConfig] = None

src/oz_agent_sdk/types/ambient_agent_config.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List, Optional
3+
from typing import Dict, Optional
44
from typing_extensions import Literal
55

66
from pydantic import Field as FieldInfo
77

88
from .._models import BaseModel
99
from .mcp_server_config import McpServerConfig
1010

11-
__all__ = ["AmbientAgentConfig", "Harness", "HarnessAuthSecrets", "MemoryStore", "SessionSharing"]
11+
__all__ = ["AmbientAgentConfig", "Harness", "HarnessAuthSecrets", "SessionSharing"]
1212

1313

1414
class Harness(BaseModel):
@@ -41,19 +41,6 @@ class HarnessAuthSecrets(BaseModel):
4141
"""
4242

4343

44-
class MemoryStore(BaseModel):
45-
"""Reference to a memory store to attach to an agent."""
46-
47-
access: Literal["read_write", "read_only"]
48-
"""Access level for the store."""
49-
50-
instructions: str
51-
"""Instructions for how the agent should use this memory store. Must not be empty."""
52-
53-
uid: str
54-
"""UID of the memory store."""
55-
56-
5744
class SessionSharing(BaseModel):
5845
"""
5946
Configures sharing behavior for the run's shared session.
@@ -113,9 +100,6 @@ class AmbientAgentConfig(BaseModel):
113100
mcp_servers: Optional[Dict[str, McpServerConfig]] = None
114101
"""Map of MCP server configurations by name"""
115102

116-
memory_stores: Optional[List[MemoryStore]] = None
117-
"""Memory stores to attach to this run."""
118-
119103
api_model_id: Optional[str] = FieldInfo(alias="model_id", default=None)
120104
"""LLM model to use (uses team default if not specified)"""
121105

src/oz_agent_sdk/types/ambient_agent_config_param.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Iterable
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict
6+
from typing_extensions import Literal, TypedDict
77

88
from .mcp_server_config_param import McpServerConfigParam
99

10-
__all__ = ["AmbientAgentConfigParam", "Harness", "HarnessAuthSecrets", "MemoryStore", "SessionSharing"]
10+
__all__ = ["AmbientAgentConfigParam", "Harness", "HarnessAuthSecrets", "SessionSharing"]
1111

1212

1313
class Harness(TypedDict, total=False):
@@ -40,19 +40,6 @@ class HarnessAuthSecrets(TypedDict, total=False):
4040
"""
4141

4242

43-
class MemoryStore(TypedDict, total=False):
44-
"""Reference to a memory store to attach to an agent."""
45-
46-
access: Required[Literal["read_write", "read_only"]]
47-
"""Access level for the store."""
48-
49-
instructions: Required[str]
50-
"""Instructions for how the agent should use this memory store. Must not be empty."""
51-
52-
uid: Required[str]
53-
"""UID of the memory store."""
54-
55-
5643
class SessionSharing(TypedDict, total=False):
5744
"""
5845
Configures sharing behavior for the run's shared session.
@@ -112,9 +99,6 @@ class AmbientAgentConfigParam(TypedDict, total=False):
11299
mcp_servers: Dict[str, McpServerConfigParam]
113100
"""Map of MCP server configurations by name"""
114101

115-
memory_stores: Iterable[MemoryStore]
116-
"""Memory stores to attach to this run."""
117-
118102
model_id: str
119103
"""LLM model to use (uses team default if not specified)"""
120104

0 commit comments

Comments
 (0)