Osy#betaRun it on Osyrin: osyrin.com

Reference / Agent

Building with agents — the developer's guide

Where a developer starts with agents in an Osy# app. Decide what you are building, read the smallest working app for that shape, see which kit gives you what, follow one piece of work through all of them, and look choices up in tables. Every example in the guide is a whole app that is compiled and run by the docs gate.

previewagentsguide

You are here: Agents in an Osy# app › Building with agents

Summary#

This guide is written from the app outward. It does not start with the kits. It starts with what you want the app to do, and tells you which kits that takes and what you have to decide.

If you are not a developer, or you want to see what all this looks like to the people who use it, start one level up: Agents in an Osy# app — what they are, in plain words.

Description#

Where do I start?#

If you want toRead
know what kind of app you are buildingDeciding what to build — four shapes of app with agents in it — four shapes, and how to tell which is yours
write your first agentShape 1 — an assistant for one person — the smallest working app
know what you must decide, and what holds if you decide nothingThe six decisions — what you say about an agent, and what holds if you say nothing — six decisions
see how the kits fit togetherThe map of the kits — which sits on which, and what each one is for — one map, and a page for each kit
follow one piece of work through all of itOne piece of work, followed end to end — thirteen hops, with the code for each
choose between two ways of doing somethingChoosing — I want X, so use Y, not Z, because — "I want X: use Y, not Z, because"
look a word upGlossary — the words the Agents guide uses

What are the four shapes?#

Each page has a whole app that runs. Each app is the one before it, grown.

  1. An assistant for one person — somebody asks, the agent does a typed job, the answer comes straight back.
  2. Work for people, with approvals — the agent proposes what it may not do alone; a person approves in their inbox.
  3. Agents inside a business process — the agent's work is a step of a process that runs for days.
  4. A team with a coordinator — one agent hands typed pieces to specialists.

What is true of every example here?#

How is the guide laid out?#

Two layers. The first is for anybody and has no code: what agents in an app are, what you can build, what a person sees, what stays under people's control, three processes told as stories, and what release 1 does not include. The second is this one.

Under both is the reference: one page for each concept, with every setting and every function. Each guide page ends with "Go deeper", which links to the reference pages behind it. Agents (a class with a job, its own account, a budget and a record) lists them all.

Go deeper#

Related

Agents in an Osy# app — what they are, in plain words

An app written in Osy# can have AI agents that people can trust with real work. An agent is a part of the app with a…

Deciding what to build — four shapes of app with agents in it

Start from what the app is for, not from the kits. There are four shapes: an assistant for one person, work done for…

The six decisions — what you say about an agent, and what holds if you say nothing

Every app with an agent in it decides six things: who the agent acts as and for whom; what it may do alone, proposes…

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…

One piece of work, followed end to end

One piece of an agent's work followed through every kit it touches: it is given, runs as the agent's account for a…

Choosing — I want X, so use Y, not Z, because

Seven tables for the choices that come up in every app with agents in it: an agent or a plain model call or a workflow…

Glossary — the words the Agents guide uses

Every term the guide uses, in a sentence or two of plain words, each with a link to the page that explains it in full:…

Agents (a class with a job, its own account, a budget and a record)

An agent is a class of the `Osysharp.Agents` kit: a purpose, the skills it holds and what it may spend. A skill is a…