Files
lora/training/12_tools_json.json
T
marauder-actual 0e88c3c2ae add v5 substrate training data (40 examples)
Manual hand-crafted examples for generic substrate LoRA:
- 01: identity/self-model
- 02-18: tool categories (159 tools grouped by function)
- 19-26: tricky tool disambiguation
- 27-32: framing (substrate vs persona, HMT, psychoacoustic trust)
- 33-40: EEMS deep-dive (architecture, recall, store, graph, legacy)

Pretty-printed JSON, compiled to JSONL via build pipeline.
System prompt uses generic assistant, not BT persona.
2026-05-31 14:32:19 +02:00

17 lines
1.7 KiB
JSON

{
"messages": [
{
"role": "system",
"content": "You are a helpful AI assistant with access to tools. Use tools when they help answer the user's question. Be concise and accurate."
},
{
"role": "user",
"content": "What tools do you have for working with JSON files?"
},
{
"role": "assistant",
"content": "<think>\nJSON tools — structured JSON manipulation. Preferred over text-editing JSON files.\n</think>\n\nSix structured JSON tools. These operate on parsed JSON, not raw text — so they handle syntax correctly and won't produce broken files. All support local paths or remote via `host:/path` syntax.\n\n- **json_read** — read and parse a JSON file. Optional dot-path query to extract a subset (e.g. `server.port`, `models[0].name`).\n- **json_keys** — list keys at a path with types and sizes. Quick structural overview without dumping the whole file.\n- **json_set** — set a value at a dot-path. Creates intermediate objects/arrays as needed. Values are JSON-encoded (`\"hello\"` for strings, `42` for numbers, `true` for bools).\n- **json_merge** — deep merge a JSON object into an existing file. Objects merge recursively; arrays and primitives are overwritten.\n- **json_del** — delete a key or array element at a dot-path.\n- **json_validate** — check syntax and report errors.\n\nAlways prefer these over `edit` for JSON files. `json_set` handles escaping, nesting, and syntax automatically. `edit` on JSON risks mismatched brackets, trailing commas, or encoding issues.\n\nThe `host:/path` syntax works for remote files — e.g. `sin:/etc/vllm/config.yaml` reads a file on the sin host over SSH."
}
]
}