179 Commits

Author SHA1 Message Date
Ryan Sweet
14846a3e84
first draft of stateful persistence grains for each agent.... (#3954)
* adds Orleans persistence for AgentState
2024-10-28 17:28:36 -07:00
Xiaoyun Zhang
6925cd436a
mitigate dotnet interactive blocking issue (#3982)
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-10-28 17:01:03 -07:00
Ikko Eltociear Ashimine
fda85e1295
[.Net] update GeminiChatAgent.cs (#3608)
multipe -> multiple

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-10-28 15:03:02 -07:00
Ryan Sweet
8f6dc4e1dd
removed unused code (#3940) 2024-10-23 21:57:37 -07:00
Ryan Sweet
bf407d99b4
rysweet-adopt .NET Microsoft.Extensions.AI abstractions (#3790)
adopts the new Microsoft.Extensions.AI abstractions
adds a base InferenceAgent
fixes a lot of pain points in the runtime wrt startup/shutdown
fixes some uncaught exceptions in the grpc stream reading
adds an example for running the backend service in its own process
adds an example of an agent that connects to OpenAI/Ollama
adds an example of wrapping an agent app in .NET Aspire
upgrades some dependencies and removes some others
Known bugs: #3922
2024-10-23 14:23:36 -07:00
Andreas Volkmann
d7369be42f
Simplify samples (#3845)
authored-by: Andreas Volkmann <anvolkma@microsoft.com>
2024-10-18 13:10:49 -07:00
Ryan Sweet
460a6817ea
refactoring the dotnet folder and namespace structure for better long term maintenance and clarity #3809 (#3810)
closes #3809 - refactor .NET code foldersand namespaces for better clarity and maintainability
2024-10-16 20:09:39 -07:00
Ryan Sweet
0214299de5
updating dependencies and build to ensure works with net9 (#3800)
* interim - doesn't work - sharing

* turn off EnforceExtended

* works with dotnet build now... ;-)

* interim progress

* more updates

* make VS happy

* update

* Update AutoGen.Ollama.csproj

* Update Microsoft.AutoGen.Agents.Abstractions.csproj

* Delete dotnet/test/AutoGen.Gemini.Tests/ApprovalTests/FunctionContractExtensionTests.ItGenerateGetWeatherToolTest.received.txt

* fix tests

---------

Co-authored-by: XiaoYun Zhang <xiaoyuz@microsoft.com>
2024-10-16 11:03:05 -07:00
Xiaoyun Zhang
0560bdd645
[.Net] Update OpenAI, semantic kernel to latest version (#3792)
* update OpenAI, semantic kernel to latest version

* fix build error

* update

* update release note
2024-10-15 07:23:33 -07:00
Max Golovanov
c48d0d7867
Update FunctionCallGenerator.cs to address race condition (#3758)
Update FunctionCallGenerator.cs to address file name race condition with simultaneous builds
2024-10-11 08:25:35 -07:00
Niklas Gustafsson
dfd239105a
improve App Host shutdown (#3727)
Improve sequence and exception handling for outpost shut down
2024-10-09 17:25:27 -07:00
Jack Gerrits
6567d90941
Update references to autogen (#3708) 2024-10-09 15:12:36 -04:00
Ryan Sweet
dea02e5dbc
add documentation for dotnet AutoGen 0.4 HellowWorld sample (#3698)
add more docs for .NET sample
2024-10-09 11:31:12 -07:00
Ryan Sweet
8e37cef69d
Rysweet dotnet folder moves (#3693)
* add service defaults to Host

* add otel to app host

* ran format

* remove HelloAgents

* moving things around to fit the folder structure/naming conventions


---------

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-10-09 09:58:21 -07:00
Ryan Sweet
a5e9b50448
remove broken sample and update readme quickstart for the good sample (#3687) 2024-10-09 05:38:45 -07:00
Ryan Sweet
e40056789a
Rysweet hello fix (#3683)
Fixing the HelloWorld sample and some refactoring of .NET code, adding App and Host classes in client and runtime.
2024-10-08 10:02:48 -07:00
Xiaoyun Zhang
e2c2f98eff
[.Net] Remove merging primitive from .editorconfig and gitignore (#3676)
* remove merging primitive from .editorconfig and gitignore

* use file scope namespace

* remove file-scope name

* fix format
2024-10-07 10:20:33 -07:00
Xiaoyun Zhang
9ba14ee15b
Fix dotnet test and reformat dotnet code (#3603)
* fix test

* install aspire workload

* format

* fix build error

* fix format

* format
2024-10-02 14:42:27 -04:00
Jack Gerrits
1174fcd92e Merge branch 'main' into staging 2024-10-02 14:38:28 -04:00
Jack Gerrits
9b79094891
Add blog post announcing the new architecture preview (#3599) 2024-10-02 18:04:33 +00:00
Xiaoyun Zhang
5c7498cc08 Dotnet package cleanup and reconciliation of dirs 2024-10-02 12:57:50 -04:00
Kosta Petan
54c6382e89
fix dotnet distributed tracing (#4)
* fix dotnet distributed tracing

* regenerate protos for python
2024-10-01 12:31:26 -04:00
Xiaoyun Zhang
18d52f606a
Merge dotnet conflict (#3) 2024-09-30 19:32:48 -04:00
Jack Gerrits
1dc91bddd2 Fix lfs 2024-09-30 15:50:28 -04:00
Jack Gerrits
3a62798af8 Merge work in progress autogen 0.4 to main 2024-09-30 10:15:34 -04:00
Jack Gerrits
43c85d68e0
Update references (#657)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-09-28 04:01:08 +00:00
Ryan Sweet
dca82b3f5d
Rysweet dotnet refactor (#624)
rename the main classes and mixup folder structure
move some tings from samples into core
cleanup cross-deps
cleanup grpc deps
2024-09-24 09:26:30 -07:00
Ryan Sweet
a72ebaef90
Rysweet 531 dotnet create hello agent continued (#606)
fixing base agent classes for io
2024-09-23 17:50:18 +00:00
Ryan Sweet
d60536c9fe
[wip] [dotnet] adding IOAgents (#598)
* new agent events top level photo for base agents
* new tip IOAgent
* fix .net build break from proto
2024-09-20 09:48:12 -07:00
Ryan Sweet
1edf5cfe9c
working on scaffolding a new dotnet intro sample for #531 (#536)
* interim stash

* interim stash

* interim checkpoint

* broken stash

* whoops

* merge sln files

* fix a bunch of refactoring errors

* moving more to core vs samples

* interim

* fixup the devteam sample

* fix ci

* fixup soln file

* trying to fix ci

* trying to fix ci

* adding back

* still trying

* recreate

* next step

* adding it back

* trying to fix

* Rename Autogen -> AutoGen (#567)

* Add transparency faqs (#566)

* remove Autogen

* add AutoGen back

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

---------

Co-authored-by: Xiaoyun Zhang <xiaoyuz@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-09-19 01:41:44 +00:00
Ryan Sweet
7d7fc8a912
.NET cleanup and refactor (#558)
Moves some shared code from samples into core.
complete/cleanup the rename to Microsoft.AutoGen
adds new projects in AutoGen.Extensions
2024-09-18 11:57:51 -07:00
Kosta Petan
3222632497
Update .net code to use CloudEvent, add Event back to proto definition (#530)
* remove OAgents lib from sln

* add Event back to agent_worker_proto

* regenerate python proto, remove RegisterAgent addition

* add cloudevent.proto to the python generation task
2024-09-17 14:11:17 +00:00
Kosta Petan
bc8529d4fc
remove OAgents lib from sln (#529)
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-09-17 06:30:14 -07:00
Jack Gerrits
da759b6aed
Dotnet - core framework rework (rebased) (#511)
* dotnet rework

* add dotnet workload update to startup

* fix build

* interim fixup

* this is the stuff that was missing

* renaming the .net classes

* more build fixup

* port dev-team sample WIP

* add proto messages and IHandle to agents

* add github variables

* remove OAgents gh-flow

* remove OAgents library

* add .vs to gitignore

---------

Co-authored-by: Kosta Petan <kostapetan@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-09-17 13:01:49 +00:00
Jack Gerrits
747054aec8 fixup solution 2024-09-16 08:59:15 -04:00
David Luong
6c9d9d8cc3
[.NET] Release v0.2.1 (#3529)
* Write release note for 0.2.1 & upgrade version prefix to 0.2.1

* update tom.yml

* add example to release note

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>

---------

Co-authored-by: luongdavid <luongdavid@microsoft.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-09-13 21:21:19 +00:00
Xiaoyun Zhang
e76c39e52d
[.Net][AutoGen.OpenAI] Allow nullable system message, temperature and max token to support o1-preview model (#3524)
* add connect to o1 example

* Update Connect_To_OpenAI_o1_preview.cs
2024-09-13 16:59:58 +00:00
Xiaoyun Zhang
b97bca552b
[.Net] release v0.2.0 (#3483)
* release 0.2.0

* update release noteb
2024-09-05 21:23:52 +00:00
Xiaoyun Zhang
a44b86f26e
stop setting name field when assistant message contains tool call (#3481) 2024-09-05 20:54:30 +00:00
Jack Gerrits
8504ea0bf2 Support datacontenttype and lay groundwork for unknown payloads (#444)
* Support datacontenttype and lay groundwork for unknown payloads

* Update dotnet based on proto changes
2024-09-05 16:36:59 -04:00
Xiaoyun Zhang
084532e274
[.Net] add output schema to generateReplyOption (#3450)
* add output schema

* fix format
2024-08-30 15:36:20 +00:00
Jack Gerrits
a51b793667 Update aspire version (#437)
* Update aspire version

* update other aspire packages
2024-08-30 09:53:20 -04:00
Xiaoyun Zhang
4193cea267
[.Net] Add AutoGen.OpenAI package that uses OpenAI v2 SDK (#3402)
* udpate

* add sample to connect to azure oai

* update comment

* ping to beta5

* add openai tests

* format code

* add structural output example

* update comment

* fix test

* resolve comments

* fix format issue

* update sk version
2024-08-27 21:37:47 +00:00
Xiaoyun Zhang
519c981efa move .proto generator to Microsoft.AI.Agents (#391) 2024-08-22 17:52:35 +02:00
Xiaoyun Zhang
eb160d9d4a
[.Net] Rename AutoGen.OpenAI to AutoGen.OpenAI.V1 (#3358)
* fix build error

* rename AutoGen.OpenAI to AutoGen.OpenAI.V1
2024-08-21 20:45:15 +00:00
Xiaoyun Zhang
7b5c5eee6d
[.Net] Release 0.1.0 (#3398)
* update version and release note

* Update MetaInfo.props

* update release note
2024-08-21 20:20:13 +00:00
Xiaoyun Zhang
09ceef4b4a enable dotnet build in PR check and Add namespace back in .proto (#384)
* enable dotnet build for PR check

* add namespace back

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-08-21 17:58:04 +00:00
Xiaoyun Zhang
00aed2e3ca
[.Net] Enable step-by-step execution for two-agent conversation SendAsync API (#3360)
* return iasync iterator in sendasync function

* fix build error
2024-08-20 05:34:04 +00:00
Xiaoyun Zhang
a638a08f81
[.Net] Dispose kernel after running dotnet interactive tests (#3378)
* dispose kernel after running test

* add timeout
2024-08-20 02:33:52 +00:00
David Luong
0a2b667f3c
[.NET] Add cache control to Anthropic Client (#3372)
* Add cache control to anthropic client and write unit test & exampel

* PR comments

* Fix import ordering for build

* Fix import orderings

---------

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-08-18 16:14:51 +00:00