Skip to content

Commit bfe4091

Browse files
feat(api): created at filter in list view
1 parent 14b1816 commit bfe4091

File tree

7 files changed

+23
-7
lines changed

7 files changed

+23
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 3
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c4c5f89f67a73e4d17377d2b96fc201a63cd5458cbebaa23e78f92b59b90cc5b.yml
3-
openapi_spec_hash: 931c6189a4fc4ee320963646b1b7edbe
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-678afb4efd7b655ded420e66621722701b018bcfce2423ec9beb4e575108c05c.yml
3+
openapi_spec_hash: 4f8537526fc20ec33facbc86e1abd571
44
config_hash: 9c6b93a5f4b658b946f0ab7fcfedbaa3

src/warp_agent_sdk/resources/agent/agent.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def run(
5959
*,
6060
prompt: str,
6161
config: AmbientAgentConfigParam | Omit = omit,
62+
team: bool | Omit = omit,
6263
title: str | Omit = omit,
6364
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6465
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -77,6 +78,8 @@ def run(
7778
7879
config: Configuration for an ambient agent task
7980
81+
team: Make the task visible to all team members, not only the calling user
82+
8083
title: Custom title for the task (auto-generated if not provided)
8184
8285
extra_headers: Send extra headers
@@ -93,6 +96,7 @@ def run(
9396
{
9497
"prompt": prompt,
9598
"config": config,
99+
"team": team,
96100
"title": title,
97101
},
98102
agent_run_params.AgentRunParams,
@@ -133,6 +137,7 @@ async def run(
133137
*,
134138
prompt: str,
135139
config: AmbientAgentConfigParam | Omit = omit,
140+
team: bool | Omit = omit,
136141
title: str | Omit = omit,
137142
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
138143
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -151,6 +156,8 @@ async def run(
151156
152157
config: Configuration for an ambient agent task
153158
159+
team: Make the task visible to all team members, not only the calling user
160+
154161
title: Custom title for the task (auto-generated if not provided)
155162
156163
extra_headers: Send extra headers
@@ -167,6 +174,7 @@ async def run(
167174
{
168175
"prompt": prompt,
169176
"config": config,
177+
"team": team,
170178
"title": title,
171179
},
172180
agent_run_params.AgentRunParams,

src/warp_agent_sdk/types/agent/task_item.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,13 @@ class TaskItem(BaseModel):
6767
"""Source that created the task:
6868
6969
- LINEAR: Created from Linear integration
70-
- API: Created via the public API
70+
- API: Created via the Warp API
7171
- SLACK: Created from Slack integration
7272
- LOCAL: Created from local CLI/app
7373
- SCHEDULED_AGENT: Created by a scheduled agent
7474
"""
7575

76+
started_at: Optional[datetime] = None
77+
"""Timestamp when the agent started working on the task (RFC3339)"""
78+
7679
status_message: Optional[StatusMessage] = None

src/warp_agent_sdk/types/agent_run_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ class AgentRunParams(TypedDict, total=False):
1616
config: AmbientAgentConfigParam
1717
"""Configuration for an ambient agent task"""
1818

19+
team: bool
20+
"""Make the task visible to all team members, not only the calling user"""
21+
1922
title: str
2023
"""Custom title for the task (auto-generated if not provided)"""

src/warp_agent_sdk/types/ambient_agent_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class AmbientAgentConfig(BaseModel):
4141
"""Custom base prompt for the agent"""
4242

4343
environment_id: Optional[str] = None
44-
"""UID of a CloudEnvironment GSO to use"""
44+
"""UID of the environment to run the task in"""
4545

4646
mcp_servers: Optional[Dict[str, McpServers]] = None
4747
"""Map of MCP server configurations by name"""
4848

4949
api_model_id: Optional[str] = FieldInfo(alias="model_id", default=None)
50-
"""LLM model to use (uses workspace default if not specified)"""
50+
"""LLM model to use (uses team default if not specified)"""
5151

5252
name: Optional[str] = None
5353
"""Config name for searchability and traceability"""

src/warp_agent_sdk/types/ambient_agent_config_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ class AmbientAgentConfigParam(TypedDict, total=False):
4242
"""Custom base prompt for the agent"""
4343

4444
environment_id: str
45-
"""UID of a CloudEnvironment GSO to use"""
45+
"""UID of the environment to run the task in"""
4646

4747
mcp_servers: Dict[str, McpServers]
4848
"""Map of MCP server configurations by name"""
4949

5050
model_id: str
51-
"""LLM model to use (uses workspace default if not specified)"""
51+
"""LLM model to use (uses team default if not specified)"""
5252

5353
name: str
5454
"""Config name for searchability and traceability"""

tests/api_resources/test_agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def test_method_run_with_all_params(self, client: WarpAPI) -> None:
4646
"model_id": "model_id",
4747
"name": "name",
4848
},
49+
team=True,
4950
title="title",
5051
)
5152
assert_matches_type(AgentRunResponse, agent, path=["response"])
@@ -111,6 +112,7 @@ async def test_method_run_with_all_params(self, async_client: AsyncWarpAPI) -> N
111112
"model_id": "model_id",
112113
"name": "name",
113114
},
115+
team=True,
114116
title="title",
115117
)
116118
assert_matches_type(AgentRunResponse, agent, path=["response"])

0 commit comments

Comments
 (0)