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.39.1"
".": "5.40.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-d2573b05221454951e2d3f6aa7e56afe1a1e81fac61608ddc4b67892a3b9527f.yml
openapi_spec_hash: 5fa3e4867d55623e7c51da628bb080bb
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell/retell-356ae1b31c09ea2eaf1c24a93ff146e80880922a019050d6e0b6f3af2a59f565.yml
openapi_spec_hash: 0b21f22e97c2740d2402c697d933dbd7
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.40.0 (2026-05-18)

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

### Features

* **api:** api update ([ceb0464](https://github.com/RetellAI/retell-python-sdk/commit/ceb0464f9818fc980045324aad0dbccbefbe02c1))

## 5.39.1 (2026-05-13)

Full Changelog: [v5.39.0...v5.39.1](https://github.com/RetellAI/retell-python-sdk/compare/v5.39.0...v5.39.1)
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.39.1"
version = "5.40.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.39.1" # x-release-please-version
__version__ = "5.40.0" # x-release-please-version
20 changes: 0 additions & 20 deletions src/retell/resources/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def create(
guardrail_config: agent_create_params.GuardrailConfig | Omit = omit,
handbook_config: agent_create_params.HandbookConfig | Omit = omit,
interruption_sensitivity: float | Omit = omit,
is_public: Optional[bool] | Omit = omit,
ivr_option: Optional[agent_create_params.IvrOption] | Omit = omit,
language: Union[
Literal[
Expand Down Expand Up @@ -446,9 +445,6 @@ def create(
unset, default value 1 will apply. When this is set to 0, agent would never be
interrupted.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

ivr_option: If this option is set, the call will try to detect IVR in the first 3 minutes of
the call. Actions defined will be applied when the IVR is detected. Set this to
null to disable IVR detection.
Expand Down Expand Up @@ -600,7 +596,6 @@ def create(
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"interruption_sensitivity": interruption_sensitivity,
"is_public": is_public,
"ivr_option": ivr_option,
"language": language,
"max_call_duration_ms": max_call_duration_ms,
Expand Down Expand Up @@ -716,7 +711,6 @@ def update(
guardrail_config: agent_update_params.GuardrailConfig | Omit = omit,
handbook_config: agent_update_params.HandbookConfig | Omit = omit,
interruption_sensitivity: float | Omit = omit,
is_public: Optional[bool] | Omit = omit,
ivr_option: Optional[agent_update_params.IvrOption] | Omit = omit,
language: Union[
Literal[
Expand Down Expand Up @@ -1071,9 +1065,6 @@ def update(
unset, default value 1 will apply. When this is set to 0, agent would never be
interrupted.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

ivr_option: If this option is set, the call will try to detect IVR in the first 3 minutes of
the call. Actions defined will be applied when the IVR is detected. Set this to
null to disable IVR detection.
Expand Down Expand Up @@ -1232,7 +1223,6 @@ def update(
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"interruption_sensitivity": interruption_sensitivity,
"is_public": is_public,
"ivr_option": ivr_option,
"language": language,
"max_call_duration_ms": max_call_duration_ms,
Expand Down Expand Up @@ -1503,7 +1493,6 @@ async def create(
guardrail_config: agent_create_params.GuardrailConfig | Omit = omit,
handbook_config: agent_create_params.HandbookConfig | Omit = omit,
interruption_sensitivity: float | Omit = omit,
is_public: Optional[bool] | Omit = omit,
ivr_option: Optional[agent_create_params.IvrOption] | Omit = omit,
language: Union[
Literal[
Expand Down Expand Up @@ -1861,9 +1850,6 @@ async def create(
unset, default value 1 will apply. When this is set to 0, agent would never be
interrupted.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

ivr_option: If this option is set, the call will try to detect IVR in the first 3 minutes of
the call. Actions defined will be applied when the IVR is detected. Set this to
null to disable IVR detection.
Expand Down Expand Up @@ -2015,7 +2001,6 @@ async def create(
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"interruption_sensitivity": interruption_sensitivity,
"is_public": is_public,
"ivr_option": ivr_option,
"language": language,
"max_call_duration_ms": max_call_duration_ms,
Expand Down Expand Up @@ -2131,7 +2116,6 @@ async def update(
guardrail_config: agent_update_params.GuardrailConfig | Omit = omit,
handbook_config: agent_update_params.HandbookConfig | Omit = omit,
interruption_sensitivity: float | Omit = omit,
is_public: Optional[bool] | Omit = omit,
ivr_option: Optional[agent_update_params.IvrOption] | Omit = omit,
language: Union[
Literal[
Expand Down Expand Up @@ -2486,9 +2470,6 @@ async def update(
unset, default value 1 will apply. When this is set to 0, agent would never be
interrupted.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

ivr_option: If this option is set, the call will try to detect IVR in the first 3 minutes of
the call. Actions defined will be applied when the IVR is detected. Set this to
null to disable IVR detection.
Expand Down Expand Up @@ -2647,7 +2628,6 @@ async def update(
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"interruption_sensitivity": interruption_sensitivity,
"is_public": is_public,
"ivr_option": ivr_option,
"language": language,
"max_call_duration_ms": max_call_duration_ms,
Expand Down
14 changes: 14 additions & 0 deletions src/retell/resources/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def list(
self,
*,
filter_criteria: call_list_params.FilterCriteria | Omit = omit,
include_total: bool | Omit = omit,
limit: int | Omit = omit,
pagination_key: str | Omit = omit,
skip: int | Omit = omit,
Expand All @@ -177,6 +178,11 @@ def list(
Args:
filter_criteria: Filter criteria for calls. All conditions are implicitly connected with AND.

include_total: Whether to include `total` (count of all calls matching `filter_criteria`,
ignoring `limit`/`skip`/`pagination_key`) in the response. Defaults to false.
Each enabled request triggers an additional aggregate query, so opt in only when
the total is needed.

limit: Maximum number of calls to return.

pagination_key: Opaque pagination cursor from a previous response.
Expand All @@ -200,6 +206,7 @@ def list(
body=maybe_transform(
{
"filter_criteria": filter_criteria,
"include_total": include_total,
"limit": limit,
"pagination_key": pagination_key,
"skip": skip,
Expand Down Expand Up @@ -643,6 +650,7 @@ async def list(
self,
*,
filter_criteria: call_list_params.FilterCriteria | Omit = omit,
include_total: bool | Omit = omit,
limit: int | Omit = omit,
pagination_key: str | Omit = omit,
skip: int | Omit = omit,
Expand All @@ -660,6 +668,11 @@ async def list(
Args:
filter_criteria: Filter criteria for calls. All conditions are implicitly connected with AND.

include_total: Whether to include `total` (count of all calls matching `filter_criteria`,
ignoring `limit`/`skip`/`pagination_key`) in the response. Defaults to false.
Each enabled request triggers an additional aggregate query, so opt in only when
the total is needed.

limit: Maximum number of calls to return.

pagination_key: Opaque pagination cursor from a previous response.
Expand All @@ -683,6 +696,7 @@ async def list(
body=await async_maybe_transform(
{
"filter_criteria": filter_criteria,
"include_total": include_total,
"limit": limit,
"pagination_key": pagination_key,
"skip": skip,
Expand Down
18 changes: 16 additions & 2 deletions src/retell/resources/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create(
Create a chat session

Args:
agent_id: The chat agent to use for the call.
agent_id: The chat agent to use for the chat.

agent_version: The version of the chat agent to use for the chat. If not provided, will default
to latest version.
Expand Down Expand Up @@ -208,6 +208,7 @@ def list(
self,
*,
filter_criteria: object | Omit = omit,
include_total: bool | Omit = omit,
limit: int | Omit = omit,
pagination_key: str | Omit = omit,
skip: int | Omit = omit,
Expand All @@ -225,6 +226,11 @@ def list(
Args:
filter_criteria: Filter criteria for chats to retrieve.

include_total: Whether to include `total` (count of all chats matching `filter_criteria`,
ignoring `limit`/`skip`/`pagination_key`) in the response. Defaults to false.
Each enabled request triggers an additional aggregate query, so opt in only when
the total is needed.

limit: Maximum number of chats to return.

pagination_key: Opaque pagination cursor from a previous response.
Expand All @@ -248,6 +254,7 @@ def list(
body=maybe_transform(
{
"filter_criteria": filter_criteria,
"include_total": include_total,
"limit": limit,
"pagination_key": pagination_key,
"skip": skip,
Expand Down Expand Up @@ -482,7 +489,7 @@ async def create(
Create a chat session

Args:
agent_id: The chat agent to use for the call.
agent_id: The chat agent to use for the chat.

agent_version: The version of the chat agent to use for the chat. If not provided, will default
to latest version.
Expand Down Expand Up @@ -619,6 +626,7 @@ async def list(
self,
*,
filter_criteria: object | Omit = omit,
include_total: bool | Omit = omit,
limit: int | Omit = omit,
pagination_key: str | Omit = omit,
skip: int | Omit = omit,
Expand All @@ -636,6 +644,11 @@ async def list(
Args:
filter_criteria: Filter criteria for chats to retrieve.

include_total: Whether to include `total` (count of all chats matching `filter_criteria`,
ignoring `limit`/`skip`/`pagination_key`) in the response. Defaults to false.
Each enabled request triggers an additional aggregate query, so opt in only when
the total is needed.

limit: Maximum number of chats to return.

pagination_key: Opaque pagination cursor from a previous response.
Expand All @@ -659,6 +672,7 @@ async def list(
body=await async_maybe_transform(
{
"filter_criteria": filter_criteria,
"include_total": include_total,
"limit": limit,
"pagination_key": pagination_key,
"skip": skip,
Expand Down
20 changes: 0 additions & 20 deletions src/retell/resources/chat_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def create(
end_chat_after_silence_ms: Optional[int] | Omit = omit,
guardrail_config: chat_agent_create_params.GuardrailConfig | Omit = omit,
handbook_config: chat_agent_create_params.HandbookConfig | Omit = omit,
is_public: Optional[bool] | Omit = omit,
language: Union[
Literal[
"en-US",
Expand Down Expand Up @@ -283,9 +282,6 @@ def create(
handbook_config: Toggle behavior presets on/off to influence agent response style and behaviors.
Voice-only presets are not available for chat agents.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

language: Specifies what language(s) the agent will operate in. Accepts either a single
scalar locale (e.g. `en-US`), the legacy scalar value `multi` for multilingual
support, or an array of concrete locale codes for explicit multi-locale
Expand Down Expand Up @@ -346,7 +342,6 @@ def create(
"end_chat_after_silence_ms": end_chat_after_silence_ms,
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"is_public": is_public,
"language": language,
"opt_in_signed_url": opt_in_signed_url,
"pii_config": pii_config,
Expand Down Expand Up @@ -423,7 +418,6 @@ def update(
end_chat_after_silence_ms: Optional[int] | Omit = omit,
guardrail_config: chat_agent_update_params.GuardrailConfig | Omit = omit,
handbook_config: chat_agent_update_params.HandbookConfig | Omit = omit,
is_public: Optional[bool] | Omit = omit,
language: Union[
Literal[
"en-US",
Expand Down Expand Up @@ -638,9 +632,6 @@ def update(
handbook_config: Toggle behavior presets on/off to influence agent response style and behaviors.
Voice-only presets are not available for chat agents.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

language: Specifies what language(s) the agent will operate in. Accepts either a single
scalar locale (e.g. `en-US`), the legacy scalar value `multi` for multilingual
support, or an array of concrete locale codes for explicit multi-locale
Expand Down Expand Up @@ -706,7 +697,6 @@ def update(
"end_chat_after_silence_ms": end_chat_after_silence_ms,
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"is_public": is_public,
"language": language,
"opt_in_signed_url": opt_in_signed_url,
"pii_config": pii_config,
Expand Down Expand Up @@ -936,7 +926,6 @@ async def create(
end_chat_after_silence_ms: Optional[int] | Omit = omit,
guardrail_config: chat_agent_create_params.GuardrailConfig | Omit = omit,
handbook_config: chat_agent_create_params.HandbookConfig | Omit = omit,
is_public: Optional[bool] | Omit = omit,
language: Union[
Literal[
"en-US",
Expand Down Expand Up @@ -1152,9 +1141,6 @@ async def create(
handbook_config: Toggle behavior presets on/off to influence agent response style and behaviors.
Voice-only presets are not available for chat agents.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

language: Specifies what language(s) the agent will operate in. Accepts either a single
scalar locale (e.g. `en-US`), the legacy scalar value `multi` for multilingual
support, or an array of concrete locale codes for explicit multi-locale
Expand Down Expand Up @@ -1215,7 +1201,6 @@ async def create(
"end_chat_after_silence_ms": end_chat_after_silence_ms,
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"is_public": is_public,
"language": language,
"opt_in_signed_url": opt_in_signed_url,
"pii_config": pii_config,
Expand Down Expand Up @@ -1294,7 +1279,6 @@ async def update(
end_chat_after_silence_ms: Optional[int] | Omit = omit,
guardrail_config: chat_agent_update_params.GuardrailConfig | Omit = omit,
handbook_config: chat_agent_update_params.HandbookConfig | Omit = omit,
is_public: Optional[bool] | Omit = omit,
language: Union[
Literal[
"en-US",
Expand Down Expand Up @@ -1509,9 +1493,6 @@ async def update(
handbook_config: Toggle behavior presets on/off to influence agent response style and behaviors.
Voice-only presets are not available for chat agents.

is_public: Whether the agent is public. When set to true, the agent is available for public
agent preview link.

language: Specifies what language(s) the agent will operate in. Accepts either a single
scalar locale (e.g. `en-US`), the legacy scalar value `multi` for multilingual
support, or an array of concrete locale codes for explicit multi-locale
Expand Down Expand Up @@ -1577,7 +1558,6 @@ async def update(
"end_chat_after_silence_ms": end_chat_after_silence_ms,
"guardrail_config": guardrail_config,
"handbook_config": handbook_config,
"is_public": is_public,
"language": language,
"opt_in_signed_url": opt_in_signed_url,
"pii_config": pii_config,
Expand Down
Loading