Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.11.4"
".": "0.11.5"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 51
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-8b5a722e4964d2d1dcdc34afccb6d742e1c927cbbd622264c8734f132e31a0f5.yml
openapi_spec_hash: ed101ff177c2e962653ca65acf939336
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-da8bfd5cfb5a6d9ccb7e4edd123b49284f4eccb32fc9b6fb7165548535122e12.yml
openapi_spec_hash: fd6ded34689331831b5c077f71b5f08f
config_hash: 49c2ff978aaa5ccb4ce324a72f116010
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.11.5 (2025-09-29)

Full Changelog: [v0.11.4...v0.11.5](https://github.com/onkernel/kernel-python-sdk/compare/v0.11.4...v0.11.5)

### Features

* Add App Version to Invocation and add filtering on App Version ([c703d0b](https://github.com/onkernel/kernel-python-sdk/commit/c703d0bc7b785ff8118b3fc4cb80873c21b7640a))
* Fix my incorrect grammer ([22b2c11](https://github.com/onkernel/kernel-python-sdk/commit/22b2c1138d8739400edc27c245aa744a1d774ec6))

## 0.11.4 (2025-09-25)

Full Changelog: [v0.11.3...v0.11.4](https://github.com/onkernel/kernel-python-sdk/compare/v0.11.3...v0.11.4)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kernel"
version = "0.11.4"
version = "0.11.5"
description = "The official Python library for the kernel API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "kernel"
__version__ = "0.11.4" # x-release-please-version
__version__ = "0.11.5" # x-release-please-version
16 changes: 12 additions & 4 deletions src/kernel/resources/invocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def update(
) -> InvocationUpdateResponse:
"""Update an invocation's status or output.

This can used to cancel an invocation
by setting the status to "failed".
This can be used to cancel an
invocation by setting the status to "failed".

Args:
status: New status for the invocation.
Expand Down Expand Up @@ -197,6 +197,7 @@ def list(
offset: int | Omit = omit,
since: str | Omit = omit,
status: Literal["queued", "running", "succeeded", "failed"] | Omit = omit,
version: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -225,6 +226,8 @@ def list(

status: Filter results by invocation status.

version: Filter results by application version.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -250,6 +253,7 @@ def list(
"offset": offset,
"since": since,
"status": status,
"version": version,
},
invocation_list_params.InvocationListParams,
),
Expand Down Expand Up @@ -463,8 +467,8 @@ async def update(
) -> InvocationUpdateResponse:
"""Update an invocation's status or output.

This can used to cancel an invocation
by setting the status to "failed".
This can be used to cancel an
invocation by setting the status to "failed".

Args:
status: New status for the invocation.
Expand Down Expand Up @@ -506,6 +510,7 @@ def list(
offset: int | Omit = omit,
since: str | Omit = omit,
status: Literal["queued", "running", "succeeded", "failed"] | Omit = omit,
version: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -534,6 +539,8 @@ def list(

status: Filter results by invocation status.

version: Filter results by application version.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -559,6 +566,7 @@ def list(
"offset": offset,
"since": since,
"status": status,
"version": version,
},
invocation_list_params.InvocationListParams,
),
Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/invocation_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ class InvocationListParams(TypedDict, total=False):

status: Literal["queued", "running", "succeeded", "failed"]
"""Filter results by invocation status."""

version: str
"""Filter results by application version."""
3 changes: 3 additions & 0 deletions src/kernel/types/invocation_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class InvocationListResponse(BaseModel):
status: Literal["queued", "running", "succeeded", "failed"]
"""Status of the invocation"""

version: str
"""Version label for the application"""

finished_at: Optional[datetime] = None
"""
RFC 3339 Nanoseconds timestamp when the invocation finished (null if still
Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/invocation_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class InvocationRetrieveResponse(BaseModel):
status: Literal["queued", "running", "succeeded", "failed"]
"""Status of the invocation"""

version: str
"""Version label for the application"""

finished_at: Optional[datetime] = None
"""
RFC 3339 Nanoseconds timestamp when the invocation finished (null if still
Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/invocation_state_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class Invocation(BaseModel):
status: Literal["queued", "running", "succeeded", "failed"]
"""Status of the invocation"""

version: str
"""Version label for the application"""

finished_at: Optional[datetime] = None
"""
RFC 3339 Nanoseconds timestamp when the invocation finished (null if still
Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/invocation_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class InvocationUpdateResponse(BaseModel):
status: Literal["queued", "running", "succeeded", "failed"]
"""Status of the invocation"""

version: str
"""Version label for the application"""

finished_at: Optional[datetime] = None
"""
RFC 3339 Nanoseconds timestamp when the invocation finished (null if still
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_invocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None:
offset=0,
since="2025-06-20T12:00:00Z",
status="queued",
version="version",
)
assert_matches_type(SyncOffsetPagination[InvocationListResponse], invocation, path=["response"])

Expand Down Expand Up @@ -480,6 +481,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N
offset=0,
since="2025-06-20T12:00:00Z",
status="queued",
version="version",
)
assert_matches_type(AsyncOffsetPagination[InvocationListResponse], invocation, path=["response"])

Expand Down