mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
74879489a4
* Checkpoint * Update workflows/DeepResearch.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Comment * Fix comment * Update package version * Fix nuget haxx * Checkpoint * Code complete * Testing * Message content workaround * Add sequential flow * Checkpoint * Integration test project * Checkpoint * Checkpoint cleanup * Complete * Update package --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
60 lines
1.2 KiB
C#
60 lines
1.2 KiB
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Microsoft.Agents.Workflows.Declarative.IntegrationTests.Framework;
|
|
|
|
public sealed class Testcase
|
|
{
|
|
[JsonConstructor]
|
|
public Testcase(
|
|
string description,
|
|
TestcaseSetup setup,
|
|
TestcaseValidation validation)
|
|
{
|
|
this.Description = description;
|
|
this.Setup = setup;
|
|
this.Validation = validation;
|
|
}
|
|
|
|
public string Description { get; }
|
|
|
|
public TestcaseSetup Setup { get; }
|
|
|
|
public TestcaseValidation Validation { get; }
|
|
}
|
|
|
|
public sealed class TestcaseSetup
|
|
{
|
|
[JsonConstructor]
|
|
public TestcaseSetup(TestcaseInput input)
|
|
{
|
|
this.Input = input;
|
|
}
|
|
public TestcaseInput Input { get; }
|
|
}
|
|
|
|
public sealed class TestcaseInput
|
|
{
|
|
[JsonConstructor]
|
|
public TestcaseInput(string type, string value)
|
|
{
|
|
this.Type = type;
|
|
this.Value = value;
|
|
}
|
|
|
|
public string Type { get; }
|
|
public string Value { get; }
|
|
}
|
|
|
|
public sealed class TestcaseValidation
|
|
{
|
|
[JsonConstructor]
|
|
public TestcaseValidation(int actionCount)
|
|
{
|
|
this.ActionCount = actionCount;
|
|
}
|
|
|
|
public int ActionCount { get; }
|
|
}
|