Commit Graph

769 Commits

Author SHA1 Message Date
Eric Zhu cc06ec531e
Clarify tool use in agent tutorial (#4860) 2024-12-30 13:49:51 -08:00
Eric Zhu 156c3f16c2
Migration guide for 0.4 (#4765)
* readme start

* Enhance migration guide with organization overview and section breakdown

* update toc

* Update

* wip

* wip

* WIP

* Finished draft

* add statement

* Update migration guide for v0.4: refine language and clarify PyPI package ownership

* wip

* mv

* Update

* wip

* Add lint for markdown files; fix lint errors

* Fix indent

* Fix syntax

* Fix

* Update python/check_md_code_blocks.py

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

* wip

* WIP

* wip

* fix links

* update

* Add 0.4 component config example

* update

* update

* update

* add conversion function

* wip

* Move

* Update

* Update

* update

* Make buttons side by side

* Update

* small edits

* wip

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-12-30 13:33:08 -08:00
Jack Gerrits c58eb9d120
Move intervention objects to root module (#4859)
* Move intervention to root

* usage
2024-12-30 16:09:37 -05:00
Gerardo Moreno 0569689e6b
Fix BaseOpenAIChatCompletionClient token usage (#4770)
* Fix openai client token usage (#4769)

* Include actual_usage in add_usage function

* Make sure result is assigned

* remove method

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-12-30 15:33:06 -05:00
Jack Gerrits cb1633b501
feat!: Add support for model family specification (#4856)
* Add support for model family specification

* spelling mistake

* lint, etc

* fixes
2024-12-30 15:09:21 -05:00
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
Leon De Andrade 23dbb6a632
Add missing model context attribute (#4848)
* Add missing model context attribute

* fix type

* Add test

* imports

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-28 22:50:54 -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
Sachin Joglekar 3b4dd6e050
Support custom models with OpenAI client (#4808) 2024-12-24 13:04:23 -08: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
Sachin Joglekar 8e116fd86d
Fix pydantic warnings when saving state (#4801) 2024-12-23 15:17:40 -08: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
Jack Gerrits 428d594658
Delete python/mypy_plugin.py (#4796) 2024-12-23 10:13:31 -08:00
gagb b15551c961
Improve magentic one doc string (#4781)
* Enhance MagenticOneGroupChat documentation with architecture overview and citation reference

* Fix formatting in MagenticOneGroupChat documentation and add citation reference
2024-12-21 14:18:28 -08: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
jspv a271708a97
Tool call result summary message (#4755)
* Adding ToolCallResultSummaryMessage

* Support for ToolCallResultSummaryMessage

* Added ToolCallSummaryMessage

* ruff format

* Add ToolCallSummaryMessage to ChatMessage

* typing and tests for ToolCallSummaryMessage

* PR Feedback

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-12-19 21:23:18 -08:00
Roy Belio 3dd4be949e
fix(magentic-one): Remove redundant exception raising in update_ledger (#4759)
* fix(magentic-one): Remove redundant exception raising in update_ledger method

* Remove unused exception variable 'e'

---------

Co-authored-by: Roy Belio <robelio@microsoft.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-12-19 19:30: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
Victor Dibia c21555290e
add chainlit sample (#4749)
* add chainlit sample

* readme updates

* put team inside run to avoid problems

* simplify example and add readme

* inform user team is reset

---------

Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-12-18 14:49:07 -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
Hussein Mozannar 7d0f485bd2
WebSurfer add close method (#4727)
* fix finicky websurfer test

* add close method

* update default to not download or debug

* enable closing agents in team_manager

---------

Co-authored-by: Victor Dibia <victor.dibia@gmail.com>
2024-12-16 18:51:52 -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
Arun Brahma 7c0bbf674f
feat: add support for list of messages as team task input and update Society of Mind Agent (#4500)
* feat: add support for list of messages as team task input
* Update society of mind agent to use the list input task
---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-14 21:48:17 -08:00
Victor Dibia c7145156b1
Add Component Gallery to AGS (#4693)
* fix message instance check error

* general refactor, enable 3rd party gallery

* format fixes

* update detail view

* improve detail view and test sync capabilities

* minor tweaks, version bump

* version bump

* update uv.lock

* update lockfile

* update uv.lock

* update uv lock

* pin uv version

* uv version

* revert

* revert

* minor side bar and drag drop layout fixes

* revert version numbering.

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-14 15:33:14 -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
Hussein Mozannar b9d682c0a1
WebSurfer Documentation and Fixes (#4624)
* fixes remake
* modified toml adding tests
* playwright tests
* tests websurfer
---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-12-12 14:42:40 -08:00
dependabot[bot] 4085ba5b2b
Bump nanoid from 3.3.7 to 3.3.8 in /python/packages/autogen-studio/frontend (#4631)
Bump nanoid in /python/packages/autogen-studio/frontend

Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-12-12 14:23:19 -08:00
peterychang 021a2cc3aa
fix poe check (#4686) 2024-12-12 11:37:57 -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
Victor Dibia 85cf942d37
Add v1 Drag and Drop Team Composition to AGS (#4609)
* v1 progress on drag_drop

* add v1 for node deletions

* major refactor, add sidebar to teams and session playground

* format updates

* formatting updates

* update formatting

* formatting and other checks

* add mangentic one deps

* general refactor, fix new team creation bug etc...

* minor bugfix

* update uv lock

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-12-11 14:31:25 -08:00
gagb b776c53e6f
Improve language (#4650)
* Improve language

* Update images for examples

* reduce size

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-12-11 14:04:14 -08:00
gagb 34b997769e
Add module level docstrings (#4652)
* Improve init docs

* Add docstring for messages

* Add docstring for agents

* Add docstring for teams

* Add doc string for conditions

* Add docs for ui

* Update module docstring in __init__.py

* Clarify BaseChatAgent description in __init__.py

* Fix formatting
2024-12-11 11:06:14 -08:00
hsm207 afd6257ac9
typo: messages docs (#4655) 2024-12-11 07:29:34 -08:00
Eric Zhu 6c1f638960
dev11 release (#4642)
* dev11 release
2024-12-10 08:28:48 -08:00
Jack Gerrits c234e77617
Add deprecated alias for openai model clients (#4641)
Add alias for openai model clients
2024-12-10 08:03:42 -08:00
Jack Gerrits b32f1a07d1
Use official cloud event proto schema (#4487)
* Use official cloud event proto schema

* format

* fix bug in cloud event attribute creation

---------

Co-authored-by: Kosta Petan <kostapetan@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-12-09 22:26:53 -08:00
Eric Zhu 48778e5ffd
Minor doc fixes please merge (#4633)
Minor doc fixes
2024-12-09 22:11:57 -08:00
Jack Gerrits 7e7265ddd0
Update version for dev10 (#4630)
* Update version for dev10

* fix notebook
2024-12-09 19:33:21 -08:00
Leonardo Pinheiro 253fe216fd
Add models.openai and tools.langchain namespaces (#4601)
* add models.openai namespace

* refactor tools namespace

* update lock file

* revert pyproject changes

* update docs and add cast

* update ext models doc ref

* increase underline

* add reply models namespace

* update imports

* fix test

* linting

* fix missing conflicts

* revert pydantic changes

* rename to replay

* replay

* fix reply

* Fix test

* formatting

* example

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-09 19:18:09 -08:00
Gerardo Moreno 3e5e12bff0
Improve message error when docker isn't running (#3816) (#4600)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-09 19:09:54 -08:00
Hussein Mozannar 871a83fcc5
Fix AssistantAgent Tool Call Behavior (#4602)
* 1 tool call iteration default

* handoff first

* return_only_response

* add and remove tools

* print out tool calls

* pass checks

* fix issues

* add test

* add unit tests

* remove extra print

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

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

* documentation and none max_tools_calls

* Always limit # tool call to 1

* Update notebooks for the changing behavior of assistant agent.

* Merge branch 'main' into assistant_Agent_tools

* add reflect_on_tool_use parameter to format the tool call result

* wip

* wip

* fix pyright

* Add unit tests

* Merge remote-tracking branch 'origin/main' into assistant_Agent_tools

* Update with custom formatting of tool call summary

* format

* Merge branch 'main' into assistant_Agent_tools
2024-12-09 19:03:31 -08:00
gagb f5140badbd
Improve language of user guide (#4577)
* Improve language of agents section

* Accomodate victor's feedback

* Templ changes

* Change outline

* Fix outline further

* Flatten the outline

* remove

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-09 18:56:22 -08:00
Jack Gerrits 218e84fd8e
Migrate remaining components (#4626) 2024-12-09 18:39:07 -08:00
peterychang 51d4a10774
Fix incorrect type cast (#4620)
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-12-09 14:28:19 -08:00
Hussein Mozannar 38cb532950
Remove inner message from thread M1 orchestrator (#4611)
remove inner message from thread
2024-12-09 10:09:13 -08:00
Jack Gerrits 87011ae01b
Migrate model context and models modules out of components (#4613)
* Move model context out of components

* move models out of components

* rename docs file
2024-12-09 10:00:08 -08:00
Hussein Mozannar 3817b8ddf6
Add MagenticOneGroupChat to AGS (#4595)
* add magenticonegroupchat to ags

* fix termination condition

* typing order check

* format error

* fix M1 orchestrator handle tool mesages

* add filesurfer and coder
2024-12-08 21:44:16 -08:00
peterychang c5c3444bce
Add user proxy docs. Make user proxy's default impl cancellable (#4459)
* Add user proxy docs. Make user proxy's default impl cancellable

* remove unnecessary import

* revert accidental change

* address PR comments

* uv sync

* Fix bugs

* poe format

* fixing mypy issues

* poe format

* ignore pyright errors for ainput

* fix example code

* remove unused import

* fix accidental reversion, example code

* formatting

* fix typing

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

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

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

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-06 14:53:59 -08:00
Eric Zhu 8dac072658
Update references in docs (#4590)
* Update agent doc

* Remove outdated doc

* Update references

* Update readme

* Update readme
2024-12-06 01:59:28 -08:00
Eric Zhu fa550c2c36
fix docs (#4589)
* fix doc on distributed runtime

* Fix references

* Update references

* Fix import paths in user guide notebooks for code executor components
2024-12-06 01:23:05 -08:00
Eric Zhu 8707729da9
dev9 (#4585)
* dev9
2024-12-06 00:43:56 -08:00
Gerardo Moreno afaf2c1288
Sequential Chat Tutorial (#3861) (#4584)
* Sequential Chat Tutorial (#3861)

* Include doc in toctree

* Rename title; doc improv

* reorder

* grammar

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-06 00:36:21 -08:00
peterychang b286c99c1f
model capabilities FAQ (#4471)
* model capabilities faq

* Add links to FAQ in more places

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-05 23:53:22 -08:00
Leonardo Pinheiro 5f61ba0c2f
Refactor autogen ext agents namespace (#4582)
* move magentic and openai assistant agents

* add import error messages

* add api docs ref files

* fix magentic rst path

* fix openai rst fname

* fix magentic rst title

* Add module

* rm

* fix some minor issues

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-05 23:41:13 -08:00
Eric Zhu f5f364ccea
Add code executor modules in API doc and minor doc fixes (#4579)
* Add code executor modules

* minor fixes

* minor fixes

* minor

* minor grammar

* underlines

* code check
2024-12-05 15:57:02 -08:00
gagb ac363344da
Update user guide (#4560)
* Update user guide

* Fix typos

* Move the file to correct dir

* update notebook, add runnable code to catch bugs, improve text on inner messages

* update icons in tutorial

* Reduce references to future concepts

---------

Co-authored-by: Victor Dibia <victor.dibia@gmail.com>
2024-12-05 14:37:33 -08:00
gagb 0fd47b95d8
Remove WIP banner from landing (#4575) 2024-12-05 13:47:57 -08:00
Leonardo Pinheiro 4018a129f8
Refactor code executor namespace (#4538)
* refactor code exec namespaces

* delete code exec init

* update conflicts

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2024-12-05 07:01:59 -08:00
Jack Gerrits 9af450a59f
Move local code exec to ext, uplevel components (#4557) 2024-12-04 20:21:46 -08:00
Eric Zhu cc6765b189
API documentation page flattening (#4556)
* API documentation page refactor

* Fix links and unused pages

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-12-04 18:24:07 -08:00
Jack Gerrits e615059345
Remove extract_markdown_code_blocks from core API (#4554) 2024-12-04 17:13:43 -08:00
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 fef06fdc8a
Fixed messages missing from websurfer history. (#4551)
* Fixed messages missing from websurfer history.
* Fix filesurfer too!
2024-12-04 15:13:48 -08:00
Jack Gerrits d85a607da9
Move LLMUsageTracker to a cookbook (#4549)
* Move LLMUsageTracker to a cookbook

* rename, add to index

* fmt and remove test

* Update python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynb

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

* Fix missing quotation marks in notebook

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2024-12-04 14:49:39 -08:00
Vaibhav Balloli 1a448c10b9
Update index.md (#4548) 2024-12-04 14:24:32 -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
Gerardo Moreno 39ff183fad
Core API example showing multiple agents concurrently (#4461)
* Core API example showing multiple agents concurrently (#4427)

* Apply feedback

* Add different topics for closure agent example

* Address feedback

* Mypy fix

* Modify import path based on refactoring

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-04 10:39:26 -08:00
gagb abb0a77f92
VideoSurferAgent -> VideoSurfer (#4521) 2024-12-03 18:43:05 -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
gagb 6706dce577
Improves tutorial (#4507)
* Change nav depth

* Remove repetitive module names

* Increase nav depth

* Decrease base font size of docs

* Improve docs

* Undo css change
2024-12-03 16:54:53 -08:00
afourney 31cb50bce9
Added the coder used by MagenticOne. (#4511)
* Added the coder used by MagenticOne.

* Fixed formatting.

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-12-03 16:08:18 -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
afourney 5235bbc0d6
FileSurfer in AgentChat (#4360)
* Added an implementation of FileSurfer to AgentChat
2024-12-03 12:14:47 -08:00
Jack Gerrits 50fea44539
Update allowed values for agent and topic type (#4484)
* allowed_type_values

* add return for post init

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

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

* Merge branch 'main' into allowed_type_values

* lint
2024-12-03 10:12:42 -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
Jack Gerrits 95dfe7bf22
Core doc edits, mostly visibility of private methods (#4457) 2024-12-02 14:36:00 -08:00
Jack Gerrits 732391859d
Update code_lint.py (#4470) 2024-12-02 16:42:28 -05:00
Jack Gerrits 1b58f6e7d5
Remove unused agent props (#4453) 2024-12-02 13:15:23 -08:00
Leonardo Pinheiro 1f90dc5ea9
Update OpenAI Assistante Agent on_reset (#4423)
* update reset and imports

* add missing imports

* update lock file

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2024-12-02 15:48:18 +10:00
Hussein Mozannar ac3424d619
MagenticOne Orchestrator Fixes (#4430) 2024-11-30 14:11:20 -08:00
gagb f02aac78fb
Improve docs (#4428)
* Change nav depth

* Remove repetitive module names

* Increase nav depth
2024-11-29 16:50:40 -08:00
gagb b1e40017c3
Fix client mismatch in video surfer and its tools (#4431)
* Add initial code

* Update and add readme

* Update

* update readme

* Refine action space

* Add tutorial

* Improve doc string

* Improve doc string

* Remove readme

* Update toml

* Update assignment

* Expose the tools

* Update pyproject toml

* Improve docs

* remove assignment'

* Run poe format

* Update uv lock

* Fix mypy errors

* Fix linting errors

* poe format

* run checks

* Updaye

* Rename submodule

* Improve documentation

* Use same model client in video surfer

* Use same model client in video surfer

* Update uv lock

---------

Co-authored-by: Mohammad Mazraeh <Mazraeh.Mohammad@Gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-29 16:27:30 -08:00
gagb b6a7d56844
Adds Video Surfer to autogen_ext (#4387)
* Add initial code

* Update and add readme

* Update

* update readme

* Refine action space

* Add tutorial

* Improve doc string

* Improve doc string

* Remove readme

* Update toml

* Update assignment

* Expose the tools

* Update pyproject toml

* Improve docs

* remove assignment'

* Run poe format

* Update uv lock

* Fix mypy errors

* Fix linting errors

* poe format

* run checks

* Updaye

* Rename submodule

* Improve documentation

---------

Co-authored-by: Mohammad Mazraeh <Mazraeh.Mohammad@Gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-29 14:41:23 -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
Jack Gerrits a4067f6c0a
Migrate Python distributed runtime to use cloud events for event (#4407)
* Cloud event publishing

* Implement cloud event receiving

* impl host servicer and
2024-11-27 08:32:03 -08:00
Jack Gerrits bd77ccbd7b
Serialize to Proto.Any for python serializer (#4404) 2024-11-27 07:32:01 -08:00
Eric Zhu a4e6d0d977
Add grpcio back to deps (#4402)
* Add grpcio back to deps

* Update uv lock
2024-11-27 09:08:14 -05: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
Hussein Mozannar 531ec38073
Ags web surfer (#4340)
* initial addition

* working without multimodal messages

* show images

* remove temp changes

* ui type websurfer

* fix issue with image width, enable text truncation, enable viewing images full screen

---------

Co-authored-by: Victor Dibia <victor.dibia@gmail.com>
2024-11-26 21:24:45 -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
Victor Dibia fe96f7de24
Add Session Saving to AGS (#4369)
* fix import issue related to agentchat update #4245

* update uv lock file

* fix db auto_upgrade logic issue.

* im prove msg rendering issue

* Support termination condition combination. Closes #4325

* fix db instantiation bug

* update yarn.lock, closes #4260 #4262

* remove deps for now with vulnerabilities found by dependabot #4262

* update db tests

* add ability to load sessions from db ..

* format updates, add format checks to ags

* format check fixes

* linting and ruff check fixes

* make tests for ags non-parrallel to avoid db race conditions.

* format updates

* fix concurrency issue

* minor ui tweaks, move run start to websocket

* lint fixes

* update uv.lock

* Update python/packages/autogen-studio/autogenstudio/datamodel/types.py

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

* Update python/packages/autogen-studio/autogenstudio/teammanager.py

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

* reuse user proxy from agentchat

* ui tweaks

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-11-26 15:39:36 -08:00
Jack Gerrits df183be35a
Add special topic for agent direct messaging (#4385)
* Add special topic for agent direct messaging

* move to base

* update sub counts

* Fix tests
2024-11-26 17:01:25 -05:00
Jack Gerrits cf80b1bc14
Add request_id parameter (#4384) 2024-11-26 16:09:14 -05:00
Jack Gerrits 1f07e5bea5
Add type prefix subscription (#4383)
* Add type prefix subscription

* update example

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-26 15:58:26 -05:00
peterychang 74bcd5e0f6
add protobuf serialization test (#4224)
* add protobuf serialization test

* proto file regeneration

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Mohammad Mazraeh <Mazraeh.Mohammad@Gmail.com>
2024-11-26 15:37:40 -05:00
Jack Gerrits 5aecb56ebd
Add badges, update contributing, add pointers in various places (#4371) 2024-11-26 08:04:59 -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 7c1cabf07e
Add tool to check example in docstrings (#4353)
* Add tool to check example in docstrings

* update lock

* add task

* add ignored message

* add example check CI
2024-11-25 16:10:45 -05: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
Jack Gerrits 8347881776
Fix intervention handler none check (#4351)
* Fix none check

* fix func

* fmt, lint

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 15:50:52 -05:00
Jack Gerrits 9b967fc79a
Update pyright and mypy (#4348)
* Update pyright and mypy

* fmt
2024-11-25 15:08:36 -05:00
Jack Gerrits 6bdd9c83b0
Add note for min python version (#4347)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 10:19:57 -08:00
Jack Gerrits 9209b2ffc1
Remove duplicate model info (#4346)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 10:17:24 -08: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
Jack Gerrits b2ae4d1203
Add warnings for deprecated azure oai config changes (#4317)
* Add warnings for deprecated azure oai config changes

* Update docs and usages, simplify capabilities
2024-11-25 09:34:52 -08:00
Mohammad Mazraeh 341417e636
add tolerance for empty choices (#4311)
* add tolerance for empty choices

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

* address pr comments

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

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

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

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

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* address pr comments

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

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

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* Update _openai_client.py

---------

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-25 09:06:35 -05:00
Kartik Ramesh 08383445fd
Fix typo in Agent Runtime Environments doc (#4336)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-24 20:52:51 -05:00
Jack Gerrits 01dc56b244
Make grpc an optional dependency (#4315)
* Make grpc an optional dependency

* add note to the runtime docs

* update version

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-23 22:36:30 -08:00
Gerardo Moreno 02ef110e10
Selector Group Chat Tutorial (#4112) (#4326)
* Selector Group Chat Tutorial (#4112)

* update doc

* update

* Add custom selector function

* Update doc

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-23 21:36:32 -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
Thomas Lin c9835f3b52
Update README.md - add more information about using Azure OpenAI services (#4253)
* Update README.md

Add more information about using Azure OpenAI services

* Update README.md

Adjust the formatting to improve readability of the steps, making them easier to follow.

---------

Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-11-23 18:56:28 -05:00
Pramod Goyal caeab68f4b
task: added warning when none is called in intervention handler (#4149)
* task: added warning when none is called in intervention handler

* add leading underscore to indicate private to _warn_if_none method in intervention.py

* address comment of returning Any for result in intervention.py

* Update intervention.py to remove redundant name change

* Format and lint

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-11-23 18:26:37 -05:00
Thai Nguyen 0b5eaf1240
Agent name termination (#4123) 2024-11-23 07:07:21 -08:00
Leonardo Pinheiro ac53961bc8
Delete autogen-ext refactor deprecations (#4305)
* delete files and update dependencies

* add explicit config exports

* ignore mypy error on nb

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-22 11:29:39 -05: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
Griffin Bassman e037596228
typo: agbench readme (#4302) 2024-11-21 19:17:30 -05:00
Eric Zhu 6e4609a76e
External termination condition (#4294) 2024-11-21 03:25:53 -05:00
Gerardo Moreno 6ffa42ba44
Swarm Tutorial (#4146)
* Swarm Tutorial

* Include 2 swarm example, add svgs

* Include latest Swarm changes & Eric changes

* Update docs to remove UserProxyAgent

* Include latest Console changes

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-20 21:03:39 -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
Ryan Sweet 1e3b765e3a
.net changes to re-enable xlang support, add subscription apis (#4159)
* add subscription response

* fix send subscription response

* add register agent type response

* adding a test

* working on shaping up a test

* appsettins update for backend

* another appsettings

* fixup aspire hosting

* enable AGENT_HOST var from aspire

* add SendMessageAsync

* remove broken test

* test compiles and runs but is not (yet) correct

* subscriptions grain wireup.

* temp assert true.

* remove DI for SubscriptionGrain

* add xlang python code

* add subscription response

* rebond

* Update to .NET 9.0

* Fix Backend project SDK

* Package updates

* get RegisterAgentTypeRequest working

* fix exceptions

* add error handling for requests

* whoops

* send cloud event message type

* processing cloudevents

* trying tosend proto data - doesn't work

* trying to pack proto_data

* fix (#4238)

* pack the Message from agents_events

* format - not sure why these?

* format

* cleanup, error handling, xlang sample publishes messages that can be heard by .NET and vice versa

* format

* sdk version

* sdk vers

* net8

* back to net8

* remove netstandard2

* fix used

* remove unused

* more cleanup

* remove unneeded package

* I'm terrible at writing tests

* deserialize the cloud events and sent them as events

* comment

* cleanup

* await

* Delete dotnet/samples/Hello/Backend/Backend.csproj

unneeded change

* whoops

* merge main python back into here

* revert back to local

* revert some of the helloAgents changes.

* [.NET] Add happy path test for in-memory agent && Simplify HelloAgent example && some clean-up in extension APIs (#4227)

* add happy path test

* remove unnecessary namespace

* fix build error

* Update AgentBaseTests.cs

* revert changes

---------

* fix busted merge from main

* addressing review comments

* make internal

* case sensitive rename step 1

* case sensitive rename step 2

* remove!

---------

Co-authored-by: Peter Chang <petchang@microsoft.com>
Co-authored-by: Reuben Bond <reuben.bond@gmail.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-11-19 11:00:48 -08:00
Eric Zhu 2b7658a9da
Move openai assistant agent to autogen-ext; add on_messages_stream (#4268) 2024-11-19 01:42:11 -05:00
Kapil Sachdeva b8ea088e33
fix - stop using the deprecated register api in chess_game sample (#4265) 2024-11-18 22:48:00 -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 1bf5fbb67b
Add API docs for builtin clients (#4232)
* Add API docs for builtin clients

* Address feedbacks

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-17 21:33:33 -05:00
Victor Dibia 44640e29a3
Fix Import Issue in AGS, Remove InnerMessage import from agentchat.messages (#4246)
* fix import issue related to agentchat update #4245

* update uv lock file
2024-11-17 12:04:55 -08:00
dependabot[bot] fa1d08005e
Bump cross-spawn in /python/packages/autogen-studio/frontend (#4228)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.5.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.5)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-16 17:15:11 -08: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
Mohammad Mazraeh 196c6169fc
Feat add UI streaming to distributed group chat (#4181)
* add ui streaming to distributed group chat example

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

* fix pyright error after updating dependencies

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

---------

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
2024-11-15 19:51:04 -08:00
Victor Dibia 2997c27d1b
Add Human Input Mode in AGS (#4210)
* add react-flow

* update tutorial, some ui improvement for agent thread layout

* v1 for interactive viz for agent state

* add Ui visualization of message based transitions

* minor updates

* fix node edges, support visualization of self loops

* improve edges and layout, add support for selector group chat prompt

* minor ui tweaks

* ui and layout updates

* ugrade dependencies to fix dependabot scan errors

* persist sidebar, enable contentbar title mechanism #4191

* add support for user proxy agent, support human in put mode. #4011

* add UI support for human input mode via a userproxy agent  #4011

* version update

* fix db initialization bug

* support for human input mode in UI, fix backend api route minor bugs

* update pyproject toml and uv lock

* readme update, support full screen mode for agent visualiation

* update uv.lock
2024-11-15 14:51:57 -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
Victor Dibia 908ed8c60f
Add agentchat to uv workspace (#4223)
Add agentchat to uv workspace
2024-11-15 14:40:03 -05:00
Jean-Marc Le Roux cac411b56a
Fix broken $ref instances in tool JSON schemas (#4201)
When the tool expects complex inputs that require nested models, pydantic will generate a JSON Schema that will include references to other schemas using the `$ref` keyword (cf https://json-schema.org/understanding-json-schema/structuring#dollarref).

But the `$ref` keyword is not supported by OpenAI.

This fix:

1. Resolves the references and inlines the corresponding schemas.
2. Removes the then useless root `$defs` field of the JSON schema to save tokens.

Co-authored-by: Jean-Marc Le Roux <contact@jmlx.io>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-15 13:40:46 -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
Krit Kasemosoth 762f6dc723
Update - add import for missing modules in the example codes (#4209)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-15 11:46:37 -05:00
Krit Kasemosoth 0807f60cba
Update - add import for Console (#4218) 2024-11-15 11:32:00 -05:00
Jack Gerrits 2b565713d0
Make save/load state for agent async (#4195) 2024-11-15 10:38:01 -05:00
Thomas Lin 88229513e5
Update README.md (#4205)
* Update README.md

Should it be "Azure openAI service" ?

* Update README.md with links

---------

Co-authored-by: Hussein Mozannar <hssein.mzannar@gmail.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-11-14 21:37:20 -08:00
tsinggggg 8a4c928efa
feat: watsonx support (#4130)
* feat: watsonx support

* fix: addressing comments

* fix: addressing comments

* fix: addressing comments

* Delete python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/watsonx-client-integration.md

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

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-14 20:44:26 -08:00
Jack Gerrits 7628a4e6ac
Ensure all imports present for example (#4204)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-14 20:25:15 -08:00
Jack Gerrits ea3a1c94e2
Add table for community packages (#4194) 2024-11-14 15:51:06 -08:00
Jack Gerrits 9ec7ecc29c
add Autogen 0.2 to packages page (#4193) 2024-11-14 15:30:18 -05:00
Li Jiang c513f969a3
Replace AGNext with AutoGen (#4184) 2024-11-14 09:21:29 -08:00
afourney 4073dd4efb
Have Console print multimodal messages nicely. (#4179) 2024-11-13 21:06:55 -08:00
Hussein Mozannar 36b822cf8b
Fix lazy init websurfer (#4178)
* lazy init set

* format
2024-11-13 20:19:48 -08:00