Skip to content

Commit 4b133b3

Browse files
authored
Merge pull request #3 from onkernel/release-please--branches--main--changes--next
release: 0.1.0-alpha.2
2 parents 637ffe3 + 4893305 commit 4b133b3

File tree

9 files changed

+37
-6
lines changed

9 files changed

+37
-6
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-
".": "0.1.0-alpha.1"
2+
".": "0.1.0-alpha.2"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-e642528081bcfbb78b52900cb9b8b1407a9c7a8653c57ab021a79d4d52585695.yml
3-
openapi_spec_hash: 8d91d1ac100906977531a93b9f4ae380
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d168b58fcf39dbd0458d132091793d3e2d0930070b7dda2d5f7f1baff20dd31b.yml
3+
openapi_spec_hash: b7e0fd7ee1656d7dbad57209d1584d92
44
config_hash: 75c0b894355904e2a91b70445072d4b4

CHANGELOG.md

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

3+
## 0.1.0-alpha.2 (2025-05-09)
4+
5+
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([fb257f7](https://github.com/onkernel/kernel-python-sdk/commit/fb257f70bd5bb606766adc0f27e96b7a8d537680))
10+
311
## 0.1.0-alpha.1 (2025-05-08)
412

513
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/onkernel/kernel-python-sdk/compare/v0.0.1-alpha.0...v0.1.0-alpha.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 = "kernel"
3-
version = "0.1.0-alpha.1"
3+
version = "0.1.0-alpha.2"
44
description = "The official Python library for the kernel API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/kernel/_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__ = "kernel"
4-
__version__ = "0.1.0-alpha.1" # x-release-please-version
4+
__version__ = "0.1.0-alpha.2" # x-release-please-version

src/kernel/resources/apps.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def deploy(
105105
def invoke(
106106
self,
107107
*,
108+
action_name: str,
108109
app_name: str,
109110
payload: object,
110111
version: str,
@@ -119,6 +120,8 @@ def invoke(
119120
Invoke an application
120121
121122
Args:
123+
action_name: Name of the action to invoke
124+
122125
app_name: Name of the application
123126
124127
payload: Input data for the application
@@ -137,6 +140,7 @@ def invoke(
137140
"/apps/invoke",
138141
body=maybe_transform(
139142
{
143+
"action_name": action_name,
140144
"app_name": app_name,
141145
"payload": payload,
142146
"version": version,
@@ -263,6 +267,7 @@ async def deploy(
263267
async def invoke(
264268
self,
265269
*,
270+
action_name: str,
266271
app_name: str,
267272
payload: object,
268273
version: str,
@@ -277,6 +282,8 @@ async def invoke(
277282
Invoke an application
278283
279284
Args:
285+
action_name: Name of the action to invoke
286+
280287
app_name: Name of the application
281288
282289
payload: Input data for the application
@@ -295,6 +302,7 @@ async def invoke(
295302
"/apps/invoke",
296303
body=await async_maybe_transform(
297304
{
305+
"action_name": action_name,
298306
"app_name": app_name,
299307
"payload": payload,
300308
"version": version,

src/kernel/types/app_invoke_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111

1212
class AppInvokeParams(TypedDict, total=False):
13+
action_name: Required[Annotated[str, PropertyInfo(alias="actionName")]]
14+
"""Name of the action to invoke"""
15+
1316
app_name: Required[Annotated[str, PropertyInfo(alias="appName")]]
1417
"""Name of the application"""
1518

src/kernel/types/app_invoke_response.py

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

3+
from typing import Optional
4+
from typing_extensions import Literal
5+
36
from .._models import BaseModel
47

58
__all__ = ["AppInvokeResponse"]
@@ -9,5 +12,8 @@ class AppInvokeResponse(BaseModel):
912
id: str
1013
"""ID of the invocation"""
1114

12-
status: str
15+
status: Literal["QUEUED", "RUNNING", "SUCCEEDED", "FAILED"]
1316
"""Status of the invocation"""
17+
18+
output: Optional[str] = None
19+
"""Output from the invocation (if available)"""

tests/api_resources/test_apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def test_streaming_response_deploy(self, client: Kernel) -> None:
7676
@parametrize
7777
def test_method_invoke(self, client: Kernel) -> None:
7878
app = client.apps.invoke(
79+
action_name="analyze",
7980
app_name="my-awesome-app",
8081
payload='{ "data": "example input" }',
8182
version="1.0.0",
@@ -86,6 +87,7 @@ def test_method_invoke(self, client: Kernel) -> None:
8687
@parametrize
8788
def test_raw_response_invoke(self, client: Kernel) -> None:
8889
response = client.apps.with_raw_response.invoke(
90+
action_name="analyze",
8991
app_name="my-awesome-app",
9092
payload='{ "data": "example input" }',
9193
version="1.0.0",
@@ -100,6 +102,7 @@ def test_raw_response_invoke(self, client: Kernel) -> None:
100102
@parametrize
101103
def test_streaming_response_invoke(self, client: Kernel) -> None:
102104
with client.apps.with_streaming_response.invoke(
105+
action_name="analyze",
103106
app_name="my-awesome-app",
104107
payload='{ "data": "example input" }',
105108
version="1.0.0",
@@ -213,6 +216,7 @@ async def test_streaming_response_deploy(self, async_client: AsyncKernel) -> Non
213216
@parametrize
214217
async def test_method_invoke(self, async_client: AsyncKernel) -> None:
215218
app = await async_client.apps.invoke(
219+
action_name="analyze",
216220
app_name="my-awesome-app",
217221
payload='{ "data": "example input" }',
218222
version="1.0.0",
@@ -223,6 +227,7 @@ async def test_method_invoke(self, async_client: AsyncKernel) -> None:
223227
@parametrize
224228
async def test_raw_response_invoke(self, async_client: AsyncKernel) -> None:
225229
response = await async_client.apps.with_raw_response.invoke(
230+
action_name="analyze",
226231
app_name="my-awesome-app",
227232
payload='{ "data": "example input" }',
228233
version="1.0.0",
@@ -237,6 +242,7 @@ async def test_raw_response_invoke(self, async_client: AsyncKernel) -> None:
237242
@parametrize
238243
async def test_streaming_response_invoke(self, async_client: AsyncKernel) -> None:
239244
async with async_client.apps.with_streaming_response.invoke(
245+
action_name="analyze",
240246
app_name="my-awesome-app",
241247
payload='{ "data": "example input" }',
242248
version="1.0.0",

0 commit comments

Comments
 (0)