microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Tests/Microsoft.Teams.AI.Tests/Utils/TestChatPrompt.cs
14lines · modeblame
cc0afc37Kavin9 months ago | 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 | } | |
2e8d526cAlex Acebo9 months ago | 14 | } |