Skip to content

Commit ea0ea05

Browse files
committed
Changes to better CallTools support.
(cherry picked from commit 07bdd8f)
1 parent 7a563f1 commit ea0ea05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

java/src/main/java/com/genexus/GXProcedure.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ protected void mockExecute() {
266266
privateExecute( );
267267
}
268268

269-
protected String callTool(String name, String arguments) throws Exception {
269+
protected String callTool(String name, String arguments) {
270270
return "";
271271
}
272272

@@ -317,7 +317,7 @@ private void processToolCall(OpenAIResponse.ToolCall toolCall, ArrayList<OpenAIR
317317
try {
318318
result = callTool(functionName, toolCall.getFunction().getArguments());
319319
}
320-
catch (Exception e) {
320+
catch (Throwable e) {
321321
result = String.format("Error calling tool %s", functionName);
322322
}
323323
OpenAIResponse.Message toolCallMessage = new OpenAIResponse.Message();

java/src/test/java/com/genexus/agent/Agent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected void cleanup( )
108108
this.aP2[0] = AV5OutputVariable;
109109
}
110110

111-
protected String callTool(String name, String arguments) throws Exception {
111+
protected String callTool(String name, String arguments) {
112112
switch (name) {
113113
case "TranslateDescription":
114114
return "The Panavox Television 80 inches are wonderful";

0 commit comments

Comments
 (0)