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 @@
{
".": "4.9.0"
".": "4.10.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 36
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-80f24c85d40f5f07c19ce2f7bda8e87218a30efaf6611262d490d431b1efcfbb.yml
openapi_spec_hash: 8aa96c2e29a8dece4f244069ebbcea76
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-8efb262fec205b8ab10f02929369aa1eb1ae72fba3cc8037552f439ab63c1f2d.yml
openapi_spec_hash: 265ec44f88060288ab3dc2142eb29585
config_hash: 8e05a8613b4c0e602d485566da4e5264
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 4.10.0 (2026-04-01)

Full Changelog: [v4.9.0...v4.10.0](https://github.com/runwayml/sdk-python/compare/v4.9.0...v4.10.0)

### Features

* **api:** add tools parameter to realtime sessions ([c06a7f0](https://github.com/runwayml/sdk-python/commit/c06a7f0ac1df58a820b7bfd288c60efce163f743))
* **internal:** implement indices array format for query and form serialization ([d8fecc7](https://github.com/runwayml/sdk-python/commit/d8fecc71d2e6b940f06553a0ffa45b0372d7f8cf))


### Chores

* **tests:** bump steady to v0.20.1 ([ad84815](https://github.com/runwayml/sdk-python/commit/ad8481558aa386843875d631910ecce54e4009ba))
* **tests:** bump steady to v0.20.2 ([7c63591](https://github.com/runwayml/sdk-python/commit/7c63591ad506c7f83ba85039c05fcaf94707d0f9))

## 4.9.0 (2026-03-25)

Full Changelog: [v4.8.0...v4.9.0](https://github.com/runwayml/sdk-python/compare/v4.8.0...v4.9.0)
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 = "runwayml"
version = "4.9.0"
version = "4.10.0"
description = "The official Python library for the runwayml API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ echo "==> Starting mock server with URL ${URL}"
# Run steady mock on the given spec
if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stdy/cli@0.19.7 -- steady --version
npm exec --package=@stdy/cli@0.20.2 -- steady --version

npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL" &> .stdy.log &
npm exec --package=@stdy/cli@0.20.2 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL" &> .stdy.log &

# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
Expand All @@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL"
npm exec --package=@stdy/cli@0.20.2 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL"
fi
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elif ! steady_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the steady command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=brackets --validator-query-object-format=brackets${NC}"
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.20.2 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=brackets --validator-form-object-format=brackets${NC}"
echo

exit 1
Expand Down
5 changes: 4 additions & 1 deletion src/runwayml/_qs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def _stringify_item(
items.extend(self._stringify_item(key, item, opts))
return items
elif array_format == "indices":
raise NotImplementedError("The array indices format is not supported yet")
items = []
for i, item in enumerate(value):
items.extend(self._stringify_item(f"{key}[{i}]", item, opts))
return items
elif array_format == "brackets":
items = []
key = key + "[]"
Expand Down
2 changes: 1 addition & 1 deletion src/runwayml/_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__ = "runwayml"
__version__ = "4.9.0" # x-release-please-version
__version__ = "4.10.0" # x-release-please-version
10 changes: 9 additions & 1 deletion src/runwayml/resources/realtime_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Any, cast
from typing import Any, Iterable, cast
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -53,6 +53,7 @@ def create(
max_duration: int | Omit = omit,
personality: str | Omit = omit,
start_script: str | Omit = omit,
tools: Iterable[realtime_session_create_params.Tool] | 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 All @@ -76,6 +77,8 @@ def create(
start_script: Override the avatar start script for this session. If not provided, uses the
avatar default.

tools: Tools available to the avatar during the session.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -93,6 +96,7 @@ def create(
"max_duration": max_duration,
"personality": personality,
"start_script": start_script,
"tools": tools,
},
realtime_session_create_params.RealtimeSessionCreateParams,
),
Expand Down Expand Up @@ -203,6 +207,7 @@ async def create(
max_duration: int | Omit = omit,
personality: str | Omit = omit,
start_script: str | Omit = omit,
tools: Iterable[realtime_session_create_params.Tool] | 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 All @@ -226,6 +231,8 @@ async def create(
start_script: Override the avatar start script for this session. If not provided, uses the
avatar default.

tools: Tools available to the avatar during the session.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -243,6 +250,7 @@ async def create(
"max_duration": max_duration,
"personality": personality,
"start_script": start_script,
"tools": tools,
},
realtime_session_create_params.RealtimeSessionCreateParams,
),
Expand Down
Loading