3171 Commits

Author SHA1 Message Date
Nour Bouzid
02e968a531
FunctionTool partial support (#5183)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

FunctionTool supports passing in a partial

## Related issue number

Closes #5151 

## Checks

- [x] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [x] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [x] I've made sure all auto checks have passed.
2025-01-29 18:02:18 +00:00
Mohammad Mazraeh
2f1684b698
update dependencies to work with protobuf 5 (#5195)
Closes #5074

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
2025-01-28 22:11:54 -08:00
Eric Zhu
225eb9d0b2
feat: introduce ModelClientStreamingChunkEvent for streaming model output and update handling in agents and console (#5208)
Resolves #3983

* introduce `model_client_stream` parameter in `AssistantAgent` to
enable token-level streaming output.
* introduce `ModelClientStreamingChunkEvent` as a type of `AgentEvent`
to pass the streaming chunks to the application via `run_stream` and
`on_messages_stream`. Although this will not affect the inner messages
list in the final `Response` or `TaskResult`.
* handle this new message type in `Console`.
2025-01-29 02:49:02 +00:00
Eric Zhu
8a0daf8285
Update website for v0.4.4 (#5246) 2025-01-28 16:15:24 -08:00
Jack Gerrits
bd5a24ba72
Start from just protos in core.grpc (#5243)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->

## Related issue number

<!-- For example: "Closes #1234" -->

## Checks

- [ ] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
magentic-one-cli-v0.2.3 v0.4.4
2025-01-28 17:44:50 -05:00
Griffin Bassman
850377c74a
fix: Various fixes and cleanups to dotnet autogen core (#5242)
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2025-01-28 17:13:36 -05:00
Jacob Alber
2e83d7244a
refactor: Reduce reflection calls when using HandlerInvoker (#5241)
Changes `HandlerInvoker` to avoid reflecting for every message when handling arity=2 `IHandler<,>` instances, by moving it out of the final generated delegate.
2025-01-28 21:17:11 +00:00
Jacob Alber
e6926352aa
feat: Expose self-delivery for InProcessRuntime in AgentsApp (#5240)
* Enable configuring SelfDelivery (defaults to false) when using
AgentsAppBuilder
* Also fixes the predicate for self-delivery

---------

Co-authored-by: Griffin Bassman <griffinbassman@gmail.com>
2025-01-28 21:06:10 +00:00
Jacob Alber
43e9c266c1
feat: Enable queueing and step mode in InProcessRuntime (#5239)
Moves the semantics of message delivery in .NET to be closer to Python
(up to vagaries of differences in Threading)

* Creates a message delivery queue in InProcessRuntime
* Creates Start/Stop/WaitForIdle APIs on InProcessRuntime
* Creates API to step individual messages
* Updates InProcessRuntime to play well with IHost as an IHostedService
2025-01-28 20:28:05 +00:00
Eric Zhu
10996bc172
docs: Enhance documentation for SingleThreadedAgentRuntime with usage examples and clarifications; undeprecate process_next (#5230)
Resolves #5046
2025-01-28 11:03:51 -08:00
Eric Zhu
b29d0bda2f
update versions to 0.4.4 and m1 cli to 0.2.3 (#5229) 2025-01-28 17:59:14 +00:00
Jack Gerrits
7445e4b276
Remove channel based control plane APIs, cleanup proto (#5236) 2025-01-28 11:15:57 -05:00
XiaoYun Zhang
91249c4b33 update debugType option 2025-01-28 09:24:16 -05:00
Jack Gerrits
caa33124bf remove unported things from the solution
formatting
2025-01-28 09:24:16 -05:00
Jacob Alber
235a3bfab3 feat: Enable Services mapping without passing in HostApplicationBuilder
* update getting-started sample
2025-01-28 09:24:16 -05:00
Jacob Alber
7a6f4ded2e fix: Crash when sending message an agent does not listen to 2025-01-28 09:24:16 -05:00
Jacob Alber
34d34142b3 fix: Remember to register the IAgentRuntime in the DI AppBuilder 2025-01-28 09:24:16 -05:00
Jacob Alber
22d8f449fb fixup: IHandler.HandleAsync 2025-01-28 09:24:16 -05:00
Jacob Alber
69f7c6bc45 fix: Update BaseAgent to use HandlerInvoker
* Fixes issues around SendMessage
2025-01-28 09:24:16 -05:00
Jacob Alber
c930251ebc fix: Increase MethodGroup type precision
* Fixes stackoverflow when calling InMemoryRutnime.RegisterAgentFactoryAsync()
2025-01-28 09:24:16 -05:00
Jacob Alber
d9e0013975 feat: Implement mechanism to abstract over IHandle implementations 2025-01-28 09:24:16 -05:00
Jack Gerrits
a4d8d571b0 getting started sample 2025-01-28 09:24:16 -05:00
Jack Gerrits
d48b54fcaf rename Handle to HandleAsync 2025-01-28 09:24:16 -05:00
Jack Gerrits
e9d4dcae64 remove agents project 2025-01-28 09:24:16 -05:00
Jacob Alber
20a47ebd43 feat: Flesh out App Builder APIs 2025-01-28 09:24:16 -05:00
Jacob Alber
b08ce5d1a7 chore: Create a CoreOnly solution configuration 2025-01-28 09:24:16 -05:00
Jack Gerrits
0b850fdbdb add unsub test 2025-01-28 09:24:16 -05:00
Jack Gerrits
fd6a369422 fix handler selection 2025-01-28 09:24:16 -05:00
Jack Gerrits
2fd6eee080 fix namespace 2025-01-28 09:24:16 -05:00
Jack Gerrits
e15b449c16 fix test agent 2025-01-28 09:24:16 -05:00
Jack Gerrits
b16b94feb8 WIP, moved to base namespace 2025-01-28 09:24:16 -05:00
Griffin Bassman
a75892635b add xml comments for TopicId.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
42703dd79c add xml comments for MessageContext.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
e2082875e2 add xml comments for KVStringParseHelper.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
9a5242b973 add xml comments for AgentExceptions.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
08ff47383e add xml comments for IUnboundSubscriptionDefinition.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
b69af4aedf add xml comments for ISubscriptionDefinition.cs 2025-01-28 09:24:16 -05:00
Jack Gerrits
2ba7732220 add subscriptions to host builder 2025-01-28 09:24:16 -05:00
Jack Gerrits
fe8faa9133 empty line 2025-01-28 09:24:16 -05:00
Jack Gerrits
b19374e81d first tests 2025-01-28 09:24:16 -05:00
Jacob Alber
8a342ad9e6 feat: AppBuilder/Host pattern for AgentApp 2025-01-28 09:24:16 -05:00
Griffin Bassman
a4e585e69e add xml comments for ISaveState.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
f968b7b8b1 add xml comments for IAgentRuntime.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
271accbc0e add dotnet exceptions and IAgent xml docs 2025-01-28 09:24:16 -05:00
Jacob Alber
60b06583eb fix: Get InProcessRuntime building
* Sanitize APIs more
2025-01-28 09:24:16 -05:00
Jack Gerrits
9669f8bcd9 fix header 2025-01-28 09:24:16 -05:00
Jack Gerrits
4720efb75e move file 2025-01-28 09:24:16 -05:00
Jack Gerrits
52217ed69b impl base agent 2025-01-28 09:24:16 -05:00
Jacob Alber
468bb42cf8 feat: Initial implementation of InProcessRuntime 2025-01-28 09:24:16 -05:00
Jack Gerrits
35dd8f0d9e default close 2025-01-28 09:24:16 -05:00