963 Commits

Author SHA1 Message Date
Eric Zhu
ce20de9afb
fix: normalize finish reason in CreateResult response (#5085)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2025-01-17 14:10:06 +00:00
Eric Zhu
f289e64320
docs: enhance agents.ipynb with parallel tool calls section (#5088)
* docs: enhance agents.ipynb with parallel tool calls section

* type ignore
2025-01-17 09:13:14 +00:00
Victor Dibia
c2a43e84a2
Declarative BaseChat Agents (#5055)
* v1, make assistant agent declarative

* make head tail context declarative

* update and formatting

* update assistant, format updates

* make websurfer declarative

* update formatting

* move declarative docs to advanced section

* remove tools until implemented

* minor updates to termination conditions

* update docs
2025-01-16 22:29:40 -08:00
zysoong
1f22a7b7a1
[Documentation] Update tools.ipynb: use system messages in the tool_agent_caller_loop session (#5068)
* Update tools.ipynb: concat system messages in the tool_agent_caller_loop session

* Fix type mismatch on list concatenation

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-17 01:48:55 +00:00
Sachin Joglekar
8bd65c672f
Add ChatCompletionCache along with AbstractStore for caching completions (#4924)
* Add ChatCompletionCache along with AbstractStore for caching completions

* Addressing comments

* Improve interface for cachestore

* Improve documentation & revert protocol

* Make cache store typed, and improve docs

* remove unnecessary casts
2025-01-16 15:47:38 -08:00
afourney
2e1a9c737a
Retry multiple times when M1 selects an invalid agent. Make agent sel… (#5079)
Retry multiple times when M1 selects an invalid agent. Make agent selection deterministic when the team is a singleton (corner case).
2025-01-16 20:29:50 +00:00
Jack Gerrits
1a3ac626eb
Update version to 0.4.3 pre-emptively (#5066)
* Update version to 0.4.3

* lock

* update lock

* lock
2025-01-15 19:11:32 -05:00
Victor Dibia
8b3d25d041
Improve AGS Documentation (#5065)
* update deps to address dependabot issues.

* fill screen width, closes #5050

* documentation improvements
2025-01-15 14:00:47 -08:00
Hankyeol Kyung
acb9117513
Update gpt-4o model version and add new model details (#5056)
feat: Update gpt-4o-2024-11-20 version and model pointer

- Add version information for gpt-4o-2024-11-20
- Update model pointer

Signed-off-by: Hankyeol Kyung <kghnkl0103@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
2025-01-15 19:44:43 +00:00
Eric Zhu
c5ca53de5e
Update studio dep to use version bound (#5063) 2025-01-15 09:26:38 -08:00
Eric Zhu
dcaa6d0110
Update studio dep (#5062)
* Update studio dep
2025-01-15 08:41:29 -08:00
Jacob Alber
ae98c9d764
feat: Change async input strategy (#5060) 2025-01-15 10:12:47 -05:00
Leonardo Pinheiro
95bd514a9a
Graphrag integration (#4612)
* add initial global search draft

* add graphrag dep

* fix local search embedding

* linting

* add from config constructor

* remove draft notebook

* update config factory and add docstrings

* add graphrag sample

* add sample prompts

* update readme

* update deps

* Add API docs

* Update python/samples/agentchat_graphrag/requirements.txt

* Update python/samples/agentchat_graphrag/requirements.txt

* update docstrings with snippet and doc ref

* lint

* improve set up instructions in docstring

* lint

* update lock

* Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_global_search.py

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

* Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_local_search.py

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

* add unit tests

* update lock

* update uv lock

* add docstring newlines

* stubs and typing on graphrag tests

* fix docstrings

* fix mypy error

* + linting and type fixes

* type fix graphrag sample

* Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_global_search.py

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

* Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_local_search.py

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

* Update python/samples/agentchat_graphrag/requirements.txt

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

* update overrides

* fix docstring client imports

* additional docstring fix

* add docstring missing import

* use openai and fix db path

* use console for displaying messages

* add model config and gitignore

* update readme

* lint

* Update python/samples/agentchat_graphrag/README.md

* Update python/samples/agentchat_graphrag/README.md

* Comment remaining azure config

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-15 21:04:17 +10:00
Johan Forngren
8efe0c45b0
PoC AGS dev container (#5026)
* Add tiktoken as a dependency in pyproject.toml

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

Update uv.lock with tiktoken dependency from fbfdc9f652384b70f7461c90ada13f87e83677e0

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* Updating autogen-ext dependencies per https://github.com/microsoft/autogen/pull/5008#issuecomment-2585383877

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* PoC dev container

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* Enhance devcontainer setup with post-create script for dependency installation and improved performance. Removed partial hot reload setup, as it required bigger changes to the project. Improved documentation, and fixed markdown lint issues.

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* Update installation documentation for AutoGen Studio, clarifying installation methods and improving formatting. Adjusted notes for Windows users and corrected minor grammatical issues.

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* Fixing typos. Restructuring text to avoid consecutive markdown quote blocks separated only by a blank line to avoid MD028 - Blank line inside blockquote.

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* Include dev containers tutorial

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* Update dev container installation instructions

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

---------

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2025-01-14 21:19:47 -08:00
Eric Zhu
6954e516b6
Update autogen_core.memory: adding docs, removing some fields. (#5053)
* Update autogen_core.memory: adding docs, removing some fields.

* Remove timestamp

* Remove name from base; fix example code

* fix test

* lint

* fix doc
2025-01-15 02:33:46 +00:00
Victor Dibia
abbdbb2f87
Memory Interface in AgentChat (#4438)
* initial base memroy impl

* update, add example with chromadb

* include mimetype consideration

* add transform method

* update to address feedback, will update after 4681 is merged

* update memory impl,

* remove chroma db, typing fixes

* format, add test

* update uv lock

* update docs

* format updates

* update notebook

* add memoryqueryevent message, yield message for observability.

* minor fixes, make score optional/none

* Update python/packages/autogen-agentchat/src/autogen_agentchat/agents/_assistant_agent.py

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

* update tests to improve cov

* refactor, move memory to core.

* format fixxes

* format updates

* format updates

* fix azure notebook import, other fixes

* update notebook, support str query in Memory protocol

* update test

* update cells

* add specific extensible return types to memory query and update_context

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-14 07:06:13 +00:00
Victor Dibia
d883e3dfb0
Make termination condition config declarative (#4984)
* make termination condition declarative

* make all term conditions declarative

* make And/OrTermination top level objects in base

* add basic tests

* add tutorial notebook

* update tests and formatting

* update tests

* update declarative config with updated api.
2025-01-13 19:30:30 -08:00
Jack Gerrits
cf8446b37e
Fixup autogen-ext version (#5030)
* Update autogen-ext version

* lock
2025-01-13 21:31:41 +00:00
Jack Gerrits
91ec611338
Update version to 0.4.1 (#5029)
* Update version to 0.4.1

* lock

* dest dir

* remove website changes
2025-01-13 21:22:03 +00:00
Jack Gerrits
404522bd6b
Split apart component infra to allow for abstract class integration (#5017)
* Split apart component infra to allow for abstract class integration

* fix is_component_class check

* make is_ functions type guards

* Simplify component creation

* undo changes

* Format
2025-01-13 15:58:38 -05:00
Jack Gerrits
70f7e998d2
fix: Fix provider string for AzureTokenProvider (#4992)
Fix provider string for AzureTokenProvider
2025-01-13 20:40:33 +00:00
Johan Forngren
1a6e9766c9
Add tiktoken as a dependency in pyproject.toml (#5008)
* Add tiktoken as a dependency in pyproject.toml

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

Update uv.lock with tiktoken dependency from fbfdc9f652384b70f7461c90ada13f87e83677e0

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

* Updating autogen-ext dependencies per https://github.com/microsoft/autogen/pull/5008#issuecomment-2585383877

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>

---------

Signed-off-by: Johan Forngren <johan.forngren@decerno.se>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2025-01-13 18:53:18 +00:00
Jack Gerrits
c0082dd9cc
fix: Normalize openai client stop reason to make more robust (#5027)
* Normalize stop reason to make more robust

* format

* add unknown finish reason
2025-01-13 18:26:31 +00:00
Sudhakar
a7c97dbbbf
Typo in teams.ipynb (#5028)
Minor typo,
Let’s calls the run() method to start the team with a task. 

Fixed as,
Let’s call the run() method to start the team with a task.
2025-01-13 09:49:05 -08:00
Jack Gerrits
466848ac65
fix: fix user input in m1 (#4995)
* Add lock for input and output management in m1

* Use event to signal it is time to prompt for input

* undo stop change

* undo changes

* Update python/packages/magentic-one-cli/src/magentic_one_cli/_m1.py

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

* reduce exported surface area

* fix

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2025-01-13 15:28:08 +00:00
Eric Zhu
0554fa3e2a
Add AGS to README.md (#5019)
* Add AGS to README.md

* Add appdir argument to avoid conflicting with older .autogenstudio home directory files.

---------

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2025-01-13 06:55:10 -08:00
Eric Zhu
23c9b78c25
Disable output usage stat summary in Console as the stats is often inaccurate. (#5021)
* Disable output stats in Console as the stats is often inaccurate.

* format
2025-01-13 07:09:05 +00:00
Eric Zhu
a9c19d6162
Add python version requirement to frontpage and readme (#5014) 2025-01-12 09:19:57 -08:00
Ranuga
5e2a69a303
Fix: Properly await agent.run() in README Hello World example (#5013)
* Fix: Properly await `agent.run()` in README `Hello World` example

- Updated the `Hello World` code sample to use `asyncio` for proper coroutine handling.
- Resolved `RuntimeWarning` caused by not awaiting the `agent.run()` method.
- Ensures the example executes correctly without errors or warnings.

* Add await to agent.run call in index.md

* Fix hello world

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-12 09:04:30 +00:00
Victor Dibia
9f351c50ff
Minor Updates to AGS Docs (#5010)
* update docs

* update docs

* update ags documentation

* update uv lock

* update usage
2025-01-11 18:25:18 -08:00
Jack Gerrits
115fefa132
Add missing py.typed in autogen_ext, fix type issue in core (#4993) 2025-01-10 10:00:17 -08:00
Tim Rogers
c59cfdd787
Fix typo in Multi-Agent Design Patterns -> Intro docs (#4991) 2025-01-10 14:01:00 +00:00
Eric Zhu
001f0262ba
Minor API doc update for openai assistant agent (#4986) 2025-01-10 18:08:30 +10:00
Matthew Wyman
b6c3df2920
Update README.md to fix spelling error (#4982) 2025-01-10 00:29:28 +00:00
Jack Gerrits
d2c1bb8ad9
Remove accidentally added character (#4980) 2025-01-09 19:00:19 -05:00
Jack Gerrits
6bc285ce39
Don't show banner on stable (#4976) 2025-01-09 18:03:56 -05:00
Jack Gerrits
6abc70044a
Fix version switcher rendering (#4974)
* Fix docs switcher rendering

* update tag

* use post1
2025-01-09 17:06:35 -05:00
Jack Gerrits
4dab09cabe
Update magentic-one-cli version to 0.2.0 (#4973)
* Update magentic-one-cli version to 0.2.0

* lock
2025-01-09 15:54:36 -05:00
Jack Gerrits
78ac9f8507
Fix magentic-one-cli version bound (#4972) 2025-01-09 15:40:19 -05:00
Jack Gerrits
388a402243
Update magentic-one-cli dep bounds (#4971) 2025-01-09 15:31:46 -05:00
Jack Gerrits
c2721ff65b
Update all versions to 0.4.0 (#4941)
* Update all versions to 0.4.0

* update redirect

* install with upgrade for agentchat
2025-01-09 15:29:54 -05:00
Jack Gerrits
c4302eecab
Fixes for azure-container-code-executor.ipynb (#4970)
Fixes for azure-container-code-executor.ipyn
2025-01-09 15:29:36 -05:00
SeryioGonzalez
7c31ee0573
Update swarm.ipynb (#4959)
Small typo in docs

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2025-01-09 15:29:13 -05:00
SeryioGonzalez
99e2e39281
Update swarm.ipynb (#4958)
Small typo

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2025-01-09 15:28:50 -05:00
Jack Gerrits
0122d44aa3
OpenAI assistant fixes (#4969) 2025-01-09 12:06:01 -08:00
Eric Zhu
5b841e26d6
update landing page example (#4968) 2025-01-09 11:19:25 -08:00
Griffin Bassman
0446ce924f
feat: Add o1-2024-12-17 model (#4965)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2025-01-09 11:05:20 -08:00
afourney
f3ed7ae147
Fixed a failure in the MagenticOne test CI (#4966)
Fixed CI
2025-01-09 13:57:07 -05:00
Jack Gerrits
ecdf18d3f6
Make package readmes slightly less empty (#4961)
* Make package readmes slightly less empty

* Update python/packages/autogen-ext/README.md

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-09 10:44:13 -08:00
Jack Gerrits
c293b931f5
Make API reference TOC visible (#4962)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-09 10:37:13 -08:00