mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
ec82ed15d2
* Add a StateBag to AgentSession and pass Agent and AgentSession to AIContextProvider and ChatHistoryProviders * Remove statebag code from this branch, to get the refactoring out of the way first * Apply suggestion from @rogerbarreto Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com> * Apply suggestion from @westey-m * Apply suggestion from @westey-m --------- Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
19 lines
696 B
C#
19 lines
696 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Microsoft.Agents.AI.UnitTests;
|
|
|
|
[JsonSourceGenerationOptions(
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
|
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
|
UseStringEnumConverter = true)]
|
|
[JsonSerializable(typeof(JsonElement))]
|
|
[JsonSerializable(typeof(string))]
|
|
[JsonSerializable(typeof(string[]))]
|
|
[JsonSerializable(typeof(Dictionary<string, object?>))]
|
|
[JsonSerializable(typeof(ChatClientAgentSessionTests.Animal))]
|
|
internal sealed partial class TestJsonSerializerContext : JsonSerializerContext;
|