Bumps the production-dependencies group with 4 updates in the /autogpt_platform/autogpt_libs directory: [pydantic](https://github.com/pydantic/pydantic), [pydantic-settings](https://github.com/pydantic/pydantic-settings), [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) and [supabase](https://github.com/supabase/supabase-py). Updates `pydantic` from 2.10.3 to 2.10.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/releases">pydantic's releases</a>.</em></p> <blockquote> <h2>v2.10.4 2024-12-18</h2> <h2>What's Changed</h2> <h3>Packaging</h3> <ul> <li>Bump <code>pydantic-core</code> to v2.27.2 by <a href="https://github.com/davidhewitt"><code>@davidhewitt</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11138">#11138</a></li> </ul> <h3>Fixes</h3> <ul> <li>Fix for comparison of <code>AnyUrl</code> objects by <a href="https://github.com/alexprabhat99"><code>@alexprabhat99</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11082">#11082</a></li> <li>Properly fetch PEP 695 type params for functions, do not fetch annotations from signature by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11093">#11093</a></li> <li>Include JSON Schema input core schema in function schemas by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11085">#11085</a></li> <li>Add <code>len</code> to <code>_BaseUrl</code> to avoid TypeError by <a href="https://github.com/Kharianne"><code>@Kharianne</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11111">#11111</a></li> <li>Make sure the type reference is removed from the seen references by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11143">#11143</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/alexprabhat99"><code>@alexprabhat99</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/11082">#11082</a></li> <li><a href="https://github.com/Kharianne"><code>@Kharianne</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/11111">#11111</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/pydantic/compare/v2.10.3...v2.10.4">https://github.com/pydantic/pydantic/compare/v2.10.3...v2.10.4</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/blob/main/HISTORY.md">pydantic's changelog</a>.</em></p> <blockquote> <h2>v2.10.5 (2025-01-08)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.10.5">GitHub release</a></p> <h3>What's Changed</h3> <ul> <li>Remove custom MRO implementation of Pydantic models by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11184">#11184</a></li> <li>Fix URL serialization for unions by <a href="https://github.com/sydney-runkle"><code>@sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11233">#11233</a></li> </ul> <h2>v2.10.4 (2024-12-18)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.10.4">GitHub release</a></p> <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>Bump <code>pydantic-core</code> to v2.27.2 by <a href="https://github.com/davidhewitt"><code>@davidhewitt</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11138">#11138</a></li> </ul> <h4>Fixes</h4> <ul> <li>Fix for comparison of <code>AnyUrl</code> objects by <a href="https://github.com/alexprabhat99"><code>@alexprabhat99</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11082">#11082</a></li> <li>Properly fetch PEP 695 type params for functions, do not fetch annotations from signature by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11093">#11093</a></li> <li>Include JSON Schema input core schema in function schemas by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11085">#11085</a></li> <li>Add <code>len</code> to <code>_BaseUrl</code> to avoid TypeError by <a href="https://github.com/Kharianne"><code>@Kharianne</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11111">#11111</a></li> <li>Make sure the type reference is removed from the seen references by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11143">#11143</a></li> </ul> <h3>New Contributors</h3> <ul> <li><a href="https://github.com/FyZzyss"><code>@FyZzyss</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/10789">#10789</a></li> <li><a href="https://github.com/tamird"><code>@tamird</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/10948">#10948</a></li> <li><a href="https://github.com/felixxm"><code>@felixxm</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/11077">#11077</a></li> <li><a href="https://github.com/alexprabhat99"><code>@alexprabhat99</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/11082">#11082</a></li> <li><a href="https://github.com/Kharianne"><code>@Kharianne</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/11111">#11111</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="5d34efda82"><code>5d34efd</code></a> Prepare release v2.10.5 (<a href="https://redirect.github.com/pydantic/pydantic/issues/11237">#11237</a>)</li> <li><a href="6e585f925e"><code>6e585f9</code></a> Fix url serialization for unions (<a href="https://redirect.github.com/pydantic/pydantic/issues/11233">#11233</a>)</li> <li><a href="5a22e02608"><code>5a22e02</code></a> Remove custom MRO implementation of Pydantic models (<a href="https://redirect.github.com/pydantic/pydantic/issues/11195">#11195</a>)</li> <li><a href="5bd3a6507b"><code>5bd3a65</code></a> fix history.md</li> <li><a href="46f094569a"><code>46f0945</code></a> Prepare for v2.10.4 (<a href="https://redirect.github.com/pydantic/pydantic/issues/11144">#11144</a>)</li> <li><a href="ea69e695f2"><code>ea69e69</code></a> Make sure the type reference is removed from the seen references (<a href="https://redirect.github.com/pydantic/pydantic/issues/11145">#11145</a>)</li> <li><a href="a07c31e4a4"><code>a07c31e</code></a> Include JSON Schema input core schema in function schemas (<a href="https://redirect.github.com/pydantic/pydantic/issues/11142">#11142</a>)</li> <li><a href="9166d55163"><code>9166d55</code></a> Update <code>WithJsonSchema</code> documentation, add usage documentation for `json_sche...</li> <li><a href="572f57de01"><code>572f57d</code></a> Rewrite validators documentation (<a href="https://redirect.github.com/pydantic/pydantic/issues/11060">#11060</a>)</li> <li><a href="9faa8d9cbd"><code>9faa8d9</code></a> Fix for comaparison of AnyUrl objects (<a href="https://redirect.github.com/pydantic/pydantic/issues/11082">#11082</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pydantic/pydantic/compare/v2.10.3...v2.10.5">compare view</a></li> </ul> </details> <br /> Updates `pydantic-settings` from 2.7.0 to 2.7.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic-settings/releases">pydantic-settings's releases</a>.</em></p> <blockquote> <h2>v2.7.1</h2> <h2>What's Changed</h2> <ul> <li>Move preferred alias resolution to private method by <a href="https://github.com/kschwab"><code>@kschwab</code></a> in <a href="https://redirect.github.com/pydantic/pydantic-settings/pull/507">pydantic/pydantic-settings#507</a></li> <li>Prepare release 2.7.1 by <a href="https://github.com/hramezani"><code>@hramezani</code></a> in <a href="https://redirect.github.com/pydantic/pydantic-settings/pull/511">pydantic/pydantic-settings#511</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/pydantic-settings/compare/v2.7.0...v2.7.1">https://github.com/pydantic/pydantic-settings/compare/v2.7.0...v2.7.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="c989335d26"><code>c989335</code></a> Prepare release 2.7.1 (<a href="https://redirect.github.com/pydantic/pydantic-settings/issues/511">#511</a>)</li> <li><a href="66ecc3adec"><code>66ecc3a</code></a> Move preferred alias resolution to private method (<a href="https://redirect.github.com/pydantic/pydantic-settings/issues/507">#507</a>)</li> <li>See full diff in <a href="https://github.com/pydantic/pydantic-settings/compare/v2.7.0...v2.7.1">compare view</a></li> </ul> </details> <br /> Updates `pytest-asyncio` from 0.25.0 to 0.25.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pytest-asyncio/releases">pytest-asyncio's releases</a>.</em></p> <blockquote> <h2>pytest-asyncio 0.25.2</h2> <ul> <li>Call <code>loop.shutdown_asyncgens()</code> before closing the event loop to ensure async generators are closed in the same manner as <code>asyncio.run</code> does <a href="https://redirect.github.com/pytest-dev/pytest-asyncio/pull/1034">#1034</a></li> </ul> <h2>pytest-asyncio 0.25.1</h2> <ul> <li>Fixes an issue that caused a broken event loop when a function-scoped test was executed in between two tests with wider loop scope <a href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/950">#950</a></li> <li>Improves test collection speed in auto mode <a href="https://redirect.github.com/pytest-dev/pytest-asyncio/pull/1020">#1020</a></li> <li>Corrects the warning that is emitted upon redefining the event_loop fixture</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="2188cdbbf7"><code>2188cdb</code></a> build: Prepare release of v0.25.2.</li> <li><a href="c3ad6340b8"><code>c3ad634</code></a> fix: Shutdown generators before closing event loops.</li> <li><a href="e8ffb10528"><code>e8ffb10</code></a> [pre-commit.ci] pre-commit autoupdate</li> <li><a href="aae43d4f76"><code>aae43d4</code></a> Build(deps): Bump hypothesis in /dependencies/default</li> <li><a href="941e8b5104"><code>941e8b5</code></a> Build(deps): Bump pygments from 2.18.0 to 2.19.1 in /dependencies/docs</li> <li><a href="623ab74b80"><code>623ab74</code></a> docs: Prepare release of v0.25.1.</li> <li><a href="c236550e73"><code>c236550</code></a> docs: Fix broken link to the pytest.mark.asyncio reference.</li> <li><a href="41c645b3b7"><code>41c645b</code></a> fix: Correct warning message when redefining the event_loop fixture.</li> <li><a href="2fd10f8243"><code>2fd10f8</code></a> docs: Clarify deprecation of event_loop fixture.</li> <li><a href="a4e82ab25b"><code>a4e82ab</code></a> docs: Added changelog entry for <a href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1020">#1020</a>.</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest-asyncio/compare/v0.25.0...v0.25.2">compare view</a></li> </ul> </details> <br /> Updates `supabase` from 2.10.0 to 2.11.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/supabase/supabase-py/releases">supabase's releases</a>.</em></p> <blockquote> <h2>v2.11.0</h2> <h2><a href="https://github.com/supabase/supabase-py/compare/v2.10.0...v2.11.0">2.11.0</a> (2024-12-30)</h2> <h3>Features</h3> <ul> <li><strong>auth:</strong> bump gotrue from 2.11.0 to 2.11.1 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1021">#1021</a>) (<a href="17e8a662de">17e8a66</a>)</li> <li><strong>functions:</strong> bump supafunc from 0.8.0 to 0.9.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1008">#1008</a>) (<a href="19ab5df525">19ab5df</a>)</li> <li><strong>postgrest:</strong> bump postgrest from 0.19.0 to 0.19.1 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1022">#1022</a>) (<a href="9a8b72fe3d">9a8b72f</a>)</li> <li><strong>realtime:</strong> bump realtime from 2.0.6 to 2.1.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1019">#1019</a>) (<a href="f251d520af">f251d52</a>)</li> <li><strong>storage:</strong> bump storage3 from 0.10.0 to 0.11.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1020">#1020</a>) (<a href="fb7a7e1257">fb7a7e1</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>remove project reference (<a href="https://redirect.github.com/supabase/supabase-py/issues/999">#999</a>) (<a href="e126d04d26">e126d04</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/supabase/supabase-py/blob/main/CHANGELOG.md">supabase's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/supabase/supabase-py/compare/v2.10.0...v2.11.0">2.11.0</a> (2024-12-30)</h2> <h3>Features</h3> <ul> <li><strong>auth:</strong> bump gotrue from 2.10.0 to 2.11.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1005">#1005</a>) (<a href="721de30e5b">721de30</a>)</li> <li><strong>auth:</strong> bump gotrue from 2.11.0 to 2.11.1 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1021">#1021</a>) (<a href="17e8a662de">17e8a66</a>)</li> <li><strong>functions:</strong> bump supafunc from 0.7.0 to 0.8.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1006">#1006</a>) (<a href="bfc4a5c1e3">bfc4a5c</a>)</li> <li><strong>functions:</strong> bump supafunc from 0.8.0 to 0.9.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1008">#1008</a>) (<a href="19ab5df525">19ab5df</a>)</li> <li><strong>postgrest:</strong> bump postgrest from 0.18.0 to 0.19.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1004">#1004</a>) (<a href="d7861b0c4d">d7861b0</a>)</li> <li><strong>postgrest:</strong> bump postgrest from 0.19.0 to 0.19.1 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1022">#1022</a>) (<a href="9a8b72fe3d">9a8b72f</a>)</li> <li><strong>realtime:</strong> bump realtime from 2.0.6 to 2.1.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1019">#1019</a>) (<a href="f251d520af">f251d52</a>)</li> <li><strong>storage:</strong> bump storage3 from 0.10.0 to 0.11.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1020">#1020</a>) (<a href="fb7a7e1257">fb7a7e1</a>)</li> <li><strong>storage:</strong> bump storage3 from 0.9.0 to 0.10.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1003">#1003</a>) (<a href="718edc3892">718edc3</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>remove project reference (<a href="https://redirect.github.com/supabase/supabase-py/issues/999">#999</a>) (<a href="e126d04d26">e126d04</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="6fed6d64a1"><code>6fed6d6</code></a> chore(main): release 2.11.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1000">#1000</a>)</li> <li><a href="9a8b72fe3d"><code>9a8b72f</code></a> feat(postgrest): bump postgrest from 0.19.0 to 0.19.1 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1022">#1022</a>)</li> <li><a href="17e8a662de"><code>17e8a66</code></a> feat(auth): bump gotrue from 2.11.0 to 2.11.1 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1021">#1021</a>)</li> <li><a href="fb7a7e1257"><code>fb7a7e1</code></a> feat(storage): bump storage3 from 0.10.0 to 0.11.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1020">#1020</a>)</li> <li><a href="f251d520af"><code>f251d52</code></a> feat(realtime): bump realtime from 2.0.6 to 2.1.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1019">#1019</a>)</li> <li><a href="616bc21629"><code>616bc21</code></a> chore(deps-dev): bump jinja2 from 3.1.4 to 3.1.5 in the pip group across 1 di...</li> <li><a href="4f68eee25b"><code>4f68eee</code></a> chore: Add Coveralls to CI (<a href="https://redirect.github.com/supabase/supabase-py/issues/1018">#1018</a>)</li> <li><a href="7ecf6b62c7"><code>7ecf6b6</code></a> chore(deps-dev): bump pytest-asyncio from 0.24.0 to 0.25.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1014">#1014</a>)</li> <li><a href="3fa4814937"><code>3fa4814</code></a> chore: update httpx (<a href="https://redirect.github.com/supabase/supabase-py/issues/1013">#1013</a>)</li> <li><a href="c81ffbaac5"><code>c81ffba</code></a> chore(deps-dev): bump commitizen from 4.0.0 to 4.1.0 (<a href="https://redirect.github.com/supabase/supabase-py/issues/1012">#1012</a>)</li> <li>Additional commits viewable in <a href="https://github.com/supabase/supabase-py/compare/v2.10.0...v2.11.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nicholas Tindle <nicholas.tindle@agpt.co>
AutoGPT Agent Server
This is an initial project for creating the next generation of agent execution, which is an AutoGPT agent server. The agent server will enable the creation of composite multi-agent systems that utilize AutoGPT agents and other non-agent components as its primitives.
Docs
You can access the docs for the AutoGPT Agent Server here.
Setup
We use the Poetry to manage the dependencies. To set up the project, follow these steps inside this directory:
-
Install Poetry
pip install poetry -
Configure Poetry to use .venv in your project directory
poetry config virtualenvs.in-project true -
Enter the poetry shell
poetry shell -
Install dependencies
poetry install -
Copy .env.example to .env
cp .env.example .env -
Generate the Prisma client
poetry run prisma generateIn case Prisma generates the client for the global Python installation instead of the virtual environment, the current mitigation is to just uninstall the global Prisma package:
pip uninstall prismaThen run the generation again. The path should look something like this:
<some path>/pypoetry/virtualenvs/backend-TQIRSwR6-py3.12/bin/prisma -
Migrate the database. Be careful because this deletes current data in the database.
docker compose up db -d poetry run prisma migrate deploy
Running The Server
Starting the server without Docker
Run the following command to run database in docker but the application locally:
docker compose --profile local up deps --build --detach
poetry run app
Starting the server with Docker
Run the following command to build the dockerfiles:
docker compose build
Run the following command to run the app:
docker compose up
Run the following to automatically rebuild when code changes, in another terminal:
docker compose watch
Run the following command to shut down:
docker compose down
If you run into issues with dangling orphans, try:
docker compose down --volumes --remove-orphans && docker-compose up --force-recreate --renew-anon-volumes --remove-orphans
Testing
To run the tests:
poetry run test
Development
Formatting & Linting
Auto formatter and linter are set up in the project. To run them:
Install:
poetry install --with dev
Format the code:
poetry run format
Lint the code:
poetry run lint
Project Outline
The current project has the following main modules:
blocks
This module stores all the Agent Blocks, which are reusable components to build a graph that represents the agent's behavior.
data
This module stores the logical model that is persisted in the database. It abstracts the database operations into functions that can be called by the service layer. Any code that interacts with Prisma objects or the database should reside in this module. The main models are:
block: anything related to the block used in the graphexecution: anything related to the execution graph executiongraph: anything related to the graph, node, and its relations
execution
This module stores the business logic of executing the graph. It currently has the following main modules:
manager: A service that consumes the queue of the graph execution and executes the graph. It contains both pieces of logic.scheduler: A service that triggers scheduled graph execution based on a cron expression. It pushes an execution request to the manager.
server
This module stores the logic for the server API.
It contains all the logic used for the API that allows the client to create, execute, and monitor the graph and its execution.
This API service interacts with other services like those defined in manager and scheduler.
utils
This module stores utility functions that are used across the project. Currently, it has two main modules:
process: A module that contains the logic to spawn a new process.service: A module that serves as a parent class for all the services in the project.
Service Communication
Currently, there are only 3 active services:
- AgentServer (the API, defined in
server.py) - ExecutionManager (the executor, defined in
manager.py) - ExecutionScheduler (the scheduler, defined in
scheduler.py)
The services run in independent Python processes and communicate through an IPC.
A communication layer (service.py) is created to decouple the communication library from the implementation.
Currently, the IPC is done using Pyro5 and abstracted in a way that allows a function decorated with @expose to be called from a different process.
By default the daemons run on the following ports:
Execution Manager Daemon: 8002 Execution Scheduler Daemon: 8003 Rest Server Daemon: 8004
Adding a New Agent Block
To add a new agent block, you need to create a new class that inherits from Block and provides the following information:
- All the block code should live in the
blocks(backend.blocks) module. input_schema: the schema of the input data, represented by a Pydantic object.output_schema: the schema of the output data, represented by a Pydantic object.runmethod: the main logic of the block.test_input&test_output: the sample input and output data for the block, which will be used to auto-test the block.- You can mock the functions declared in the block using the
test_mockfield for your unit tests. - Once you finish creating the block, you can test it by running
poetry run pytest -s test/block/test_block.py.