Class ReplaceContentInFileFunctionHelper

Constructors

Properties

fileChangeFactory: ChangeSetFileElementFactory
fileChangeSetTitleProvider: FileChangeSetTitleProvider
fileService: FileService
replacer: ContentReplacer
workspaceFunctionScope: WorkspaceFunctionScope

Methods

  • Parameters

    • supportMultipleReplace: boolean = false
    • immediateApplication: boolean = false

    Returns {
        description: string;
        parameters: ToolRequestParameters;
    }

    • description: string
    • parameters: ToolRequestParameters
  • Parameters

    • toolCallString: string
    • ctx: MutableChatRequestModel
    • changeSetTitle: string

    Returns Promise<{
        errors: string[];
        fileElement: undefined | ChangeSetFileElement;
        path: string;
        reset: boolean;
    }>