Skip to main content

kodosumi framework to execute and orchestrate agentic services safe and at scale

Project description

>kodosumi

[!NOTE]

This is an early development version of kodosumi. The documentation is under development, too. See the key concepts.

kodosumi is a runtime environment to manage and execute agentic services at scale. The system is based on ray - a distributed computing framework - and a combination of litestar and fastapi to deliver men/machine interaction.

kodosumi is one component of a larger ecosystem with masumi and sokosumi.

introduction

kodosumi consists of three main building blocks:

  1. The Ray cluster to execute agentic services at scale.
  2. The kodosumi web interface and API services.
  3. Agentic Services delivered through kodosumi and executed through Ray.

installation

This installation has been tested with versions ray==2.44.1 and python==3.12.6.

STEP 1 - clone and install kodosumi.

pip install kodosumi

STEP 2 - start ray as a daemon.

ray start --head

Check ray status with ray status and visit ray dashboard at http://localhost:8265. For more information about ray visit ray's documentation.

STEP 3 - prepare environment

To use openai API you need to create a local file .env to define the following API keys:

OPENAI_API_KEY=...
EXA_API_KEY=...
SERPER_API_KEY=...

STEP 4 - deploy example apps with ray serve

Deploy the example services available in folder ./apps. Use file apps/config.yaml.

serve deploy apps/config.yaml

Please be patient if the Ray serve applications take a while to setup, install and deploy. Follow the deployment process with the Ray dashboard at http://localhost:8265/#/serve. On my laptop initial deployment takes three to four minutes.

STEP 5 - start kodosumi

Finally start the kodosumi components and register ray endpoints available at http://localhost:8001/-/routes.

koco start --register http://localhost:8001/-/routes

STEP 6 - Look around

Visit kodosumi admin panel at http://localhost:3370. The default user is defined in config.py and reads name=admin and password=admin. If one or more Ray serve applications are not yet available when kodosumi starts, you need to refresh the list of registered flows. Visit Routes Screen at (http://localhost:3370/admin/routes in the Admin Panel at http://localhost:3370/admin/flow. See also the OpenAPI documents with Swagger http://localhost:3370/schema/swagger.

If all went well, then you see a couple of test services. Be aware you need some OpenAPI, Exa and Serper API keys if you want to use all Agentic Services.

Stop the kodosumi services and spooler by hitting CNTRL+C in the corresponding terminal. Stop Ray serve with serve shutdown --yes. Stop the ray daemon with command ray stop.

development notes

The development notes provide an overview for various flavours on how to run and deploy agentic services.

Follow the examples:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kodosumi-0.8.4.tar.gz (955.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kodosumi-0.8.4-py3-none-any.whl (468.1 kB view details)

Uploaded Python 3

File details

Details for the file kodosumi-0.8.4.tar.gz.

File metadata

  • Download URL: kodosumi-0.8.4.tar.gz
  • Upload date:
  • Size: 955.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for kodosumi-0.8.4.tar.gz
Algorithm Hash digest
SHA256 7407f8029df92396e286eb22c720f125d27183e2cbb61f5bc9feaef42c660f73
MD5 5bd3d4dcb0bdeca761849b07b6e53c7b
BLAKE2b-256 68c0146a3700d6bfde7173401513d695489bf9a0383534f9f582dea74b945bb1

See more details on using hashes here.

File details

Details for the file kodosumi-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: kodosumi-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 468.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for kodosumi-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0c0d36acbdd21d8576ab1690af38d0f80edceab55a7dfb07725b1969d4566210
MD5 a9e467f42a0bc0505222f2628a00bc56
BLAKE2b-256 1870c44c9cb1adbc28cccf0b75666c6506b36a0bff5bd82f676b07e4fda53ee9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page