Function: createDecisionMetric()
Parameters
params
CreateDecisionMetricParams
The parameters for creating the decision metric.
Returns
Promise<BaseScorerVersionResponse>
A promise that resolves to the created scorer version.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
As of August 7, 2026, Galileo is now Splunk Agent Observability. This documentation applies to customers who onboarded prior to August 7, 2026. If you onboarded after this date, use agent-observability-docs.splunk.com.
function createDecisionMetric(
params: CreateDecisionMetricParams,
): Promise<BaseScorerVersionResponse>;
CreateDecisionMetricParams
The parameters for creating the decision metric.
Promise<BaseScorerVersionResponse>
A promise that resolves to the created scorer version.
import { createDecisionMetric, OutputType } from "galileo";
await createDecisionMetric({
name: "refund_intent",
question: "What does the customer want?",
outputType: OutputType.CATEGORICAL,
answerOptions: ["refund", "exchange", "other"],
});
Was this page helpful?