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.3.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.3.0.tar.gz.

File metadata

File hashes

Hashes for agent_control_evaluator_galileo-6.3.0.tar.gz
Algorithm Hash digest
SHA256 f02bf8ace7f2103dbc08c3099e524c400feba6f05d704e0866d4cf3352b47b5b
MD5 8d3cfd4cc4e5edfd9ccca5314cd88404
BLAKE2b-256 21d49923c00fb1c754c2f66c71b42a991a574621b6dc35fa11a7b7ec25529873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_control_evaluator_galileo-6.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf7dcd6ff08fdb268d0bf00141c5beee82755125d7c6fe9c1b6082b8eab4d8f
MD5 ca491774eb501e10fd4e5a0b2feb1328
BLAKE2b-256 62e3a0cef878b6fdb7c653d6d7eb96cdf38b0ed2dae6f87470225f0bf7b647b6

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