mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET - [Breaking]: Update Declarative Object Model + Dependencies (#3017)
* 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>
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@ using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using Microsoft.Agents.AI.Workflows.Declarative.Kit;
|
||||
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
|
||||
using Microsoft.Bot.ObjectModel;
|
||||
using Microsoft.Agents.ObjectModel;
|
||||
using Microsoft.Extensions.AI;
|
||||
using Microsoft.PowerFx.Types;
|
||||
using BlankType = Microsoft.PowerFx.Types.BlankType;
|
||||
@@ -259,7 +259,7 @@ internal static class FormulaValueExtensions
|
||||
[.. value.OfType<ExpandoObject>().Select(element => element.ToRecord())]),
|
||||
_ when typeof(ChatMessage).IsAssignableFrom(elementType) =>
|
||||
FormulaValue.NewTable(
|
||||
TypeSchema.Message.MessageRecordType,
|
||||
TypeSchema.Message.RecordType,
|
||||
[.. value.OfType<ChatMessage>().Select(message => message.ToRecord())]),
|
||||
_ when typeof(IDictionary).IsAssignableFrom(elementType) => value.ToTableOfRecords(),
|
||||
_ => throw new DeclarativeModelException($"Unsupported element type: {elementType.Name}"),
|
||||
|
||||
Reference in New Issue
Block a user