2822 Commits

Author SHA1 Message Date
Eric Zhu
c1d4f70924
Fix figure in subscription doc (#534) 2024-09-17 16:25:33 +00:00
Jack Gerrits
13639abcd0
Update packages page (#533) 2024-09-17 12:08:32 -04:00
Kosta Petan
3222632497
Update .net code to use CloudEvent, add Event back to proto definition (#530)
* remove OAgents lib from sln

* add Event back to agent_worker_proto

* regenerate python proto, remove RegisterAgent addition

* add cloudevent.proto to the python generation task
2024-09-17 14:11:17 +00:00
Kosta Petan
bc8529d4fc
remove OAgents lib from sln (#529)
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-09-17 06:30:14 -07:00
Victor Dibia
effde903c8
Transition to Pydata Sphinx Theme (#482)
* add pydata theme dependencies

add some organization of current files to filt #362

add reference

remove jupyter-lite and jupyter-sphinx deps, update python docs to references/python

refactor docs to fit new top level architecture of user guide, contribution, packages and references

add sample switcher json

add skeleton for version switcher

add pointer to note on versioning

Update python/packages/autogen-core/docs/src/_static/switcher.json

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

Update python/packages/autogen-core/docs/src/_static/switcher.json

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

remove unused components

add privacy footer

hide previous and next button

remove 'Section Navigation' from sidebar

make packages a single page

general refactor, add missing items

remove unneeded sidebar conf

remove duplicate content on landing page

update landing page text.

general refactor, remove unreferences files, fix some build errors

* remove extra files

* move readme to correct location

* remove sidebar from packages page, layout updates

* update lock and add clean command

* remove discord

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-17 09:22:38 -04:00
Ryan Sweet
2dcb1f4cd1
add faqs link (#528) 2024-09-17 13:16:06 +00:00
Ryan Sweet
fc4494a9c6
Readme updates for #520 and #525 (#527)
* starting #520 - readme improvements

* more for #520

* tiny announcement

* cleanupheader

* simplifying

* move announcement to top

* rearrange logo

* we dont need the logo

* bumping the date

* added faq addressing #500
2024-09-17 06:09:30 -07:00
Jack Gerrits
da759b6aed
Dotnet - core framework rework (rebased) (#511)
* dotnet rework

* add dotnet workload update to startup

* fix build

* interim fixup

* this is the stuff that was missing

* renaming the .net classes

* more build fixup

* port dev-team sample WIP

* add proto messages and IHandle to agents

* add github variables

* remove OAgents gh-flow

* remove OAgents library

* add .vs to gitignore

---------

Co-authored-by: Kosta Petan <kostapetan@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-09-17 13:01:49 +00:00
Ryan Sweet
2d826189c2
make python dev setup in codespaces (#526)
* add setup steps to codespace startup
2024-09-17 05:26:23 -07:00
Eric Zhu
b2f1b839d9
Update documentation on topic and subscription with illustrations (#523)
* Update runtime architecture documentation

* Update documentation on topic and subscription with illustrations
2024-09-17 08:29:38 +00:00
Eric Zhu
0072ea5a2b
Update runtime architecture documentation (#521) 2024-09-17 00:15:30 -07:00
gagb
31822041cf
Improve readme (#519) 2024-09-16 17:13:30 -07:00
Ryan Sweet
2e524e1572
initial rework of readme (#515)
merging this in because its better than what we have. will make new pre for subsequent changes.
2024-09-16 13:37:55 -07:00
Eric Zhu
aecb437d85
Implementation for @rpc and @event decorators (#504)
* Implementation for `@rpc` and `@event` decorators

* update
2024-09-16 17:20:44 +00:00
Jack Gerrits
561897b4ee
Disallow unions in dataclass messages, move check to creation instead of usage (#499)
* Disallow unions in dataclass messages, move check to creation instead of usage

* make image serializable by pydantic

* fixup team one

* update lockfile

* fix

* fix dataclass checking bug

* fix mypy
2024-09-16 12:37:26 -04:00
Jack Gerrits
747054aec8 fixup solution 2024-09-16 08:59:15 -04:00
Eric Zhu
1247e0b86b Documentation for command line code executors (#505)
* Documentation for command line code executors

* fix
2024-09-15 23:23:19 -07:00
David Luong
6c9d9d8cc3
[.NET] Release v0.2.1 (#3529)
* Write release note for 0.2.1 & upgrade version prefix to 0.2.1

* update tom.yml

* add example to release note

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>

---------

Co-authored-by: luongdavid <luongdavid@microsoft.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-09-13 21:21:19 +00:00
Xiaoyun Zhang
e76c39e52d
[.Net][AutoGen.OpenAI] Allow nullable system message, temperature and max token to support o1-preview model (#3524)
* add connect to o1 example

* Update Connect_To_OpenAI_o1_preview.cs
2024-09-13 16:59:58 +00:00
Jack Gerrits
4efeb640e3 Update quickstart to reference docker requirement (#497) 2024-09-13 11:27:56 -04:00
Eric Zhu
a6c1b503ad Distributed agent runtime API for host and worker; unit tests; documentation (#465)
* host agent runtime API and docs

* graceful shutdown of worker

* HostAgentRuntime --> WorkerAgentRuntimeHost

* Add unit tests for worker runtime

* Fix bug in worker runtime adding sender filed to proto. Documentation.

* wip

* Fix unit tests; refactor API

* fix formatting

* Fix

* Update

* Make source field optional in Event proto
2024-09-13 08:17:53 -07:00
Jack Gerrits
0376a0b399 Change examples and docs to use docker executor by default (#494) 2024-09-13 10:56:05 -04:00
Jack Gerrits
a815935062 Add agentchat lib boilerplate (#493)
* Add agentchat lib

* update lockfile
2024-09-13 10:47:36 -04:00
Jack Gerrits
306541e247 Fixup ruff config and inclusions (#495)
* add tests to ruff for core

* fmt

* lint

* lint fixes

* fixup more dirs

* dont include non python

* lint fixes

* lint fixes

* fix dir name

* dont relative include
2024-09-13 10:41:15 -04:00
Aamir
e25bd2c074 Add messaging attributes to telemetry spans (#490)
* Downgrade protobuf from v5 to v4

* Refactor telemetry and include attributes

* Update

* Remove unused vars

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-09-13 10:00:14 -04:00
Eric Zhu
1ba7a681a9 Fix bug in process event in worker runtime (#492) 2024-09-13 00:02:03 -07:00
Jack Gerrits
3ab51d3006 Port docker code executor, make async, make code executor restart async (#489)
* Port docker code executor, make async, make code executor restart async

* add export

* fmt

* fix async file
2024-09-12 16:33:30 -04:00
Eric Zhu
ae10608427 Add missing link to telemetry page (#488) 2024-09-12 04:53:29 -07:00
Eric Zhu
76067a62c0 Use notebook for extract result cookbook, use updated API. (#487) 2024-09-12 04:24:44 -07:00
Eric Zhu
06554c5a45 Update termination handler docs to keep it up-to-date (#486)
* Update termination handler docs to keep it up-to-date

* fix type
2024-09-12 03:59:56 -07:00
Eric Zhu
cb9ae44f23 Add documentation to RoutedAgent and message_hander, remove outdated doc content. (#485) 2024-09-12 03:26:33 -07:00
Aamir
461b8a8bbd Add basic OTEL tracing for SingleThreadedAgentRuntime and WorkerAgentRuntime (#459)
* Downgrade protobuf from v5 to v4

* Add some telemetry blocks fo single threaded agent runtime

* Rename

* Add comments

* Update uv sync

* Address build complains

* Fix mypy

* Add tracing for worker

* Add tracing to worker

* Fix

* Fix up

* Update

* Simplify

* UpdateUpdate

* Add test dep for otel sdk

* Minor fix

* Add telemetry docs

* Simple

* Fix mypy

* Add testFix

* Fix merge

* Update telemetry.md

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-11 19:47:55 -04:00
Ryan Sweet
5dce10d530 move contrinbuting.md symlink (#475) 2024-09-11 15:21:16 -07:00
raimondasl
385b63b36f Fixed AZURE_OPENAI_API_ENDPOINT name. Added needed packages. (#467)
* Fixed AZURE_OPENAI_API_ENDPOINT name. Added needed packages.

* remove hatch comment from doc

---------

Co-authored-by: Raimondas Lencevicius <rlencevicius@microsoft.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-09-11 14:57:06 -07:00
Ryan Sweet
81463c0c64 Rysweet contibruting.md (#460)
* add standard contributing.md Fill out contributing guide on website #455

* add contibuting.md #455

* Update CONTRIBUTING.md

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

* Update CONTRIBUTING.md

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

* Update CONTRIBUTING.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* add symlink to top level contributing

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-09-11 17:40:16 -04:00
Eric Zhu
976a7d4d77 create model context component, remove chat memory component, refactor samples #454 (#469)
* create model context component, remove chat memory component, refactor samples #454

* Fix bugs in samples.

* Fix

* Update docs

* add unit tests
2024-09-11 14:35:35 -07:00
Helen
82bb342fb3 Fix a broken link (#471) 2024-09-11 12:18:26 -07:00
Eric Zhu
2345557c62 add router to message handler Routing Predicates for message_handler in RoutedAgent #397 (#446)
* add router to message handler Routing Predicates for message_handler in RoutedAgent #397

* route --> match

* update docs

* type checking message parameter

* update docs

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-09-11 15:26:09 +08:00
Jack Gerrits
5f86ce18f2 Update task to be something that can be done in a container standalone (#466) 2024-09-10 15:30:05 -04:00
Jack Gerrits
05ff2d33e0 Rename codec to serializer (#462) 2024-09-09 18:32:29 -04:00
gagb
63d3297ffc
Update README.md (#3499) 2024-09-09 18:17:57 +00:00
gagb
afece7558f
Update pyproject.toml for AutoGen Studio (#3495)
* Update pyproject.toml

* Update pyproject.toml
2024-09-09 17:00:29 +00:00
Aamir
66e0e8e097 Add slow human in loop sample (#423)
* Add slow human in loop

* Fix

* Fix

* Fix

* Fix input

* Don't persist to json

* Add comment

* Fix imports

* Feedback

* Use if instead of while

* Add stop_when

* Merge from UV

* Multiple handlers

* Allow multiple intervention handleres to be supplied

* intervention_handler -> intervention_handlers

* Fix up

* Merge

* Merge

* Fix termination

* Handle feedback

* fmt

* Fix

* Fix

* Add initial message in the assistant memory

* Documentation

* fmt

* Update comment

* Downgrade protobuf from v5 to v4

* Address feedback

* Update python/packages/autogen-core/samples/demos/slow_human_in_loop.py

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

* Update python/packages/autogen-core/samples/demos/slow_human_in_loop.py

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

* Update python/packages/autogen-core/samples/demos/slow_human_in_loop.py

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

* Address comment

* Fix

* Fix to use lambda

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-09 09:50:52 -07:00
Ryan Sweet
36f796bcdf Update README.md (#458) 2024-09-09 09:12:27 -07:00
Jack Gerrits
1135515364 Require lockfile to be up to date in CI (#457)
* Require lockfile to be up to date in CI

* use locked instead of frozen
2024-09-09 09:34:06 -04:00
siddharth Sambharia
5f87b2802f
Portkey Integration with Autogen (#3395)
* Portkey Integration with Autogen

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update portkey.md with changes

* Update website/docs/ecosystem/portkey.md

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>

* Remove trailing white spaces

* Update portkey.md with mark's note

* remove trailing white spaces line 15 and empty line at end

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-09-09 05:36:48 +00:00
New-World-2019
2ff29793fe
Fix the bug of creating a new session on the AutoGen Studio playground page (#3407)
Co-authored-by: linuxYn <9170444+linux-ape@user.noreply.gitee.com>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-09-08 23:41:57 +00:00
Victor Dibia
084a54daba
Support for Human Input Mode in AutoGen Studio (#3484)
* bump version, add claude default model

* Move WebSocketConnectionManager into its own file.

* Update the AutoGenStudio to use Async code throughout the call stack

Update *WorkflowManager* classes:
- Add async `a_send_message_function` parameter to mirror `send_message_function` param.
- Add async `a_process_message` coroutine to mirror the synchronous `process_message` function.
- Add async `a_run` coroutine to mirror the `run` function
- Add async `_a_run_workflow` coroutine to mirror the synchronous `_run_workflow` function.

Update *ExtendedConversableAgent* and *ExtendedGroupChatManager* classes:
- Override the async `a_receive` coroutines

Update *AutoGenChatManager*:
- Add async `a_send` and `a_chat` coroutines to mirror their sync counterparts.
- Accept the `WebSocketManager` instance as a parameter, so it can do Async comms directly.

Update *app.py*
- Provide the `WebSocketManager` instance to the *AutoGenChatManager* constructor
- Await the manager's `a_chat` coroutine, rather than calling the synchronous `chat` function.

* Add Human Input Support

Updates to *ExtendedConversableAgent* and *ExtendedGroupChatManager* classes
- override the `get_human_input` function and async `a_get_human_input` coroutine

Updates to *WorkflowManager* classes:
- add parameters `a_human_input_function` and `a_human_input_timeout` and pass along on to the ExtendedConversableAgent and ExtendedGroupChatManager
- fix for invalid configuration passed from UI when human input mode is not NEVER and no model is attached

Updates to *AutoGenChatManager* class:
- add parameter `human_input_timeout` and pass it along to *WorkflowManager* classes
- add async `a_prompt_for_input` coroutine that relies on `websocket_manager.get_input` coroutine (which snuck into last commit)

Updates to *App.py*
- global var HUMAN_INPUT_TIMEOUT_SECONDS = 180, we can replace this with a configurable value in the future

* add formatting/precommit fixes

* version bump

---------

Co-authored-by: Joe Landers <sailorjoe6@gmail.com>
2024-09-08 21:50:06 +00:00
Dev Khant
70a17919c7
Ecosystem Mem0: change title (#3492)
* Ecosyste Mem0: change title

* Update website/docs/ecosystem/mem0.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-09-08 21:46:39 +00:00
gagb
2ced66e0a2
Update readme (#3485)
* Update

* Update

* Update README.md

* Update README.md

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-07 05:53:05 +00:00