Skip to content

Commit 9d358e4

Browse files
committed
updates to make tess pass
Signed-off-by: Filinto Duran <1373693+filintod@users.noreply.github.com>
1 parent aad9eb8 commit 9d358e4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

conversation/go/sdk/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ Open a new terminal window and run the multi app run template:
2222
name: Run multi app run template
2323
expected_stdout_lines:
2424
- '== APP - conversation-sdk == Input sent: What is dapr?'
25-
- '== APP - conversation == Output response: What is dapr?'
25+
- '== APP - conversation-sdk == Output response: What is dapr?'
2626
- '== APP - conversation-sdk == Tool calling input sent: What is the weather like in San Francisco in celsius?'
27-
- '== APP - conversation == Tool Call: Name: getWeather, Arguments: '
28-
- '== APP - conversation == Tool Call Output: The weather in San Francisco is 25 degrees Celsius'
27+
- '== APP - conversation-sdk == Tool Call: Name: getWeather - Arguments: '
28+
- '== APP - conversation-sdk == Tool Call Output: The weather in San Francisco is 25 degrees Celsius'
2929
expected_stderr_lines:
3030
output_match_mode: substring
3131
match_order: none
@@ -44,9 +44,9 @@ The terminal console output should look similar to this, where:
4444
- The mock LLM echoes `What is dapr?`.
4545

4646
```text
47-
== APP - conversation == Input sent: What is dapr?
48-
== APP - conversation == Output response: What is dapr?
49-
- '== APP - conversation-sdk == Tool calling input sent: What is the weather like in San Francisco in celsius?'
47+
== APP - conversation-sdk == Input sent: What is dapr?
48+
== APP - conversation-sdk == Output response: What is dapr?
49+
== APP - conversation-sdk == Tool calling input sent: What is the weather like in San Francisco in celsius?
5050
== APP - conversation-sdk == Tool Call: Name: getWeather, Arguments: location,unit
5151
== APP - conversation-sdk == Tool Call Output: The weather in San Francisco is 25 degrees Celsius
5252
```

conversation/go/sdk/conversation/conversation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ func main() {
139139
log.Fatalf("err: %v", err)
140140
}
141141

142-
fmt.Println("Output response:", resp.Outputs[0].Choices[0].Message.Content)
142+
fmt.Println(resp.Outputs[0].Choices[0].Message.Content)
143143
for _, toolCalls := range resp.Outputs[0].Choices[0].Message.ToolCalls {
144-
fmt.Printf("Tool Call: Name: %s, Arguments: %v\n", toolCalls.ToolTypes.Name, toolCalls.ToolTypes.Arguments)
144+
fmt.Printf("Tool Call: Name: %s - Arguments: %v\n", toolCalls.ToolTypes.Name, toolCalls.ToolTypes.Arguments)
145145

146146
// parse the arguments and execute tool
147147
args := []byte(toolCalls.ToolTypes.Arguments)

conversation/go/sdk/dapr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ common:
33
resourcesPath: ../../components/
44
apps:
55
- appDirPath: ./conversation/
6-
appID: conversation
6+
appID: conversation-sdk
77
command: ["go", "run", "."]

0 commit comments

Comments
 (0)