Skip to content

Commit

Permalink
Fix Build error in Github
Browse files Browse the repository at this point in the history
(cherry picked from commit fd8af2e)
  • Loading branch information
iroqueta committed Nov 22, 2024
1 parent 6c88f38 commit 27aaf5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 83 deletions.
77 changes: 0 additions & 77 deletions java/src/test/java/com/genexus/agent/Assistant.java

This file was deleted.

11 changes: 5 additions & 6 deletions java/src/test/java/com/genexus/assistant/Assistant.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.genexus.assistant;

import com.genexus.*;
import com.genexus.GXProcedure;
import com.genexus.ModelContext;
import com.genexus.util.CallResult;
import com.genexus.util.saia.OpenAIResponse;

import java.util.ArrayList;
import java.util.List;

public final class Assistant extends GXProcedure
{
public Assistant( int remoteHandle )
public Assistant(int remoteHandle )
{
super( remoteHandle , new ModelContext( Assistant.class ), "" );
}
Expand All @@ -34,9 +34,8 @@ private void execute_int( String aP0 ,
protected void privateExecute( )
{
Gxproperties = new com.genexus.util.GXProperties();
List<OpenAIResponse.Message> messages = null;
ArrayList messages = new ArrayList();;
if (AV3Parameter1.equals("chat")) {
messages = new ArrayList<>();
OpenAIResponse.Message message = new OpenAIResponse.Message();
message.setRole("user");
message.setContent("Dime el clima en Lima - Peru");
Expand All @@ -55,7 +54,7 @@ protected void privateExecute( )
Gxproperties.set("&Parameter2", AV4Parameter2);
Gxproperties.set("$context", "Los Angeles");
}
AV5OutputVariable = callAssistant( "The weatherman", Gxproperties, messages, new CallResult()) ;
AV5OutputVariable = callAgent( "The weatherman", Gxproperties, messages, new CallResult()) ;
cleanup();
}

Expand Down

0 comments on commit 27aaf5a

Please sign in to comment.