SwiftprotocolFlowToolTypes

protocol FlowToolTypes.FlowTool

Members 13

  1. funccallAppIntent(invocation: ToolKit.ToolInvocation) async throws -> FlowToolTypes.AppIntentExecutionResult
  2. funccallTool(invocation: ToolKit.ToolInvocation) async throws -> ToolKit.ToolExecutionResult
  3. funcmethod descriptor for execute() async throws -> FlowToolTypes.FlowToolResult
  4. funcmethod descriptor for execute(context: FlowToolTypes.FlowToolInvocationContext) async throws -> FlowToolTypes.FlowToolResult
  5. funcmethod descriptor for execute(context: FlowToolTypes.FlowToolInvocationContext, callback: FlowToolTypes.FlowToolExecutorCallback) async throws -> FlowToolTypes.FlowToolResult
  6. funcexecute(context: FlowToolTypes.FlowToolInvocationContext, callback: FlowToolTypes.FlowToolExecutorCallback) async throws -> FlowToolTypes.FlowToolResult
  7. funcexecute(context: FlowToolTypes.FlowToolInvocationContext) async throws -> FlowToolTypes.FlowToolResult
  8. funcexecute() async throws -> FlowToolTypes.FlowToolResult
  9. funcshowActionConfirmation(request: FlowToolTypes.FlowToolActionConfirmationRequest) async throws -> FlowToolTypes.FlowToolConfirmationResponse
  10. funcshowIntermediateResult(title: FlowToolTypes.FlowToolDialogPrompt, snippetOutputPayload: FlowToolTypes.FlowToolSnippetOutputPayload?, waitUntilRendered: Bool) async throws -> FlowToolTypes.FlowToolIntermediateResultResponse
  11. funcmethod descriptor for warmup(context: FlowToolTypes.FlowToolInvocationContext) async -> ()
  12. funcwarmup(context: FlowToolTypes.FlowToolInvocationContext) async -> ()
  13. initmethod descriptor for init() -> A
protocol FlowTool: AnyObject, FlowToolTypes.FlowToolParameterInjectable {
    init()

    func execute() async throws -> FlowToolTypes.FlowToolResult
    func execute(context: FlowToolTypes.FlowToolInvocationContext) async throws -> FlowToolTypes.FlowToolResult
    func execute(context: FlowToolTypes.FlowToolInvocationContext, callback: any FlowToolTypes.FlowToolExecutorCallback) async throws -> FlowToolTypes.FlowToolResult
    func warmup(context: FlowToolTypes.FlowToolInvocationContext) async
}
extension FlowToolTypes.FlowTool {
    func callTool(invocation: ToolKit.ToolInvocation) async throws -> ToolKit.ToolExecutionResult
    func callAppIntent(invocation: ToolKit.ToolInvocation) async throws -> FlowToolTypes.AppIntentExecutionResult
    func showActionConfirmation(request: FlowToolTypes.FlowToolActionConfirmationRequest) async throws -> FlowToolTypes.FlowToolConfirmationResponse
    func showIntermediateResult(title: FlowToolTypes.FlowToolDialogPrompt, snippetOutputPayload: FlowToolTypes.FlowToolSnippetOutputPayload?, waitUntilRendered: Swift.Bool) async throws -> FlowToolTypes.FlowToolIntermediateResultResponse
    func warmup(context: FlowToolTypes.FlowToolInvocationContext) async
    func execute(context: FlowToolTypes.FlowToolInvocationContext, callback: any FlowToolTypes.FlowToolExecutorCallback) async throws -> FlowToolTypes.FlowToolResult
    func execute(context: FlowToolTypes.FlowToolInvocationContext) async throws -> FlowToolTypes.FlowToolResult
    func execute() async throws -> FlowToolTypes.FlowToolResult
}