Variable: yamlToJsonTool
ts
const yamlToJsonTool: Tool<SpooledJsonArtifact<unknown>>;Defined in: src/batteries/artifacts/yaml/index.ts:505
Converter tool: YAML → JSON.
Remarks
Takes either inline YAML text or a reference to a SpooledYamlArtifact produced earlier in the turn. Converts to JSON and returns a fresh SpooledJsonArtifact immediately queryable with JSON artifact tools.
Non-finite numbers are preserved as their YAML token strings (.NaN, .inf, -.inf). Undefined values are normalised to the JSON string 'null'.