Repository navigation
Expand file tree
/
Copy pathopenclaw.fabric-adapter.json
More file actions
463 lines (463 loc) · 17.6 KB
/
Copy pathopenclaw.fabric-adapter.json
File metadata and controls
463 lines (463 loc) · 17.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
{
"contract_version": "fabric.adapter/v1alpha2",
"adapter_id": "nvidia.fabric.openclaw",
"adapter_kind": "python",
"runner": {
"module": "nemo_fabric_adapters.openclaw.adapter",
"stop_timeout_seconds": 30
},
"settings_schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"pluginEntry": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Turn the plugin on or off. true makes start fail unless OpenClaw loads it."
},
"config": {
"type": "object",
"description": "The plugin's own configuration, checked by OpenClaw against the plugin's schema."
},
"hooks": {
"type": "object",
"properties": {
"allowConversationAccess": {"type": "boolean"},
"allowPromptInjection": {"type": "boolean"}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"type": "object",
"properties": {
"openclaw_command": {
"type": "string",
"minLength": 1,
"description": "OpenClaw executable name or path. Relative paths containing a directory are resolved from the NeMo Fabric base directory."
},
"agent_id": {
"type": "string",
"minLength": 1,
"default": "default",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$",
"description": "OpenClaw agent selected for SDK invocations and managed native clients."
},
"channel_config": {
"type": "object",
"properties": {
"channels": {
"type": "object",
"minProperties": 1,
"additionalProperties": {"type": "object"}
},
"bindings": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"agentId": {"type": "string", "minLength": 1},
"match": {"type": "object"}
},
"required": ["agentId", "match"],
"additionalProperties": true
}
}
},
"required": ["channels", "bindings"],
"additionalProperties": false,
"description": "OpenClaw-native channels and bindings for NeMo Fabric-owned services. Every binding must target the configured agent. Managed runtimes reject channel configuration."
},
"port_range": {
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 1,
"maximum": 65425
},
"end": {
"type": "integer",
"minimum": 111,
"maximum": 65535
}
},
"required": ["start", "end"],
"additionalProperties": false,
"description": "Inclusive consumer-allocated port range. The adapter selects a Gateway base port whose complete derived footprint through base + 110 fits within the range. When omitted, the adapter selects an available local range."
},
"interfaces": {
"type": "object",
"properties": {
"dashboard": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Serve the Control UI. A present dashboard is on unless this is false."
},
"port": {
"type": "integer",
"minimum": 1,
"maximum": 65425,
"description": "Exact loopback Gateway base port, which serves the Control UI. Start fails if it or port + 2 is in use. OpenClaw allocates browser ports through port + 110 on demand, so keep that range free. Can't be combined with port_range."
},
"public_origins": {
"type": "array",
"items": {
"type": "string",
"pattern": "^https?://[^/\\s?#@]+$"
},
"uniqueItems": true,
"default": [],
"description": "Additional browser HTTP(S) origins. OpenClaw also permits loopback origins; the token is always required."
}
},
"required": [
"port"
],
"additionalProperties": false,
"description": "OpenClaw's Control UI. After the Gateway starts, the adapter writes its sign-in token to <state_dir>/interfaces/dashboard.token with runtime.keep_state, or <artifact root>/.fabric/openclaw/runtimes/<runtime-id>/interfaces/dashboard.token for ephemeral state."
},
"terminal": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false,
"description": "Attach the native terminal to the existing Gateway. No terminal port; publishes a private executable launcher and terminal.running marker."
}
},
"additionalProperties": false,
"description": "Native interfaces served by a managed runtime. Services reject interfaces."
},
"startup_timeout_seconds": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 75,
"default": 60,
"description": "One deadline for all of start, from checking the OpenClaw command to the Gateway becoming ready, within NeMo Fabric's 90-second start limit."
},
"shutdown_timeout_seconds": {
"type": "number",
"exclusiveMinimum": 0,
"default": 15,
"description": "Maximum graceful Gateway shutdown time before forced termination. NeMo Fabric allows 30 seconds for the complete adapter stop. Leave time for cleanup within that limit."
},
"connect_timeout_seconds": {
"type": "number",
"exclusiveMinimum": 0,
"default": 10,
"description": "Timeout for connecting to the local OpenClaw Gateway."
},
"read_timeout_seconds": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Timeout between response bytes from the local OpenClaw Gateway. When unset, the invocation timeout bounds the response."
},
"agents": {
"type": "object",
"properties": {
"defaults": {
"type": "object",
"properties": {
"heartbeat": {
"type": "object",
"properties": {
"every": {
"type": "string",
"pattern": "^(?:[0-9]+(?:\\.[0-9]+)?(?:ms|s|m|h|d))+$",
"description": "Native recurring heartbeat interval, such as 30m or 1h30m. Units are required; 0m disables the recurring cadence but not event-driven turns."
}
},
"additionalProperties": false
},
"compaction": {
"type": "object",
"properties": {
"memoryFlush": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether OpenClaw runs its pre-compaction memory flush turn. This does not stop compaction itself."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"description": "Native OpenClaw agents.defaults controls for NeMo Fabric-owned Gateways. Only authored fields are written; attached Gateways reject them."
},
"tools": {
"type": "object",
"properties": {
"exec": {
"type": "object",
"properties": {
"notifyOnExit": {
"type": "boolean",
"description": "Whether OpenClaw emits a system event and heartbeat when a backgrounded exec process exits."
}
},
"additionalProperties": false
},
"toolSearch": {
"type": "boolean",
"description": "Whether OpenClaw compacts large tool catalogs behind search tools."
},
"codeMode": {
"type": "boolean",
"description": "Whether OpenClaw Code Mode is enabled. Code Mode can take precedence over tool search."
},
"web": {
"type": "object",
"properties": {
"fetch": {
"type": "object",
"properties": {
"ssrfPolicy": {
"type": "object",
"properties": {
"allowRfc2544BenchmarkRange": {
"type": "boolean",
"description": "Whether web_fetch, image, and pdf may connect to addresses in 198.18.0.0/15. Set it only behind a fake-IP proxy that owns that range and enforces its own destination policy."
},
"allowIpv6UniqueLocalRange": {
"type": "boolean",
"description": "Whether web_fetch, image, and pdf may connect to addresses in fc00::/7. Set it only behind a fake-IP proxy that owns that range and enforces its own destination policy."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"description": "Native OpenClaw tools controls for NeMo Fabric-owned Gateways, merged with the allow and deny lists generated from NeMo Fabric's normalized top-level tools. Only authored fields are written; attached Gateways reject them."
},
"plugins": {
"type": "object",
"properties": {
"bundled": {
"type": "object",
"properties": {
"entries": {
"type": "object",
"properties": {
"fabric-shared-config": false,
"memory-core": {
"$ref": "#/$defs/pluginEntry",
"properties": {
"config": {
"type": "object",
"properties": {
"dreaming": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether the memory-core plugin runs scheduled dreaming."
}
}
}
}
}
}
}
},
"propertyNames": {"minLength": 1},
"additionalProperties": {"$ref": "#/$defs/pluginEntry"},
"description": "Plugins that ship with OpenClaw, keyed by plugin id. With enabled set to true, start fails unless OpenClaw loads the plugin."
}
},
"additionalProperties": false,
"description": "Plugins that ship with OpenClaw."
},
"external": {
"type": "object",
"properties": {
"paths": {
"type": "array",
"items": {"type": "string", "minLength": 1},
"uniqueItems": true,
"description": "Plugin folders OpenClaw loads, each with its built code and node_modules, such as plugins mounted on a volume. Relative paths are resolved from the NeMo Fabric base directory; start fails if one doesn't exist."
},
"entries": {
"type": "object",
"properties": {"fabric-shared-config": false},
"propertyNames": {"minLength": 1},
"additionalProperties": {"$ref": "#/$defs/pluginEntry"},
"description": "Plugins from those folders, keyed by plugin id. A path alone doesn't enable a plugin; with enabled set to true, start fails unless OpenClaw loads it."
}
},
"additionalProperties": false,
"description": "Plugins with user-prepared code and dependencies."
}
},
"additionalProperties": false,
"description": "OpenClaw plugins for NeMo Fabric-owned Gateways, translated to OpenClaw's native plugins section. A plugin id may appear in only one section, and fabric-shared-config is reserved for the adapter. Attached Gateways reject plugin settings."
}
},
"dependentSchemas": {
"port_range": {"properties": {"interfaces": {"properties": {"dashboard": false}}}}
},
"additionalProperties": false
},
"model_schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {"type": "string", "minLength": 1},
"model": {"type": "string", "minLength": 1},
"api_key_env": {"type": "string", "minLength": 1},
"base_url": {"type": "string", "minLength": 1},
"temperature": {"type": "number"},
"top_p": {"type": "number", "minimum": 0, "maximum": 1},
"max_tokens": {"type": "integer", "minimum": 1},
"settings": {
"type": "object",
"properties": {
"supports_usage_in_streaming": {
"type": "boolean",
"description": "Whether the configured custom OpenAI-compatible endpoint supports stream_options.include_usage. Requires base_url; omitted values retain OpenClaw capability detection."
}
},
"additionalProperties": false
}
},
"required": ["provider", "model"],
"additionalProperties": false
},
"extension_schemas": {
"model": {
"type": "object",
"properties": {
"api": {
"type": "string",
"enum": [
"openai-completions",
"openai-responses",
"openai-chatgpt-responses",
"anthropic-messages",
"google-generative-ai",
"google-interactions",
"google-vertex",
"github-copilot",
"bedrock-converse-stream",
"ollama",
"pi-messages",
"azure-openai-responses"
],
"description": "OpenClaw's request adapter for the custom provider at base_url, written as models.providers.<provider>.api. Requires base_url; when omitted, the custom provider uses openai-completions."
}
},
"additionalProperties": false
},
"usage": {
"type": "object",
"properties": {
"nvidia.fabric.openclaw.usage_evidence.v1": {
"type": "object",
"properties": {
"observed": {
"type": "object",
"properties": {
"input_tokens": {"type": "integer", "minimum": 0},
"output_tokens": {"type": "integer", "minimum": 0},
"total_tokens": {"type": "integer", "minimum": 0}
},
"additionalProperties": false
},
"gaps": {
"type": "array",
"items": {"enum": ["scope_unverified", "missing_usage", "zero_unverified"]},
"uniqueItems": true
}
},
"required": ["observed", "gaps"],
"additionalProperties": false
}
},
"required": ["nvidia.fabric.openclaw.usage_evidence.v1"],
"additionalProperties": false
}
},
"requirements": {},
"config": {
"accepts": [
"models",
"models.base_url",
"models.temperature",
"models.top_p",
"models.max_tokens",
"instructions.system",
"runtime.keep_state",
"tools.enabled",
"tools.blocked",
"mcp",
"skills"
],
"system_instruction_modes": ["replace"]
},
"skills": {
"directory_loading": {
"supported_entries": ["skill", "folder"],
"skill_file": "SKILL.md",
"discovery": {
"traversal": "recursive",
"nested_skills": "stop_at_skill",
"depth_limit": {"kind": "adapter_defined"}
},
"parsing": {
"required_frontmatter_fields": ["description"],
"name_fallback": "directory_name",
"frontmatter_errors": "reject"
}
},
"bundled": {
"default": "enabled",
"supports_enable": true,
"supports_disable": true,
"supports_include": true,
"supports_exclude": true
},
"duplicates": {
"supported_policies": ["reject", "first_wins", "last_wins"],
"native": "A higher OpenClaw source wins: workspace skills, then state-folder skills, then shipped skills, then skills.directories. Between skills.directories entries the later entry wins.",
"name_source": "frontmatter"
}
},
"plugins": {
"bundled": {"supports_enable": true, "supports_disable": true},
"external": {"requires_explicit_enable": true, "provisions_dependencies": false},
"agent_installed": {"requires_keep_state": true},
"duplicates": {"supported_policies": ["reject"]}
},
"capabilities": {
"session_resume": true,
"service": true,
"metadata": {"service_health_checks": ["live", "active", "ready"], "health_checks": ["live", "active", "ready"]},
"streaming": false,
"updates": false,
"cancellation": false
}
}