You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET Agent - Add AIContext to OpenAIResponseAgent (#12456)
### Motivation and Context
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
1. Why is this change required?
2. What problem does it solve?
3. What scenario does it contribute to?
4. If it fixes an open issue, please link to the issue here.
-->
Follow-up to #12444Fixes: #12472
### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Add support for incorporating `AIContext` when invoking
`OpenAIResponseAgent`
Enabled conformance tests
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
---------
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
#pragma warning disable SKEXP0130// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
15
+
16
+
/// <summary>
17
+
/// Demonstrate creation of <see cref="OpenAIResponseAgent"/> and
18
+
/// adding whiteboarding capabilities, where the most relevant information from the conversation is captured on a whiteboard.
19
+
/// This is useful for long running conversations where the conversation history may need to be truncated
20
+
/// over time, but you do not want to agent to lose context.
// We will also truncate the conversation once it goes over a few items.
62
+
awaitInvokeWithConsoleWriteLine("Hello");
63
+
awaitInvokeWithConsoleWriteLine("I'd like to create a VM?");
64
+
awaitInvokeWithConsoleWriteLine("I want it to have 3 cores.");
65
+
awaitInvokeWithConsoleWriteLine("I want it to have 48GB of RAM.");
66
+
awaitInvokeWithConsoleWriteLine("I want it to have a 500GB Harddrive.");
67
+
awaitInvokeWithConsoleWriteLine("I want it in Europe.");
68
+
awaitInvokeWithConsoleWriteLine("Can you make it Linux and call it 'ContosoVM'.");
69
+
awaitInvokeWithConsoleWriteLine("OK, let's call it `ContosoFinanceVM_Europe` instead.");
70
+
awaitInvokeWithConsoleWriteLine("Thanks, now I want to create another VM.");
71
+
awaitInvokeWithConsoleWriteLine("Make all the options the same as the last one, except for the region, which should be North America, and the name, which should be 'ContosoFinanceVM_NorthAmerica'.");
0 commit comments