AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationText.fromMap constructor
AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationText.fromMap()
Implementation
factory AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationText.fromMap(Map<String, dynamic> map) {
return AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationText(
maxTokens: (() { final guardedValue = map['maxTokens']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
stopSequences: (() { final guardedValue = map['stopSequences']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
temperature: (() { final guardedValue = map['temperature']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toDouble()); })(),
topP: (() { final guardedValue = map['topP']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toDouble()); })(),
);
}