Skip to main content

AgentNeo

To install the package

pip install agentneo -U

Authentication

Creates an authenticated session with AgentNeo

from agentneo import AgentNeo

To authenticate

agent_session = AgentNeo(
    access_key=ACCESS_KEY,
    secret_key=SECRET_KEY,
    base_url=BASE_URL
)

Project Management

Allows listing and creating projects

from agentneo import Project

# To list the available projects
Project.list_projects(session=agent_session)

# To create a new project
project = Project(session=agent_session, 
                  project_name="project_name", 
                  description="Project Description").create()

Trace Management

Enables tracing of agents, methods, and LangGraph graphs

from agentneo import Trace

# Create a tracer object
tracer = Tracer(session=agent_session)

# Decorator to trace agents & methods
@tracer.trace_node

# Decorator to trace Langgraph graphs
@tracer.trace_graph

# To add callbacks to LLMs
openai_llm = ChatOpenAI(other_parameters, 
                        ... , 
                        callbacks=[tracer.get_callback_handler()])
                        
# To upload the recorded traces
trace_id = tracer.upload_trace()

Dataset Management

Allows creation and management of datasets

from agentneo import Dataset

# To list the available Datasets
Dataset.list_datasets(session=agent_session)

# To define a new dataset
dataset = Dataset(
    session=agent_session,
    project_id=project_id, 
    dataset_name="test_dataset1", 
    description="A test dataset"
)

# Create dataset from recorded trace
dataset_traced = dataset.from_trace(trace_id=tracer.id, trace_filter=None)

# Create dataset from json dataset
dataset_json = dataset.from_json(json_filepath=filepath, 
                                 schema={"key": "value"})

Experiment Management

Allows creation, execution, and analysis of experiments

from agentneo import Experiment

# To list the available experiments
Experiment.list_experiments(session=agent_session)

# Create a new experiment 
experiment_object = Experiment(
        session=agent_session,
        experiment_name="ExperimentName",
        description="Sample Description",
        dataset_id=dataset_traced['id'],
        project_id=project_id
    )

experiment_created = experiment_object.create()

# To run a metric
exp = experiment.execute(metrics=[
    {
            "name": "goal_fulfillment_rate", 
            "config": {
                    "model": "gpt-4o-mini", 
                    "OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY")
            }
    }
])

# To run multiple metrics together
exp = experiment.execute(metrics=[
    {
            "name": "summarise", 
            "config": {}
    },
    {
            "name": "tool_correctness", 
            "config": {
                    "model": "gpt-4o-mini", 
                    "OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY")
            }
    },
    {
            "name": "tool_call_success_rate", 
            "config": {
                    "model": "gpt-4o-mini", 
                    "OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY")
            }
    },
    {
            "name": "goal_fulfillment_rate", 
            "config": {
                    "model": "gpt-4o-mini", 
                    "OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY")
            }
    }
])

# To get the results of the experiments run
experiment.get_results(exp.id)

Metadata

Release files for agentneo 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentneo 0.1.3
File Size Uploaded Provenance Actions
agentneo-0.1.3.tar.gz 16.8 kB Without provenance Details for agentneo-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentneo 0.1.3
File Interpreter ABI Platform Actions
agentneo-0.1.3-py3-none-any.whl Python 3 none any Details for agentneo-0.1.3-py3-none-any.whl

Total release size: 34.0 kB

Release files / agentneo-0.1.3.tar.gz

Download URL agentneo-0.1.3.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d423ef03649dfe841a1d705701ec3c4fd7eb7fec60b3b1fd4023ef8e2bad44b9
BLAKE2b-256 checksum
How to use checksums
c4151fdfe42d5634a49083e1848c025a5e492f5df1fd60295958191e4094aead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / agentneo-0.1.3-py3-none-any.whl

Download URL agentneo-0.1.3-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4ee66888f45e232f821404315cbb1fa9c6fc1b1d4b3d982a68ea6f8c5842399
BLAKE2b-256 checksum
How to use checksums
f3e29b377c9f2935ba0285830a7ce3c5e3ec5ab5c7dae8ef075975c5e81b5898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for agentneo 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page