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
..
2024-08-19 20:32:34 +00:00
2024-08-01 21:07:43 +00:00

AGNext

Package layering

  • core are the the foundational generic interfaces upon which all else is built. This module must not depend on any other module.
  • application are implementations of core components that are used to compose an application.
  • components are the building blocks for creating agents.

Development

TL;DR, run all checks with:

hatch run check

Setup

Virtual environment

To get a shell with the package available (virtual environment), in the current directory, run:

hatch shell

Common tasks

  • Format: hatch run check
  • Lint: hatch run lint
  • Test: hatch run pytest -n auto
  • Mypy: hatch run mypy
  • Pyright: hatch run pyright
  • Build docs: hatch run docs:build
  • Auto rebuild+serve docs: hatch run docs:serve

Note

These don't need to be run in a virtual environment, hatch will automatically manage it for you.

IntelliJ Support

To enable the hatch virtual environment in IntelliJ, follow these steps: Under the [tool.hatch.envs.default] heading in pyproject.toml, add this:

[tool.hatch.envs.default]
type = "virtual"
path = ".venv"

Run hatch shell in the terminal to create the virtual environment.

Then, in IntelliJ, go to File -> Project Structure -> Project Settings -> Project -> Project SDK and select the Python interpreter in the .venv directory.

Once complete, your IDE should be able to resolve, run, and debug code.