microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Tests/Microsoft.Teams.AI.Tests/Utils/TestChatPrompt.cs
14lines · modecode
| 1 | using Microsoft.Teams.AI.Models; |
| 2 | using Microsoft.Teams.AI.Prompts; |
| 3 | |
| 4 | namespace Microsoft.Teams.AI.Tests.Utils; |
| 5 | |
| 6 | internal class TestChatPrompt : ChatPrompt<TestModelOptions> |
| 7 | { |
| 8 | private static readonly IChatModel<TestModelOptions> model = new TestModel(); |
| 9 | |
| 10 | public TestChatPrompt(ChatPromptOptions? options = null) : base(model, options) |
| 11 | { |
| 12 | Function(new Function("test-function", "a test function", () => Task.FromResult("test function output"))); |
| 13 | } |
| 14 | } |