mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Checkpoint * Checkpoint * Checkpoint * Good * Namespace * Namespace * Dun * Async Test * AgentId * Portable pattern * Portable2 * Portable3 * Respond to comments * Namespace * Function call selection * ToHashSet * ToHashSet * Updated * Parameter name * Final * Tests
31 lines
818 B
C#
31 lines
818 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
using Microsoft.Extensions.AI;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Declarative.Events;
|
|
|
|
/// <summary>
|
|
/// Represents a request for user input.
|
|
/// </summary>
|
|
public sealed class AgentToolRequest
|
|
{
|
|
/// <summary>
|
|
/// The name of the agent associated with the tool request.
|
|
/// </summary>
|
|
public string AgentName { get; }
|
|
|
|
/// <summary>
|
|
/// A list of tool requests.
|
|
/// </summary>
|
|
public IList<FunctionCallContent> FunctionCalls { get; }
|
|
|
|
[JsonConstructor]
|
|
internal AgentToolRequest(string agentName, IList<FunctionCallContent>? functionCalls = null)
|
|
{
|
|
this.AgentName = agentName;
|
|
this.FunctionCalls = functionCalls ?? [];
|
|
}
|
|
}
|