You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adapt hand-authored code to renamed schema in @github/copilot 1.0.40-1
The 1.0.40-1 schema renames several types that are referenced from
hand-authored code:
- ToolsHandlePendingToolCallRequest -> HandlePendingToolCallRequest
- ToolsHandlePendingToolCall (union) -> ExternalToolResult (union)
- ToolCallResult -> ExternalToolTextResultForLlm
- PermissionCompletedKind enum -> PermissionResult polymorphism
(PermissionResultApproved,
PermissionResultDeniedInteractivelyByUser,
...)
Update the corresponding hand-authored files so the SDKs build again:
- go/rpc/result_union.go: rename receiver and union field references
on the custom (Un)MarshalJSON methods.
- go/session.go: use the new request/result type and union field names
when sending tool call results back via RPC.
- python/copilot/session.py: import the renamed RPC types and use them
when constructing handle_pending_tool_call requests.
- dotnet/test/MultiClientTests.cs: switch from a removed Kind enum
comparison to Assert.IsType<PermissionResult*> against the new
polymorphic PermissionResult derived types.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments