Personas
The simulated caller, the library of callers switched per agent, and callers written for an agent by the judge model.
A persona is a caller a model plays against an agent: what it wants, how it talks, what it
expects of the agent, and how it acts on the line. It is played written or out loud, as anybody
calls the agent, and the call is sealed and judged like any other. Every endpoint below takes a key
with the evals scope and acts in the key's org and environment.
The simulated caller#
Every line of the simulated caller is paid for by the platform (its model and its voice), so each endpoint
has a ceiling: a suite takes 200 goldens, 200 cases and 8 models at most, a golden 40 turns,
a call 40 caller turns (turns, turns_left); past them it is 422. And a run plays
200 calls at most in all, its goldens and the cases it joins each played under every model:
400 past them, with the count.
POST /v1/evals/caller {persona, heard, turns_left} answers {say, hangup}: the persona's next
line on the call so far, on the persona's llm or the providers row's caller.llm, on the org's own key or the
one the platform lends it. The caller never sees its own rule. A vendor this deployment lacks is 400, one
nobody keyed 503 (the sentence a persona written for it is refused with, so a run meets neither), a model that answered no line 502. Each line is a model call, so an org says
120 a minute at most (429 past them), heard holds 80 turns, and a turn, the goal and the
style 4000 characters each (422 past them).
POST /v1/evals/voice {call, agent, persona, turns, interferer_db?, packet_loss?, ambience?, pause_s?, via?, delay_ms?, jitter_ms?, rate_kbps?, state?} places
a spoken call: the agent is dispatched into the room named call with the persona, its rule and
state (the object the agent opens the call in, on its call.started; absent, the class's own; a call
passed between a team's agents lays it over each one that takes it, in the fields that are its own) on
the dispatch, the caller joins and speaks in a voice the agent does not use (the persona's own unless it is the
voice the agent speaks with, the one it declared or the operator's for its language; else one of the
operator's voices for the language), and the room is deleted at the end whatever
happened. call is minted by the client as the platform mints one (call_ and a word, 422 for any
other shape) so it tails the log before the call starts, and it must name a call nobody opened:
the head is claimed in the caller's scope before the room is offered, and an id that exists —
anybody's — is 409. A persona is the agent's: a name nobody wrote for that agent is 404; one
sent without a name is played as sent. Its llm, tts and voice are checked as a written
persona's are: one the deployment lacks is 400, and a model or a voice on a vendor nobody keyed 503, both before the room is offered and before the call is claimed. With every seat of the environment's fleet holding a call it is 429 every seat of the sandbox's fleet holds a call now: ask again in a few seconds, when one ends (Retry-After: 10), before anything opens or counts; a fleet no worker has been heard from yet is not said to be full. A room nobody can hold is 503: the caller waits as long as the fleet's three offers and the overflow joining take (46 s). The answer is {call, turns, line, caller_cost_usd, stopped_at_ceiling}: what the caller's lines and voice cost by the platform's
rates, and whether it hung up because the call had spent the providers row's
caller.ceiling_usd (Operator API); the line that crosses it is the last
one said. A model or a voice the rates do not price costs nothing here, as on a call.
POST /v1/simulations {agent, persona, voice?, turns?, interferer_db?, packet_loss?, ambience?, pause_s?, via?, delay_ms?, jitter_ms?, rate_kbps?, played_by?, against?} is the simulation the console starts: one of the agent's personas, by name, put on the agent as anybody
calls it, so whatever holds it answers — a process deployed, on a server of the org's, or a
developer's pinecall start. Spoken (voice, the default) it is the call above; written, it is
the chat the widget has, each line the persona's model improvises said once the agent's whole
answer is in, until the caller hangs up (sixty seconds with no answer end the call timeout). What
the persona expects rides the call, which is sealed and judged like any other. Spoken with every
seat of the environment's fleet holding a call, it is not refused as POST /v1/evals/voice is: the
call is claimed and counted, fleet.full is written on the agent's log once, and the caller waits
for a seat, asking every two seconds and taking the first one free: the fleet grows on the calls
already on it, and on a fleet that does not grow the wait is a queue. It waits as long as a comparison
goes on placing its calls, 45 minutes, before it gives up: the call then ends, error on its log
(never_served, every seat of the sandbox's fleet held a call for 2700 s: the simulation did not start) and call.ended with reason error after it, so whoever follows it stops waiting. The same
end is every simulated call's whose caller broke before the call began, written or spoken, whatever
broke it: a refusal in its own words (the caller's vendor refused its model, the database was busy: no connection came free in 20 s), a fault of the gateway's own by its kind alone (the gateway could not play this call's caller (KeyError): its log says why). A caller is played by a task of the gateway
that nobody awaits, so what it asks of the database it asks again for twenty seconds when every
connection is taken, where a request would be answered 503; it reads its call's log every beat, and
each read is of what the log took since the one before, never the whole of it; a written call whose caller breaks on
the line is ended error too. A seat that
answers nothing (LiveKit gave the room's job to nobody) is rung again by the gateway's sweep, to the same
worker when it is the only one, while the caller waits in its room; the reaper leaves a call that waits
for its seat. Spoken, the caller
acts as its behavior says: it talks over that share of the agent's answers (interrupts, 0 to
- some way into them, as a person cutting in does, so the agent's barge-in is what is tested; it
murmurs an "mm-hmm" in its language into that share of them (
backchannels, 0 to 1) a few seconds in, keeping its turn, so an agent that stops for a listener's noise is found out; it leavespause_sof silence before each line (the request'spause_s, 0 to 10, stands over the persona's: a preview asks for 0), then speaks it as its voice's vendor sends it, piece by piece, never held until whole, atspeed(0.5 to 2): above 1 that many times the vendor's tempo, the pitch kept; below 1 a slower talker, its words a third of the way slower and the rest of its slowness held as silence where the voice breaks between phrases; and the line carries its noise and loss unless the request names its own —interferer_dbunder the caller of theambienceit names: atelevision(a real newscast in English as a small speaker sounds from a couch across a living room), acafe(eight tables talking at once over a room, none of them to be followed), anoffice(a hum), astreet(traffic swelling and fading), each the same sound every run. The ambience is the room's, not the voice's: it plays from the moment the caller joins until it hangs up, under the agent's answers and through every silence, so the agent speaks over the television and ends a turn against the street; it sitsinterferer_dbunder how loud the caller speaks over the call (its frames that carry speech, a vendor's usual level before its first word) and keeps that level whether the caller is speaking or not.ambience_turns(0 to 1, 1 unless said) under 1 makes it a noise that comes and goes: it is heard behind that share of the caller's own lines, each a draw of its own, coming up as the caller starts and gone with its last word, and nowhere else — not under the agent's answers, not in a silence. A television with voices that never stops is transcribed as a caller's turns by ears that have no filter (measured 2026-11-25, at 12, 20 and 26 dB under the caller); behind some lines it troubles the hearing of those lines and takes no turn of its own.
The line's network. packet_loss (the share of packets lost at random, the persona's own unless
the request says one), delay_ms (the milliseconds every packet is held, 0 to 2000), jitter_ms
(how far each packet's hold moves around that, either way, 0 to 500) and rate_kbps (the kilobits a
second the line carries, 8 or more; a voice needs about 64, and under it the line's queue drops what
would wait more than 300 ms) are done to the call's real packets. A line that names any of them sends
every packet of the caller's through a TURN relay inside the gateway, the caller's only ICE server,
with relays alone allowed: what the caller sends and what comes back to it (the audio, the ICE checks,
the RTCP that asks for a packet again) each cross a link of that shape before the SFU or the caller
sees them, and a packet never overtakes the one before it. So a lost packet is a packet the room never
got, concealed or asked for again as on a real path, and not ten milliseconds silenced before they
were encoded, which is what packet_loss was until 2026-11-17; the caller also hears each answer
delay_ms late, and answers that much later, and stays on the line after hanging up until the agent
has heard it: the hang-up is a packet like the rest. A line that names none joins as it always did,
with no relay. The gateway's log says what the network did when the call ends (the caller's network carried … packets up and lost …).
By phone. via: "sip" ("webrtc" unless said) has the caller ring the agent instead of sitting
in its room. The caller sits in a room of its own, on production's LiveKit, and that room dials a leg
over SIP to the env's own SIP service, in a carrier's codec (G.711 µ-law at 8 kHz), through the trunk
that admits production's hand-overs (Telephony, "A simulated caller's ring").
The agent's room holds a phone leg: the call's channel is phone, the caller is heard through what
a phone call goes through, hanging up is a BYE, and the call is the agent's at the number it answers
in the env, or, when it answers at none, at the box's test line (409 when there is neither). The
ring came through no carrier: it does not count as a call that reached the number, and is asked no
carrier account. It runs in the sandbox alone, on a box whose envs have a SIP service each (503
otherwise), and on a spoken call (400 on a written one). The line's network is the caller's own
room's, so via: "sip" takes the same four numbers. What can be refused is refused before the answer: a persona neither the agent
nor Pinecall has by that name, or nobody holding the agent in the key's world and scope, 404; the
org's limits as on a call, simulations among them (429, with credits.exhausted on the agent's log, and the call is never opened nor counted), a caller whose model, or whose voice when spoken, is on a vendor nobody keyed (503), and the org's simulated calls already on the
line in the world — ten at most, on every gateway together, 429 with Retry-After for the
eleventh (Limits and provider keys). The answer is {call, voice} at once,
the call minted by the platform, and the conversation goes on in the gateway: it is watched as any
call is, and GET /v1/simulations lists it. Its tools run for real, as on any call.
POST /v1/simulations/{call}/again places a simulated call again as it was placed, on a new call
of its own: the same agent and caller, written or spoken, the same turns, the same room behind the
caller at the same level, the same loss and pause, played on the same model and voice, and phoning
about the same thing — what a caller of the library was briefed with the first time is kept, so it
is not briefed again — on the voice and models the agent ran on for that call. It takes no body and
answers {call, voice} as the first did, refused for what refuses any simulation. What a call was
placed with is kept with its facts as it is placed; a call simulated before the runtime kept it
(migration 000027) is 409, and an id that is no simulated call of the key's environment and copies is 404. A call
of a comparison placed again is a run of its own, in no comparison.
A caller of the library is briefed before it phones. Pinecall's personas are written for every
business, so played as written they phone with nothing to say. When one is put on an agent — here,
by pinecall simulate, or from Studio — the gateway gives it the one concrete thing it calls about,
in the agent's own terms: the judge model reads what Generate reads and the caller's manner, and
writes its goal, adding a fact only where the goal needs one; its style, its behavior and what it
expects stay. What it reads of the agent: an agent built in Studio is its definition — its
instructions, how it opens, its tools — so it is read before anybody has called it; an agent of a class
writes its prompt per call, so it is the prompt its newest call ran on, its tools and what it knows.
It is one eval on the judge's key, as a generated caller is (evals.spent on the agent's log); a class
agent nobody has called yet, with no tools, is nothing to brief on, and the caller phones as written, as
it does when the judge model is down. POST /v1/agents/{slug}/personas/{name}/brief is that briefing
on its own, the CallerPersona answered: what the console shows before the call, and what
pinecall simulate asks once before it plays the caller itself. A persona written for the agent is
never rewritten.
scenario {goal, facts?} is what the caller phones about this run, said by the one placing it: the
goal in the first person, the facts over the persona's own. It is how a briefing a person read — or
edited — is the one the call plays: the caller is not briefed again, whoever it is. Left out, a caller
of the library is briefed as above and one written for the agent phones about its own goal.
played_by {llm?, tts?, voice?} plays the caller on another model, voice vendor or voice for this
run alone, over the persona's own; each unsaid stays the persona's, and a tts with no voice
drops the persona's voice for one of that vendor's the agent does not have. A model, a vendor or a
voice the deployment lacks is 400 before the answer, as when a persona is written.
against {stt?, llm?, tts?, voice?, language?, temperature?, end_of_turn?, smart_interruptions?, realtime?} runs the agent on another
voice or model for this call alone, over its settings and over what its class declares, as the console's test room does: each stage as
vendor/model, a voice of the voice vendor's, a language, a temperature, who ends the caller's turn
(stt, livekit, smart-turn), and whether a caller speaking over the agent stops it by the model that hears a floor-take
in their voice or by the transcript's words (smart_interruptions); nothing named is the agent's own. The sandbox's alone (403 in production), those knobs alone (422 for any other), and a
key that opens pipeline (403 otherwise); a model the deployment lacks or nobody keyed is refused as
the settings would refuse it. realtime names a model that hears and speaks itself, vendor/model, and the call
runs on it in the place of the three, as on the agent's own realtime setting: a spoken call's alone (400 for a
written one), on the org's own key for its vendor (409 on a lent key, 503 with none), each said before a call is
placed; an llm named takes the call off the agent's own realtime model. The call keeps what it ran on: the runs'
rows carry it as against.
POST /v1/simulations/compare {agent, persona, more_personas?, repeats?, voice?, turns?, interferer_db?, packet_loss?, ambience?, via?, delay_ms?, jitter_ms?, rate_kbps?, played_by?, against: [{…}, …]} puts each caller — persona, then each of
more_personas — against the agent under each of the values named, one to ten, repeats times each
(1 to 10, once unless said): one call per caller, values and repeat, a round of every pair before the
next round, under one id. One call tells whether a model can do a task; several tell how often it
does. The most calls one comparison places is the org's comparison_calls, ten unless the operator
gave it another (Limits and provider keys): past it the request is 400 before anything is placed,
its sentence naming the number, as is a configuration the key may not name. The calls the org's line
has room for are placed before the answer; the rest wait their turn, and the gateway that took
the request places each as the ones before it end, so a comparison larger than the org's calls at
once runs whole. The answer is {comparison, voice, calls: [{persona, against, call}], refused: [{persona, against, why}], waiting} — what started, what was refused in the gateway's words (a
vendor nobody keyed, the org's limits), and how many wait. The callers do not change; the agent does.
GET /v1/simulations/compare/{comparison} reads the table: {comparison, agent, persona, personas, voice, rows: [{call, persona, against, started_at, ended_at, turns, end_reason, score, cost_usd, latency: {e2e_latency, llm_node_ttft, tts_node_ttfb, transcription_delay, end_of_turn_delay}, why, goal, judges: [{name, verdict, reason}], replies, slowest_reply, cut_off, hearing, valid, invalid}]}
(persona the first caller, personas every one in the order placed), each measure the median over
the call's turns in seconds (null while no turn reported it). A caller is a task: goal is whether it
got what it expects of the agent, the expected-outcome judge's verdict (held, broken, na;
null until the call is scored, and for a caller that expects nothing), and judges is every judge
that answered, the goal's among them, so a call that booked the appointment and broke another judge
reads as both. replies counts the agent's answers, slowest_reply is the longest of them end to end
in seconds, and cut_off how many the caller talked over. hearing is how a spoken call was heard,
measured against what its simulated caller really said and when, which only a simulation knows
(null for a written call, and until the caller hangs up): {lines, unanswered, cut_by_the_room, cut_by_a_murmur, phantom_turns, talked_over, reply_s, slow_reply_s, word_error_rate} — the caller's
lines and how many the agent never answered before the next; the agent's replies cut off with nobody
of the caller's on the line (the room did it) and those a listener's murmur alone cut off; the turns
the agent heard while the caller was saying no line; the lines it began a reply in the middle of;
the seconds from the caller's last word to the agent's first (the median, and the one nine in ten
are under); and the share of the caller's words it got wrong, past 1 when it transcribed a room
nobody spoke in. A judge reads the transcript alone, so a call may hold every judge and still have
been heard badly: these are what says so. valid is whether the call measured its agent at all,
and invalid {kind, why} says why not, null for a call that counts: vendor when a vendor of the
agent refused or failed one of its stages (an error of component_failed or component_dead_end on
its log, an account out of credit among them); platform when our side lost it (nobody served it, its
worker went away, its session broke, the app that held its agent stopped, or it ended in an error its
log gives no reason for); caller when its own simulated caller broke on the line, or its voice broke
up: more than ten silences of 20 ms or more a minute of its lines, put there by the process playing it
being late with a frame (the call's facts keep the count, caller_line). A model that was wrong,
slow or silent is valid: that is the eval. A call still on the line counts until it ends. Every run's
row (GET /v1/simulations) carries the same. The rows come caller by caller and each
caller's best first — its goal held (every judge, for a caller with no goal judged), then every
judge held, then the most held, then the fastest reply, then the cheapest, a call that does not count
after every one that does, and a call still on the line last. The table also says what was asked for, so a call not placed yet has its place on it:
against (each configuration, in the order named), repeats, planned (every call it was to
place), waiting (those still without a place on the line), refused (each call that could not be
placed, and why, the ones refused after the answer among them), abandoned, playing and stopped.
Every call asked for is one of the three, so planned is the rows that count, the waiting and the
refused together once the comparison is played no more, and a reader that waits for the last call's
end always sees it. A call that did not count is placed again by its comparison, as one lost with
its process is: its own row stays, valid: false, and the call placed in its stead stands for its
place. That is done for a call its caller, our side or a vendor's own failure broke (a 5xx, a
connection that broke), twice at most for each call planned of its caller and setup: a third that does
not count is refused, no call of this caller on this setup counted, 2 placed again among them: …,
and none is placed once the comparison has as many calls as its org lets one place
(comparison_calls). A vendor that refused a call for good is rung no more: a component_dead_end
(a key or a model it does not know) stops that setup, and a refusal that says the account cannot pay
stops every setup of the comparison that names that vendor; stopped is [{against, why}], the
vendor's words, and the setup's calls still waiting, with the place of each that was on the line, are
refused no more calls are placed on this setup: … and cost nothing. playing is true while a
gateway plays the comparison (its last call has not ended, or a call that did not count may yet be
placed again): a reader that waits for its end waits for playing to go false, since for some
seconds after an invalid call ends no row is on the line and none waits. A reader of before
2026-11-26 stops at the rows and reads a table short of the calls placed again. As to the rest: a call is its comparison's row from the
transaction that claims it; one the gateway's database had no connection for waits its turn and is
asked for again, twenty seconds at most, then refused the database was busy; and one the gateway
broke placing is refused by the kind of its fault, the calls behind it placed all the same. A comparison is
played by the gateway that took its request, which says so every twenty seconds until its last call
ended. One whose gateway stops saying so for forty (a release, a crash) is taken up by another
gateway: a call that had not ended is placed again, the one that never began ended with why on its
log and the one on the line hung up, and the calls still waiting are placed as they would have
been; a call placed again is the table's row, and the one it stands for is none. abandoned is true
only for a comparison no gateway took up, with calls still waiting: those are never placed, and the
board says so rather than waiting. A call that waits more than forty-five minutes for a place is
refused with that sentence. A comparison made before these were kept reads against: [], repeats: 1 — and 404 for an id of nobody's in this key's org and env.
GET /v1/simulations?comparison= pages the same calls as runs.
Personas — GET /v1/agents/{slug}/personas, PUT · DELETE /v1/agents/{slug}/personas/{name}, GET /v1/agents/{slug}/personas/{name}/runs#
A persona belongs to one agent, in both environments: two agents of the org may each have an apurado
of their own. GET /v1/agents/recepcion/personas lists Pinecall's personas first (owner: "pinecall", each on as the agent switched it; no endpoint writes a switch for the whole org), then
that agent's own. on is what the console's Simulations screen offers to ring; a simulation
names any of them, on or off, and nothing plays them on a schedule. A class that declares its
personas is the agent's roster (AgentConfig.personas, Shapes):
?persona=, POST /v1/simulations and POST /v1/evals/voice find the class's own by name and
Pinecall's as the agent plays them, never a row written for the agent; the library's switches are
the class's on. With nobody holding the agent, what the last process in that environment declared
is read. The list is then the class's too: the library as the class switches it and the class's own
under owner: "class", every row fixed: true, and a PUT or a DELETE at that agent's, or a
persona kept from a case group, is 409 personas set by the class of {slug}: …. The library — in-a-hurry, wrong-number, non-native, interrupts, changes-mind,
elderly-slow, angry-repeat-caller, asks-for-a-person, switches-language, and the red team (tags: red-team):
prompt-leak, data-leak, off-task, harmful, unauthorized-action — is the runtime's
judging/library/personas/, every one off until switched on; PUT of a library name takes
{"on": …} and how that agent plays it: {"llm": "vendor/model"}, {"tts": "vendor"},
{"voice": "id"}, any of them together. What a PUT names is written and what it leaves out
stays; "" is back to the runtime's choice — the box's caller model (caller.llm of the
providers row), a voice the agent does not have. Anything else of it, or a DELETE, is 409. Any of them is played by its name. A library
persona acts on a spoken line as its file's front matter says (interrupts, pause_s,
interferer_db, packet_loss, backchannels, speed, ambience, ambience_turns): interrupts talks over 60% of the agent's answers,
in-a-hurry and angry-repeat-caller 30%, elderly-slow waits 2.5 s before each line and
non-native and switches-language 1 s. switches-language opens in the language the agent speaks and
changes to English from its third turn (to Spanish where the agent has been speaking English): what an
agent that says several languages is tried with.
PUT /v1/agents/recepcion/personas/apurado
{"goal": "Quiero cambiar la cita al martes.", "style": "frases cortas", "facts": {"nombre": "Ana"},
"expects": ["The agent should offer a slot on Tuesday.", "The agent should confirm before moving it."],
"tags": ["booking"],
"behavior": {"interrupts": 0.3, "pause_s": 1.0, "backchannels": 0.4, "speed": 0.9, "ambience": "cafe", "interferer_db": 15},
"llm": "anthropic/claude-haiku-5-5", "was": null}
expects is one verifiable demand a line, written "The agent should…", at most 20: the
expected-outcome judge holds the call to them and the model playing the caller never reads them.
behavior is how the caller acts on a spoken line: interrupts, pause_s, interferer_db,
packet_loss. The name is lower-case words joined by hyphens; was renames, within the agent. A vendor this deployment
lacks is refused when written (400), and so is one nobody keyed for the org (503, with the sentence a run would meet: xai has no key: the org brought none and the box holds none), not in the middle of a run. GET /v1/agents/{slug}/personas/{name}/runs pages the calls the persona made to that agent in the
key's environment, newest first, each with its turns, how it ended, its cost in
US dollars and the judges' score, and who played the caller as it ran: played_by {llm, tts, voice} (vendor/model of its lines, the persona's own or the run's, and of its voice, tts and voice null on a written call;
the row null for a call simulated before the runtime kept it) and caller_cost_usd, what that
caller cost; against, the voice and models the agent ran on over its settings for that call
(null when it ran them as they are) and comparison, the id of the comparison it was placed in (null
when placed on its own). GET /v1/simulations pages every simulated call the same way, or the agents named's
(?agent=, once or more), and ?call= reads one. These lists and a comparison's table read the copies
the calls list reads: in the sandbox the reader's own and the org's (a Studio agent's runs, an app the
box hosts), and every copy to a key that opens colleagues' (gateway-api).
Callers written for the agent — POST /v1/agents/{slug}/personas/generate#
POST /v1/agents/recepcion/personas/generate
{"n": 3, "about": "price questions", "from_call": "call_…", "template": "in-a-hurry"}
{"personas": [{"name": "price-shopper", "goal": "Quiero saber cuánto cuesta…", "style": "…",
"facts": {…}, "expects": ["The agent should give the price of a cleaning."],
"tags": ["pricing"], "behavior": {"interrupts": 0.3, "pause_s": 0.0, …}}, …],
"evals": 3, "cost_usd": 0.004}
One request to the model the agent's calls are judged on (Evals, the judge model)
writes up to n (1 to 10) callers from what the agent is: its prompt as its newest call ran it, its
tools, its knowledge; about steers them, from_call makes them like that call's caller, and
template writes one of the library's again for this agent. Each expects line is one verifiable
demand the prompt or the knowledge licenses, never about how the call ends. Nothing is saved: a
person keeps the ones worth keeping with PUT. Each caller written is one eval, none on the org's
own key, written as evals.spent (kind: "generate") on the agent's log; a deployment with no
judge model is 503.