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.30.0"
".": "4.31.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 34
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-633b45cdafc58dc79176efac962c92d1ccd20ce82aebf4bb2ceae65954fbc9da.yml
openapi_spec_hash: ac81b4183a73b711bb9e646027f2998c
config_hash: 9d9a24bf8bb4553cbb30ce59eb910b2f
configured_endpoints: 39
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-33c92a2f7908f82088c3cad1076ac008f22cc41d25cbdbcd23b005bfd5e5ab3d.yml
openapi_spec_hash: 3df26020335431e67fdaa9c3865a6a81
config_hash: f4bc63f2350a2a4988750b41a0737f9d
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 4.31.0 (2025-05-22)

Full Changelog: [v4.30.0...v4.31.0](https://github.com/RetellAI/retell-python-sdk/compare/v4.30.0...v4.31.0)

### Features

* **api:** api update ([23a1a74](https://github.com/RetellAI/retell-python-sdk/commit/23a1a741da36c5507778680f56589600434e6f2b))


### Chores

* **docs:** grammar improvements ([1150ae2](https://github.com/RetellAI/retell-python-sdk/commit/1150ae23ac16b8753db1b460848b568b6dbb7f98))

## 4.30.0 (2025-05-15)

Full Changelog: [v4.29.0...v4.30.0](https://github.com/RetellAI/retell-python-sdk/compare/v4.29.0...v4.30.0)
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ before making any information public.
## Reporting Non-SDK Related Security Issues

If you encounter security issues that are not directly related to SDKs but pertain to the services
or products provided by Retell please follow the respective company's security reporting guidelines.
or products provided by Retell, please follow the respective company's security reporting guidelines.

### Retell Terms and Policies

Please contact support@retellai.com for any questions or concerns regarding security of our services.
Please contact support@retellai.com for any questions or concerns regarding the security of our services.

---

Expand Down
16 changes: 16 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ Methods:
- <code title="post /v2/create-web-call">client.call.<a href="./src/retell/resources/call.py">create_web_call</a>(\*\*<a href="src/retell/types/call_create_web_call_params.py">params</a>) -> <a href="./src/retell/types/web_call_response.py">WebCallResponse</a></code>
- <code title="post /v2/register-phone-call">client.call.<a href="./src/retell/resources/call.py">register_phone_call</a>(\*\*<a href="src/retell/types/call_register_phone_call_params.py">params</a>) -> <a href="./src/retell/types/phone_call_response.py">PhoneCallResponse</a></code>

# Chat

Types:

```python
from retell.types import ChatResponse, ChatListResponse, ChatCreateChatCompletionResponse
```

Methods:

- <code title="post /create-chat">client.chat.<a href="./src/retell/resources/chat.py">create</a>(\*\*<a href="src/retell/types/chat_create_params.py">params</a>) -> <a href="./src/retell/types/chat_response.py">ChatResponse</a></code>
- <code title="get /get-chat/{chat_id}">client.chat.<a href="./src/retell/resources/chat.py">retrieve</a>(chat_id) -> <a href="./src/retell/types/chat_response.py">ChatResponse</a></code>
- <code title="get /list-chat">client.chat.<a href="./src/retell/resources/chat.py">list</a>() -> <a href="./src/retell/types/chat_list_response.py">ChatListResponse</a></code>
- <code title="post /create-chat-completion">client.chat.<a href="./src/retell/resources/chat.py">create_chat_completion</a>(\*\*<a href="src/retell/types/chat_create_chat_completion_params.py">params</a>) -> <a href="./src/retell/types/chat_create_chat_completion_response.py">ChatCreateChatCompletionResponse</a></code>
- <code title="patch /end-chat/{chat_id}">client.chat.<a href="./src/retell/resources/chat.py">end</a>(chat_id) -> None</code>

# PhoneNumber

Types:
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 = "4.30.0"
version = "4.31.0"
description = "The official Python library for the retell API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
10 changes: 9 additions & 1 deletion src/retell/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
)
from ._utils import is_given, get_async_library
from ._version import __version__
from .resources import llm, call, agent, voice, batch_call, concurrency, phone_number, knowledge_base
from .resources import llm, call, chat, agent, voice, batch_call, concurrency, phone_number, knowledge_base
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
from ._exceptions import APIStatusError
from ._base_client import (
Expand All @@ -36,6 +36,7 @@

class Retell(SyncAPIClient):
call: call.CallResource
chat: chat.ChatResource
phone_number: phone_number.PhoneNumberResource
agent: agent.AgentResource
llm: llm.LlmResource
Expand Down Expand Up @@ -92,6 +93,7 @@ def __init__(
)

self.call = call.CallResource(self)
self.chat = chat.ChatResource(self)
self.phone_number = phone_number.PhoneNumberResource(self)
self.agent = agent.AgentResource(self)
self.llm = llm.LlmResource(self)
Expand Down Expand Up @@ -211,6 +213,7 @@ def _make_status_error(

class AsyncRetell(AsyncAPIClient):
call: call.AsyncCallResource
chat: chat.AsyncChatResource
phone_number: phone_number.AsyncPhoneNumberResource
agent: agent.AsyncAgentResource
llm: llm.AsyncLlmResource
Expand Down Expand Up @@ -267,6 +270,7 @@ def __init__(
)

self.call = call.AsyncCallResource(self)
self.chat = chat.AsyncChatResource(self)
self.phone_number = phone_number.AsyncPhoneNumberResource(self)
self.agent = agent.AsyncAgentResource(self)
self.llm = llm.AsyncLlmResource(self)
Expand Down Expand Up @@ -385,6 +389,7 @@ def _make_status_error(
class RetellWithRawResponse:
def __init__(self, client: Retell) -> None:
self.call = call.CallResourceWithRawResponse(client.call)
self.chat = chat.ChatResourceWithRawResponse(client.chat)
self.phone_number = phone_number.PhoneNumberResourceWithRawResponse(client.phone_number)
self.agent = agent.AgentResourceWithRawResponse(client.agent)
self.llm = llm.LlmResourceWithRawResponse(client.llm)
Expand All @@ -397,6 +402,7 @@ def __init__(self, client: Retell) -> None:
class AsyncRetellWithRawResponse:
def __init__(self, client: AsyncRetell) -> None:
self.call = call.AsyncCallResourceWithRawResponse(client.call)
self.chat = chat.AsyncChatResourceWithRawResponse(client.chat)
self.phone_number = phone_number.AsyncPhoneNumberResourceWithRawResponse(client.phone_number)
self.agent = agent.AsyncAgentResourceWithRawResponse(client.agent)
self.llm = llm.AsyncLlmResourceWithRawResponse(client.llm)
Expand All @@ -409,6 +415,7 @@ def __init__(self, client: AsyncRetell) -> None:
class RetellWithStreamedResponse:
def __init__(self, client: Retell) -> None:
self.call = call.CallResourceWithStreamingResponse(client.call)
self.chat = chat.ChatResourceWithStreamingResponse(client.chat)
self.phone_number = phone_number.PhoneNumberResourceWithStreamingResponse(client.phone_number)
self.agent = agent.AgentResourceWithStreamingResponse(client.agent)
self.llm = llm.LlmResourceWithStreamingResponse(client.llm)
Expand All @@ -421,6 +428,7 @@ def __init__(self, client: Retell) -> None:
class AsyncRetellWithStreamedResponse:
def __init__(self, client: AsyncRetell) -> None:
self.call = call.AsyncCallResourceWithStreamingResponse(client.call)
self.chat = chat.AsyncChatResourceWithStreamingResponse(client.chat)
self.phone_number = phone_number.AsyncPhoneNumberResourceWithStreamingResponse(client.phone_number)
self.agent = agent.AsyncAgentResourceWithStreamingResponse(client.agent)
self.llm = llm.AsyncLlmResourceWithStreamingResponse(client.llm)
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__ = "4.30.0" # x-release-please-version
__version__ = "4.31.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/retell/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
CallResourceWithStreamingResponse,
AsyncCallResourceWithStreamingResponse,
)
from .chat import (
ChatResource,
AsyncChatResource,
ChatResourceWithRawResponse,
AsyncChatResourceWithRawResponse,
ChatResourceWithStreamingResponse,
AsyncChatResourceWithStreamingResponse,
)
from .agent import (
AgentResource,
AsyncAgentResource,
Expand Down Expand Up @@ -72,6 +80,12 @@
"AsyncCallResourceWithRawResponse",
"CallResourceWithStreamingResponse",
"AsyncCallResourceWithStreamingResponse",
"ChatResource",
"AsyncChatResource",
"ChatResourceWithRawResponse",
"AsyncChatResourceWithRawResponse",
"ChatResourceWithStreamingResponse",
"AsyncChatResourceWithStreamingResponse",
"PhoneNumberResource",
"AsyncPhoneNumberResource",
"PhoneNumberResourceWithRawResponse",
Expand Down
Loading
Loading