mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Builds locally and tests pass * Fix typo * Reverted nuget config change to remove internal feed and map to new public object model package with renames. * Renaming Bot object model in additional sample. --------- Co-authored-by: Peter Ibekwe <peibekwe@microsoft.com>
28 lines
949 B
C#
28 lines
949 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Collections.Frozen;
|
|
using System.Collections.Generic;
|
|
using Microsoft.Agents.ObjectModel;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen;
|
|
|
|
internal partial class RetrieveConversationMessagesTemplate
|
|
{
|
|
public RetrieveConversationMessagesTemplate(RetrieveConversationMessages model)
|
|
{
|
|
this.Model = this.Initialize(model);
|
|
this.UseAgentProvider = true;
|
|
}
|
|
|
|
public RetrieveConversationMessages Model { get; }
|
|
|
|
public const string DefaultSort = "false";
|
|
|
|
public static readonly FrozenDictionary<AgentMessageSortOrderWrapper, string> SortMap =
|
|
new Dictionary<AgentMessageSortOrderWrapper, string>()
|
|
{
|
|
[AgentMessageSortOrderWrapper.Get(AgentMessageSortOrder.NewestFirst)] = "true",
|
|
[AgentMessageSortOrderWrapper.Get(AgentMessageSortOrder.OldestFirst)] = "false",
|
|
}.ToFrozenDictionary();
|
|
}
|