diff --git a/cookbook/copilot-sdk/dotnet/recipe/ralph-loop.cs b/cookbook/copilot-sdk/dotnet/recipe/ralph-loop.cs index d0baa2e7..9f153324 100644 --- a/cookbook/copilot-sdk/dotnet/recipe/ralph-loop.cs +++ b/cookbook/copilot-sdk/dotnet/recipe/ralph-loop.cs @@ -1,5 +1,4 @@ #:package GitHub.Copilot.SDK@* -#:property PublishAot=false using GitHub.Copilot.SDK; diff --git a/cookbook/copilot-sdk/go/ralph-loop.md b/cookbook/copilot-sdk/go/ralph-loop.md index 626ed5ea..f8462c3d 100644 --- a/cookbook/copilot-sdk/go/ralph-loop.md +++ b/cookbook/copilot-sdk/go/ralph-loop.md @@ -157,8 +157,8 @@ func ralphLoop(ctx context.Context, mode string, maxIterations int) error { // Log tool usage for visibility session.On(func(event copilot.Event) { - if te, ok := event.(copilot.ToolExecutionStartEvent); ok { - fmt.Printf(" ⚙ %s\n", te.Data.ToolName) + if toolExecution, ok := event.(copilot.ToolExecutionStartEvent); ok { + fmt.Printf(" ⚙ %s\n", toolExecution.Data.ToolName) } }) diff --git a/cookbook/copilot-sdk/go/recipe/ralph-loop.go b/cookbook/copilot-sdk/go/recipe/ralph-loop.go index 35d862b7..03d99987 100644 --- a/cookbook/copilot-sdk/go/recipe/ralph-loop.go +++ b/cookbook/copilot-sdk/go/recipe/ralph-loop.go @@ -71,8 +71,8 @@ func ralphLoop(ctx context.Context, mode string, maxIterations int) error { // Log tool usage for visibility session.On(func(event copilot.Event) { - if te, ok := event.(copilot.ToolExecutionStartEvent); ok { - fmt.Printf(" ⚙ %s\n", te.Data.ToolName) + if toolExecution, ok := event.(copilot.ToolExecutionStartEvent); ok { + fmt.Printf(" ⚙ %s\n", toolExecution.Data.ToolName) } })