Skip to content

Commit a983c3f

Browse files
authored
Merge pull request #703 from iceljc/master
create conv with tags
2 parents 02db15f + cce06ef commit a983c3f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Infrastructure/BotSharp.Abstraction/Models/MessageConfig.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public class MessageConfig
3636
/// </summary>
3737
public List<MessageState> States { get; set; } = new();
3838

39+
/// <summary>
40+
/// Conversation tags
41+
/// </summary>
42+
public List<string> Tags { get; set; } = new();
43+
3944
/// <summary>
4045
/// Agent task id
4146
/// </summary>

src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public async Task<ConversationViewModel> NewConversation([FromRoute] string agen
3535
{
3636
AgentId = agentId,
3737
Channel = channel == default ? ConversationChannel.OpenAPI : channel.Value,
38+
Tags = config.Tags ?? new(),
3839
TaskId = config.TaskId
3940
};
4041
conv = await service.NewConversation(conv);

0 commit comments

Comments
 (0)