pub struct AiDecisionInputTransforms {
pub provider: Box<ProviderTransform>,
pub state: Box<InputTransform>,
pub questions: Box<InputTransform>,
}Expand description
AiDecisionInputTransforms : Input parameters for the decision mapped to their values
Fields§
§provider: Box<ProviderTransform>§state: Box<InputTransform>What the questions are asked about: a string, an object or an array of strings. An object with descriptive keys holding only what the questions need works best. Example: { message: flow_input.message, plan: results.a.plan }
questions: Box<InputTransform>Object mapping each question name to { type, instructions, criteria }, where type is: - ‘choice’: criteria maps each option to its description (up to 255); the answer has choice, probabilities and confidence - ‘score’: criteria is an ordered array of 2 to 10 level descriptions; the answer has score, legend, probabilities and confidence - ‘noul’: yes/no, criteria optionally { true, false } descriptions; the answer has noul, the probability of yes (0 to 1) Example: { intent: { type: ‘choice’, instructions: ‘What does the customer want?’, criteria: { refund: ‘Money back’, bug: ‘Something is broken’ } } }
Implementations§
Source§impl AiDecisionInputTransforms
impl AiDecisionInputTransforms
Sourcepub fn new(
provider: ProviderTransform,
state: InputTransform,
questions: InputTransform,
) -> AiDecisionInputTransforms
pub fn new( provider: ProviderTransform, state: InputTransform, questions: InputTransform, ) -> AiDecisionInputTransforms
Input parameters for the decision mapped to their values