EvryAi
Agents

Versioned agents inside limits you approve

An agent is instructions, a model, tools, a policy, guardrails and limits. A change to how it behaves makes a new version that reaches members only when you promote it, and templates give each person their own agent inside a ceiling your organization sets.

TypeScript code from the SDK README registering an HTTP tool with a JSON Schema and read risk, then creating an agent that uses it.
pharmacy-agent.ts
const tool = await evry.tools.create({
name: "check_refill",
description: "Check whether a prescription can be refilled",
kind: "http",
url: "https://api.pharmacy.example/refills/check",
method: "POST",
risk: "read",
inputSchema: {
type: "object",
properties: { rxNumber: { type: "string" } },
required: ["rxNumber"],
},
});
const agent = await evry.agents.create({
name: "Pharmacy assistant",
instructions: "Help members refill prescriptions.",
model: "auto",
toolIds: [tool.id],
});
Versions

Nothing changes for members until you promote it

Name, description and metadata change in place. Any change to instructions, model, tools, policy or reasoning creates a new version, and the version freezes each tool's name, schema and risk. New runs use the promoted version unless they name another; with nothing promoted, the latest runs.

Gate
With evalPassThreshold set, a version can only be promoted after an eval run at or above it.
TypeScript code listing an agent's versions, setting an eval pass threshold and promoting version 1.
promote.ts
const versions = await evry.agents.versions.list({ agentId: agent.id });
const first = await evry.agents.versions.get({ agentId: agent.id, version: 1 });
// Promotion needs an eval run at or above the agent's pass threshold.
await evry.agents.update({ agentId: agent.id, evalPassThreshold: 0.95 });
await evry.agents.versions.promote({ agentId: agent.id, version: 1 });
Templates

One agent per person, never past the ceiling

A template is a base your organization approves: instructions every agent made from it follows first, the policy, guardrails, screening and reasoning it inherits, and a ceiling on tools, models, limits and memory. An agent owned by a subject serves only that person. Asking for anything above the ceiling fails with VALIDATION_ERROR naming the field.

Quotas
20 owned agents per subject and 100,000 per organization, plus the template's own quotas.
Updates
A new template version moves every agent made from it. Choices above the new ceiling are removed and announced as agent.constrained.
TypeScript code from the SDK README creating an agent template with a tool ceiling, an inherited policy and quotas, then an agent owned by one person.
template.ts
const template = await evry.agentTemplates.create({
name: "Personal assistant",
instructions: "You are a personal assistant for one person. Never share their data with anyone else.",
model: "auto",
toolIds: [lookupTool.id, bookTool.id], // the ceiling
policyId: consentPolicy.id, // inherited; agents made from the template cannot change it
limits: { maxCostUsd: 2 },
memory: { scopes: ["subject"] },
quotas: { maxAgentsPerSubject: 3 },
});
const mine = await evry.agents.create({
name: "Trip planner",
instructions: "Plan around my kids' school calendar.",
templateId: template.id,
ownerSubject: "user-8812",
toolIds: [lookupTool.id],
limits: { maxCostUsd: 1 },
});
Handoff

Hand the conversation to another agent

A run can carry on another run's work for the same member on any agent, reading up to 20,000 characters of its conversation as data. The audit trail records run.handoff pointing at the source run, and if the source acted under a grant, the new session needs one too.

TypeScript code from the SDK README starting a run that hands off from another run, then choosing a reasoning model and effort.
handoff.ts
const billingSession = await evry.sessions.create({ agentId: "agt_billing", subject: "user-8812", grantId: "grt_..." });
const next = await evry.runs.create({
sessionId: billingSession.id,
message: { text: "Please reorder it." },
handoff: { fromRunId: triageRunId },
});
console.log(next.handoff); // { fromRunId, fromSessionId, fromAgentId }
const models = await evry.models.list();
const model = models.find((m) => m.reasoning.supported)!;
await evry.agents.update({ agentId: agent.id, model: model.id, reasoning: { effort: "high" } });

How it works

Tools

Tools are typed contracts for your systems

An HTTP tool is your HTTPS endpoint, called by the platform's gateway. A client tool runs in your own code while the run pauses. Each has a JSON Schema for its input and a risk of read or write that policy rules can match. Credentials live in connections the model never sees, attached only for the hosts you allow.

Gateway
Validates the input, checks the grant and policy, adds the credential, caps the response at 1 MB and writes the audit record.
Models

The models your organization allows

models.list returns the models your organization allows, each with its provider and whether it can reason, or pass auto to route between them. A model the organization turns off fails the run with a clear error. Set a reasoning effort on the agent and follow the thinking live with reasoning.delta.

Ending one

Delete an owned agent and its data goes too

agents.delete cancels the agent's runs, archives its schedules, revokes the grants that cover only it, and erases its memory and the memory store records it wrote, keeping any the template marks as shared. The result counts each, and agent.deleted carries the same counts.

The specifics

Through the API or the TypeScript SDK.

Tool kinds

http, called by the gateway, and client, run by your code. Risk is read or write.

Versions

Immutable. Promote one, or name one per run with agentVersion.

Owned agents

20 per subject and 100,000 per organization.

Kill switch

agents.suspend and agents.resume, both audited, from code or the CLI.

Events

agent.created, updated, deleted, constrained, suspended and resumed.

Scopes

agents:read and agents:write; tools:read and tools:write for tools.

Bring EvryAi to your team

Sign in with your work account and start in a chat, or talk to us about rolling it out across your organization with the controls your admins need.