Table of Contents

Class DatabaseBackupTool

Namespace
LMKit.Agents.Tools.BuiltIn.Data
Assembly
LM-Kit.NET.dll

A built-in tool for creating a backup copy of a SQLite database.

Copies the database file to a specified destination path. Both source and destination paths are validated against the configured policy.

public sealed class DatabaseBackupTool : IBuiltInTool, ITool, IToolMetadata
Inheritance
DatabaseBackupTool
Implements
Inherited Members

Examples

var options = new DatabaseToolOptions { AllowWrite = true };
var backupTool = new DatabaseBackupTool(options);
var result = await backupTool.InvokeAsync(@"{""database"":""data.db"",""destination"":""backup/data.db""}");

Constructors

DatabaseBackupTool()

Initializes a new instance with default options.

DatabaseBackupTool(DatabaseToolOptions)

Initializes a new instance with the specified options.

Properties

Description

Gets a concise description of what the tool does.

InputSchema

Gets the JSON Schema defining the expected input arguments.

Name

Gets the stable, unique identifier for this tool.

Methods

InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.

Share