Pinaxai is a lightweight library for building Agents with memory, knowledge, tools and reasoning.Developers use Pinaxai to build Reasoning Agents, Multimodal Agents, Teams of Agents and Agentic Workflows. Pinaxai also provides a beautiful UI to chat with your Agents, pre-built FastAPI routes to serve your Agents and tools to monitor and evaluate their performance.Here’s an Agent that writes a report on a stock, reasoning through each step:
reasoning_finance_agent.py
Copy
from pinaxai.agent import Agentfrom pinaxai.models.anthropic import Claudefrom pinaxai.tools.reasoning import ReasoningToolsfrom pinaxai.tools.yfinance import YFinanceToolsagent = Agent( model=Claude(id="claude-3-7-sonnet-latest"), tools=[ ReasoningTools(add_instructions=True), YFinanceTools(stock_price=True, analyst_recommendations=True, company_info=True, company_news=True), ], instructions=[ "Use tables to display data", "Only output the report, no other text", ], markdown=True,)agent.print_response("Write a report on NVDA", stream=True, show_full_reasoning=True, stream_intermediate_steps=True)
Pinaxai is simple, fast and model-agnostic. Here are some key features:
Model Agnostic: Pinaxai Agents can connect to 23+ model providers, no lock-in.
Lightning Fast: Agents instantiate in ~3μs and use ~5Kib memory on average (see performance for more details).
Reasoning is a first class citizen: Make your Agents “think” and “analyze” using Reasoning Models, ReasoningTools or our custom chain-of-thought approach.
Natively Multi-Modal: Pinaxai Agents are natively multi-modal, they can take in text, image, audio and video and generate text, image, audio and video as output.
Advanced Multi-Agent Architecture: Pinaxai provides an industry leading multi-agent architecture (Agent Teams) with 3 different modes: route, collaborate and coordinate.
Agentic Search built-in: Give your Agents the ability to search for information at runtime using one of 20+ vector databases. Get access to state-of-the-art Agentic RAG that uses hybrid search with re-ranking. Fully async and highly performant.
Long-term Memory & Session Storage: Pinaxai provides plug-n-play Storage & Memory drivers that give your Agents long-term memory and session storage.
Structured Outputs: Pinaxai Agents can return fully-typed responses using model provided structured outputs or json_mode.
Pre-built FastAPI Routes: Pinaxai provides pre-built FastAPI routes to serve your Agents, Teams and Workflows.
Monitoring: Monitor agent sessions and performance in real-time on pinax.tech.