539 Commits

Author SHA1 Message Date
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
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
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
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
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
Jack Gerrits
3be2059516 Add some FAQs to the website (#456) 2024-09-06 17:12:56 -04:00
Aamir
df362c53cf Downgrade protobuf from v5 to v4 (#453) 2024-09-06 13:49:02 -04:00
Jack Gerrits
8504ea0bf2 Support datacontenttype and lay groundwork for unknown payloads (#444)
* Support datacontenttype and lay groundwork for unknown payloads

* Update dotnet based on proto changes
2024-09-05 16:36:59 -04:00
Jack Gerrits
df44d26c87 Fix docs edit link and ref links (#448) 2024-09-05 11:24:02 -04:00
Aamir
dacd290f1e Add a generic stop_when to runtime (#431)
* Add stop_when

* Format

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-08-30 15:28:51 -04:00
Aamir
042958e3ab Allow multiple intervention handlers to be supplied to the runtime (#435)
* Allow multiple intervention handleres to be supplied

* intervention_handler -> intervention_handlers

* Run format

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-08-30 15:24:25 -04:00
Jack Gerrits
c72e2484c2 Fix pytest asycio warning (#440) 2024-08-30 14:00:20 -04:00
Jack Gerrits
ba64f442de Remove static subscription restriction (#439) 2024-08-30 14:00:11 -04:00
Eric Zhu
479d5fa9d1 Fix documentation bug (#438) 2024-08-30 07:33:46 -07:00
Jack Gerrits
0f9254b4fa Update installation instructions based on directory moves (#436) 2024-08-30 09:37:11 -04:00
Jack Gerrits
4faa5980fb fix version (#430) 2024-08-29 17:21:53 -04:00
Jack Gerrits
581cda0cfd Pin grpc and gen task (#429) 2024-08-29 14:37:03 -04:00
Jack Gerrits
90dfcaf28f Update version and description of core (#427) 2024-08-29 10:56:33 -04:00
Jack Gerrits
4ff5610853 Migrate to uv and poe for workspace management and task running (#424)
* Migrate to uv and poe for workspace management and task running

* install python

* try fix

* ensure workspace venv in used

* package dir

* move nbqa to mypy task

* separate sync, clarify docs
2024-08-29 09:46:06 -04:00
Jack Gerrits
5e8840d13c Python: organize packages in package directory (#420)
* Move packages to packages directory

* remove screenshot

* update some paths
2024-08-28 13:35:21 -04:00