Water is a versatile orchestration framework designed to help developers construct complex multi-agent systems without being tied to specific agent frameworks. It supports integration with LangChain, CrewAI, Agno, or any custom agents, simplifying the coordination and scaling of multi-agent workflows.
Water: A Versatile Multi-Agent Orchestration Framework
Water is a robust orchestration framework designed to streamline the creation of complex multi-agent systems. This framework enables developers to avoid dependencies on specific agent frameworks, providing flexibility and adaptability. Whether integrating with popular agent frameworks such as LangChain, CrewAI, or Agno, or even utilizing custom-built agents, Water serves as a reliable orchestration layer to coordinate and scale your multi-agent workflows effectively.
Here's a basic example demonstrating how to set up a flow that adds five to an input value using Water:
import asyncio
from water import Flow, create_task
from pydantic import BaseModel
class NumberInput(BaseModel):
value: int
class NumberOutput(BaseModel):
result: int
def add_five(params, context):
return {"result": params["input_data"]["value"] + 5}
math_task = create_task(
id="math_task",
description="Math task",
input_schema=NumberInput,
output_schema=NumberOutput,
execute=add_five
)
flow = Flow(id="my_flow", description="My flow").then(math_task).register()
async def main():
result = await flow.run({"value": 10})
print(result)
if __name__ == "__main__":
asyncio.run(main())
Contributions from the community are encouraged and greatly appreciated! Ways to contribute include:
Future developments for Water include:
Water is an excellent choice for those looking to build scalable and efficient multi-agent systems with a high degree of flexibility.
No comments yet.
Sign in to be the first to comment.