Merge pull request #703 from iceljc/master

create conv with tags
This commit is contained in:
iceljc 2024-10-22 20:53:10 -05:00 committed by GitHub
commit a983c3f6e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);