Pre-release
This release is a pre-release and may not be stable for production use.
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.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentneo-0.1.0b2.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentneo-0.1.0b2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.8 kB
Release files / agentneo-0.1.0b2.tar.gz
| Download URL | agentneo-0.1.0b2.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec39c0ca92f8a7c1bb47e3a70073771ce8d930450b258df4216139eca063884f
|
|
BLAKE2b-256 checksum How to use checksums |
66010ea7463d2f33e34ca67fc6e8c43766550b418619744c84a24509b3c55664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / agentneo-0.1.0b2-py3-none-any.whl
| Download URL | agentneo-0.1.0b2-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
482dbb5e3d4f60bc42a9aafa30dfae81b6f4815061629b4299af703fa21404ab
|
|
BLAKE2b-256 checksum How to use checksums |
6843b708c24c37cf649bb6aebbdb00219ec6dd9cb307fa4e44796973c26d9f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|