harn-stdlib 0.8.9

Embedded Harn standard library source catalog
Documentation
// @harn-entrypoint-category agent.stdlib
import { typed_output_checkpoint } from "std/checkpoint"

/** agent_llm_turn. */
pub fn agent_llm_turn(prompt, system = nil, options = nil) {
  return llm_call(prompt, system, options ?? {})
}

/** agent_typed_output_checkpoint. */
pub fn agent_typed_output_checkpoint(name, prompt, schema, options = nil, validator = nil) {
  return typed_output_checkpoint(name, prompt, schema, options, validator)
}

/** agent_parse_tool_calls. */
pub fn agent_parse_tool_calls(text, tools = nil) {
  return __host_agent_parse_tool_calls(text, tools)
}

/** agent_dispatch_tool_call. */
pub fn agent_dispatch_tool_call(call, tools = nil, options = nil) {
  return __host_agent_dispatch_tool_call(call, tools, options ?? {})
}

/** agent_dispatch_tool_batch. */
pub fn agent_dispatch_tool_batch(calls, tools = nil, options = nil) {
  return __host_agent_dispatch_tool_batch(calls, tools, options ?? {})
}