Loading...
Loading...
Registers functions and triggers on the iii engine across TypeScript, Python, and Rust. Use when creating workers, registering function handlers, binding triggers, or invoking functions across languages.
npx skill4agent add iii-hq/skills iii-functions-and-triggerstrigger()schemars::JsonSchemaregisterWorker()registerFunctionregisterTriggertrigger()| Primitive | Purpose |
|---|---|
| Connect worker to engine |
| Define a function handler |
| Bind an event source to a function |
| Invoke a function synchronously |
| Fire-and-forget invocation |
| Durable async invocation via queue |
registerWorker('ws://localhost:49134', { workerName: 'my-worker' })registerFunction({ id: 'namespace::name' }, async (input) => { ... })registerTrigger({ type: 'http', function_id, config: { api_path, http_method } })registerTrigger({ type: 'queue', function_id, config: { topic } })registerTrigger({ type: 'cron', function_id, config: { expression } })registerTrigger({ type: 'state', function_id, config: { scope, key } })registerTrigger({ type: 'stream', function_id, config: { stream } })registerTrigger({ type: 'subscribe', function_id, config: { topic } })schemars::JsonSchemaRegisterFunction::new()register_function()request_formatresponse_formattoJSONSchema()namespace::nameapi_pathhttp_methodTriggerAction.Enqueue({ queue })TriggerAction.Void()iii-http-endpointsiii-queue-processingiii-cron-schedulingiii-trigger-actionsiii-functions-and-triggersiii-functions-and-triggers