Table of Contents

Class YamlConvertTool

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

A built-in tool for converting between YAML and JSON formats, or pretty-printing YAML.

Supports three conversion directions: YAML to JSON, JSON to YAML, and YAML reformatting with configurable indentation.

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

Examples

var convertTool = new YamlConvertTool();
var result = await convertTool.InvokeAsync(@"{""direction"":""to_json"",""yaml"":""name: Alice\nage: 30""}");

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