Skip to content

Commit 9ec2478

Browse files
committed
Remove duplicate Javadoc block on sendExpandedToolResult()
modified: src/main/java/com/github/copilot/sdk/CopilotSession.java - Remove the first of two identical Javadoc comment blocks that appeared in sequence above `sendExpandedToolResult()`. The method retains its single, correct Javadoc block describing the `ObjectNode` bypass for `session.tools.handlePendingToolCall`. Signed-off-by: Ed Burns <edburns@microsoft.com>
1 parent ed1b1e3 commit 9ec2478

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/main/java/com/github/copilot/sdk/CopilotSession.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -857,17 +857,6 @@ private void executeToolAndRespondAsync(String requestId, String toolName, Strin
857857
}
858858
}
859859

860-
/**
861-
* Sends a {@code ToolResultObject} back via
862-
* {@code session.tools.handlePendingToolCall} using an
863-
* {@link com.fasterxml.jackson.databind.node.ObjectNode} payload.
864-
* <p>
865-
* {@link SessionToolsHandlePendingToolCallParams#result()} is typed as
866-
* {@code String} by the code generator's {@code anyOf[string,object]}
867-
* preference rule, but the protocol requires a JSON object for expanded
868-
* {@code ToolResultObject} results. This helper bypasses the type constraint
869-
* while keeping every other call site on the typed wrapper.
870-
*/
871860
/**
872861
* Sends a {@code ToolResultObject} back via
873862
* {@code session.tools.handlePendingToolCall} using an

0 commit comments

Comments
 (0)