Skip to main content

A lightweight Python package for creating agents on Langchain for Agentic platforms

Project description

A lightweight framework to create agents based on the LangChain BaseModel interface.

The idea is to make it easy to a multi-agent platform.

Usage

Basic Example

(TODO)

Complex Journal Multi-Agent Platform

(TODO)

Philosophy

I went with three guiding principles in writing this model.

  1. Everything is an agent: tools, buses, orchestrators are all agents.
  2. Final code should show the flow: You should be able scale while being able to see how agents connect to each other. This means that each agent relationship should be at most one line of code.
  3. Agents are minimal building blocks: one prompt per agent, one vector store per agent, one model per agent.

Deployment

The mode of deployment is as follows: Make sure that there is a model and an API, based on the BaseModelin LangChain. Put all agents in the same piece of code. Run this code on a loop - the loop can also be an "orchestrator" agent.

Note that you can also host the model on the same pod / instance / computer as the agents. This is how I (the author) tested it.

Development

Requirements

Just Docker. If you want to develop, you can use the .devcontainer on VS Code, you don't need to install anything.

This works with VS Code, however, if you want to use another IDE, you can also use the Dockerfile.dev to create your development environment.

Testing

Run:

docker-compose run --rm --build test

Contributing

  1. Branch out
  2. Add new code.
  3. Add tests.
  4. Push.
  5. Make a pull request.

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

agents_on_langchain-0.1.0.dev202502010505.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file agents_on_langchain-0.1.0.dev202502010505.tar.gz.

File metadata

File hashes

Hashes for agents_on_langchain-0.1.0.dev202502010505.tar.gz
Algorithm Hash digest
SHA256 d8b74983c3c0ee8a58cdfc8c6e4f1be31a0b94fb1b7866fee762288576b6e704
MD5 5c6a63c38bd4663f0ad0e96185057aa5
BLAKE2b-256 314e6ea209deb7f0a2c6e7ce9a7ef87499c4bb07d19eb88af6dba09fc7873b02

See more details on using hashes here.

File details

Details for the file agents_on_langchain-0.1.0.dev202502010505-py3-none-any.whl.

File metadata

File hashes

Hashes for agents_on_langchain-0.1.0.dev202502010505-py3-none-any.whl
Algorithm Hash digest
SHA256 ec78a656ea0a1bc5401fe33fcc52801c2afe3336c482b08f1795aeb2019d1853
MD5 c02caccd08ca7d60e2c7987623b66c49
BLAKE2b-256 69cec1bc2e8f39e7da42e4e602035ef2c280901eb01d078190401b9141e26fb8

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