pub struct AiDecision {
pub input_transforms: Box<AiDecisionInputTransforms>,
pub type: Type,
pub tag: Option<String>,
}Expand description
AiDecision : AI decision step: one call to a decision model (TypeSafe’s Jev, or Cloudflare’s Jev-compatible Clef) that answers typed questions about a state with calibrated probabilities, instead of generating text. Prefer it over an AI agent to classify, route, score or check something: it is fast, cheap and its answers are structured. Its result is { output: {
Fields§
§input_transforms: Box<AiDecisionInputTransforms>§type: Type§tag: Option<String>Worker group tag for execution routing. If not set, the step runs on the flow’s tag (default flow)
Implementations§
Source§impl AiDecision
impl AiDecision
Sourcepub fn new(
input_transforms: AiDecisionInputTransforms,
type: Type,
) -> AiDecision
pub fn new( input_transforms: AiDecisionInputTransforms, type: Type, ) -> AiDecision
AI decision step: one call to a decision model (TypeSafe’s Jev, or Cloudflare’s Jev-compatible Clef) that answers typed questions about a state with calibrated probabilities, instead of generating text. Prefer it over an AI agent to classify, route, score or check something: it is fast, cheap and its answers are structured. Its result is { output: {