Skip to main content

Observation and developer tooling companion package for Agently

Project description

agently-devtools

agently-devtools is the local observation, evaluation, and playground companion package for agently.

Install

pip install -U agently agently-devtools

Python >=3.10

Start

agently-devtools start

Default local address:

  • Console: http://127.0.0.1:15596/
  • Ingest: http://127.0.0.1:15596/observation/ingest

Observation Bridge

import os

from agently import Agently
from agently_devtools import ObservationBridge

bridge = ObservationBridge(
    os.environ["AGENTLY_DEVTOOLS_INGEST_URL"],
    app_id="your_app_id",
    group_id="your_group_id",
)
bridge.register(Agently.event_center)

TriggerFlow executions automatically publish their flow definition, so the execution graph can show the full static structure, including branches that have not been hit yet.

Scenario Evaluations

import os

from agently_devtools import EvaluationBridge, EvaluationCase, EvaluationRunner

bridge = EvaluationBridge(
    base_url=os.environ["AGENTLY_DEVTOOLS_BASE_URL"],
    app_id="your_app_id",
    group_id="your_group_id",
)

binding = bridge.bind_agent(
    agent,
    suite_id="your_suite_id",
    target_name="your_target_name",
)

report = EvaluationRunner(bridge=bridge).run(
    binding,
    cases=[EvaluationCase(case_id="case-1", input="your scenario")],
    rounds=3,
)

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

agently_devtools-0.0.1a0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agently_devtools-0.0.1a0-cp310-cp310-macosx_11_0_arm64.whl (695.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file agently_devtools-0.0.1a0.tar.gz.

File metadata

  • Download URL: agently_devtools-0.0.1a0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.13 Darwin/25.3.0

File hashes

Hashes for agently_devtools-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 e5e9fe8275158f4da0412fd08d34667bb51680ab9e199eb07d6725a6c2a1e66b
MD5 0f70a0d87929ee15553b48c14dc7625f
BLAKE2b-256 a8d5e0e06b30bc40b19fe36e93db46ae2e8e5a30bebe2d6cc4aab00a8521c6c5

See more details on using hashes here.

File details

Details for the file agently_devtools-0.0.1a0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for agently_devtools-0.0.1a0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a151d750c578201d1fb22ef92a63a0de42000b8007ef5b8c80f636cfda0c4435
MD5 8f75462f7e095d088fdec7a3700077af
BLAKE2b-256 f0d50c89f526e15757fbbfd3301786b49d5b4adb64441c057f1ea3b3bec6d4f0

See more details on using hashes here.

Supported by

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