From 35b025bc9aa7bdc628be6b831f03745097a57023 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:54:44 +0000 Subject: [PATCH 01/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/llm_create_params.py | 16 ++++++++-------- src/retell/types/llm_response.py | 16 ++++++++-------- src/retell/types/llm_update_params.py | 16 ++++++++-------- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.stats.yml b/.stats.yml index 955caa25..e92aec75 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-6f9abd242d6ae2ff1402a11e59ee5c26fcac97bb4a3780fb9e12096d542c6b61.yml -openapi_spec_hash: f5995d0f2a7ce0b2a88777b75dd6823f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-6c2e4d2b50f18ccf911b241ff8a74be7b9a3ab1b72e94637dec62ecf7afe8131.yml +openapi_spec_hash: 6c67fd8743fcec3531c148cf1ee84796 config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/types/llm_create_params.py b/src/retell/types/llm_create_params.py index cbc3dd1a..6dd788af 100644 --- a/src/retell/types/llm_create_params.py +++ b/src/retell/types/llm_create_params.py @@ -197,7 +197,10 @@ class GeneralToolTransferCallToolTransferDestinationTransferDestinationInferred( class GeneralToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedDict, total=False): - show_transferee_as_caller: Required[bool] + type: Required[Literal["cold_transfer"]] + """The type of the transfer.""" + + show_transferee_as_caller: bool """ If set to true, will show transferee (the user, not the AI agent) as caller when transferring, requires the telephony side to support SIP REFER to PSTN. This is @@ -205,9 +208,6 @@ class GeneralToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedD field will be ignored. Default to false (default to show AI agent as caller). """ - type: Required[Literal["cold_transfer"]] - """The type of the transfer.""" - class GeneralToolTransferCallToolTransferOptionTransferOptionWarmTransferPublicHandoffOptionWarmTransferPrompt( TypedDict, total=False @@ -554,7 +554,10 @@ class StateToolTransferCallToolTransferDestinationTransferDestinationInferred(Ty class StateToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedDict, total=False): - show_transferee_as_caller: Required[bool] + type: Required[Literal["cold_transfer"]] + """The type of the transfer.""" + + show_transferee_as_caller: bool """ If set to true, will show transferee (the user, not the AI agent) as caller when transferring, requires the telephony side to support SIP REFER to PSTN. This is @@ -562,9 +565,6 @@ class StateToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedDic field will be ignored. Default to false (default to show AI agent as caller). """ - type: Required[Literal["cold_transfer"]] - """The type of the transfer.""" - class StateToolTransferCallToolTransferOptionTransferOptionWarmTransferPublicHandoffOptionWarmTransferPrompt( TypedDict, total=False diff --git a/src/retell/types/llm_response.py b/src/retell/types/llm_response.py index 7e912da6..801b5c12 100644 --- a/src/retell/types/llm_response.py +++ b/src/retell/types/llm_response.py @@ -98,7 +98,10 @@ class GeneralToolTransferCallToolTransferDestinationTransferDestinationInferred( class GeneralToolTransferCallToolTransferOptionTransferOptionColdTransfer(BaseModel): - show_transferee_as_caller: bool + type: Literal["cold_transfer"] + """The type of the transfer.""" + + show_transferee_as_caller: Optional[bool] = None """ If set to true, will show transferee (the user, not the AI agent) as caller when transferring, requires the telephony side to support SIP REFER to PSTN. This is @@ -106,9 +109,6 @@ class GeneralToolTransferCallToolTransferOptionTransferOptionColdTransfer(BaseMo field will be ignored. Default to false (default to show AI agent as caller). """ - type: Literal["cold_transfer"] - """The type of the transfer.""" - class GeneralToolTransferCallToolTransferOptionTransferOptionWarmTransferPublicHandoffOptionWarmTransferPrompt( BaseModel @@ -457,7 +457,10 @@ class StateToolTransferCallToolTransferDestinationTransferDestinationInferred(Ba class StateToolTransferCallToolTransferOptionTransferOptionColdTransfer(BaseModel): - show_transferee_as_caller: bool + type: Literal["cold_transfer"] + """The type of the transfer.""" + + show_transferee_as_caller: Optional[bool] = None """ If set to true, will show transferee (the user, not the AI agent) as caller when transferring, requires the telephony side to support SIP REFER to PSTN. This is @@ -465,9 +468,6 @@ class StateToolTransferCallToolTransferOptionTransferOptionColdTransfer(BaseMode field will be ignored. Default to false (default to show AI agent as caller). """ - type: Literal["cold_transfer"] - """The type of the transfer.""" - class StateToolTransferCallToolTransferOptionTransferOptionWarmTransferPublicHandoffOptionWarmTransferPrompt(BaseModel): prompt: Optional[str] = None diff --git a/src/retell/types/llm_update_params.py b/src/retell/types/llm_update_params.py index 28057e80..582b8015 100644 --- a/src/retell/types/llm_update_params.py +++ b/src/retell/types/llm_update_params.py @@ -202,7 +202,10 @@ class GeneralToolTransferCallToolTransferDestinationTransferDestinationInferred( class GeneralToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedDict, total=False): - show_transferee_as_caller: Required[bool] + type: Required[Literal["cold_transfer"]] + """The type of the transfer.""" + + show_transferee_as_caller: bool """ If set to true, will show transferee (the user, not the AI agent) as caller when transferring, requires the telephony side to support SIP REFER to PSTN. This is @@ -210,9 +213,6 @@ class GeneralToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedD field will be ignored. Default to false (default to show AI agent as caller). """ - type: Required[Literal["cold_transfer"]] - """The type of the transfer.""" - class GeneralToolTransferCallToolTransferOptionTransferOptionWarmTransferPublicHandoffOptionWarmTransferPrompt( TypedDict, total=False @@ -559,7 +559,10 @@ class StateToolTransferCallToolTransferDestinationTransferDestinationInferred(Ty class StateToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedDict, total=False): - show_transferee_as_caller: Required[bool] + type: Required[Literal["cold_transfer"]] + """The type of the transfer.""" + + show_transferee_as_caller: bool """ If set to true, will show transferee (the user, not the AI agent) as caller when transferring, requires the telephony side to support SIP REFER to PSTN. This is @@ -567,9 +570,6 @@ class StateToolTransferCallToolTransferOptionTransferOptionColdTransfer(TypedDic field will be ignored. Default to false (default to show AI agent as caller). """ - type: Required[Literal["cold_transfer"]] - """The type of the transfer.""" - class StateToolTransferCallToolTransferOptionTransferOptionWarmTransferPublicHandoffOptionWarmTransferPrompt( TypedDict, total=False From 8053323dbb47fef685a662767ae329d0a382cbc0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:12:03 +0000 Subject: [PATCH 02/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/llm_create_params.py | 26 +++++++++++++++++++++++++- src/retell/types/llm_response.py | 22 ++++++++++++++++++++++ src/retell/types/llm_update_params.py | 22 ++++++++++++++++++++++ 4 files changed, 71 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index e92aec75..c00a945d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-6c2e4d2b50f18ccf911b241ff8a74be7b9a3ab1b72e94637dec62ecf7afe8131.yml -openapi_spec_hash: 6c67fd8743fcec3531c148cf1ee84796 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-0f054436d5c97dcd003d5f6a3902ec70d5616ef8fe04e6ea5264e731719d7a74.yml +openapi_spec_hash: 51e0e4d7fe4f14d4d481973a8011d869 config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/types/llm_create_params.py b/src/retell/types/llm_create_params.py index 6dd788af..68dc5920 100644 --- a/src/retell/types/llm_create_params.py +++ b/src/retell/types/llm_create_params.py @@ -3,7 +3,9 @@ from __future__ import annotations from typing import Dict, List, Union, Iterable, Optional -from typing_extensions import Literal, Required, TypeAlias, TypedDict +from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict + +from .._utils import PropertyInfo __all__ = [ "LlmCreateParams", @@ -433,6 +435,12 @@ class GeneralToolCustomTool(TypedDict, total=False): calling this tool. Make sure it fits into the conversation smoothly.". """ + headers: Dict[str, str] + """Headers to add to the request.""" + + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request.""" + parameters: GeneralToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -441,6 +449,11 @@ class GeneralToolCustomTool(TypedDict, total=False): an empty parameter list. """ + query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + + response_variables: Dict[str, str] + """Response variables to add to the dynamic variables.""" + timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered timeout. @@ -790,6 +803,12 @@ class StateToolCustomTool(TypedDict, total=False): calling this tool. Make sure it fits into the conversation smoothly.". """ + headers: Dict[str, str] + """Headers to add to the request.""" + + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request.""" + parameters: StateToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -798,6 +817,11 @@ class StateToolCustomTool(TypedDict, total=False): an empty parameter list. """ + query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + + response_variables: Dict[str, str] + """Response variables to add to the dynamic variables.""" + timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered timeout. diff --git a/src/retell/types/llm_response.py b/src/retell/types/llm_response.py index 801b5c12..cdb7a48e 100644 --- a/src/retell/types/llm_response.py +++ b/src/retell/types/llm_response.py @@ -336,6 +336,12 @@ class GeneralToolCustomTool(BaseModel): calling this tool. Make sure it fits into the conversation smoothly.". """ + headers: Optional[Dict[str, str]] = None + """Headers to add to the request.""" + + method: Optional[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] = None + """Method to use for the request.""" + parameters: Optional[GeneralToolCustomToolParameters] = None """The parameters the functions accepts, described as a JSON Schema object. @@ -344,6 +350,11 @@ class GeneralToolCustomTool(BaseModel): an empty parameter list. """ + query_params: Optional[Dict[str, str]] = FieldInfo(alias="queryParams", default=None) + + response_variables: Optional[Dict[str, str]] = None + """Response variables to add to the dynamic variables.""" + timeout_ms: Optional[int] = None """The maximum time in milliseconds the tool can run before it's considered timeout. @@ -693,6 +704,12 @@ class StateToolCustomTool(BaseModel): calling this tool. Make sure it fits into the conversation smoothly.". """ + headers: Optional[Dict[str, str]] = None + """Headers to add to the request.""" + + method: Optional[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] = None + """Method to use for the request.""" + parameters: Optional[StateToolCustomToolParameters] = None """The parameters the functions accepts, described as a JSON Schema object. @@ -701,6 +718,11 @@ class StateToolCustomTool(BaseModel): an empty parameter list. """ + query_params: Optional[Dict[str, str]] = FieldInfo(alias="queryParams", default=None) + + response_variables: Optional[Dict[str, str]] = None + """Response variables to add to the dynamic variables.""" + timeout_ms: Optional[int] = None """The maximum time in milliseconds the tool can run before it's considered timeout. diff --git a/src/retell/types/llm_update_params.py b/src/retell/types/llm_update_params.py index 582b8015..eb9f6a75 100644 --- a/src/retell/types/llm_update_params.py +++ b/src/retell/types/llm_update_params.py @@ -438,6 +438,12 @@ class GeneralToolCustomTool(TypedDict, total=False): calling this tool. Make sure it fits into the conversation smoothly.". """ + headers: Dict[str, str] + """Headers to add to the request.""" + + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request.""" + parameters: GeneralToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -446,6 +452,11 @@ class GeneralToolCustomTool(TypedDict, total=False): an empty parameter list. """ + query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + + response_variables: Dict[str, str] + """Response variables to add to the dynamic variables.""" + timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered timeout. @@ -795,6 +806,12 @@ class StateToolCustomTool(TypedDict, total=False): calling this tool. Make sure it fits into the conversation smoothly.". """ + headers: Dict[str, str] + """Headers to add to the request.""" + + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request.""" + parameters: StateToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -803,6 +820,11 @@ class StateToolCustomTool(TypedDict, total=False): an empty parameter list. """ + query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + + response_variables: Dict[str, str] + """Response variables to add to the dynamic variables.""" + timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered timeout. From b2df68b78027f5d760b06292591ba7a1ca6a9bce Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:19:58 +0000 Subject: [PATCH 03/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/llm_create_params.py | 8 +++----- src/retell/types/llm_response.py | 4 ++-- src/retell/types/llm_update_params.py | 4 ++-- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.stats.yml b/.stats.yml index c00a945d..aa8540bb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-0f054436d5c97dcd003d5f6a3902ec70d5616ef8fe04e6ea5264e731719d7a74.yml -openapi_spec_hash: 51e0e4d7fe4f14d4d481973a8011d869 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-5745fd74863059f985dcfec43974d04083166238466f6945c413ff2670f65492.yml +openapi_spec_hash: aa66538901573774369f9caacab218b3 config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/types/llm_create_params.py b/src/retell/types/llm_create_params.py index 68dc5920..4cbb6272 100644 --- a/src/retell/types/llm_create_params.py +++ b/src/retell/types/llm_create_params.py @@ -3,9 +3,7 @@ from __future__ import annotations from typing import Dict, List, Union, Iterable, Optional -from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict - -from .._utils import PropertyInfo +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "LlmCreateParams", @@ -449,7 +447,7 @@ class GeneralToolCustomTool(TypedDict, total=False): an empty parameter list. """ - query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + query_params: Dict[str, str] response_variables: Dict[str, str] """Response variables to add to the dynamic variables.""" @@ -817,7 +815,7 @@ class StateToolCustomTool(TypedDict, total=False): an empty parameter list. """ - query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + query_params: Dict[str, str] response_variables: Dict[str, str] """Response variables to add to the dynamic variables.""" diff --git a/src/retell/types/llm_response.py b/src/retell/types/llm_response.py index cdb7a48e..e3f9d57b 100644 --- a/src/retell/types/llm_response.py +++ b/src/retell/types/llm_response.py @@ -350,7 +350,7 @@ class GeneralToolCustomTool(BaseModel): an empty parameter list. """ - query_params: Optional[Dict[str, str]] = FieldInfo(alias="queryParams", default=None) + query_params: Optional[Dict[str, str]] = None response_variables: Optional[Dict[str, str]] = None """Response variables to add to the dynamic variables.""" @@ -718,7 +718,7 @@ class StateToolCustomTool(BaseModel): an empty parameter list. """ - query_params: Optional[Dict[str, str]] = FieldInfo(alias="queryParams", default=None) + query_params: Optional[Dict[str, str]] = None response_variables: Optional[Dict[str, str]] = None """Response variables to add to the dynamic variables.""" diff --git a/src/retell/types/llm_update_params.py b/src/retell/types/llm_update_params.py index eb9f6a75..a7a183e8 100644 --- a/src/retell/types/llm_update_params.py +++ b/src/retell/types/llm_update_params.py @@ -452,7 +452,7 @@ class GeneralToolCustomTool(TypedDict, total=False): an empty parameter list. """ - query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + query_params: Dict[str, str] response_variables: Dict[str, str] """Response variables to add to the dynamic variables.""" @@ -820,7 +820,7 @@ class StateToolCustomTool(TypedDict, total=False): an empty parameter list. """ - query_params: Annotated[Dict[str, str], PropertyInfo(alias="queryParams")] + query_params: Dict[str, str] response_variables: Dict[str, str] """Response variables to add to the dynamic variables.""" From 938a926d3f689dc87adbfae45483f76963e84d0e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 00:24:50 +0000 Subject: [PATCH 04/10] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index aa8540bb..89e5c584 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-5745fd74863059f985dcfec43974d04083166238466f6945c413ff2670f65492.yml -openapi_spec_hash: aa66538901573774369f9caacab218b3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-cc260d0205a2013bd7fca700b5f711febe2e32ea66cc22ba430a4805c5ba3113.yml +openapi_spec_hash: 5b85d8068debaa90853b97a76b31f530 config_hash: f4bc63f2350a2a4988750b41a0737f9d From 8f88a3cd122c43793888cda86c20e4a3d0fa2095 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 00:50:59 +0000 Subject: [PATCH 05/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/llm_create_params.py | 12 ++++++------ src/retell/types/llm_response.py | 12 ++++++------ src/retell/types/llm_update_params.py | 12 ++++++------ 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.stats.yml b/.stats.yml index 89e5c584..ae6b85e6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-cc260d0205a2013bd7fca700b5f711febe2e32ea66cc22ba430a4805c5ba3113.yml -openapi_spec_hash: 5b85d8068debaa90853b97a76b31f530 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-f4feb357e45543f4d899db9ece503a1655a4ef854e24982e696e822c948bd262.yml +openapi_spec_hash: bd12a6c011d73afc36a8dd67d0674ee6 config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/types/llm_create_params.py b/src/retell/types/llm_create_params.py index 4cbb6272..daf50139 100644 --- a/src/retell/types/llm_create_params.py +++ b/src/retell/types/llm_create_params.py @@ -394,6 +394,9 @@ class GeneralToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" + method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] + """Method to use for the request.""" + name: Required[str] """Name of the tool. @@ -436,9 +439,6 @@ class GeneralToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" - method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] - """Method to use for the request.""" - parameters: GeneralToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -762,6 +762,9 @@ class StateToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" + method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] + """Method to use for the request.""" + name: Required[str] """Name of the tool. @@ -804,9 +807,6 @@ class StateToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" - method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] - """Method to use for the request.""" - parameters: StateToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. diff --git a/src/retell/types/llm_response.py b/src/retell/types/llm_response.py index e3f9d57b..292c02c5 100644 --- a/src/retell/types/llm_response.py +++ b/src/retell/types/llm_response.py @@ -297,6 +297,9 @@ class GeneralToolCustomTool(BaseModel): description: str """Describes what this tool does and when to call this tool.""" + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request.""" + name: str """Name of the tool. @@ -339,9 +342,6 @@ class GeneralToolCustomTool(BaseModel): headers: Optional[Dict[str, str]] = None """Headers to add to the request.""" - method: Optional[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] = None - """Method to use for the request.""" - parameters: Optional[GeneralToolCustomToolParameters] = None """The parameters the functions accepts, described as a JSON Schema object. @@ -665,6 +665,9 @@ class StateToolCustomTool(BaseModel): description: str """Describes what this tool does and when to call this tool.""" + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request.""" + name: str """Name of the tool. @@ -707,9 +710,6 @@ class StateToolCustomTool(BaseModel): headers: Optional[Dict[str, str]] = None """Headers to add to the request.""" - method: Optional[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] = None - """Method to use for the request.""" - parameters: Optional[StateToolCustomToolParameters] = None """The parameters the functions accepts, described as a JSON Schema object. diff --git a/src/retell/types/llm_update_params.py b/src/retell/types/llm_update_params.py index a7a183e8..74a5d1b3 100644 --- a/src/retell/types/llm_update_params.py +++ b/src/retell/types/llm_update_params.py @@ -399,6 +399,9 @@ class GeneralToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" + method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] + """Method to use for the request.""" + name: Required[str] """Name of the tool. @@ -441,9 +444,6 @@ class GeneralToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" - method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] - """Method to use for the request.""" - parameters: GeneralToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -767,6 +767,9 @@ class StateToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" + method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] + """Method to use for the request.""" + name: Required[str] """Name of the tool. @@ -809,9 +812,6 @@ class StateToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" - method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] - """Method to use for the request.""" - parameters: StateToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. From e52831aeb49967506a1daf1b06b034368c11d865 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 00:53:18 +0000 Subject: [PATCH 06/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/llm_create_params.py | 12 ++++++------ src/retell/types/llm_response.py | 12 ++++++------ src/retell/types/llm_update_params.py | 12 ++++++------ 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.stats.yml b/.stats.yml index ae6b85e6..28c5ece8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-f4feb357e45543f4d899db9ece503a1655a4ef854e24982e696e822c948bd262.yml -openapi_spec_hash: bd12a6c011d73afc36a8dd67d0674ee6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-cb2357222c41b0833a5ccb0293b17ac81190d0540ba66bc9fa430e139b7406c2.yml +openapi_spec_hash: d499b765ae9e9898899b42702adecd67 config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/types/llm_create_params.py b/src/retell/types/llm_create_params.py index daf50139..1f11dd7c 100644 --- a/src/retell/types/llm_create_params.py +++ b/src/retell/types/llm_create_params.py @@ -394,9 +394,6 @@ class GeneralToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" - method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] - """Method to use for the request.""" - name: Required[str] """Name of the tool. @@ -439,6 +436,9 @@ class GeneralToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request, default to POST.""" + parameters: GeneralToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -762,9 +762,6 @@ class StateToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" - method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] - """Method to use for the request.""" - name: Required[str] """Name of the tool. @@ -807,6 +804,9 @@ class StateToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request, default to POST.""" + parameters: StateToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. diff --git a/src/retell/types/llm_response.py b/src/retell/types/llm_response.py index 292c02c5..1fdfba1c 100644 --- a/src/retell/types/llm_response.py +++ b/src/retell/types/llm_response.py @@ -297,9 +297,6 @@ class GeneralToolCustomTool(BaseModel): description: str """Describes what this tool does and when to call this tool.""" - method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] - """Method to use for the request.""" - name: str """Name of the tool. @@ -342,6 +339,9 @@ class GeneralToolCustomTool(BaseModel): headers: Optional[Dict[str, str]] = None """Headers to add to the request.""" + method: Optional[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] = None + """Method to use for the request, default to POST.""" + parameters: Optional[GeneralToolCustomToolParameters] = None """The parameters the functions accepts, described as a JSON Schema object. @@ -665,9 +665,6 @@ class StateToolCustomTool(BaseModel): description: str """Describes what this tool does and when to call this tool.""" - method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] - """Method to use for the request.""" - name: str """Name of the tool. @@ -710,6 +707,9 @@ class StateToolCustomTool(BaseModel): headers: Optional[Dict[str, str]] = None """Headers to add to the request.""" + method: Optional[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] = None + """Method to use for the request, default to POST.""" + parameters: Optional[StateToolCustomToolParameters] = None """The parameters the functions accepts, described as a JSON Schema object. diff --git a/src/retell/types/llm_update_params.py b/src/retell/types/llm_update_params.py index 74a5d1b3..9ab05ac0 100644 --- a/src/retell/types/llm_update_params.py +++ b/src/retell/types/llm_update_params.py @@ -399,9 +399,6 @@ class GeneralToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" - method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] - """Method to use for the request.""" - name: Required[str] """Name of the tool. @@ -444,6 +441,9 @@ class GeneralToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request, default to POST.""" + parameters: GeneralToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. @@ -767,9 +767,6 @@ class StateToolCustomTool(TypedDict, total=False): description: Required[str] """Describes what this tool does and when to call this tool.""" - method: Required[Literal["GET", "POST", "PUT", "PATCH", "DELETE"]] - """Method to use for the request.""" - name: Required[str] """Name of the tool. @@ -812,6 +809,9 @@ class StateToolCustomTool(TypedDict, total=False): headers: Dict[str, str] """Headers to add to the request.""" + method: Literal["GET", "POST", "PUT", "PATCH", "DELETE"] + """Method to use for the request, default to POST.""" + parameters: StateToolCustomToolParameters """The parameters the functions accepts, described as a JSON Schema object. From 80cfbfb0c62135ecefc7cd92ea5829bbedd99881 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 21:31:23 +0000 Subject: [PATCH 07/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/resources/agent.py | 8 ++++++++ src/retell/types/agent_create_params.py | 2 ++ src/retell/types/agent_response.py | 2 ++ src/retell/types/agent_update_params.py | 2 ++ 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 28c5ece8..be9350ca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-cb2357222c41b0833a5ccb0293b17ac81190d0540ba66bc9fa430e139b7406c2.yml -openapi_spec_hash: d499b765ae9e9898899b42702adecd67 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-47cca62b09a01c33723d34303d8b19633f58b2ca72623dd7641e443497dbe2c0.yml +openapi_spec_hash: 7ceefd13f7e03efd1e911f0180162dd7 config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/resources/agent.py b/src/retell/resources/agent.py index 55b774e9..fbd0252a 100644 --- a/src/retell/resources/agent.py +++ b/src/retell/resources/agent.py @@ -134,6 +134,8 @@ def create( "eleven_multilingual_v2", "Play3.0-mini", "PlayDialog", + "tts-1", + "gpt-4o-mini-tts", ] ] | NotGiven = NOT_GIVEN, @@ -529,6 +531,8 @@ def update( "eleven_multilingual_v2", "Play3.0-mini", "PlayDialog", + "tts-1", + "gpt-4o-mini-tts", ] ] | NotGiven = NOT_GIVEN, @@ -997,6 +1001,8 @@ async def create( "eleven_multilingual_v2", "Play3.0-mini", "PlayDialog", + "tts-1", + "gpt-4o-mini-tts", ] ] | NotGiven = NOT_GIVEN, @@ -1392,6 +1398,8 @@ async def update( "eleven_multilingual_v2", "Play3.0-mini", "PlayDialog", + "tts-1", + "gpt-4o-mini-tts", ] ] | NotGiven = NOT_GIVEN, diff --git a/src/retell/types/agent_create_params.py b/src/retell/types/agent_create_params.py index 29e55668..096a2f82 100644 --- a/src/retell/types/agent_create_params.py +++ b/src/retell/types/agent_create_params.py @@ -314,6 +314,8 @@ class AgentCreateParams(TypedDict, total=False): "eleven_multilingual_v2", "Play3.0-mini", "PlayDialog", + "tts-1", + "gpt-4o-mini-tts", ] ] """Optionally set the voice model used for the selected voice. diff --git a/src/retell/types/agent_response.py b/src/retell/types/agent_response.py index 55976074..0f9b0f71 100644 --- a/src/retell/types/agent_response.py +++ b/src/retell/types/agent_response.py @@ -456,6 +456,8 @@ class AgentResponse(BaseModel): "eleven_multilingual_v2", "Play3.0-mini", "PlayDialog", + "tts-1", + "gpt-4o-mini-tts", ] ] = None """Optionally set the voice model used for the selected voice. diff --git a/src/retell/types/agent_update_params.py b/src/retell/types/agent_update_params.py index c44ea4b4..c5ab8b0c 100644 --- a/src/retell/types/agent_update_params.py +++ b/src/retell/types/agent_update_params.py @@ -319,6 +319,8 @@ class AgentUpdateParams(TypedDict, total=False): "eleven_multilingual_v2", "Play3.0-mini", "PlayDialog", + "tts-1", + "gpt-4o-mini-tts", ] ] """Optionally set the voice model used for the selected voice. From 8f76d19d499df917abf861c79e1f92a9d95a419c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 21:57:56 +0000 Subject: [PATCH 08/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/llm_create_params.py | 14 ++++++++++++-- src/retell/types/llm_response.py | 14 ++++++++++++-- src/retell/types/llm_update_params.py | 14 ++++++++++++-- 4 files changed, 38 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index be9350ca..57c9bbda 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-47cca62b09a01c33723d34303d8b19633f58b2ca72623dd7641e443497dbe2c0.yml -openapi_spec_hash: 7ceefd13f7e03efd1e911f0180162dd7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-8511b31299fc98142a4b6ab1cb95e24dbb36a60fe847fd23cac93cedc0fcca17.yml +openapi_spec_hash: 8c3def74ca22411d57b57467c8203cd0 config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/types/llm_create_params.py b/src/retell/types/llm_create_params.py index 1f11dd7c..a045b76a 100644 --- a/src/retell/types/llm_create_params.py +++ b/src/retell/types/llm_create_params.py @@ -448,9 +448,14 @@ class GeneralToolCustomTool(TypedDict, total=False): """ query_params: Dict[str, str] + """Query parameters to append to the request URL.""" response_variables: Dict[str, str] - """Response variables to add to the dynamic variables.""" + """A mapping of variable names to JSON paths in the response body. + + These values will be extracted from the response and made available as dynamic + variables for use. + """ timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered @@ -816,9 +821,14 @@ class StateToolCustomTool(TypedDict, total=False): """ query_params: Dict[str, str] + """Query parameters to append to the request URL.""" response_variables: Dict[str, str] - """Response variables to add to the dynamic variables.""" + """A mapping of variable names to JSON paths in the response body. + + These values will be extracted from the response and made available as dynamic + variables for use. + """ timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered diff --git a/src/retell/types/llm_response.py b/src/retell/types/llm_response.py index 1fdfba1c..a58a9a55 100644 --- a/src/retell/types/llm_response.py +++ b/src/retell/types/llm_response.py @@ -351,9 +351,14 @@ class GeneralToolCustomTool(BaseModel): """ query_params: Optional[Dict[str, str]] = None + """Query parameters to append to the request URL.""" response_variables: Optional[Dict[str, str]] = None - """Response variables to add to the dynamic variables.""" + """A mapping of variable names to JSON paths in the response body. + + These values will be extracted from the response and made available as dynamic + variables for use. + """ timeout_ms: Optional[int] = None """The maximum time in milliseconds the tool can run before it's considered @@ -719,9 +724,14 @@ class StateToolCustomTool(BaseModel): """ query_params: Optional[Dict[str, str]] = None + """Query parameters to append to the request URL.""" response_variables: Optional[Dict[str, str]] = None - """Response variables to add to the dynamic variables.""" + """A mapping of variable names to JSON paths in the response body. + + These values will be extracted from the response and made available as dynamic + variables for use. + """ timeout_ms: Optional[int] = None """The maximum time in milliseconds the tool can run before it's considered diff --git a/src/retell/types/llm_update_params.py b/src/retell/types/llm_update_params.py index 9ab05ac0..ef7cf682 100644 --- a/src/retell/types/llm_update_params.py +++ b/src/retell/types/llm_update_params.py @@ -453,9 +453,14 @@ class GeneralToolCustomTool(TypedDict, total=False): """ query_params: Dict[str, str] + """Query parameters to append to the request URL.""" response_variables: Dict[str, str] - """Response variables to add to the dynamic variables.""" + """A mapping of variable names to JSON paths in the response body. + + These values will be extracted from the response and made available as dynamic + variables for use. + """ timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered @@ -821,9 +826,14 @@ class StateToolCustomTool(TypedDict, total=False): """ query_params: Dict[str, str] + """Query parameters to append to the request URL.""" response_variables: Dict[str, str] - """Response variables to add to the dynamic variables.""" + """A mapping of variable names to JSON paths in the response body. + + These values will be extracted from the response and made available as dynamic + variables for use. + """ timeout_ms: int """The maximum time in milliseconds the tool can run before it's considered From c1419375a721b271fe86806aad499deab7ef81d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 22:26:17 +0000 Subject: [PATCH 09/10] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/phone_call_response.py | 6 +++--- src/retell/types/web_call_response.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index 57c9bbda..5dbeef3f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-8511b31299fc98142a4b6ab1cb95e24dbb36a60fe847fd23cac93cedc0fcca17.yml -openapi_spec_hash: 8c3def74ca22411d57b57467c8203cd0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-a0dea2a1f12785ff40f1a6f1f9570781c63ba372dbb744f2fc61e0c5451f3bef.yml +openapi_spec_hash: 8083df98dc88d4882446f7165d28e0ea config_hash: f4bc63f2350a2a4988750b41a0737f9d diff --git a/src/retell/types/phone_call_response.py b/src/retell/types/phone_call_response.py index 18b65bfc..ac55a162 100644 --- a/src/retell/types/phone_call_response.py +++ b/src/retell/types/phone_call_response.py @@ -410,6 +410,9 @@ class PhoneCallResponse(BaseModel): agent_id: str """Corresponding agent id of this call.""" + agent_version: int + """The version of the agent.""" + call_id: str """Unique id of the call. @@ -585,6 +588,3 @@ class PhoneCallResponse(BaseModel): It precisely captures when (at what utterance, which word) the tool was invoked and what was the result. Available after call ends. """ - - version: Optional[int] = None - """The version of the agent.""" diff --git a/src/retell/types/web_call_response.py b/src/retell/types/web_call_response.py index 54758acd..ca1c693c 100644 --- a/src/retell/types/web_call_response.py +++ b/src/retell/types/web_call_response.py @@ -410,6 +410,9 @@ class WebCallResponse(BaseModel): agent_id: str """Corresponding agent id of this call.""" + agent_version: int + """The version of the agent.""" + call_id: str """Unique id of the call. @@ -570,6 +573,3 @@ class WebCallResponse(BaseModel): It precisely captures when (at what utterance, which word) the tool was invoked and what was the result. Available after call ends. """ - - version: Optional[int] = None - """The version of the agent.""" From ab74f7b79ad0f31a5a81335f3b9f2067fb2acc60 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 22:26:36 +0000 Subject: [PATCH 10/10] release: 4.34.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 15 +++++++++++++++ pyproject.toml | 2 +- src/retell/_version.py | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5304d0ac..7dc692e1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.33.0" + ".": "4.34.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b44d706d..7b97bc36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 4.34.0 (2025-06-11) + +Full Changelog: [v4.33.0...v4.34.0](https://github.com/RetellAI/retell-python-sdk/compare/v4.33.0...v4.34.0) + +### Features + +* **api:** api update ([c141937](https://github.com/RetellAI/retell-python-sdk/commit/c1419375a721b271fe86806aad499deab7ef81d3)) +* **api:** api update ([8f76d19](https://github.com/RetellAI/retell-python-sdk/commit/8f76d19d499df917abf861c79e1f92a9d95a419c)) +* **api:** api update ([80cfbfb](https://github.com/RetellAI/retell-python-sdk/commit/80cfbfb0c62135ecefc7cd92ea5829bbedd99881)) +* **api:** api update ([e52831a](https://github.com/RetellAI/retell-python-sdk/commit/e52831aeb49967506a1daf1b06b034368c11d865)) +* **api:** api update ([8f88a3c](https://github.com/RetellAI/retell-python-sdk/commit/8f88a3cd122c43793888cda86c20e4a3d0fa2095)) +* **api:** api update ([b2df68b](https://github.com/RetellAI/retell-python-sdk/commit/b2df68b78027f5d760b06292591ba7a1ca6a9bce)) +* **api:** api update ([8053323](https://github.com/RetellAI/retell-python-sdk/commit/8053323dbb47fef685a662767ae329d0a382cbc0)) +* **api:** api update ([35b025b](https://github.com/RetellAI/retell-python-sdk/commit/35b025bc9aa7bdc628be6b831f03745097a57023)) + ## 4.33.0 (2025-06-04) Full Changelog: [v4.32.0...v4.33.0](https://github.com/RetellAI/retell-python-sdk/compare/v4.32.0...v4.33.0) diff --git a/pyproject.toml b/pyproject.toml index 24789f3f..e9473a7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "retell-sdk" -version = "4.33.0" +version = "4.34.0" description = "The official Python library for the retell API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/retell/_version.py b/src/retell/_version.py index d1b7898c..93410b42 100644 --- a/src/retell/_version.py +++ b/src/retell/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "retell" -__version__ = "4.33.0" # x-release-please-version +__version__ = "4.34.0" # x-release-please-version