Delete Node
Delete the Node and every Node under it, and answer the Loom without them. You cannot undo it. For the root, or while a Node to delete is queued or running, 409 and the error object.
bearerAuthorizationBearer <token>An API key: Authorization: Bearer sk-acs-..., or a key of the old platform, acs-bm-.... A User makes and revokes keys in the App.
loom_id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$uuidnode_id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$uuididempotency-key?stringA key of your choice, 1 to 255 characters, such as a UUID. A retry with the same key and the same request does the work once: it gets the first answer, and is never charged twice. Kept 24 hours, one set for each User across all their API keys.
1 <= length <= 255Loom
application/json- response
id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$uuidobject*"loom""loom"created_at*integerWhen the Loom was made, in Unix seconds.
title*stringThe Loom's name. Empty until its first Branch names it after the first line of the text it grows from, or a rename names it.
pinned*booleanA pinned Loom comes first in the list.
api_key_id*|The API key that the Loom's Branches from the App are counted for, set with POST /v1/looms/{loom_id}; null for none. A Branch through /v1 is counted for the key that sent it. The API counts each Node when it runs: once the key is revoked, expired or paused, the App's Nodes are counted for no key.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$uuidnodes*array<>Depth first from each root: each Node comes after its parent and before its next sibling, and siblings come in the order they were made.
curl -X DELETE 'https://api.staging.infra.acsresearch.org/v1/looms/497f6eca-6276-4993-bfeb-53cbbbba6f08/nodes/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: Bearer <API_KEY>'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "loom", "created_at": 0, "title": "string", "pinned": true, "api_key_id": "b0dd218e-3bcf-4bdb-a1e3-0689d60a8afd", "nodes": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "loom.node", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "status": "queued", "text": "string", "logprobs": { "text_offset": [ 0 ], "token_logprobs": [ 0 ], "tokens": [ "string" ], "top_logprobs": [ { "property1": 0, "property2": 0 } ] }, "error": { "message": "string", "type": "string", "param": "string", "code": "string", "retryable": true, "retry_after_seconds": 0, "upstream_status": 0, "request_id": "string" }, "request": { "model": "string", "max_tokens": 32000, "temperature": 0, "logprobs": 0, "top_p": 0, "top_k": 0, "min_p": 0, "presence_penalty": 0, "frequency_penalty": 0, "repetition_penalty": 0, "seed": 0, "blue_noise": true, "stop": "string", "apply_steering_vectors": [ { "activations": [ [ 0 ] ], "layer_indices": [ 0 ], "scale": 0, "norm_match": true, "position_indices": [ 0 ], "position_spans": [ [ 0, 0 ] ], "generated_tokens": 1 } ], "first_token": { "token": "string", "node_id": "6e0bdcac-9717-4a6f-972e-97489dffeb0c" } }, "favorite": true, "created_at": "string", "from_split": true, "press_id": "204ebf1f-16e6-431d-8505-068ffe8c2453", "lane": "A" } ]}Edit Node POST
Rewrite the Node's text, and answer the Loom. A new text drops the Node's log probabilities, as they were of the old one; the same text changes nothing. For a failed Node, or while a Node under it is `queued` or `running`, 409.
Split Node POST
Cut the Node at `offset`, and answer the Loom. The Node keeps the text before the cut; a new child gets the text after it, and the Node's children move under the child, so every path keeps its text. A cut of the Node's own text gives each half the log probabilities of its whole tokens; the child's `request` has no seed, as a part of a sample cannot be sampled again. For a failed Node, a Loom of 2,000 Nodes, or while a Node under it is `queued` or `running`, 409.