Class PathRelativeTool
A built-in tool for computing relative paths and common path prefixes.
Find the relative path between two locations or the common prefix of multiple paths.
public sealed class PathRelativeTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
PathRelativeTool
- Implements
- Inherited Members
Examples
var tool = new PathRelativeTool();
registry.Register(tool);
// Agent can now: compute relative paths, find common path prefixes
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.