-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Add prompt execution settings to AutoFunctionInvocationContext #10551
base: main
Are you sure you want to change the base?
Changes from 3 commits
f328544
25fb3a3
8d416ac
7905b7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using System.Threading; | ||
using Microsoft.SemanticKernel.ChatCompletion; | ||
|
||
|
@@ -79,6 +80,12 @@ public AutoFunctionInvocationContext( | |
/// </summary> | ||
public ChatMessageContent ChatMessageContent { get; } | ||
|
||
/// <summary> | ||
/// The execution settings associated with the operation. | ||
/// </summary> | ||
[Experimental("SKEXP0001")] | ||
public PromptExecutionSettings? ExecutionSettings { get; init; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need a separate property in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dmytrostruk Not fully sure. Arguments today is only filled if PromptExecutionSettings was literally passed as an Argument right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @RogerBarreto Yes, but that's the only way how to pass There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dmytrostruk I see, any changes to |
||
|
||
/// <summary> | ||
/// Gets the <see cref="Microsoft.SemanticKernel.ChatCompletion.ChatHistory"/> associated with automatic function invocation. | ||
/// </summary> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be public (is already a internal class and utility) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That actually doesn't matter so much since the class is internal. It would make sense to revise the method access modifier if and when we decide to make the class public.