Class ProcessListTool
Lists running processes on the system, with optional name filter.
public sealed class ProcessListTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
ProcessListTool
- Implements
- Inherited Members
Examples
Letting an agent identify a specific running program:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new ProcessListTool()))
.Build();
var result = await agent.RunAsync("Is dotnet currently running, and on which PIDs?");
Constructors
- ProcessListTool()
Initializes a new instance with default settings.
- ProcessListTool(ProcessToolOptions)
Initializes a new instance with custom 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.