Skip to content

Commit 331f580

Browse files
cicoyleelena-kolevskafilintodacroca
authored
Merge release-1.16 branch changes to Main (#851)
* 1.16.0-rc1 Signed-off-by: Elena Kolevska <[email protected]> * [Conversation API - Alpha2] Add new tool calling capability (#822) (#832) * initial * fixes after proto change upstream * minor name changes and cleanup unused function * refactors, updates to readme, linting * feedback * feedback, updates * fix import in examples * cleanup, import, lint, more conversation helpers * clarify README, minor test import changes, copyright * feedback DRY test_conversation file * lint * move conversation classes in _response module to conversation module. Some example README refactor/lint * minor readme change * Update daprdocs/content/en/python-sdk-docs/python-client.md * lint * updates to fix issue with tool calling helper when dealing with classes instead of dataclasses, and also with serializatin output of the tool back to the LLM * coalesce conv helper tests, fix typing lint * make indent line method doc more dev friendly * tackle some feedback, still missing unit tests * add unit test to convert_value_to_struct * more unit tests per feedback * make async version of unit test conversation * add some information how to run markdown tests with a different runtime * ran tox -e ruff, even though tox -e flake8 was fine * add tests to increase coverage in conversation and conversation_helpers that codecov pointed out * add more information on execute registered tools, also added more tests for them to validate * fix test failing on py 1.13. Merge two unit test files per feedback * Linter * fix typing issue with UnionType in py3.9 --------- Signed-off-by: Filinto Duran <[email protected]> Signed-off-by: Elena Kolevska <[email protected]> Co-authored-by: Albert Callarisa <[email protected]> Co-authored-by: Elena Kolevska <[email protected]> Co-authored-by: Elena Kolevska <[email protected]> * update docs with tool calling helpers info (#838) Signed-off-by: Filinto Duran <[email protected]> * 1.16.0rc2 Signed-off-by: Elena Kolevska <[email protected]> * use latest durabletask (#840) Signed-off-by: Cassandra Coyle <[email protected]> * 1.16.0 Signed-off-by: Elena Kolevska <[email protected]> * Adds support for interceptors and concurrency_options arguments in the workflow engine (#841) Signed-off-by: Albert Callarisa <[email protected]> * Implement multi-app workflows (#844) * feat: Adds support for cross-app calls. Signed-off-by: Albert Callarisa <[email protected]> * Use durabletask alpha.9 Signed-off-by: Albert Callarisa <[email protected]> * Added examples for error scenarios in multi-app workflow Signed-off-by: Albert Callarisa <[email protected]> * Remove unnecessary hardcoded ports Signed-off-by: Albert Callarisa <[email protected]> --------- Signed-off-by: Albert Callarisa <[email protected]> * chore: Rename wait_until_ready to wait_for_sidecar (#843) Signed-off-by: Albert Callarisa <[email protected]> Co-authored-by: Elena Kolevska <[email protected]> * 1.16.1rc1 (#846) Signed-off-by: Albert Callarisa <[email protected]> --------- Signed-off-by: Elena Kolevska <[email protected]> Signed-off-by: Filinto Duran <[email protected]> Signed-off-by: Cassandra Coyle <[email protected]> Signed-off-by: Albert Callarisa <[email protected]> Co-authored-by: Elena Kolevska <[email protected]> Co-authored-by: Filinto Duran <[email protected]> Co-authored-by: Albert Callarisa <[email protected]> Co-authored-by: Elena Kolevska <[email protected]> Co-authored-by: Albert Callarisa <[email protected]>
1 parent f959cd5 commit 331f580

File tree

31 files changed

+402
-61
lines changed

31 files changed

+402
-61
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pip3 install dapr-ext-fastapi
5353

5454
```sh
5555
# Install Dapr client sdk
56-
pip3 install dapr-dev
56+
pip3 install dapr
5757

5858
# Install Dapr gRPC AppCallback service extension
5959
pip3 install dapr-ext-grpc-dev

dapr/aio/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(
153153
max_grpc_message_length (int, optional): The maximum grpc send and receive
154154
message length in bytes.
155155
"""
156-
DaprHealth.wait_until_ready()
156+
DaprHealth.wait_for_sidecar()
157157
self.retry_policy = retry_policy or RetryPolicy()
158158

159159
useragent = f'dapr-sdk-python/{__version__}'

dapr/aio/clients/grpc/subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def outgoing_request_iterator():
5151

5252
async def reconnect_stream(self):
5353
await self.close()
54-
DaprHealth.wait_until_ready()
54+
DaprHealth.wait_for_sidecar()
5555
print('Attempting to reconnect...')
5656
await self.start()
5757

dapr/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(
145145
message length in bytes.
146146
retry_policy (RetryPolicy optional): Specifies retry behaviour
147147
"""
148-
DaprHealth.wait_until_ready()
148+
DaprHealth.wait_for_sidecar()
149149
self.retry_policy = retry_policy or RetryPolicy()
150150

151151
useragent = f'dapr-sdk-python/{__version__}'

dapr/clients/grpc/subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def outgoing_request_iterator():
6565

6666
def reconnect_stream(self):
6767
self.close()
68-
DaprHealth.wait_until_ready()
68+
DaprHealth.wait_for_sidecar()
6969
print('Attempting to reconnect...')
7070
self.start()
7171

dapr/clients/health.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import urllib.request
1616
import urllib.error
1717
import time
18+
from warnings import warn
1819

1920
from dapr.clients.http.conf import DAPR_API_TOKEN_HEADER, USER_AGENT_HEADER, DAPR_USER_AGENT
2021
from dapr.clients.http.helpers import get_api_url
@@ -24,6 +25,15 @@
2425
class DaprHealth:
2526
@staticmethod
2627
def wait_until_ready():
28+
warn(
29+
'This method is deprecated. Use DaprHealth.wait_for_sidecar instead.',
30+
DeprecationWarning,
31+
stacklevel=2,
32+
)
33+
DaprHealth.wait_for_sidecar()
34+
35+
@staticmethod
36+
def wait_for_sidecar():
2737
health_url = f'{get_api_url()}/healthz/outbound'
2838
headers = {USER_AGENT_HEADER: DAPR_USER_AGENT}
2939
if settings.DAPR_API_TOKEN is not None:

dapr/clients/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
timeout (int, optional): Timeout in seconds, defaults to 60.
5252
headers_callback (lambda: Dict[str, str]], optional): Generates header for each request.
5353
"""
54-
DaprHealth.wait_until_ready()
54+
DaprHealth.wait_for_sidecar()
5555

5656
self._timeout = aiohttp.ClientTimeout(total=timeout)
5757
self._serializer = message_serializer

dapr/version/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
limitations under the License.
1414
"""
1515

16-
__version__ = '1.15.0.dev'
16+
__version__ = '1.16.1rc1'

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Flask>=1.1
1515
# needed for auto fix
1616
ruff===0.2.2
1717
# needed for dapr-ext-workflow
18-
durabletask-dapr >= 0.2.0a7
18+
durabletask-dapr >= 0.2.0a9
1919
# needed for .env file loading in examples
2020
python-dotenv>=1.0.0
2121
# needed for enhanced schema generation from function features
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dapr-ext-fastapi-dev>=1.15.0.dev
1+
dapr-ext-fastapi>=1.16.1rc1

0 commit comments

Comments
 (0)