Submit library result
submit_library_resultStages a client's shelf-assignment result for one currently leased Librarian item. Store the outcome and evidence after claiming work so accepted assignments can later be previewed as label changes.
Instructions
Store a client's shelf-assignment result for one currently leased Librarian item. Use after claim_library_work; use apply_reshelving to preview accepted assignments as label changes. Copy the packet's identifiers and revision hashes unchanged, and quote its evidence. Submission stages results without changing current labels; an identical submission_key retry replays the recorded response. Report unavailable usage honestly instead of inventing zero usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | Yes | Actual client model usage, or an explicit unavailable report when measurements are missing; never invent zero usage. | |
| result | Yes | Assignment outcome with evidenced shelf memberships, or unmapped/unsupported/error with a reason; conforms to the referenced result schema. | |
| work_id | Yes | Work-row identifier returned by claim_library_work, distinct from the source item ID. | |
| video_id | Yes | Stable saved-item identifier from a search or capture result; not necessarily a YouTube ID. | |
| client_id | Yes | Stable identifier for your Librarian client; use the same value through claim, renew and submit. | |
| packet_hash | Yes | Hash of the exact leased input packet; copy unchanged from claim_library_work. | |
| attempt_token | Yes | Opaque token for your current leased attempt; copy from claim_library_work and do not invent it. | |
| schema_version | Yes | Result contract version required by the claimed packet. | |
| submission_key | Yes | Client-generated retry key; reuse only for an identical submission. | |
| source_revision | Yes | Revision of the saved source evidence; copy from the packet or retrieval result to detect stale input. | |
| taxonomy_revision | Yes | Taxonomy hash from the leased packet; copy unchanged into the submission. |