Files
microsoft--semantic-kernel/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/Tools/OrderProcessingUtils.cs
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

34 lines
953 B
C#

// Copyright (c) Microsoft. All rights reserved.
using Microsoft.SemanticKernel;
namespace MCPServer.Tools;
/// <summary>
/// A collection of utility methods for working with orders.
/// </summary>
internal sealed class OrderProcessingUtils
{
/// <summary>
/// Places an order for the specified item.
/// </summary>
/// <param name="itemName">The name of the item to be ordered.</param>
/// <returns>A string indicating the result of the order placement.</returns>
[KernelFunction]
public string PlaceOrder(string itemName)
{
return "success";
}
/// <summary>
/// Executes a refund for the specified item.
/// </summary>
/// <param name="itemName">The name of the item to be refunded.</param>
/// <returns>A string indicating the result of the refund execution.</returns>
[KernelFunction]
public string ExecuteRefund(string itemName)
{
return "success";
}
}