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.2.tar.gz (953.4 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.2-py3-none-any.whl (467.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kodosumi-0.8.2.tar.gz
  • Upload date:
  • Size: 953.4 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.2.tar.gz
Algorithm Hash digest
SHA256 7c5945925c2815de59b62ede253454ca647779eaa799b33bf4ca59727c7f808f
MD5 5a16e7a653b3ccc3b49f0e7aa509a666
BLAKE2b-256 389ba86c9ef8c19881dd701d57b2edf07bd8e556ab38a169f01d2572837b5d8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kodosumi-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 467.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16cd367e9eea307639c81e244b488277459e12f745b12c53682d5b3eb8c87043
MD5 5f30545441de2a71f22fd40049414521
BLAKE2b-256 f31e5d3c9251c6e0dc15d470cb2c74ea26707f179e48c16d77c3b5112bd37a9f

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