Skip to content

Commit 52024b0

Browse files
committed
Create override for testing in devstacks
1 parent 4ef2663 commit 52024b0

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎evaluators/contrib/galileo/src/agent_control_evaluator_galileo/llm/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class GalileoLLMClient:
369369
"""Thin HTTP client for Galileo LLM-as-judge scorer invocation.
370370
371371
Environment Variables:
372-
GALILEO_FEATURE_FLAG_LLM_INVOKE_RUNTIME: Set to ``enabled`` to activate the evaluator.
372+
GALILEO_FEATURE_FLAG_LLM_EVALUATOR: Set to ``enabled`` to activate the evaluator.
373373
Required; the evaluator is unavailable until this flag is set.
374374
GALILEO_API_SECRET_KEY or GALILEO_API_SECRET: JWT signing secret for internal auth.
375375
GALILEO_LUNA_INVOKE_URL: LLM scorer invoke URL or service root (required).

‎evaluators/contrib/galileo/src/agent_control_evaluator_galileo/llm/config.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
LlmPayloadField = Literal["input", "output"]
1414

1515
_NUMERIC_OPERATORS = frozenset({"gt", "gte", "lt", "lte"})
16-
LLM_INVOKE_RUNTIME_FLAG_ENV = "GALILEO_FEATURE_FLAG_LLM_INVOKE_RUNTIME"
16+
LLM_EVALUATOR_FLAG_ENV = "GALILEO_FEATURE_FLAG_LLM_EVALUATOR"
1717

1818

19-
def llm_invoke_runtime_enabled() -> bool:
19+
def llm_evaluator_enabled() -> bool:
2020
"""Return whether the LLM scorer invoke runtime is enabled.
2121
2222
The LLM evaluator requires Orbit support for ``execution_context`` to fetch
23-
LLM credentials. Set ``GALILEO_FEATURE_FLAG_LLM_INVOKE_RUNTIME=enabled`` once
23+
LLM credentials. Set ``GALILEO_FEATURE_FLAG_LLM_EVALUATOR=enabled`` once
2424
the Orbit-side support is confirmed ready.
2525
"""
26-
return os.getenv(LLM_INVOKE_RUNTIME_FLAG_ENV) == "enabled"
26+
return os.getenv(LLM_EVALUATOR_FLAG_ENV) == "enabled"
2727

2828

2929
class ScorerInvokeConfig(BaseModel):

‎evaluators/contrib/galileo/src/agent_control_evaluator_galileo/llm/evaluator.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from agent_control_models import EvaluatorResult, JSONObject, JSONValue, Step
1414

1515
from .client import GalileoExecutionContext, GalileoLLMClient, ScorerInvokeResponse
16-
from .config import LlmEvaluatorConfig, coerce_number, llm_invoke_runtime_enabled
16+
from .config import LlmEvaluatorConfig, coerce_number, llm_evaluator_enabled
1717

1818
logger = logging.getLogger(__name__)
1919

@@ -121,9 +121,9 @@ def is_available(cls) -> bool:
121121
122122
The LLM evaluator requires Orbit-side support for ``execution_context`` to
123123
fetch LLM credentials. It is unavailable until
124-
``GALILEO_FEATURE_FLAG_LLM_INVOKE_RUNTIME=enabled`` is set.
124+
``GALILEO_FEATURE_FLAG_LLM_EVALUATOR=enabled`` is set.
125125
"""
126-
return LLM_AVAILABLE and llm_invoke_runtime_enabled()
126+
return LLM_AVAILABLE and llm_evaluator_enabled()
127127

128128
def __init__(self, config: LlmEvaluatorConfig) -> None:
129129
"""Initialize the direct LLM-as-judge evaluator.

‎evaluators/contrib/galileo/tests/test_llm_coverage_gaps.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
LLM_ENV = {
1818
"GALILEO_API_SECRET_KEY": "test-secret",
1919
"GALILEO_LUNA_INVOKE_URL": "http://luna-invoke:8090",
20-
"GALILEO_FEATURE_FLAG_LLM_INVOKE_RUNTIME": "enabled",
20+
"GALILEO_FEATURE_FLAG_LLM_EVALUATOR": "enabled",
2121
}
2222

2323
_EXTENSIONS = {

‎evaluators/contrib/galileo/tests/test_llm_evaluator.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
LLM_ENV = {
1212
"GALILEO_API_SECRET_KEY": "test-secret",
1313
"GALILEO_LUNA_INVOKE_URL": "http://luna-invoke:8090",
14-
"GALILEO_FEATURE_FLAG_LLM_INVOKE_RUNTIME": "enabled",
14+
"GALILEO_FEATURE_FLAG_LLM_EVALUATOR": "enabled",
1515
}
1616

1717

‎sdks/python/src/agent_control/evaluators/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from agent_control.evaluators import LlmEvaluator, LlmEvaluatorConfig # if galileo installed
1818
```
1919
20-
Note: ``galileo.llm`` requires ``GALILEO_FEATURE_FLAG_LLM_INVOKE_RUNTIME=enabled`` to be set.
20+
Note: ``galileo.llm`` requires ``GALILEO_FEATURE_FLAG_LLM_EVALUATOR=enabled`` to be set.
2121
The evaluator is unavailable (``is_available()`` returns ``False``) until this flag is present,
2222
as it depends on Orbit-side support for ``execution_context`` to fetch LLM credentials.
2323
"""

0 commit comments

Comments
 (0)