-
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: Phase 1 of the declarative agent schema for review #10260
base: feature-declarative-agents
Are you sure you want to change the base?
.Net: Phase 1 of the declarative agent schema for review #10260
Conversation
c624bbd
to
e800600
Compare
Hi @markwallace-microsoft, Maybe support:
Unsure this helps, pretty much high level. |
Thanks for the feedback @joslat
|
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.
Copilot reviewed 79 out of 79 changed files in this pull request and generated 3 comments.
d961a0a
to
431c6ee
Compare
if (agentDefinition.Type?.Equals(OpenAIAssistantAgentType, System.StringComparison.Ordinal) ?? false) | ||
{ | ||
var clientProvider = kernel.GetOpenAIClientProvider(agentDefinition); | ||
AssistantClient client = clientProvider.Client.GetAssistantClient(); |
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.
The client-provider pattern is being deprecated in favor of direct client usage.
KernelAgent? kernelAgent = null; | ||
if (agentDefinition.Type?.Equals(AzureAIAgentType, System.StringComparison.Ordinal) ?? false) | ||
{ | ||
var clientProvider = kernel.GetAzureAIClientProvider(agentDefinition); |
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.
The client-provider pattern is being deprecated in favor of direct client usage.
Adding support for |
Be nice to see some comprehensive samples on this. |
Any thoughts on reconciling the support for the |
Is this going to be released as "GA" or have an experimental tag defined? |
{ | ||
var hasEndpoint = configuration.TryGetValue(Endpoint, out var endpoint) && endpoint is not null; | ||
var hasApiKey = configuration.TryGetValue(ApiKey, out var apiKey) && apiKey is not null; | ||
if (hasApiKey && hasEndpoint) |
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.
This logic may be overly brittle. Isn't there the case where a non-azure endpoint can be targeted that requires an endpoint (such as a model gateway)?
It might be prudent to require explicit knowledge on whether Azure or OpenAI is intended.
Yes, this will be added in a seperate PR. Limiting scope in this PR to make it easier to review. This PR is targeting a feature branch and there is more to come before this is ready for merge to main. |
This will all be experimental initially. I'll add those flags before merging to main. |
We will be favouring this pattern going forward. The existing |
This will come in a follow up PR. |
Motivation and Context
Related #10224
Includes following
Description
Contribution Checklist