Expand description
Standard library builtins for the Harn VM.
Each category of builtins lives in its own sub-module.
Modules§
Functions§
- register_
agent_ stdlib - Register agent builtins: concurrency, tools, agents, HTTP, LLM, MCP. Requires network access and async runtime.
- register_
core_ stdlib - Register core builtins: types, math, strings, json, datetime, regex, crypto, sets, shapes, testing. These are pure/deterministic and require no I/O.
- register_
io_ stdlib - Register I/O builtins: filesystem, process, logging, tracing, I/O. Requires OS access (file reads, process spawning, environment vars).
- register_
vm_ stdlib - Register all standard builtins on a VM (core + io + agent).
- reset_
stdlib_ state - Reset thread-local stdlib state (logging, tracing, source dir). Call between test runs.