كل عامل يستطيع برنامج .lolo استدعاءه، من السجل المعتمد الذي يضمّنه المترجم.
نطاقات الأسماء في هذه الصفحة: async/, behavior/, checkpoint/, compose/, contract/, integration/, trace/.
async/allExecute effects in parallel, wait for all to complete
(async/all ...effects)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
...effects | expression[] | Effects to execute |
القيمة المعادة: array · يعمل على: any
مثال
(async/all (call "api1") (call "api2"))async/debounceDebounce an event (wait for pause in events)
(async/debounce event ms)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
event | string | Event name to emit |
ms | number | Debounce delay in milliseconds |
القيمة المعادة: void · يعمل على: any
مثال
(async/debounce "SEARCH" 300)async/delayWait for specified milliseconds, optionally execute an effect after
(async/delay ms)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
ms | number | Milliseconds to wait |
القيمة المعادة: any · يعمل على: any
مثال
(async/delay 2000) // Wait 2 secondsasync/intervalExecute an effect periodically at a fixed interval
(async/interval effect interval)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
effect | any | Effect to execute |
interval | number | Interval in milliseconds |
القيمة المعادة: string · يعمل على: any
مثال
(async/interval (log "tick") 1000) // => "id-123"async/raceExecute effects in parallel, return first to complete
(async/race ...effects)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
...effects | expression[] | Effects to race |
القيمة المعادة: any · يعمل على: any
مثال
(async/race (call "api1") (call "api2"))async/retryRetry an effect with configurable backoff
(async/retry effect opts)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
effect | expression | Effect to retry |
opts | object | { attempts, backoff, baseDelay } |
القيمة المعادة: any · يعمل على: any
مثال
(async/race ["call","api1"] ["call","api2"])async/sequenceExecute effects in sequence (one after another)
(async/sequence ...effects)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
...effects | expression[] | Effects to execute in order |
القيمة المعادة: array · يعمل على: any
مثال
(async/sequence (call "validate") (call "save"))async/throttleThrottle an event (emit at most once per interval)
(async/throttle event ms)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
event | string | Event name to emit |
ms | number | Throttle interval in milliseconds |
القيمة المعادة: void · يعمل على: any
مثال
(async/throttle "SCROLL" 100)async/timeoutAdd timeout to an effect
(async/timeout effect ms)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
effect | expression | Effect to execute |
ms | number | Timeout in milliseconds |
القيمة المعادة: any · يعمل على: any
مثال
(async/timeout (call "api" "fetchData") 5000)behavior/callCall a behavior service action. Returns the ServiceCallResult union — resolves to the specific member when the (behavior, action) pair is a literal.
(behavior/call behavior action)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
behavior | string | Behavior name |
action | string | Action name (variadic) |
القيمة المعادة: ServiceCallResult · يعمل على: any
مثال
(behavior/call "user-service" "login")behavior/composeCompose N orbitals into one application schema. Wires events, picks layout, generates pages.
(behavior/compose orbitals)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
orbitals | array | Array of orbital definitions |
القيمة المعادة: object
مثال
(behavior/compose [{"name": "home"} {"name": "settings"}])behavior/detect-layoutAuto-detect layout from orbital count and wiring topology. Returns single, tabs, sidebar, dashboard, or wizard-flow.
(behavior/detect-layout orbitals)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
orbitals | array | Array of orbitals (variadic) |
القيمة المعادة: string
مثال
(behavior/detect-layout [{"name": "a"} {"name": "b"}]) // => "tabs"behavior/instantiateInstantiate a behavior from the registry at runtime (meta-programming). Equivalent to compile-time uses but dynamic — the behavior name is a runtime value. Applies the same override surface (linkedEntity, events, config, fields).
(behavior/instantiate behavior config)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
behavior | string | Behavior name |
config | object | Configuration object (variadic) |
القيمة المعادة: BuilderResult · يعمل على: any
مثال
(behavior/instantiate "my-behavior" {})behavior/pipeLeft-to-right composition. Each step receives the previous result as its first arg.
(behavior/pipe value fn)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
value | any | Initial value |
fn | lambda | Transform function (variadic) |
القيمة المعادة: any
مثال
(behavior/pipe 5 (fn x (+ "x" 1))) // => 6behavior/wireApply cross-orbital event wiring. Adds external emits/listens to inline traits.
(behavior/wire traits routes)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
traits | array | Array of traits |
routes | array | Array of event routes |
القيمة المعادة: array
مثال
(behavior/wire [{"name": "t1"} {"name": "t2"}] [])checkpoint/loadLoad a model checkpoint (ML effect)
(checkpoint/load path)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
path | string | Checkpoint path |
القيمة المعادة: object
مثال
(checkpoint/load "model-v1") // => {}checkpoint/saveSave a model checkpoint (ML effect)
(checkpoint/save model path)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
model | object | Model object |
path | string | Checkpoint path |
القيمة المعادة: void · يعمل على: any
مثال
(checkpoint/save {"layers":[{"type":"dense","units":2}]} "ckpt-1")compose/compose-allCompose all orbitals in the workspace into a single schema. Backed by composeBehaviors.
(compose/compose-all)القيمة المعادة: ComposeAllResult · يعمل على: any
مثال
(compose/compose-all) // => {}compose/compose-childrenCompose child orbitals under a parent for recursive builds.
(compose/compose-children parent)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
parent | object | Parent orbital |
القيمة المعادة: ComposeChildrenResult · يعمل على: any
مثال
(compose/compose-children "GameScreenOrbital") // => {}contract/clamp-outputClamp output tensor to contract ranges
(contract/clamp-output tensor ranges)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
tensor | any | Output tensor |
ranges | object | Range constraints |
القيمة المعادة: tensor
مثال
(contract/clamp-output [1 2 3] {"min": 0, "max": 255}) // => [1 2 3]contract/entity-to-tensorConvert entity fields to tensor via contract
(contract/entity-to-tensor entity contract)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
entity | object | Entity object |
contract | object | Contract schema |
القيمة المعادة: tensor
مثال
(contract/entity-to-tensor {"price":10,"qty":2} {"fields":["price","qty"]}) // => []contract/tensor-to-payloadConvert output tensor to event payload via contract
(contract/tensor-to-payload tensor contract)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
tensor | any | Output tensor |
contract | object | Contract schema |
القيمة المعادة: object
مثال
(contract/tensor-to-payload [0.5,0.7] {"fields":["price","qty"]}) // => {}contract/validate-inputValidate tensor against input contract. Returns { valid, violations } — guard on valid, or read violations for the detail.
(contract/validate-input tensor contract)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
tensor | any | Input tensor |
contract | object | Contract schema |
القيمة المعادة: object
مثال
(contract/validate-input [0.5,0.7] {"ranges":{"0":{"min":0,"max":1},"1":{"min":0,"max":1}}}) // => {"valid": true, "violations": []}contract/validate-outputValidate tensor against output contract. Returns { valid, violations } — guard on valid, or read violations for the detail.
(contract/validate-output tensor contract)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
tensor | any | Output tensor |
contract | object | Contract schema |
القيمة المعادة: object
مثال
(contract/validate-output [0.5,0.7] {"ranges":{"0":{"min":0,"max":1},"1":{"min":0,"max":1}}}) // => {"valid": true, "violations": []}contract/violationsList contract violations
(contract/violations tensor contract)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
tensor | any | Tensor |
contract | object | Contract schema |
القيمة المعادة: array
مثال
(contract/violations [0.5,1.7] {"ranges":{"0":{"min":0,"max":1},"1":{"min":0,"max":1}}}) // => []integration/github-create-issueCreate a GitHub issue. Typed wrapper for the GitHub API.
(integration/github-create-issue repo title body)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
repo | string | Repository identifier |
title | string | Issue title |
body | string | Issue description |
القيمة المعادة: object · يعمل على: any
مثال
(integration/github-create-issue "owner/repo" "Bug found" "Details here")integration/github-get-repoGet a GitHub repository. Typed wrapper for the GitHub API.
(integration/github-get-repo owner repo)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
owner | string | Repository owner |
repo | string | Repository name |
القيمة المعادة: object · يعمل على: any
مثال
(integration/github-get-repo "microsoft" "vscode")integration/httpHTTP request with caller-declared response schema. Validates the response against the schema before returning.
(integration/http method url body)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
method | string | HTTP method |
url | string | Request URL |
body | any | Request body or config (variadic) |
القيمة المعادة: object · يعمل على: any
مثال
(integration/http "GET" "https://api.example.com/data")trace/emitEmit a structured trace event for observability (115 call sites in rabit today).
(trace/emit event)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
event | string | Event name |
القيمة المعادة: void · يعمل على: any
مثال
(trace/emit "cache-hit")trace/logLog a message at the given level.
(trace/log level msg)المعاملات
| الاسم | النوع | الوصف |
|---|---|---|
level | string | Log level |
msg | string | Message text |
القيمة المعادة: void · يعمل على: any
مثال
(trace/log "info" "Processing started")