You are here: Building with agents › The kits › Assignments.Agents
Summary#
Osysharp.Assignments.Agents is the bridge between assignments and agents: AssignedWork.Do is the ordinary call that gives an agent work, with the assignment in charge of it.
The work is attached to the assignment before the agent starts. Asked for again, work that had finished is answered from its receipt with no model called; work that never reported back is run again. What it spends is the assignment's cost.
| Package | Osysharp.Assignments.Agents, version 1.3.0 |
| You add it with | Nothing. It arrives by itself in an app that uses [[agent-kit-assignments|Assignments]] and [[agent-kit-agents|Agents]]; osy lock says so. without Osysharp.Assignments.Agents; in the manifest keeps it out. |
| It sits on | [[agent-kit-agents|Agents]], [[agent-kit-assignments|Assignments]], [[agent-kit-llm|Llm]] |
| It also uses | Identity — parts of the platform's own library |
| Its own test app | A small tea shop whose customer says "my order has not arrived, and I need it before Friday" — kits/assignments-agents/tests |
Description#
What do you get without writing anything?#
- A step that is run again does not do finished work twice.
- An assignment whose budget is spent starts no more agent work.
- Calling an assignment off calls off its running agent work.
- Work an agent hands on is attached to the same assignment, and counted once.
When do you need it?#
When agents work on assignments. 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.Agents --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 |
|---|---|---|
Settle(AssignmentWork work, AgentTask task) | Bring a piece of attached work up to date with its receipt. | 15 |
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.WorkRepositories.Agents — what an agent finds, kept as items and not as lines of a log — what an agent finds, kept as items and not as lines of a log
- A parcel that never came — a case owned until it is right, closed, and opened again — a parcel that never came — a case owned until it is right, closed, and opened again
Go deeper#
- [[agent-assignments#work]] — what can be attached to an assignment
- [[agent-assignments#cost]] — what an assignment costs