Manas is a robust and extensible framework that simplifies the creation of LLM-powered applications. With features like intelligent agents, task decomposition, and dynamic workflows, developers can efficiently integrate tools and manage complex tasks, enhancing productivity and innovation in application development.
Manas is a sophisticated Multi-Agent System Framework designed for Large Language Model (LLM) applications, enabling the development of intelligent and interactive applications with ease. Its modular and extensible architecture allows developers to create applications with autonomous agents, integrate various tools, and structure complex tasks into manageable workflows.
A straightforward example of an agent that answers questions:
import os
from core import LLM, Agent
model = LLM.from_provider(
"openai",
model_name="gpt-4",
api_key=os.environ.get("OPENAI_API_KEY")
)
agent = Agent(llm=model, system_prompt="You are a helpful assistant.")
response = agent.generate("What is the capital of France?")
print(response)
Creating a workflow with multiple specialized agents is easy:
from core import Flow
from core.nodes import QANode
model = LLM.from_provider("openai", model_name="gpt-4")
researcher = QANode(name="researcher", llm=model, system_prompt="You are an expert researcher who provides factual information.")
writer = QANode(name="writer", llm=model, system_prompt="You are a skilled writer who creates engaging content.")
flow = Flow()
flow.add_node(researcher)
flow.add_node(writer)
flow.add_edge(researcher, writer)
result = flow.process("Explain quantum computing.")
print(result)
Complete guidance and detailed information are available at the Manas Documentation, covering:
Manas represents an advanced solution for developers looking to leverage the power of LLMs within dynamic, agent-based workflows, streamlining the process of creating intelligent applications.
No comments yet.
Sign in to be the first to comment.