13 Commits

Author SHA1 Message Date
Jack Gerrits
3d515a734b Rename agnext.core module to agnext.base (#416)
* rename core module to base

* Rename agnext.core to agnext.base
2024-08-28 12:14:35 -04:00
Jack Gerrits
4c964fa772 Implement default sub and topic (#398)
* Implement default sub and topic

* format

* update test
2024-08-23 13:01:57 -07:00
Jack Gerrits
30d1b50c0d Add subscription factory to AgentRuntime.register (#393)
* Add subscriptions to factory

* tests and bug fix
2024-08-22 13:53:35 -07:00
Eric Zhu
ed0890525d Make RunContext internal (#386)
* Make RunContext internal

* Mypy
2024-08-21 13:59:59 -07:00
Jack Gerrits
e1a823fb6d Initial impl of topics and subscriptions (#350)
* initial impl of topics and subscriptions

* Update python/src/agnext/core/_agent_runtime.py

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

* add topic in context

* migrate

* migrate code for topics

* migrate team one

* edit notebooks

* formatting

* fix imports

* Build proto

* Fix circular import

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-08-20 14:41:24 -04:00
Jack Gerrits
1f9d5177d3 Instantiation context refactor (#293)
* WIP refactor instantiation context

* finish up changes

* Update python/src/agnext/core/_agent_runtime.py

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

* Update python/src/agnext/core/_agent_runtime.py

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

* add warning

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-08-02 11:02:45 -04:00
Jack Gerrits
3ba7a48b13 Implement try_get_underlying_agent_instance (#249) 2024-07-23 19:38:37 -04:00
Jack Gerrits
a52d3bab53 Agent factory can be async (#247) 2024-07-23 14:49:38 -04:00
Jack Gerrits
766635394a Update send_message to be a single async operation. Add start helper to runtime to manage this (#165) 2024-07-01 11:53:45 -04:00
Eric Zhu
8308c928cb Add process_until_idle; add tests for cascading scenario. (#136)
* Add process_until_idle; add tests for cascading scenario.

* await publish

* update examples

* update examples

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-06-27 11:46:06 -07:00
Jack Gerrits
6189fdb05c simplify namespace usage (#116)
* simplify namespace usage

* format

* pyright
2024-06-24 16:52:09 -04:00
Jack Gerrits
2d74fa9caf add example of use contextvar (#105) 2024-06-22 14:50:32 -04:00
Jack Gerrits
d365a588cb Move python code to subdir (#98) 2024-06-20 15:19:56 -04:00