- Notifications
You must be signed in to change notification settings - Fork920
.NET: Declarative Agents#2476
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
.NET: Declarative Agents#2476
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Pull request overview
This PR introduces declarative agent support to the .NET Agent Framework by adding theMicrosoft.Agents.AI.Declarative project and updating sample YAML configuration files.
Key changes:
- Added new
Microsoft.Agents.AI.Declarativeproject with factory pattern for creating agents from YAML definitions - Implemented extension methods for converting between declarative object model types and runtime AI types
- Fixed spelling errors in agent instruction texts across multiple YAML sample files
Reviewed changes
Copilot reviewed 28 out of 28 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
Microsoft.Agents.AI.Declarative.csproj | New project file defining dependencies and configuration for the declarative agents library |
agent-framework-dotnet.slnx | Added the new declarative project to the solution |
AgentFactory.cs | Base abstract factory class for creating AI agents from declarative definitions |
AggregatorAgentFactory.cs | Composite factory that aggregates multiple agent factories |
ChatClientAgentFactory.cs | Concrete factory implementation for creating ChatClient-based agents |
AgentBotElementYaml.cs | Helper methods for deserializing YAML to agent definitions |
YamlAgentFactoryExtensions.cs | Extension methods to create agents from YAML strings |
PromptAgentExtensions.cs | Extensions for converting GptComponentMetadata to ChatOptions and tools |
| Extension files (RecordData*, PropertyInfo*, StringExpression*, ModelOptions*, Tool*) | Type conversion extensions between declarative and runtime types |
| YAML sample files | Updated instructions to fix grammar errors and standardized property names fromkind totype |
dotnet/src/Microsoft.Agents.AI.Declarative/Extensions/PromptAgentExtensions.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
b261089Uh oh!
There was an error while loading.Please reload this page.
Motivation and Context
Description
Contribution Checklist