149 Commits

Author SHA1 Message Date
Jack Gerrits
2b878763f8
Move grpc runtimes to ext, flatten application (#4553)
* Move grpc runtimes to ext, flatten application

* rename to grpc

* fmt
2024-12-04 16:23:20 -08:00
Victor Dibia
777f2abbd7
Load and Save state in AgentChat (#4436)
1. convert dataclass types to pydantic basemodel 
2. add save_state and load_state for ChatAgent
3. state types for AgentChat
---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-04 16:14:41 -08:00
afourney
e1d58333ee
Address issue_4543 and add tests. (#4546)
* Address issue_4543 and add tests.

* Fixed pyright errors.
2024-12-04 11:28:44 -08:00
Jack Gerrits
3022369eeb
Flatten core base and components (#4513)
* Flatten core base and components

* remove extra files

* dont export from deprecated locations

* format

* fmt
2024-12-03 17:00:44 -08:00
Eric Zhu
32aa452af8
Remove autogen_agentchat.tasks, create autogen_agentchat.ui and autogen_agentchat.conditions (#4512) 2024-12-03 15:24:25 -08:00
Eric Zhu
b62f8f63dc
Remove logging from autogen agentchat (#4510) 2024-12-03 14:45:10 -08:00
Eric Zhu
50e84b945e
Move handoff to base in agentchat (#4509) 2024-12-03 14:34:55 -08:00
Jack Gerrits
954ba84fe7
Change base agent to use on message impl (#4485)
* Change base agent to use on message impl

* update doc

* Update

* Merge branch 'main' into on_msg_impl
2024-12-03 10:04:12 -08:00
afourney
934ae03851
Allow users to update the final answer prompt of MagenticOne orc. (#4476)
* Allow users to update the final answer prompt of MagenticOne orchestrator.
2024-12-03 09:44:54 -08:00
Ryan Sweet
1c09de8d47
HelloAgents App Host with xlang sample (#4395)
* adds a python xlang sample and aspire code to host it
* fixes message delivery on dotnet runtime
2024-12-03 08:09:02 -08:00
afourney
c062c510b7
Flush console output after every message. (#4475) 2024-12-02 16:51:50 -08:00
Hussein Mozannar
ac3424d619
MagenticOne Orchestrator Fixes (#4430) 2024-11-30 14:11:20 -08:00
Eric Zhu
f70869f236
update dev8 (#4417) 2024-11-27 14:39:31 -08:00
Eric Zhu
7e589a1bbb
User proxy documentation and fixes (#4401)
* Fix handoff bug in user proxy agent

* Update documentation

---------
2024-11-27 10:48:39 -08:00
Eric Zhu
52790a8de7
o1 support for agent chat, and validate model capabilities (#4397) 2024-11-27 10:45:51 -08:00
Eric Zhu
3058bafcf2
Propagate team cancellation token in agentchat (#4400)
* Propagate team cancellation token in agentchat

* Docs

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-27 10:40:34 -08:00
Hussein Mozannar
6184e15c5e
Fix Reset of Magentic-One Orchestrator (#4394)
* fix reset magentic one

* fix infinite reset
2024-11-26 22:59:08 -08:00
Jack Gerrits
0d3bc948a1
Replatform closure agent on base agent (#4389)
* Replatform closure agent on base agent

* Fix mypy

* update agentcaht

---------
2024-11-26 16:33:37 -08:00
Jack Gerrits
45f16f534b
Fix deprecated usages (#4374) 2024-11-26 16:31:23 -08:00
Eric Zhu
bcd6e71e7f
Fix assistant agent doc (#4365) 2024-11-25 18:18:13 -08:00
Jack Gerrits
1a02e2ba4b
Update version to dev7 (#4359)
* Update version to dev7

* update other references
2024-11-25 14:09:41 -08:00
Jack Gerrits
6c8b656588
Fix examples in docstrings (#4356)
* Fix examples in docstrings

* formatting

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

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

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

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

* Update python/packages/autogen-ext/src/autogen_ext/agents/_openai_assistant_agent.py

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

* Update python/packages/autogen-ext/src/autogen_ext/agents/_openai_assistant_agent.py

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

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

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

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

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

* Formattinggp

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 16:07:45 -05:00
Gerardo Moreno
1b2d42d420
Termination Conditions Tutorial (#4334) (#4339)
* Termination Conditions Tutorial (#4334)

* Fix format

* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb

* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb

* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb

* update docs

* update doc

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 10:09:06 -08:00
Victor Dibia
0ff1687485
Add UserProxyAgent in AgentChat API (#4255)
* initial addition of a user proxy agent in agentchat, related to #3614

* fix typing/mypy errors

* format fixes

* format and pyright checks

* update, add support for returning handoff message, add tests

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-11-23 19:24:24 -08:00
Thai Nguyen
0b5eaf1240
Agent name termination (#4123) 2024-11-23 07:07:21 -08:00
Gerardo Moreno
232068a245
Add system msg when calling inside the assistant tool loop (#4308) (#4309) 2024-11-22 06:05:52 -08:00
Eric Zhu
3c1ec7108a
Misc doc fixes (#4300)
* Misc doc fixes

* Update _console.py

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-21 19:24:12 -05:00
Eric Zhu
6e4609a76e
External termination condition (#4294) 2024-11-21 03:25:53 -05:00
Gerardo Moreno
8593b7df9f
Console to return last processed message (#4279)
* Console to return last processed (#4277)

* Preserve input generator type

* Add tests

* format

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-20 12:34:13 -05:00
Eric Zhu
2b7658a9da
Move openai assistant agent to autogen-ext; add on_messages_stream (#4268) 2024-11-19 01:42:11 -05:00
Leonardo Pinheiro
df32d5e1d1
OpenAI Assistants Agent (#4131)
* initial assistant client draft

* expose assistants client

* initial openai assistant agentchat draft

* update file search

* add delete methods and fix typing

* add tool execution

* fix tool call and add docstring

* abstract tools and support thread management

* add tests

* removed unused typevars

* add unsaved test changes

* test typing fixes

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2024-11-19 09:56:15 +10:00
Eric Zhu
f1daff1582
AgentChat task message type and group chat state validation for Swarm (#4230)
* task can be ChatMessage; add group chat state validation step, and address swarm state valiation; change handling of start and reset to RPC to capture any error.

* Update tutorial note
2024-11-18 11:46:20 -05:00
Eric Zhu
5da24e51e0
Console pretty print for on_messages_stream (#4239)
* Console pretty print for on_messages_stream

* Update doc

* Update docs
2024-11-16 14:03:58 -08:00
Eric Zhu
4aec53c36f
Improve agentchat tutorial (#4233) 2024-11-16 09:01:38 -08:00
Eric Zhu
d213c1c061
Remove quotes from TERMINATE in assistant agent's default system message (#4231) 2024-11-15 23:25:48 -08:00
Jack Gerrits
d55e68fc29
Support iterm inline image protocol in console output (#4200)
* Support iterm inline image protocol in console output

* fix lint

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-15 16:26:18 -05:00
Gerardo Moreno
8d89500255
Timeout Termination (#4038) (#4214)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-15 10:12:45 -08:00
Eric Zhu
78019dd2dc
Fix-swarm-handoff (#4198)
* fix select speaker for swarm

* Fix max-turn = 1 for swarm
2024-11-15 10:02:59 -08:00
afourney
4073dd4efb
Have Console print multimodal messages nicely. (#4179) 2024-11-13 21:06:55 -08:00
afourney
a27a130b45
Initial work on ledger orchestrator. (#4164)
* Initial work on magentic-one orchestrator port.
2024-11-13 18:51:41 -08:00
Eric Zhu
233e482c7b
Max turn parameter for group chats (#4143)
* Max turn parameter for group chats

* Add note no usage
2024-11-13 15:10:04 -08:00
Eric Zhu
e27c740961
dev6 (#4129) 2024-11-11 00:48:05 -05:00
Eric Zhu
4786f189bc
Handoff termination and show how to use it for asking user input (#4128)
* Handoff termination and show how to use it for asking user input

* lint
2024-11-11 00:38:52 -05:00
Eric Zhu
5547a6716e
auto reset termination when a run stops (#4126) 2024-11-10 20:19:09 -08:00
Eric Zhu
1cc0f4f7c5
dev5 (#4124) 2024-11-10 21:42:22 -05:00
Eric Zhu
8f7c717149
reset --> on_reset :D (#4121) 2024-11-10 18:28:20 -08:00
Eric Zhu
f40b0c2730
Add Console function to stream result to pretty print console output (#4115) 2024-11-08 19:02:19 -08:00
Eric Zhu
3f28aa8874
SocietyOfMind agent for nested teams (#4110)
* Initial implementation of SOM agent

* add tests

* edit prompt

* Update prompt

* lint
2024-11-08 16:41:34 -08:00
Eric Zhu
5fa38b0166
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
2024-11-07 21:38:41 -08:00
Eric Zhu
2e3155be2a
AgentChat pause, resume, and reset (#4088)
* AgentChat pause and resume a task
Resolves #3859

* Add

* Update usage

* Update usage

* WIP to address stateful group chat

* Refactor group chat to add reset and flags for running

* documentation
2024-11-07 16:00:35 -08:00