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.5.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.

File details

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

File metadata

File hashes

Hashes for agent_control_evaluator_galileo-6.5.0.tar.gz
Algorithm Hash digest
SHA256 b76f23434728046d612a5bc6d4d97087f4c49156946f517ed6c55945c5477bcc
MD5 b8fee197b87362159a1d07db08981648
BLAKE2b-256 3377627c890a943943bfaba570f933e9ae0d51394551c02c4047161fb5a3b784

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_control_evaluator_galileo-6.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3de3b0dcba2d3969cb4c902d6a3e4c2fbcc3653458475557b608e04c3ff5f63
MD5 e031065b42d28ad08cde72fa16947822
BLAKE2b-256 d7542a8097287092a005639834c9bc72893f97444505507bf2ead5d9df2bb5c0

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