You are here: Building with agents › The kits › Assignments.WorkQueues
Summary#
Osysharp.Assignments.WorkQueues is the bridge between assignments and requests: a request put for an assignment is a piece of the assignment's work and an item in the inbox of whoever it waits on.
What an agent proposes or asks while it works for an assignment is attached by itself. An answer closes that piece of work; it completes nothing, because an assignment is done only when its criteria are met.
| Package | Osysharp.Assignments.WorkQueues, version 1.1.0 |
| You add it with | Nothing. It arrives by itself in an app that uses [[agent-kit-assignments|Assignments]] and [[agent-kit-human-requests|HumanRequests]]; osy lock says so. without Osysharp.Assignments.WorkQueues; in the manifest keeps it out. |
| It sits on | [[agent-kit-assignments|Assignments]], [[agent-kit-human-requests|HumanRequests]], [[agent-kit-work-queues|WorkQueues]] |
| It also uses | Identity, Ui — parts of the platform's own library |
| Its own test app | A workshop that services other people's machines — kits/assignments-work-queues/tests |
Description#
What do you get without writing anything?#
- "Waiting on people" on the assignment's page.
- On the inbox item: which assignment it is part of, and how far that has come.
When do you need it?#
When an app has assignments and an inbox. It arrives by itself.
What does it expose?#
The tables below are generated from the kit itself, not written by hand: osy kits Osysharp.Assignments.WorkQueues --surface lists each of
them with the code of the kit's own test app that uses it, and the tests that show it working.
Functions you call, those its own tests show most first.
| Function | What it does | Tests that show it |
|---|---|---|
AssignmentTagOf(Guid request) | The assignment a request is part of, as whoever is looking may read it. | 3 |
AssignmentRequestIds(Guid assignment) | The ids of an assignment's open requests, as whoever is looking may read its work. | 1 |
Screens and components you mount — each is one line in a page of yours.
| Component | What it draws |
|---|---|
RequestsOnTheAssignment(assignment) | Who an assignment is waiting on — drawn on every assignment's page (AssignmentView): each open request, of whom, since when, and whether it is late. |
AssignmentOnARequest(item) | Which assignment a request is part of — drawn above the request on its item in the inbox, for whoever may read the assignment: its title, the outcome wanted, and how far it is. |
What to read next#
- Osysharp.Assignments — a piece of work somebody asked for, owned until its outcome is reached — a piece of work somebody asked for, owned until its outcome is reached
- Osysharp.HumanRequests — something put to a person, and their answer coming back — something put to a person, and their answer coming back
- The map of the kits — which sits on which, and what each one is for — the map of the kits — which sits on which, and what each one is for
Go deeper#
- What an assignment asks of people — requests as an assignment's work and as inbox items (Assignments.WorkQueues kit) — requests as an assignment's work and as inbox items