Skip to content

Commit cda5c19

Browse files
feat(api): api update
1 parent 2cda6ae commit cda5c19

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mozilla%2Ftabstack-4f4bec25bf55411f39f7c98b8bfd9abc76f886581f058ee4dd533ba52165b642.yml
3-
openapi_spec_hash: 7683e4ecea241c97066124b3ba833843
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mozilla%2Ftabstack-ab135cad4c10edc98bbe45d18a1ca23d2d4aa4b2ba2e4554e6991e322ce46231.yml
3+
openapi_spec_hash: 3e8185dfbbd4e83d5f05ded9ce9c5b06
44
config_hash: 6b388b673b2a48895ab10da245fb6771

src/tabstack/resources/agent.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def automate(
5252
data: object | Omit = omit,
5353
geo_target: agent_automate_params.GeoTarget | Omit = omit,
5454
guardrails: str | Omit = omit,
55+
interactive: bool | Omit = omit,
5556
max_iterations: int | Omit = omit,
5657
max_validation_attempts: int | Omit = omit,
5758
url: str | Omit = omit,
@@ -93,6 +94,8 @@ def automate(
9394
9495
guardrails: Safety constraints for execution
9596
97+
interactive: Enable interactive mode to allow human-in-the-loop input during task execution
98+
9699
max_iterations: Maximum task iterations
97100
98101
max_validation_attempts: Maximum validation attempts
@@ -116,6 +119,7 @@ def automate(
116119
"data": data,
117120
"geo_target": geo_target,
118121
"guardrails": guardrails,
122+
"interactive": interactive,
119123
"max_iterations": max_iterations,
120124
"max_validation_attempts": max_validation_attempts,
121125
"url": url,
@@ -231,6 +235,7 @@ async def automate(
231235
data: object | Omit = omit,
232236
geo_target: agent_automate_params.GeoTarget | Omit = omit,
233237
guardrails: str | Omit = omit,
238+
interactive: bool | Omit = omit,
234239
max_iterations: int | Omit = omit,
235240
max_validation_attempts: int | Omit = omit,
236241
url: str | Omit = omit,
@@ -272,6 +277,8 @@ async def automate(
272277
273278
guardrails: Safety constraints for execution
274279
280+
interactive: Enable interactive mode to allow human-in-the-loop input during task execution
281+
275282
max_iterations: Maximum task iterations
276283
277284
max_validation_attempts: Maximum validation attempts
@@ -295,6 +302,7 @@ async def automate(
295302
"data": data,
296303
"geo_target": geo_target,
297304
"guardrails": guardrails,
305+
"interactive": interactive,
298306
"max_iterations": max_iterations,
299307
"max_validation_attempts": max_validation_attempts,
300308
"url": url,

src/tabstack/types/agent_automate_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class AgentAutomateParams(TypedDict, total=False):
2222
guardrails: str
2323
"""Safety constraints for execution"""
2424

25+
interactive: bool
26+
"""Enable interactive mode to allow human-in-the-loop input during task execution"""
27+
2528
max_iterations: Annotated[int, PropertyInfo(alias="maxIterations")]
2629
"""Maximum task iterations"""
2730

tests/api_resources/test_agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_method_automate_with_all_params(self, client: Tabstack) -> None:
3131
data={},
3232
geo_target={"country": "US"},
3333
guardrails="browse and extract only, don't interact with repositories",
34+
interactive=False,
3435
max_iterations=50,
3536
max_validation_attempts=3,
3637
url="https://github.com/trending",
@@ -128,6 +129,7 @@ async def test_method_automate_with_all_params(self, async_client: AsyncTabstack
128129
data={},
129130
geo_target={"country": "US"},
130131
guardrails="browse and extract only, don't interact with repositories",
132+
interactive=False,
131133
max_iterations=50,
132134
max_validation_attempts=3,
133135
url="https://github.com/trending",

0 commit comments

Comments
 (0)