Skip to main content

register_dispatch_functions

Function register_dispatch_functions 

Source
pub fn register_dispatch_functions(lua: &Lua) -> Result<(), LuaError>
Expand description

Registers intent-based Lua APIs in the runtime.

  • orcs.dispatch(name, args) — unified intent dispatcher
  • orcs.tool_schemas() — legacy Lua table format (backward compat)
  • orcs.intent_defs() — JSON Schema format (for LLM tools param)
  • orcs.register_intent(def) — dynamic intent registration
  • orcs.tool_descriptions() — formatted text descriptions