SwiftstructIntelligenceFlowPlannerSupport
ExpressionFlattener
struct IntelligenceFlowPlannerSupport.ExpressionFlattener
Members 8
- func
static flatten(statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter, program: IntelligenceFlow.AST.Program, allowUnresolvedTools: Bool) throws -> [IntelligenceFlowPlannerSupport.ProgramStatement] - field
var allowUnresolvedTools: Bool - field
var mappings: [String : IntelligenceFlow.StatementID] - field
var statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter - field
var stmts: CollectionsInternal.OrderedDictionary<IntelligenceFlow.StatementID, IntelligenceFlowPlannerSupport.ProgramStatement> - func
flatten(expr: IntelligenceFlow.AST.Expr) throws -> [IntelligenceFlowPlannerSupport.ProgramStatement] - func
flatten(program: IntelligenceFlow.AST.Program) throws -> [IntelligenceFlowPlannerSupport.ProgramStatement] - init
init(statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter, allowUnresolvedTools: Bool) -> IntelligenceFlowPlannerSupport.ExpressionFlattener
Header
struct ExpressionFlattener { enum BuiltinIdentifiers { case say case pick case confirm case confirmPrevious case searchEntities case searchWeb case pickOne case resolveTool case noMatchingTool case undo case reject case cancel case cancelPrevious case getMentionedApps case open case payload case format case siriX case retrieveTools case retrieveContext case retrieveSpans case userConfirm case userDisambiguate } enum OtherConstants { static var explicitResolutionRequest: Swift.String { get } static var omniSearchGlobalSearchParameter: Swift.String { get } static var omniSearchLocalSearchParameter: Swift.String { get } static var omniSearchQueryParameter: Swift.String { get } static var structuredSearchParametersToCamelCase: [Swift.String] { get } static var structuredSearchPropertiesParameter: Swift.String { get } static var userConfirmConfirmParameter: Swift.String { get } static var userConfirmDismissParameter: Swift.String { get } static var userConfirmPromptParameter: Swift.String { get } static var userDisambiguateOptionsParameter: Swift.String { get } static var userDisambiguatePromptParameter: Swift.String { get } } var stmts: CollectionsInternal.OrderedDictionary<IntelligenceFlow.StatementID, IntelligenceFlowPlannerSupport.ProgramStatement> var mappings: [Swift.String : IntelligenceFlow.StatementID] var statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter var allowUnresolvedTools: Swift.Bool init(statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter, allowUnresolvedTools: Swift.Bool) func flatten(expr: IntelligenceFlow.AST.Expr) throws -> [IntelligenceFlowPlannerSupport.ProgramStatement] func flatten(program: IntelligenceFlow.AST.Program) throws -> [IntelligenceFlowPlannerSupport.ProgramStatement] static func flatten(statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter, program: IntelligenceFlow.AST.Program, allowUnresolvedTools: Swift.Bool) throws -> [IntelligenceFlowPlannerSupport.ProgramStatement] }