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 @@
{
".": "5.38.0"
".": "5.39.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: 76
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell/retell-05474670b76c31276c1956b211a508ef83a98460fdaf874ab8ff8adec07ca6f5.yml
openapi_spec_hash: f90a89b2cf56a4dc802dfa049e1dadd5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell/retell-d2573b05221454951e2d3f6aa7e56afe1a1e81fac61608ddc4b67892a3b9527f.yml
openapi_spec_hash: 5fa3e4867d55623e7c51da628bb080bb
config_hash: 563668cc30bc4847932ba265108c000c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 5.39.0 (2026-05-12)

Full Changelog: [v5.38.0...v5.39.0](https://github.com/RetellAI/retell-python-sdk/compare/v5.38.0...v5.39.0)

### Features

* **api:** api update ([21d6b47](https://github.com/RetellAI/retell-python-sdk/commit/21d6b47b63e65ef476a2f4d32e71f2a23c81b77e))

## 5.38.0 (2026-05-12)

Full Changelog: [v5.37.0...v5.38.0](https://github.com/RetellAI/retell-python-sdk/compare/v5.37.0...v5.38.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 = "retell-sdk"
version = "5.38.0"
version = "5.39.0"
description = "The official Python library for the retell API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/retell/_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__ = "retell"
__version__ = "5.38.0" # x-release-please-version
__version__ = "5.39.0" # x-release-please-version
12 changes: 6 additions & 6 deletions src/retell/resources/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def create_phone_call(
metadata: object | Omit = omit,
override_agent_id: str | Omit = omit,
override_agent_version: Union[int, str] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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 @@ -343,7 +343,7 @@ def create_web_call(
current_node_id: Optional[str] | Omit = omit,
current_state: Optional[str] | Omit = omit,
metadata: object | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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 @@ -418,7 +418,7 @@ def register_phone_call(
direction: Literal["inbound", "outbound"] | Omit = omit,
from_number: str | Omit = omit,
metadata: object | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, str] | Omit = omit,
to_number: 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.
Expand Down Expand Up @@ -741,7 +741,7 @@ async def create_phone_call(
metadata: object | Omit = omit,
override_agent_id: str | Omit = omit,
override_agent_version: Union[int, str] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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 @@ -826,7 +826,7 @@ async def create_web_call(
current_node_id: Optional[str] | Omit = omit,
current_state: Optional[str] | Omit = omit,
metadata: object | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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 @@ -901,7 +901,7 @@ async def register_phone_call(
direction: Literal["inbound", "outbound"] | Omit = omit,
from_number: str | Omit = omit,
metadata: object | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, str] | Omit = omit,
to_number: 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.
Expand Down
12 changes: 6 additions & 6 deletions src/retell/resources/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def create(
agent_id: str,
agent_version: Union[int, str] | Omit = omit,
metadata: object | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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 @@ -207,7 +207,7 @@ def update(
def list(
self,
*,
filter_criteria: Dict[str, object] | Omit = omit,
filter_criteria: object | Omit = omit,
limit: int | Omit = omit,
pagination_key: str | Omit = omit,
skip: int | Omit = omit,
Expand Down Expand Up @@ -348,7 +348,7 @@ def create_sms_chat(
metadata: object | Omit = omit,
override_agent_id: str | Omit = omit,
override_agent_version: Union[int, str] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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 @@ -470,7 +470,7 @@ async def create(
agent_id: str,
agent_version: Union[int, str] | Omit = omit,
metadata: object | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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 @@ -618,7 +618,7 @@ async def update(
async def list(
self,
*,
filter_criteria: Dict[str, object] | Omit = omit,
filter_criteria: object | Omit = omit,
limit: int | Omit = omit,
pagination_key: str | Omit = omit,
skip: int | Omit = omit,
Expand Down Expand Up @@ -759,7 +759,7 @@ async def create_sms_chat(
metadata: object | Omit = omit,
override_agent_id: str | Omit = omit,
override_agent_version: Union[int, str] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, object] | Omit = omit,
retell_llm_dynamic_variables: Dict[str, 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
2 changes: 1 addition & 1 deletion src/retell/types/batch_call_create_batch_call_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ class Task(TypedDict, total=False):
This does not bind the agent to this number, this is for one time override.
"""

retell_llm_dynamic_variables: Dict[str, object]
retell_llm_dynamic_variables: Dict[str, str]
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
2 changes: 1 addition & 1 deletion src/retell/types/call_create_phone_call_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class CallCreatePhoneCallParams(TypedDict, total=False):
override.
"""

retell_llm_dynamic_variables: Dict[str, object]
retell_llm_dynamic_variables: Dict[str, str]
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
2 changes: 1 addition & 1 deletion src/retell/types/call_create_web_call_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class CallCreateWebCallParams(TypedDict, total=False):
object.
"""

retell_llm_dynamic_variables: Dict[str, object]
retell_llm_dynamic_variables: Dict[str, str]
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
8 changes: 4 additions & 4 deletions src/retell/types/call_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class ItemV3WebCallResponse(BaseModel):
call_cost: Optional[ItemV3WebCallResponseCallCost] = None
"""Cost of the call, including all the products and their costs and discount."""

collected_dynamic_variables: Optional[Dict[str, object]] = None
collected_dynamic_variables: Optional[Dict[str, str]] = None
"""Dynamic variables collected from the call. Only available after the call ends."""

custom_sip_headers: Optional[Dict[str, str]] = None
Expand Down Expand Up @@ -539,7 +539,7 @@ class ItemV3WebCallResponse(BaseModel):
recording_url: Optional[str] = None
"""Recording of the call. Available after call ends."""

retell_llm_dynamic_variables: Optional[Dict[str, object]] = None
retell_llm_dynamic_variables: Optional[Dict[str, str]] = None
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down Expand Up @@ -973,7 +973,7 @@ class ItemV3PhoneCallResponse(BaseModel):
call_cost: Optional[ItemV3PhoneCallResponseCallCost] = None
"""Cost of the call, including all the products and their costs and discount."""

collected_dynamic_variables: Optional[Dict[str, object]] = None
collected_dynamic_variables: Optional[Dict[str, str]] = None
"""Dynamic variables collected from the call. Only available after the call ends."""

custom_sip_headers: Optional[Dict[str, str]] = None
Expand Down Expand Up @@ -1091,7 +1091,7 @@ class ItemV3PhoneCallResponse(BaseModel):
recording_url: Optional[str] = None
"""Recording of the call. Available after call ends."""

retell_llm_dynamic_variables: Optional[Dict[str, object]] = None
retell_llm_dynamic_variables: Optional[Dict[str, str]] = None
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
2 changes: 1 addition & 1 deletion src/retell/types/call_register_phone_call_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class CallRegisterPhoneCallParams(TypedDict, total=False):
object.
"""

retell_llm_dynamic_variables: Dict[str, object]
retell_llm_dynamic_variables: Dict[str, str]
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
2 changes: 1 addition & 1 deletion src/retell/types/chat_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ChatCreateParams(TypedDict, total=False):
object.
"""

retell_llm_dynamic_variables: Dict[str, object]
retell_llm_dynamic_variables: Dict[str, str]
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
2 changes: 1 addition & 1 deletion src/retell/types/chat_create_sms_chat_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ChatCreateSMSChatParams(TypedDict, total=False):
override.
"""

retell_llm_dynamic_variables: Dict[str, object]
retell_llm_dynamic_variables: Dict[str, str]
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
3 changes: 1 addition & 2 deletions src/retell/types/chat_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

from __future__ import annotations

from typing import Dict
from typing_extensions import Literal, TypedDict

__all__ = ["ChatListParams"]


class ChatListParams(TypedDict, total=False):
filter_criteria: Dict[str, object]
filter_criteria: object
"""Filter criteria for chats to retrieve."""

limit: int
Expand Down
4 changes: 2 additions & 2 deletions src/retell/types/chat_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class ChatResponse(BaseModel):
chat_type: Optional[Literal["api_chat", "sms_chat"]] = None
"""Type of the chat"""

collected_dynamic_variables: Optional[Dict[str, object]] = None
collected_dynamic_variables: Optional[Dict[str, str]] = None
"""Dynamic variables collected from the chat. Only available after the chat ends."""

custom_attributes: Optional[Dict[str, Union[str, float, bool]]] = None
Expand All @@ -234,7 +234,7 @@ class ChatResponse(BaseModel):
object.
"""

retell_llm_dynamic_variables: Optional[Dict[str, object]] = None
retell_llm_dynamic_variables: Optional[Dict[str, str]] = None
"""
Add optional dynamic variables in key value pairs of string that injects into
your Response Engine prompt and tool description. Only applicable for Response
Expand Down
4 changes: 2 additions & 2 deletions src/retell/types/conversation_flow_component_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ class NodeSubagentNodeToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down Expand Up @@ -7363,7 +7363,7 @@ class ToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down
4 changes: 2 additions & 2 deletions src/retell/types/conversation_flow_component_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ class NodeSubagentNodeToolCustomToolParameters(BaseModel):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Dict[str, object]
properties: object
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down Expand Up @@ -7248,7 +7248,7 @@ class ToolCustomToolParameters(BaseModel):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Dict[str, object]
properties: object
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down
4 changes: 2 additions & 2 deletions src/retell/types/conversation_flow_component_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ class NodeSubagentNodeToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down Expand Up @@ -7363,7 +7363,7 @@ class ToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down
8 changes: 4 additions & 4 deletions src/retell/types/conversation_flow_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2834,7 +2834,7 @@ class NodeSubagentNodeToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down Expand Up @@ -9557,7 +9557,7 @@ class ComponentNodeSubagentNodeToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down Expand Up @@ -14857,7 +14857,7 @@ class ComponentToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down Expand Up @@ -15157,7 +15157,7 @@ class ToolCustomToolParameters(TypedDict, total=False):
See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
"""

properties: Required[Dict[str, object]]
properties: Required[object]
"""
The value of properties is an object, where each key is the name of a property
and each value is a schema used to validate that property.
Expand Down
Loading