What My Project Does
Coagent is an open-source framework for building monolithic or distributed agentic systems, ranging from simple LLM calls to compositional workflows and autonomous agents.
Target Audience
Anyone who wants to build LLM-based applications or agentic systems.
Comparison
While there're already many other agent frameworks, Coagent has some unique advantages:
Quick Example
import os from coagent.agents import ChatAgent, ChatMessage, ModelClient from coagent.core import AgentSpec, new from coagent.runtimes import LocalRuntime translator = AgentSpec( "translator", new( ChatAgent, system="You are a professional translator that can translate English to Chinese.", client=ModelClient(model="openai/gpt-4o", api_key=os.getenv("OPENAI_API_KEY")), ), ) async def main(): async with LocalRuntime() as runtime: await runtime.register(translator) result = await translator.run( ChatMessage(role="user", content="Hello, world!").encode(), stream=True, ) async for chunk in result: msg = ChatMessage.decode(chunk) print(msg.content, end="", flush=True)
For details, see OpenCSGs/coagent.
There are no models linked
There are no models linked
There are no datasets linked
There are no datasets linked