Skip to content

Commit 007cb3c

Browse files
feat(api): update via SDK Studio
1 parent cbc5190 commit 007cb3c

File tree

5 files changed

+24
-26
lines changed

5 files changed

+24
-26
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: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-64ccdff4ca5d73d79d89e817fe83ccfd3d529696df3e6818c3c75e586ae00801.yml
3-
openapi_spec_hash: 21c7b8757fc0cc9415cda1bc06251de6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-1f7397b87108a992979b665f45bf0aee5b10387e8124f4768c4c7852ba0b23d7.yml
3+
openapi_spec_hash: e5460337788e7eab0d8f05ef2f55086e
44
config_hash: c6bab7ac8da570a5abbcfb19db119b6b

src/kernel/resources/apps/apps.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ def list(
7777
extra_body: Body | None = None,
7878
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
7979
) -> AppListResponse:
80-
"""List application versions for the authenticated user.
80+
"""List applications.
8181
82-
Optionally filter by app
83-
name and/or version label.
82+
Optionally filter by app name and/or version label.
8483
8584
Args:
8685
app_name: Filter results by application name.
@@ -154,10 +153,9 @@ async def list(
154153
extra_body: Body | None = None,
155154
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
156155
) -> AppListResponse:
157-
"""List application versions for the authenticated user.
156+
"""List applications.
158157
159-
Optionally filter by app
160-
name and/or version label.
158+
Optionally filter by app name and/or version label.
161159
162160
Args:
163161
app_name: Filter results by application name.

src/kernel/resources/apps/deployments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def create(
6363
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6464
) -> DeploymentCreateResponse:
6565
"""
66-
Deploy a new application
66+
Deploy a new application and associated actions to Kernel.
6767
6868
Args:
6969
entrypoint_rel_path: Relative path to the entrypoint of the application
@@ -190,7 +190,7 @@ async def create(
190190
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
191191
) -> DeploymentCreateResponse:
192192
"""
193-
Deploy a new application
193+
Deploy a new application and associated actions to Kernel.
194194
195195
Args:
196196
entrypoint_rel_path: Relative path to the entrypoint of the application

src/kernel/resources/apps/invocations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def create(
6161
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6262
) -> InvocationCreateResponse:
6363
"""
64-
Invoke an application
64+
Invoke an action.
6565
6666
Args:
6767
action_name: Name of the action to invoke
@@ -113,7 +113,7 @@ def retrieve(
113113
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
114114
) -> InvocationRetrieveResponse:
115115
"""
116-
Get an app invocation by id
116+
Get details about an invocation's status and output.
117117
118118
Args:
119119
extra_headers: Send extra headers
@@ -148,7 +148,7 @@ def update(
148148
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
149149
) -> InvocationUpdateResponse:
150150
"""
151-
Update invocation status or output
151+
Update an invocation's status or output.
152152
153153
Args:
154154
status: New status for the invocation.
@@ -217,7 +217,7 @@ async def create(
217217
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
218218
) -> InvocationCreateResponse:
219219
"""
220-
Invoke an application
220+
Invoke an action.
221221
222222
Args:
223223
action_name: Name of the action to invoke
@@ -269,7 +269,7 @@ async def retrieve(
269269
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
270270
) -> InvocationRetrieveResponse:
271271
"""
272-
Get an app invocation by id
272+
Get details about an invocation's status and output.
273273
274274
Args:
275275
extra_headers: Send extra headers
@@ -304,7 +304,7 @@ async def update(
304304
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
305305
) -> InvocationUpdateResponse:
306306
"""
307-
Update invocation status or output
307+
Update an invocation's status or output.
308308
309309
Args:
310310
status: New status for the invocation.

src/kernel/resources/browsers.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create(
5757
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5858
) -> BrowserCreateResponse:
5959
"""
60-
Create Browser Session
60+
Create a new browser session from within an action.
6161
6262
Args:
6363
invocation_id: action invocation ID
@@ -99,7 +99,7 @@ def retrieve(
9999
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
100100
) -> BrowserRetrieveResponse:
101101
"""
102-
Get Browser Session by ID
102+
Get information about a browser session.
103103
104104
Args:
105105
extra_headers: Send extra headers
@@ -130,7 +130,7 @@ def list(
130130
extra_body: Body | None = None,
131131
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132132
) -> BrowserListResponse:
133-
"""List active browser sessions for the authenticated user"""
133+
"""List active browser sessions"""
134134
return self._get(
135135
"/browsers",
136136
options=make_request_options(
@@ -151,7 +151,7 @@ def delete(
151151
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
152152
) -> None:
153153
"""
154-
Delete a persistent browser session by persistent_id query parameter.
154+
Delete a persistent browser session by its persistent_id.
155155
156156
Args:
157157
persistent_id: Persistent browser identifier
@@ -189,7 +189,7 @@ def delete_by_id(
189189
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
190190
) -> None:
191191
"""
192-
Delete Browser Session by ID
192+
Delete a browser session by ID
193193
194194
Args:
195195
extra_headers: Send extra headers
@@ -245,7 +245,7 @@ async def create(
245245
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
246246
) -> BrowserCreateResponse:
247247
"""
248-
Create Browser Session
248+
Create a new browser session from within an action.
249249
250250
Args:
251251
invocation_id: action invocation ID
@@ -287,7 +287,7 @@ async def retrieve(
287287
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
288288
) -> BrowserRetrieveResponse:
289289
"""
290-
Get Browser Session by ID
290+
Get information about a browser session.
291291
292292
Args:
293293
extra_headers: Send extra headers
@@ -318,7 +318,7 @@ async def list(
318318
extra_body: Body | None = None,
319319
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
320320
) -> BrowserListResponse:
321-
"""List active browser sessions for the authenticated user"""
321+
"""List active browser sessions"""
322322
return await self._get(
323323
"/browsers",
324324
options=make_request_options(
@@ -339,7 +339,7 @@ async def delete(
339339
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
340340
) -> None:
341341
"""
342-
Delete a persistent browser session by persistent_id query parameter.
342+
Delete a persistent browser session by its persistent_id.
343343
344344
Args:
345345
persistent_id: Persistent browser identifier
@@ -379,7 +379,7 @@ async def delete_by_id(
379379
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
380380
) -> None:
381381
"""
382-
Delete Browser Session by ID
382+
Delete a browser session by ID
383383
384384
Args:
385385
extra_headers: Send extra headers

0 commit comments

Comments
 (0)