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). e-volv Launch flags are off too, since a Berserker project key has no flags:read; pass flags= to turn them on for a key that does.
  • 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.1

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.1
File Size Uploaded
evolv_agents-0.1.1.tar.gz 8.5 kB Details

Built distribution (wheel)

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

Total release size: 15.6 kB

Release files / evolv_agents-0.1.1.tar.gz

Download URL evolv_agents-0.1.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
83e48bd771dfc7eafeaf524bc64f31984cb136a12bfaf14f93853a472d5a8f3a
BLAKE2b-256 checksum
How to use checksums
a1d4f1c32f8369528c51d4e6c38be3454e2178c7a9368f0c0b50c74bd1b3318e
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.1-py3-none-any.whl

Download URL evolv_agents-0.1.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78f573a893d3b9d37f93eac7b8a4790d1f041e37d4caa98eb7716c3785d214b6
BLAKE2b-256 checksum
How to use checksums
5fc9bc0e82f6f7a442ce0ef3dbef850cddca082d44b137ac72ebcb5e08cc2a12
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

This release

0.1.1 This release

2 release files

0.1.0

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