Skip to main content

evolv-agents

Agent runs as e-volv Observer reads them. Every model call, tool call and agent run becomes a span with the OpenTelemetry GenAI attributes, sent through the e-volv-logs SDK you already have, so Observer's Agents pages show each run with its tokens, cost, session and prompt version.

pip install evolv-agents
import evolv_agents as agents
from openai import OpenAI

agents.init(key=os.environ["EVOLVE_LOGS_KEY"],
            url="https://api.e-volv.io/api/public/v1/logs", service="support-bot")
client = agents.instrument_openai(OpenAI())

with agents.session(thread_id, user=user_id), agents.agent("triage"):
    res = client.chat.completions.create(model="gpt-5-mini", messages=messages)
    with agents.tool("read_ticket"):
        ticket = tickets.read(ticket_id)

What it gives you

  • init(content=False, **e_volv_logs_options): content=True records prompts, completions, tool arguments and results (off by default).
  • agent(name, agent_id=, provider=, model=): the run, as a context manager.
  • chat(model, provider=): one model call; call c.usage(input=, output=, cache_read=, cache_write=, response_model=) inside.
  • tool(name): one tool call.
  • session(session_id, user=) and prompt(name, version): tag every span inside.
  • instrument_openai(client), instrument_anthropic(client): wrap the client in place; chat completions, the Responses API and messages, streams included.
  • trace_mcp(session, server_name): every call_tool is a tool span.

Already on OpenTelemetry? You do not need this package: point your exporter at https://api.e-volv.io/api/public/v1/logs/otlp/v1/traces with the ingest key as Authorization and Observer reads the GenAI spans directly.

Metadata

Release files for evolv-agents 0.1.0

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

Source distribution (sdist)

Source distribution for evolv-agents 0.1.0
File Size Uploaded
evolv_agents-0.1.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for evolv-agents 0.1.0
File Interpreter ABI Platform
evolv_agents-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / evolv_agents-0.1.0.tar.gz

Download URL evolv_agents-0.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
192058987dae328858f627e8c30b467d5f984522932a66178f1d86e8a22f2f3c
BLAKE2b-256 checksum
How to use checksums
f97db831bf409623754fa4367eb84e0cb3a8de11f05cfff13d176f3ac9fe2f61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / evolv_agents-0.1.0-py3-none-any.whl

Download URL evolv_agents-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd87fa6528110b9de3e431546aa04f5b7401d0388314fd8cd2defb0ea9c0e02d
BLAKE2b-256 checksum
How to use checksums
dcbe404ab96b933e0be488c15a05fd430578c4e1c063661cdc7ebc2d6f2094d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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