Ryan Sweet
0bfc0652ae
Rysweet 4702 add microsoftautogenagenthost package ( #4703 )
2024-12-14 12:20:18 -08:00
Ryan Sweet
a19c848622
rysweet-4677-rename-agents-project-to-core-trim-dependencies ( #4696 )
...
* move optional base agents to separate package
* rename main sdk to Core
* reduce dependency graph
Co-authored-by: @rysweet
Authored-by: @kostapetan
Co-authored-by: @kopetan-ms
2024-12-13 11:55:43 -08:00
Ryan Sweet
c169df8b7b
Rysweet 4679 move grpc to runtimegrpc project ( #4680 )
...
* refactor moving grpc runtime to a separate project
2024-12-13 09:29:57 -08:00
Ryan Sweet
55e157cb99
Rysweet refactor 4670 rename abstractions to contracts ( #4674 )
...
* refactor renaming agent base
* 1st draft
* 1st draft
* format
* rename the tsts
* move IagentWorker
* 1st draft
* format
* gen-proto
* run gen-proto-samples
* format
* merge problem format
2024-12-12 19:43:26 -08:00
Ryan Sweet
7d01bc6136
adds integration test for the InMemoryRuntime ( #4659 )
...
* adds integration test for the InMemoryRuntime
* format
* expand timeout for in memory runtime tests
2024-12-11 12:59:02 -08:00
Ryan Sweet
d96997232f
rysweet-4150-xlang-ci-test ( #4596 )
...
adds aspire-based integration test that validates:
* registration
* subscriptions
* event delivery
* python -> .NET server -> python subscriber
* .NET -> .NET server -> python subscriber
* python -> .NET server -> .NET subscriber
2024-12-09 14:07:59 -08:00
Xiaoyun Zhang
bd81183751
.NET renaming Microsoft.AutoGen.* package ( #4286 )
...
* renaming package
* update folder name to match extension structure
* more renaming and adding tags
* fix header
---------
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-20 11:15:21 -08:00
Ryan Sweet
458d273fc4
Refactoring the services and implementing an in-memory runtime for .NET ( #4005 )
...
closes #3950 closes #3702
What this is doing:
I am refactoring the services on the .NET runtime and attempting to clarify the naming and organization.
I added this doc to help capture the naming and concepts.
AgentRuntime / Worker should work similar to the python version and enables running the whole agent system in one process. For remote the system uses the versions of the services in the grpc folder.
lots of other bug fixes/threading cleanup - passing cancellation token throughout
Services update clarifies the naming and roles:
Worker: Hosts the Agents and is a client to the Gateway
Gateway:
-- RPC gateway for the other services APIs
-- Provides an RPC bridge between the workers and the Event Bus
Registry: keeps track of the agents in the system and which events they can handle
AgentState: persistent state for agents
2024-11-12 11:04:59 -08:00
Diego Colombo
621b17ebbe
Simplify publish events in agent ( #4093 )
...
* simplify publishing imessage contracts
use new api
complete adoption
remove unused project
more delete
more delete
* rename methods
* formatting
* Add task type that are messages to enable multi-modal tasks. (#4091 )
* Add task type that are messages to enable multi-modal tasks.
* fix test
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-08 14:16:24 +00:00
Xiaoyun Zhang
5e0b677acc
[.NET] Create tools from M.E.A.I AIFunctionFactory ( #4041 )
...
* add MEAI tool support
* fix format
* update
---------
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-03 09:18:32 -08:00
Xiaoyun Zhang
6bea055b26
[.Net] Add a generic IHandle
interface so AgentRuntime doesn't need to deal with typed handler ( #3985 )
...
* add IHandle for object type
* rename handle -> handleObject
* remove duplicate file header setting
* update
* remove AgentId
* fix format
2024-10-30 11:53:37 -07:00
Ryan Sweet
51cd5b8d1f
interface inheritance examples ( #3989 )
...
changes to AgentBase and HostBuilderExtensions to enable leveraging handlers from composition (interfaces) vs inheritance... see HelloAgents sample for usage
closes #3928
is related to #3925
2024-10-30 09:51:01 -07:00
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
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
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
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
5c7498cc08
Dotnet package cleanup and reconciliation of dirs
2024-10-02 12:57:50 -04:00
Xiaoyun Zhang
18d52f606a
Merge dotnet conflict ( #3 )
2024-09-30 19:32:48 -04:00
Jack Gerrits
3a62798af8
Merge work in progress autogen 0.4 to main
2024-09-30 10:15:34 -04: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
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
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
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
4dab28c769
[.Net] Add AutoGen.AzureAIInference ( #3332 )
...
* add AutoGen.AzureAIInference
* add tests
* update readme
* fix format
2024-08-08 23:33:14 +00:00
Xiaoyun Zhang
b021e44540
[.Net] Agent as service: Run an IAgent
as openai chat completion endpoint ( #2633 )
...
* update
* add test
* clean up
* update
* Delete dotnet/src/AutoGen.Server/AutoGen.Service.csproj.user
* implement streaming
* add sample project
* rename AutoGen.Service to AutoGen.WebAPI
* rename AutoGen.Service to AutoGen.WebAPI
2024-07-11 16:34:15 +00:00
Xiaoyun Zhang
57ec13c2eb
[.Net] add sample on how to make function call using lite llm and ollama Plus move ollama openai sample to AutoGen.OpenAI.Sample project ( #3015 )
...
* add sample
* Update Connect_To_Ollama.cs
* Update Connect_To_Ollama.cs
2024-06-26 15:33:28 +00:00
Jeffrey Su
08726421fc
#2708 add Add a judgment to the graph constructor ( #2709 )
...
* #2708 add Add a judgment to the graph constructor
* #2708 add Add a judgment to the graph constructor & added unit test
* #2708 #2079 move GraphTests to AutoGen.Tests; delete AutoGen.Core.Tests project
2024-06-25 23:09:08 +00:00
Xiaoyun Zhang
393f6fc76c
[.Net] fix #2859 ( #2974 )
...
* add getting start sample project
* update
* update
* revert change
2024-06-20 17:47:31 +00:00
Xiaoyun Zhang
a16b307dc0
[.Net] Add Goolge gemini ( #2868 )
...
* update
* add vertex gemini test
* remove DTO
* add test for vertexGeminiAgent
* update test name
* update IGeminiClient interface
* add test for streaming
* add message connector
* add gemini message extension
* add tests
* update
* add gemnini sample
* update examples
* add test for iamge
* fix test
* add more tests
* add streaming message test
* add comment
* remove unused json
* implement google gemini client
* update
* fix comment
2024-06-10 17:31:45 +00:00
Xiaoyun Zhang
84c7c2430c
[.Net] Add AOT compatible check for AutoGen.Core ( #2858 )
...
* add AutoGen.AotCompatibility test
* add aot test
* fix build error
* update ps1 path
2024-06-04 15:01:11 +00:00
David Luong
5a5c0f2a11
Remove duplicate project declared in AutoGen.sln ( #2789 )
...
* remove duplicate project in AutoGen.sln
* Add EndProject
2024-05-24 20:17:41 +00:00
David Luong
4fec246342
Introduce AnthropicClient and AnthropicClientAgent ( #2769 )
...
* Reference project
Revert "Set up the Agent. Basic Example set up, boilerplate for connector, ran into signing issue."
This reverts commit 0afe04f2
End to end working anthropic agent + unit tests
Set up the Agent. Basic Example set up, boilerplate for connector, ran into signing issue.
* Add pragma warning
* - Remove Message type
- tabbing fix white space in csproj
- Remove redundant inheritance
- Edit Anthropic.Tests' rootnamespace
- Create AutoGen.Anthropic.Samples
* short-cut agent extension method
* Pass system message in the constructor and throw if there's system message in Imessages
---------
Co-authored-by: luongdavid <luongdavid@microsoft.com>
2024-05-24 16:37:16 +00:00
Xiaoyun Zhang
702c010d77
[.Net] add ollama-sample and adds more tests ( #2776 )
...
* add ollama-sample and adds more tests
* Update AutoGen.Ollama.Sample.csproj
2024-05-24 04:14:29 +00:00
Xiaoyun Zhang
8d55334e4d
[.Net] add AutoGen.SemanticKernel.Sample project ( #2774 )
...
* add AutoGen.SemanticKernel.Sample
* revert change
2024-05-24 01:53:22 +00:00
Xiaoyun Zhang
edb2f92b0d
[.Net] rename Autogen.Ollama to AutoGen.Ollama and add more test cases to AutoGen.Ollama ( #2772 )
...
* update test
* add llava test
* add more tests
* rm Autogen.Ollama
* add AutoGen.ollama
* update
* rename to temp
* remove ollama
* rename
* update
* rename
* rename
* update
2024-05-23 19:15:25 +00:00
Xiaoyun Zhang
cd44932347
[.Net] Set up Name field in OpenAIMessageConnector ( #2662 )
...
* create OpenAI tests project
* update
* update
* add tests
* add mroe tests:
* update comment
* Update dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
Co-authored-by: David Luong <davidluong98@gmail.com>
* Update AutoGen.OpenAI.Tests.csproj
* fix build
---------
Co-authored-by: David Luong <davidluong98@gmail.com>
2024-05-16 02:27:47 +00:00
Israel de la Cruz
1c3ae92d39
[.Net] feature: Ollama integration ( #2693 )
...
* [.Net] feature: Ollama integration with
* [.Net] ollama agent improvements and reorganization
* added ollama fact logic
* [.Net] added ollama embeddings service
* [.Net] Ollama embeddings integration
* cleaned the agent and connector code
* [.Net] cleaned ollama agent tests
* [.Net] standardize api key fact ollama host variable
* [.Net] fixed solution issue
---------
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-05-15 16:54:08 +00:00
Xiaoyun Zhang
ba82c1d566
[.Net] Fix #2660 and add tests for AutoGen.DotnetInteractive ( #2676 )
...
* update
* fix 2660
* remove unnecessary feed
2024-05-14 03:40:26 +00:00
Xiaoyun Zhang
374270f9c7
[.Net] Add KernelPluginMiddleware in AutoGen.SemanticKernel ( #2595 )
...
* add kernel function middleware
* update
* fix format
* fix build error
2024-05-09 22:36:20 +00:00
Xiaoyun Zhang
600bd3f2fe
Bring Dotnet AutoGen ( #924 )
...
* update readme
* update
* update
* update
* update
* update
* update
* add sample project
* revert notebook change back
* update
* update interactive version
* add nuget package
* refactor Message
* update example
* add azure nightly build pipeline
* Set up CI with Azure Pipelines
[skip ci]
* Update nightly-build.yml for Azure Pipelines
* add dotnet interactive package
* add dotnet interactive package
* update pipeline
* add nuget feed back
* remove dotnet-tool feed
* remove dotnet-tool feed comment
* update pipeline
* update build name
* Update nightly-build.yml
* Delete .github/workflows/dotnet-ci.yml
* update
* add working_dir to use step
* add initateChat api
* update oai package
* Update dotnet-build.yml
* Update dotnet-run-openai-test-and-notebooks.yml
* update build workflow
* update build workflow
* update nuget feed
* update nuget feed
* update aoai and sk version
* Update InteractiveService.cs
* add support for GPT 4V
* add DalleAndGPT4V example
* update example
* add user proxy agent
* add readme
* bump version
* update example
* add dotnet interactive hook
* update
* udpate tests
* add website
* update index.md
* add docs
* update doc
* move sk dependency out of core package
* udpate doc
* Update Use-function-call.md
* add type safe function call document
* update doc
* update doc
* add dock
* Update Use-function-call.md
* add GenerateReplyOptions
* remove IChatLLM
* update version
* update doc
* update website
* add sample
* fix link
* add middleware agent
* clean up doc
* bump version
* update doc
* update
* add Other Language
* remove warnings
* add sign.props
* add sign step
* fix pipelien
* auth
* real sign
* disable PR trigger
* update
* disable PR trigger
* use microbuild machine
* update build pipeline to add publish to internal feed
* add internal feed
* fix build pipeline
* add dotnet prefix
* update ci
* add build number
* update run number
* update source
* update token
* update
* remove adding source
* add publish to github package
* try again
* try again
* ask for write pacakge
* disable package when branch is not main
* update
* implement streaming agent
* add test for streaming function call
* update
* fix #1588
* enable PR check for dotnet branch
* add website readme
* only publish to dotnet feed when pushing to dotnet branch
* remove openai-test-and-notebooks workflow
* update readme
* update readme
* update workflow
* update getting-start
* upgrade test and sample proejct to use .net 8
* fix global.json format && make loadFromConfig API internal only before implementing
* update
* add support for LM studio
* add doc
* Update README.md
* add push and workflow_dispatch trigger
* disable PR for main
* add dotnet env
* Update Installation.md
* add nuget
* refer to newtonsoft 13
* update branch to dotnet in docfx
* Update Installation.md
* pull out HumanInputMiddleware and FunctionCallMiddleware
* fix tests
* add link to sample folder
* refactor message
* refactor over IMessage
* add more tests
* add more test
* fix build error
* rename header
* add semantic kernel project
* update sk example
* update dotnet version
* add LMStudio function call example
* rename LLaMAFunctin
* remove dotnet run openai test and notebook workflow
* add FunctionContract and test
* update doc
* add documents
* add workflow
* update
* update sample
* fix warning in test
* reult length can be less then maximumOutputToKeep (#1804 )
* merge with main
* add option to retrieve inner agent and middlewares from MiddlewareAgent
* update doc
* adjust namespace
* update readme
* fix test
* use IMessage
* more updates
* update
* fix test
* add comments
* use FunctionContract to replace FunctionDefinition
* move AutoGen contrac to AutoGen.Core
* update installation
* refactor streamingAgent by adding StreamingMessage type
* update sample
* update samples
* update
* update
* add test
* fix test
* bump version
* add openaichat test
* update
* Update Example03_Agent_FunctionCall.cs
* [.Net] improve docs (#1862 )
* add doc
* add doc
* add doc
* add doc
* add doc
* add doc
* update
* fix test error
* fix some error
* fix test
* fix test
* add more tests
* edits
---------
Co-authored-by: ekzhu <ekzhu@users.noreply.github.com>
* [.Net] Add fill form example (#1911 )
* add form filler example
* update
* fix ci error
* [.Net] Add using AutoGen.Core in source generator (#1983 )
* fix using namespace bug in source generator
* remove using in sourcegenerator test
* disable PR test
* Add .idea to .gitignore (#1988 )
* [.Net] publish to nuget.org feed (#1987 )
* publish to nuget
* update ci
* update dotnet-release
* update release pipeline
* add source
* remove empty symbol package
* update pipeline
* remove tag
* update installation guide
* [.Net] Rename some classes && APIs based on doc review (#1980 )
* rename sequential group chat to round robin group chat
* rename to sendInstruction
* rename workflow to graph
* rename some api
* bump version
* move Graph to GroupChat folder
* rename fill application example
* [.Net] Improve package description (#2161 )
* add discord link and update package description
* Update getting-start.md
* [.Net] Fix document comment from the most recent AutoGen.Net engineer sync (#2231 )
* update
* rename RegisterPrintMessageHook to RegisterPrintMessage
* update website
* update update.md
* fix link error
* [.Net] Enable JsonMode and deterministic output in AutoGen.OpenAI OpenAIChatAgent (#2347 )
* update openai version && add sample for json output
* add example in web
* update update.md
* update image url
* [.Net] Add AutoGen.Mistral package (#2330 )
* add mstral client
* enable streaming support
* add mistralClientAgent
* add test for function call
* add extension
* add support for toolcall and toolcall result message
* add support for aggregate message
* implement streaming function call
* track (#2471 )
* [.Net] add mistral example (#2482 )
* update existing examples to use messageCOnnector
* add overview
* add function call document
* add example 14
* add mistral token count usage example
* update version
* Update dotnet-release.yml (#2488 )
* update
* revert gitattributes
---------
Co-authored-by: mhensen <mh@webvize.nl>
Co-authored-by: ekzhu <ekzhu@users.noreply.github.com>
Co-authored-by: Krzysztof Kasprowicz <60486987+Krzysztof318@users.noreply.github.com>
2024-04-26 16:21:46 +00:00