Skip to main content

A powerful tracing library for monitoring and analyzing AI agents, LLM calls, and tool interactions.

Project description

AgentNeo

Empower Your AI Applications with Unparalleled Observability and Optimization

AgentNeo is an advanced, open-source Agentic AI Application Observability, Monitoring, and Evaluation Framework. Designed to elevate your AI development experience, AgentNeo provides deep insights into your AI agents, Large Language Model (LLM) calls, and tool interactions. By leveraging AgentNeo, you can build more efficient, cost-effective, and high-quality AI-driven solutions.

AgentNeo Dashboard

Whether you're a seasoned AI developer or just starting out, AgentNeo offers robust logging, visualization, and evaluation capabilities to help you debug and optimize your applications with ease.

๐Ÿš€ Key Features

  • Trace LLM Calls: Monitor and analyze LLM calls from various providers like OpenAI and LiteLLM.
  • Trace Agents and Tools: Instrument and monitor your agents and tools to gain deeper insights into their behavior.
  • Monitor Interactions: Keep track of tool and agent interactions to understand system behavior.
  • Detailed Metrics: Collect comprehensive metrics on token usage, costs, and execution time.
  • Flexible Data Storage: Store trace data in SQLite databases and JSON log files for easy access and analysis.
  • Simple Instrumentation: Utilize easy-to-use decorators to instrument your code without hassle.
  • Interactive Dashboard: Visualize trace data and execution graphs in a user-friendly dashboard.
  • Project Management: Manage multiple projects seamlessly within the framework.
  • Execution Graph Visualization: Gain insights into your application's flow with detailed execution graphs.
  • Evaluation Tools: Assess and improve your AI agent's performance with built-in evaluation tools.

๐Ÿ›  Requirements

  • Python: Version 3.8 or higher
  • Node.js: Version 14 or higher
  • npm: Version 6 or higher (or yarn 1.22+ as an alternative)

๐Ÿ“ฆ Installation

Install AgentNeo effortlessly using pip:

pip install agentneo

Install Node.js and npm (or yarn)

The dashboard component requires Node.js and npm/yarn. Follow these steps to install them:

  • Node.js and npm: Visit nodejs.org and download the installer for your operating system.

  • yarn (optional): If you prefer yarn over npm, install it globally after Node.js:

    npm install -g yarn
    

Verify the Installations

Ensure that Node.js and npm/yarn are correctly installed:

node --version
npm --version  # or yarn --version

Note: AgentNeo will attempt to install the necessary React dependencies automatically when you launch the dashboard for the first time.

๐ŸŒŸ Quick Start Guide

Get up and running with AgentNeo in just a few steps!

1. Import the Necessary Components

from agentneo import AgentNeo, Tracer, Evaluation, launch_dashboard

2. Create a Session and Project

neo_session = AgentNeo(session_name="my_session")
neo_session.create_project(project_name="my_project")

3. Initialize the Tracer

tracer = Tracer(session=neo_session, log_file_path="trace.json")
tracer.start()

4. Instrument Your Code

Wrap your functions with AgentNeo's decorators to start tracing:

@tracer.trace_llm("my_llm_call")
async def my_llm_function():
    # Your LLM call here
    pass

@tracer.trace_tool("my_tool")
def my_tool_function():
    # Your tool logic here
    pass

@tracer.trace_agent("my_agent")
def my_agent_function():
    # Your agent logic here
    pass

5. Stop Tracing and Launch the Dashboard

tracer.stop()

launch_dashboard(port=3000)

Access the interactive dashboard by visiting http://localhost:3000 in your web browser.

๐Ÿ”ง Advanced Usage

Project Management

Manage multiple projects with ease.

  • List All Projects

    projects = neo_session.list_projects()
    
  • Connect to an Existing Project

    neo_session.connect_project(project_name="existing_project")
    

Execution Graph Visualization

AgentNeo generates an execution graph that visualizes the flow of your AI application, including LLM calls, tool usage, and agent interactions. Explore this graph in the interactive dashboard to gain deeper insights.

๐Ÿ“Š Dashboard Overview

The AgentNeo dashboard offers a comprehensive view of your AI application's performance:

  • Project Overview
  • System Information
  • LLM Call Statistics
  • Tool and Agent Interaction Metrics
  • Execution Graph Visualization
  • Timeline of Events

Launching the Dashboard

from agentneo import launch_dashboard
launch_dashboard(port=3000)

Note: The first time you launch the dashboard, AgentNeo will install necessary React dependencies. This may take a few moments.

๐Ÿ›ฃ๏ธ Roadmap

We are committed to continuously improving AgentNeo. Here's a glimpse of what's on the horizon:

Feature Status
Local Data Storage Improvements โœ… Completed
Support for Additional LLMs โœ… Completed
Integration with AutoGen ๐Ÿ”„ In Progress
Integration with CrewAI ๐Ÿ”„ In Progress
Integration with Langraph ๐Ÿ”„ In Progress
Comprehensive Logging Enhancements โœ… Completed
Custom Agent Orchestration Support โœ… Completed
Advanced Error Detection Tools ๐Ÿ”„ In Progress
Multi-Agent Framework Visualization โœ… Completed
Performance Bottleneck Identification โœ… Completed
Code Execution Sandbox ๐Ÿ”œ Coming Soon
Prompt Caching for Latency Reduction ๐Ÿ“ Planned
Real-Time Guardrails Implementation ๐Ÿ“ Planned
Open-Source Agentic Apps Integration ๐Ÿ“ Planned
Security Checks and Jailbreak Detection ๐Ÿ“ Planned
Regression Testing Capabilities ๐Ÿ“ Planned
Agent Battleground for A/B Testing ๐Ÿ“ Planned
IDE Plugins Development ๐Ÿ“ Planned

Legend

  • โœ… Completed
  • ๐Ÿ”„ In Progress
  • ๐Ÿ”œ Coming Soon
  • ๐Ÿ“ Planned

๐Ÿ’ก Troubleshooting

Encountering issues? Here are some common solutions:

  1. Node.js and npm Accessibility: Ensure Node.js and npm are installed and accessible from the command line.
  2. Permission Issues: If you face permission errors during dependency installation, try running your script with administrator/root privileges.
  3. Check Error Messages: Review the console output for any error messages related to Node.js, npm, or dependency installations.

๐Ÿ“š Documentation

Dive deeper into AgentNeo's capabilities by visiting our TODO

๐Ÿค Contributing

We warmly welcome contributions from the community! Whether it's reporting bugs, suggesting new features, or improving documentation, your input is invaluable.

  • GitHub Repository: raga-ai-hub/agentneo
  • Contribution Guidelines: Check out our contribution guidelines(TODO) on GitHub to get started.

Join us in making AgentNeo even better!

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

agentneo-1.0.3b0.tar.gz (6.7 MB view details)

Uploaded Source

Built Distribution

agentneo-1.0.3b0-py3-none-any.whl (6.6 MB view details)

Uploaded Python 3

File details

Details for the file agentneo-1.0.3b0.tar.gz.

File metadata

  • Download URL: agentneo-1.0.3b0.tar.gz
  • Upload date:
  • Size: 6.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for agentneo-1.0.3b0.tar.gz
Algorithm Hash digest
SHA256 7ab14931f8ab528c764e96e1147eb2c06af5ae74f639c052b766c049b0964c1f
MD5 cb0413ed1598ef5b03f598c303affb92
BLAKE2b-256 3b4a63bd4508afeb26154f423a57555f7c2ec5a7513e4de7ee047d17bf7359a6

See more details on using hashes here.

File details

Details for the file agentneo-1.0.3b0-py3-none-any.whl.

File metadata

  • Download URL: agentneo-1.0.3b0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for agentneo-1.0.3b0-py3-none-any.whl
Algorithm Hash digest
SHA256 67b8466a705a1cdfc47d330770353d72dbac63c10b18eac76079568c64d82c3b
MD5 eaedd326ff996dde996347c636d331e0
BLAKE2b-256 aea3a690d0c97f49a10be96805194711dab942aeb5905c83af415bd9f0fccba5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page