376 Commits

Author SHA1 Message Date
Jack Gerrits
190fcd15ed
fix!: Fix SingleThreadedAgentRuntime busy loop (#4855)
* Fix high cpu usage

* Use queue for shutdown

* mypy fixes

* formatting

* missing import
2024-12-30 15:04:20 -05:00
Jack Gerrits
49b52db6ea
Make register_factory a user facing API (#4854)
* Make register_factory a user facing API

* fix docstring

* Update python/packages/autogen-core/src/autogen_core/_agent_runtime.py

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

* formatting

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-30 15:00:42 -05:00
Jack Gerrits
0b34211c1e
refactor!: Remove deprecations (#4853)
* Remove deprecations

* imports
2024-12-30 14:55:21 -05:00
Eric Zhu
5ee2190e00
Replace Tuple[type[ChatMessage], ...] with Sequence[type[ChatMessage]] (#4857) 2024-12-30 11:30:31 -08:00
Eric Zhu
a20ec102d3
AgentChat tutorial update to include model context usage and langchain tool (#4843)
* Doc update to include model context usage

* add langchain tools

* update langchain tool wrapper api doc

* updat

* update

* format

* add langchain experimental dev dep

* type

* Fix type

* Fix some types in langchain adapter

* type ignores
2024-12-30 09:09:33 -08:00
Eric Zhu
d933b9ab5f
dev12 (#4839)
* dev12
2024-12-27 11:49:12 -08:00
Jack Gerrits
ad7433e817
Remove pydantic v1 compat (#4838)
Remove pydantic compat
2024-12-27 11:38:42 -08:00
Jack Gerrits
a5681d73c6
Allow closure agent to ignore unknown messages, add docs (#4836)
Allow closure agent to ignore unknown messages
2024-12-27 13:37:55 -05:00
Eric Zhu
2819515220
Improve agentchat tutorial Teams section (#4834)
* update teams doc

* Update

* fmt
2024-12-27 10:25:36 -08:00
Eric Zhu
b9bd8b0c64
human-in-the-loop section for agentchat tutorial (#4832)
* human-in-the-loop section for agentchat tutorial
2024-12-27 10:20:52 -08:00
Jack Gerrits
fadff4aece
Fix definition of workspace package, remove uv pin (#4830)
* Fix definition of workspace package, remove uv pin

* add  --all-packages

* pin docs uv versions for older project structure

* try old version to verify CI

* Use workflow target

* change syntax

* change check

* try with var in matrix

* add all packages to workspace

* remove project table
2024-12-27 13:11:42 -05:00
Jack Gerrits
461605869c
Update links in extension page to fix 404 (#4827)
Update links in extension page
2024-12-27 12:52:36 -05:00
Jack Gerrits
5bd91fb15e
Accept agent type in more places (#4829)
* Accept agenttype in more places

* remove type hint
2024-12-27 12:21:39 -05:00
Richárd Gyikó
e710f9d04f
Update discover.md with autogen-ext-mcp community package (#4826)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 09:58:28 -05:00
Leonardo Pinheiro
c078b252fb
refactor!: Migrate python code executor tool to autogen-ext (#4824)
migrate python code exec to autogen-ext

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 08:57:55 -05:00
Sachin Joglekar
d1dff316bc
Update pydantic version & fix mypy errors (#4811)
* Update pydantic version & fix mypy errors

* uv lock changes

* Update lock

* update lockfile

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 08:53:52 -05:00
Leonardo Pinheiro
9a2dbb4fba
Add * before keyword args for ChatCompletionClient (#4822)
add * before keyword args

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 08:41:16 -05:00
Eric Zhu
edad1b6065
Emphasis on_messages is for new messages only; remove unused file. (#4819)
* Emphasis on_messages is for new messages only

* update

* update uv

* update uv action

* try pin uv version

* pin all uv versions to 0.5.11

* revert uv lock file and remove unwanted file.
2024-12-27 08:34:21 -05:00
Jack Gerrits
0040016bec
Remove usage of internal pydantic functionality for forward ref eval (#4816)
* Remove usage of internal pydantic func

* Update python/packages/autogen-core/tests/test_tools.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update python/packages/autogen-core/tests/test_tools.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Remove unused import NoneType from test_tools.py

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2024-12-26 12:15:54 -08:00
Eric Zhu
f774eaa105
Add minimum dep versions (#4803) 2024-12-26 12:40:32 -05:00
Eric Zhu
4f673192cb
"model" to "chat completion" (#4804)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-26 12:12:02 -05:00
gagb
d2537abbab
Add MagenticOne API and CLI (#4782)
* Add MagenticOne API

* Add CodeExecutorAgent to MagenticOne for enhanced task execution

* Refactor MagenticOne class to inherit from MagenticOneGroupChat and streamline initialization

* Enhance MagenticOne class documentation with detailed usage examples and initialization instructions

* Refactor MagenticOne module structure and update import paths

* Remove unused imports

* Add documentation for MagenticOne module and remove redundant initialization comments

* Enhance MagenticOne class with human-in-the-loop mode and update examples

* Update MagenticOne class documentation with safety precautions and architecture details

* Run poe format

* Add blog post reference to MagenticOne class documentation

* change default of websurfer use_ocr to false because of refusals

* Refactor MagenticOne class to use ChatCompletionClient instead of OpenAIChatCompletionClient

* Add client capability validation to MagenticOne initialization

* Poe format

* Refactor imports in MagenticOne class for clarity and organization

* Add stacklevel parameter to warning in client capability validation

* Update README to recommend using Magentic-One API for improved integration

* Add create_args property to OpenAIChatCompletionClient for better access to initialization arguments

* Enhance client capability validation in MagenticOne to ensure compatibility with OpenAI GPT-4o model

* Refactor client capability validation in MagenticOne for improved clarity

* Update magentic_one.py

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

* Remove create_args property from OpenAIChatCompletionClient and update validation logic in MagenticOne to directly access _create_args

* Refactor documentation in MagenticOne for improved readability and consistency

* Refactor client capability validation in MagenticOne to remove unnecessary model check for GPT-4o

* Add MagenticOne CLI (#4788)

* Add MagenticOne CLI script for task execution with OpenAI GPT-4o integration

* Fix argument parsing in MagenticOne CLI to require a single task input

* Add docstring to main function in MagenticOne CLI for improved usage clarity

* Fix example usage in docstring of MagenticOne CLI for correct argument order

* Refactor argument parsing in MagenticOne CLI for improved clarity and consistency

* Add type hints to run_task function in MagenticOne CLI

* Add type hint for main function in MagenticOne CLI

* Remove type ignore from main function call in MagenticOne CLI

---------

Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-23 16:45:21 -08:00
Eric Zhu
150a54c4f5
Refine types in agentchat (#4802)
* Refine types in agentchat

* importg

* fix mypy
2024-12-23 16:10:46 -08:00
Jack Gerrits
2c76ff9fcc
More improvements for component config (#4799)
* More improvements for component config

* clean output

* working dir

* fix fstring

* key error

* remove mv
2024-12-23 18:29:23 -05:00
peterychang
9c8877ed66
Add API documentation (#4798)
* Add API documentation

* Update python/packages/autogen-core/src/autogen_core/_cancellation_token.py

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

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-23 17:06:56 -05:00
Jack Gerrits
90d6723685
Usability improvements to component config (#4794)
* Usability improvements to component config

* Implement model upgrade
2024-12-23 14:03:58 -05:00
Eric Zhu
4bce1e914a
Update agentchat quickstart to show how to handle multi-round user inputs (#4735)
Update agentchat quickstart to show how to handle multi-round user inputs.
2024-12-20 10:34:53 -08:00
Jack Gerrits
dda208f9b4
Add component config support (#4757)
* Add wip component impl

* finishing touches

* remove test file

* fix json usage

* Format

---------

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-12-20 13:14:24 -05:00
Lanbao
a4c1314432
Correct the spelling errors in models.ipynb (#4767)
Update models.ipynb

Correct the spelling error: opne -> open

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-20 01:52:29 -08:00
Aditya Kurniawan
c989181da2
use model context for assistant agent, refactor model context (#4681)
* Decouple model_context from AssistantAgent

* add UnboundedBufferedChatCompletionContext to mimic pervious model_context behaviour on AssistantAgent

* moving unbounded buffered chat to a different file

* fix model_context assertions in test_group_chat

* Refactor model context, introduce states

* fixes

* update

---------

Co-authored-by: aditya.kurniawan <aditya.kurniawan@core42.ai>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-12-19 22:27:41 -08:00
Jack Gerrits
453fe0cafd
Replace single quotes with double quotes (#4760)
* Replace single quotes with double quotes

* Fix version

* formatting
2024-12-19 14:21:51 -05:00
Jack Gerrits
c74c2d6767
Follow up changes from top bar change (#4758) 2024-12-19 12:01:03 -05:00
Jack Gerrits
97e5cab523
Restructure docs, move packages to top level header (#4722)
* Restructure top level pages

* move studio
2024-12-19 10:07:07 -05:00
Victor Dibia
4e3a70303d
Add Deploy view in AGS (#4756)
* update version, fix component factory bug

* add basic structure for deploy

* minor fixes, deploy v1

* minor text updated

* format fixes

* formatting fixes .. webby test samples

* update cli command, update views,

* packakge.json and other fixes

* format fixes
2024-12-18 18:57:11 -08:00
Eric Zhu
e902e94b14
Define AgentEvent, rename tool call messages to events. (#4750)
* Define AgentEvent, rename tool call messages to events.

* update doc

* Use AgentEvent | ChatMessage to replace AgentMessage

* Update docs

* update deprecation notice

* remove unused

* fix doc

* format
2024-12-18 14:09:19 -08:00
hsm207
7a7eb7449a
typo: travel planning (#4753) 2024-12-18 09:44:55 -08:00
Eric Zhu
44b27ad81a
Make it clear the on_messages method is stateful. (#4751) 2024-12-17 23:50:25 -08:00
Ryan Sweet
c1646f21c0
Rysweet 4676 remove iagentruntime - collapse into iagentworker (#4740)
* moves AgentId into Agent
* Renames AgentRuntime to AgentMessenger (more accurate name)
* Remove IAgentRuntime Interface
* changes constructor of Agent to take IAgentWorker instead of IAgentRuntime
2024-12-17 13:04:37 -08:00
kiyoung
2cd91f66d8
make "Alias", "ImportFromModule" classes hashable (#4734)
make hashable to Alias, ImportFromModule

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-17 11:11:36 -08:00
Victor Dibia
03f57e9357
Update AgentChat State Docs (Saving to Disc) (#4730)
* add section on persisting state to a file on disc.

* formating fixes

* update notebook
2024-12-16 21:55:47 -08:00
Victor Dibia
6a4a11042c
Add AOAI Support in AGS (#4718)
* add oai support, improve component config typing, minor updates to docs, update ags tests

* faq updates

* update faq, add model_capabilities

* update faq
2024-12-16 13:17:42 -08:00
peterychang
e2df4e24db
Move existing quickstart guide to design patterns. Simplify quickstart (#4724)
* Move existing quickstart guide to design patterns. Simplify quickstart guide.

* minor fixes

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-16 12:42:52 -08:00
Eric Zhu
43eed01bbc
Update custom agent doc with arithmetic agent example (#4720)
* Update custom agent doc with arithmetic agent example

* fix mypy

* fix model capabilities usage
2024-12-16 09:12:26 -08:00
Victor Dibia
e673c437e5
Add Documentation for AGS (#4711)
* enable download of team specs

* add docs v1 for ags to documentation website

* update docs readme/image

* Update python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/usage.md

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

* Update python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/index.md

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

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-14 22:59:26 -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
gagb
fa563cb434
controlling => resetting (#4691) 2024-12-12 15:55:57 -08:00
gagb
feb0da39e1
Fix lang (#4690) 2024-12-12 15:45:44 -08:00
Kapil Sachdeva
dec4c45cec
fix - correct the deprecation messages from autogen_core.components.models module (#4647)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-11 17:21:59 -08:00
peterychang
a65855d00d
Fix one failure mode in the user guide (#4658)
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-11 16:56:33 -08:00
gagb
69526038a9
Add discord links (#4661)
* Add discord links

* Update

* Update

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-12-11 16:32:30 -08:00