Skip to main content

Galileo Luna2 evaluator for agent-control

Project description

Agent Control Evaluator - Galileo

Galileo Luna2 evaluator for agent-control.

Installation

pip install agent-control-evaluator-galileo

Or via the convenience extra from the main evaluators package:

pip install agent-control-evaluators[galileo]

Available Evaluators

Name Description
galileo.luna2 Galileo Luna-2 runtime protection

Configuration

Set the GALILEO_API_KEY environment variable:

export GALILEO_API_KEY=your-api-key

Usage

Once installed, the evaluator is automatically discovered:

from agent_control_evaluators import discover_evaluators, get_evaluator

discover_evaluators()
Luna2Evaluator = get_evaluator("galileo.luna2")

Or import directly:

from agent_control_evaluator_galileo.luna2 import Luna2Evaluator, Luna2EvaluatorConfig

config = Luna2EvaluatorConfig(
    stage_type="local",
    metric="input_toxicity",
    operator="gt",
    target_value=0.5,
    galileo_project="my-project",
)

evaluator = Luna2Evaluator(config)
result = await evaluator.evaluate("some text")

Documentation

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

agent_control_evaluator_galileo-6.6.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

agent_control_evaluator_galileo-6.6.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file agent_control_evaluator_galileo-6.6.0.tar.gz.

File metadata

File hashes

Hashes for agent_control_evaluator_galileo-6.6.0.tar.gz
Algorithm Hash digest
SHA256 f10781714f3f912bc38710088c6da001ec136137b0152395dd96a94e23b4d07a
MD5 1ee80cc5ee34eefc4fb5b652d9306d5c
BLAKE2b-256 37cc91f8483cd2c5188c9617ff8f4e3df7a3ec1a7bc66eb112c39d9529dc930d

See more details on using hashes here.

File details

Details for the file agent_control_evaluator_galileo-6.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_control_evaluator_galileo-6.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a9fc08da9dcd950f1e3f1e0170992dbaa0bf8a263f56561a7b0b3c648ff90aa
MD5 49f85be877e120a515fb00c738dab786
BLAKE2b-256 db868bcce9f5851a6033b04648d48cbc735c090e9130385c616a12a8764af922

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