Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 2.74 KB

File metadata and controls

28 lines (22 loc) · 2.74 KB

AI-Agentic-Design-Patterns-with-AutoGen.Net

AutoGen.Net implementation of AI-Agentic-Design-Patterns-with-AutoGen

Note

Some examples are not exactly match what python AutoGen does. This is because some libraries are not available in .NET. For example, we use Tic Tac Toe game as a tool to demonstrate the concept of tool use where the python one use Chess game. This is because the chess library is not available in .NET. Another case is in Lesson 5, where python ones use financial analysis to demostrate code interpreter usage. In .Net AutoGen, however, I replace the financial analysis with math problem solving because of lacking library support in .Net eco-system.

Console Apps

Notebooks

Difference between Console Apps and Notebooks examples

  • Notebook also contains the output result while Console app doesn't.
  • The way to define a tool call is different between Console app and notebook examples. Console app uses AutoGen.SourceGenerator to create function definition directly from the structural comment while Notebook examples create function definition using semantic-kernel plugin style. This is because source generator is not available in Notebook use case.
  • The code executor is different: In Console app examples, it needs to start a dotnet interactive instance to run C# code, which is not necessary in Notebook and we can simply execute the code using the running kernel.