Skip to content

Commit 2e19dde

Browse files
committed
updates, merge from release-1.16, fix tests, separate app IDs
Signed-off-by: Filinto Duran <[email protected]>
1 parent d7cf203 commit 2e19dde

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

conversation/python/sdk/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ For more LLM options, see the [supported Conversation components](https://docs.d
6969
<!-- STEP
7070
name: Run multi app run template
7171
expected_stdout_lines:
72-
- '== APP - conversation == Input sent: What is dapr?'
73-
- '== APP - conversation == Output response: What is dapr?'
72+
- '== APP - conversation-sdk == Input sent: What is dapr?'
73+
- '== APP - conversation-sdk == Output response: What is dapr?'
7474
expected_stderr_lines:
7575
output_match_mode: substring
7676
match_order: none
@@ -87,8 +87,8 @@ For more LLM options, see the [supported Conversation components](https://docs.d
8787
Expected output:
8888

8989
```text
90-
== APP - conversation == Input sent: What is dapr?
91-
== APP - conversation == Output response: What is dapr?
90+
== APP - conversation-sdk == Input sent: What is dapr?
91+
== APP - conversation-sdk == Output response: What is dapr?
9292
```
9393

9494
<!-- END_STEP -->
@@ -111,10 +111,10 @@ For more LLM options, see the [supported Conversation components](https://docs.d
111111
<!-- STEP
112112
name: Run multi app run template
113113
expected_stdout_lines:
114-
- "== APP - conversation == Input sent: calculate square root of 15"
115-
- "== APP - conversation == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='calculate square root of 15', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='calculate', arguments='expression'))]))"
116-
- "== APP - conversation == Input sent: get weather in London in celsius"
117-
- "== APP - conversation == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='get weather in London in celsius', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='get_weather', arguments='location,unit'))]))"
114+
- "== APP - conversation-tool-calling == Input sent: calculate square root of 15"
115+
- "== APP - conversation-tool-calling == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='calculate square root of 15', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='calculate', arguments='expression'))]))"
116+
- "== APP - conversation-tool-calling == Input sent: get weather in London in celsius"
117+
- "== APP - conversation-tool-calling == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='get weather in London in celsius', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='get_weather', arguments='location,unit'))]))"
118118
expected_stderr_lines:
119119
output_match_mode: substring
120120
match_order: none
@@ -131,10 +131,10 @@ For more LLM options, see the [supported Conversation components](https://docs.d
131131
Expected output:
132132

133133
```text
134-
== APP - conversation == Input sent: calculate square root of 15
135-
== APP - conversation == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='calculate square root of 15', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='calculate', arguments='expression'))]))
136-
== APP - conversation == Input sent: get weather in London in celsius
137-
== APP - conversation == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='get weather in London in celsius', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='get_weather', arguments='location,unit'))]))
134+
== APP - conversation-tool-calling == Input sent: calculate square root of 15
135+
== APP - conversation-tool-calling == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='calculate square root of 15', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='calculate', arguments='expression'))]))
136+
== APP - conversation-tool-calling == Input sent: get weather in London in celsius
137+
== APP - conversation-tool-calling == Output response: ConversationResultAlpha2Choices(finish_reason='tool_calls', index=0, message=ConversationResultAlpha2Message(content='get weather in London in celsius', tool_calls=[ConversationToolCalls(id='0', function=ConversationToolCallsOfFunction(name='get_weather', arguments='location,unit'))]))
138138
```
139139

140140
<!-- END_STEP -->
@@ -147,7 +147,7 @@ For more LLM options, see the [supported Conversation components](https://docs.d
147147
-->
148148

149149
```bash
150-
dapr stop -f .
150+
dapr stop -f dapr-tool-calling.yaml
151151
```
152152

153153
<!-- END_STEP -->
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#dapr>=1.16.0-rc1
22

3-
-e ../../../../../python-sdk
3+
# TODO: temporary until we get an rc or release
4+
dapr-dev @ git+https://github.com/dapr/python-sdk@main

conversation/python/sdk/dapr-tool-calling.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ version: 1
22
common:
33
resourcesPath: ../../components/
44
apps:
5-
- appID: conversation
5+
- appID: conversation-tool-calling
66
appDirPath: ./conversation/
77
command: ["python3", "tool_calling.py"]

conversation/python/sdk/dapr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ version: 1
22
common:
33
resourcesPath: ../../components/
44
apps:
5-
- appID: conversation
5+
- appID: conversation-sdk
66
appDirPath: ./conversation/
77
command: ["python3", "app.py"]

0 commit comments

Comments
 (0)