diff --git a/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj b/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj index b7339034b..4ff91ae9c 100644 --- a/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj +++ b/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj @@ -39,6 +39,7 @@ + diff --git a/dotnet/src/dotnetcore/Providers/AI/Services/AgentService.cs b/dotnet/src/dotnetcore/Providers/AI/Services/AgentService.cs index 99ce44c73..e004c1281 100644 --- a/dotnet/src/dotnetcore/Providers/AI/Services/AgentService.cs +++ b/dotnet/src/dotnetcore/Providers/AI/Services/AgentService.cs @@ -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; diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/ChatMessage.cs b/dotnet/src/dotnetframework/GxClasses/Domain/ChatMessage.cs new file mode 100644 index 000000000..d0b2e84d4 --- /dev/null +++ b/dotnet/src/dotnetframework/GxClasses/Domain/ChatMessage.cs @@ -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 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; } + } +}