17 Commits

Author SHA1 Message Date
peterychang
9118f9b998
Add ability to register Agent instances (#6131)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

Nice to have functionality

## Related issue number

Closes #6060 

## Checks

- [x] I've included any doc changes needed for
<https://microsoft.github.io/autogen/>. See
<https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to
build and test documentation locally.
- [x] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [x] I've made sure all auto checks have passed.

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-05-12 15:34:48 +00:00
Jack Gerrits
6b68719939
Allow background exceptions to be fatal (#5716)
Closes #4904 

Does not change default behavior in core.

In agentchat, this change will mean that exceptions that used to be
ignored and result in bugs like the group chat stopping are now reported
out to the user application.

---------

Co-authored-by: Ben Constable <benconstable@microsoft.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2025-02-26 18:34:53 +00:00
Eric Zhu
80891b4841
doc & fix: Enhance AgentInstantiationContext with detailed documentation and examples for agent instantiation; Fix a but that caused value error when the expected class is not provided in register_factory (#5555)
Resolves #5519

Also spotted and fixed a bug that caused value error from `register_factory`, when the `expected_class` was not provided.
2025-02-14 18:19:32 -08:00
peterychang
71a3b238e7
Activate deactivate agents (#4800)
* Instantiate and call activate/deactivate on agents

* autoformatting

* remove activate. Rename deactivate to close

* remove unneeded import

* create close fn in runtime

* change runtime close behavior

* uv.lock

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2025-01-07 21:37:02 +00:00
Jack Gerrits
e6ac2f37fa
Update logged events, add message id to send message (#4868)
* Update logged events

* add message_id

* serialize payload for log

* fix pytest warning

* serialization

* fix test

* lock

* fix warning and test
2024-12-31 15:11:48 -05: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
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
Jack Gerrits
45f16f534b
Fix deprecated usages (#4374) 2024-11-26 16:31:23 -08:00
Eric Zhu
43ccc811e0
Make sure exceptions in process publish is logged. (#3774) 2024-10-13 12:12:24 -07:00
Mohammad Mazraeh
29c23d53af
add a way to provide extra grpc options (#3667)
* rebase and address PR comments

* address PR feedback
2024-10-08 14:46:12 -04:00
Eric Zhu
7ba99186fb
Initial implementation of agentchat (#623)
* WIP implementation for agentchat

* WIP

* WIP

* wip

* WIP

* WIP

* WIP

* WIP

* fix types

* format

* fix build

* Fix build

* use a simpler implementation of thread -- list

* Select speaker to return speaker topic type

* add parent topic type to agent container

* Address comments

* Add check to make sure agent id is constant in a team run.

* Fix build
2024-09-25 23:15:17 +00:00
Jack Gerrits
ab6ba80a98
Update pyright extends for core (#562)
* Update pyright extends for core

* Fixes
2024-09-20 15:51:38 -04:00
Eric Zhu
46ca778423
format (#593) 2024-09-19 20:59:39 +00:00
Eric Zhu
fd021db91c
Fix bug in register_factory for worker runtime (#563) 2024-09-19 02:08:35 +00: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
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
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