Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:embedding-data-type' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo authored and Beta Bot committed Nov 25, 2024
1 parent 346d930 commit cdb7d8a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions dotnet/src/dotnetcore/GxClasses/GxClasses.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<Compile Include="..\..\dotnetframework\GxClasses\Diagnostics\Log.cs" Link="Diagnostics\Log.cs" />
<Compile Include="..\..\dotnetframework\GxClasses\Diagnostics\GXDebugManager.cs" Link="Diagnostics\GXDebugManager.cs" />
<Compile Include="..\..\dotnetframework\GxClasses\Domain\CallResult.cs" Link="Domain\CallResult.cs" />
<Compile Include="..\..\dotnetframework\GxClasses\Domain\ChatMessage.cs" Link="Domain\ChatMessage.cs" />
<Compile Include="..\..\dotnetframework\GxClasses\Domain\GXLDAP.cs" Link="Domain\GXLDAP.cs" />
<Compile Include="..\..\dotnetframework\GxClasses\Domain\GxMessages.cs" Link="Domain\GxMessages.cs" />
<Compile Include="..\..\dotnetframework\GxClasses\Domain\GxMessaging.cs" Link="Domain\GxMessaging.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal class AgentService
protected const string AI_PROVIDER_API_KEY = "AI_PROVIDER_API_KEY";

protected string DEFAULT_API_KEY => "default_";
protected string DEFAULT_PROVIDER => "https://api.beta.saia.ai/chat";
protected string DEFAULT_PROVIDER => "https://api.beta.saia.ai";
internal AgentService()
{
string val;
Expand Down
24 changes: 24 additions & 0 deletions dotnet/src/dotnetframework/GxClasses/Domain/ChatMessage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System.Collections.Generic;

namespace GeneXus.AI
{
public class ChatMessage
{
public string Role { get; set; }
public string Content { get; set; }
public List<ToolCall> ToolCalls { get; set; }
public string ToolCallId{ get; set; }
}
public class ToolCall
{
public string Id { get; set; }
public string Type { get; set; }

public Function Function { get; set; }
}
public class Function
{
public string Name { get; set; }
public string Arguments { get; set; }
}
}

0 comments on commit cdb7d8a

Please sign in to comment.