Skip to content

Commit 717c012

Browse files
committed
PR feedback
1 parent ff69b80 commit 717c012

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

cookbook/copilot-sdk/dotnet/recipe/ralph-loop.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#:package GitHub.Copilot.SDK@*
2-
#:property PublishAot=false
32

43
using GitHub.Copilot.SDK;
54

cookbook/copilot-sdk/go/ralph-loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ func ralphLoop(ctx context.Context, mode string, maxIterations int) error {
157157
158158
// Log tool usage for visibility
159159
session.On(func(event copilot.Event) {
160-
if te, ok := event.(copilot.ToolExecutionStartEvent); ok {
161-
fmt.Printf(" ⚙ %s\n", te.Data.ToolName)
160+
if toolExecution, ok := event.(copilot.ToolExecutionStartEvent); ok {
161+
fmt.Printf(" ⚙ %s\n", toolExecution.Data.ToolName)
162162
}
163163
})
164164

cookbook/copilot-sdk/go/recipe/ralph-loop.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ func ralphLoop(ctx context.Context, mode string, maxIterations int) error {
7171

7272
// Log tool usage for visibility
7373
session.On(func(event copilot.Event) {
74-
if te, ok := event.(copilot.ToolExecutionStartEvent); ok {
75-
fmt.Printf(" ⚙ %s\n", te.Data.ToolName)
74+
if toolExecution, ok := event.(copilot.ToolExecutionStartEvent); ok {
75+
fmt.Printf(" ⚙ %s\n", toolExecution.Data.ToolName)
7676
}
7777
})
7878

0 commit comments

Comments
 (0)