create conv with tags

This commit is contained in:
Jicheng Lu 2024-10-22 20:52:18 -05:00
parent 02db15fdc6
commit cce06efdd1
2 changed files with 6 additions and 0 deletions

View file

@ -36,6 +36,11 @@ public class MessageConfig
/// </summary>
public List<MessageState> States { get; set; } = new();
/// <summary>
/// Conversation tags
/// </summary>
public List<string> Tags { get; set; } = new();
/// <summary>
/// Agent task id
/// </summary>

View file

@ -35,6 +35,7 @@ public class ConversationController : ControllerBase
{
AgentId = agentId,
Channel = channel == default ? ConversationChannel.OpenAPI : channel.Value,
Tags = config.Tags ?? new(),
TaskId = config.TaskId
};
conv = await service.NewConversation(conv);