-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry pick branch 'genexuslabs:embedding-data-type' into beta
- Loading branch information
1 parent
2841f48
commit bb04cc4
Showing
5 changed files
with
194 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,41 @@ | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace GeneXus.AI.Chat | ||
{ | ||
public class ChatMessage | ||
{ | ||
[JsonPropertyName("role")] | ||
public string Role { get; set; } | ||
|
||
[JsonPropertyName("content")] | ||
public string Content { get; set; } | ||
|
||
[JsonPropertyName("tool_calls")] | ||
public List<ToolCall> ToolCalls { get; set; } | ||
public string ToolCallId{ get; set; } | ||
|
||
[JsonPropertyName("tool_call_id")] | ||
public string ToolCallId { get; set; } | ||
|
||
} | ||
public class ToolCall | ||
{ | ||
[JsonPropertyName("id")] | ||
public string Id { get; set; } | ||
|
||
[JsonPropertyName("type")] | ||
public string Type { get; set; } | ||
|
||
[JsonPropertyName("function")] | ||
public Function Function { get; set; } | ||
|
||
} | ||
public class Function | ||
{ | ||
[JsonPropertyName("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonPropertyName("arguments")] | ||
public string Arguments { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters