Osy#betaRun it on Osyrin: osyrin.com

Reference / Agent

Osysharp.Assignments.Agents — an agent's work, attached to the assignment it is for

`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.

previewagentsguidekit

Source on GitHub: Osysharp.Assignments.Agents — github.com/osysharp/assignments/agents ↗

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.

PackageOsysharp.Assignments.Agents, version 1.3.0
You add it withNothing. 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 usesIdentity — parts of the platform's own library
Its own test appA 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.

FunctionWhat it doesTests that show it
Settle(AssignmentWork work, AgentTask task)Bring a piece of attached work up to date with its receipt.15

Go deeper#

  • [[agent-assignments#work]] — what can be attached to an assignment
  • [[agent-assignments#cost]] — what an assignment costs

Related

The map of the kits — which sits on which, and what each one is for

The agents family is 29 kits. Two are under everything: `Osysharp.Llm` for every model call and `Osysharp.Agents` for…

Assignments — a piece of work owned until its outcome is reached (Assignments kit)

An assignment of the `Osysharp.Assignments` kit says who asked, the outcome wanted and what must be true for it to be…

Assignments — a piece of work owned until its outcome is reached (Assignments kit)

An assignment of the `Osysharp.Assignments` kit says who asked, the outcome wanted and what must be true for it to be…