pinecall personas
The simulated callers: Pinecall's library switched on or off, your own written or generated, each with what it expects.
pinecall personas [list] | show <name> | try <name> | on <name> | off <name>
pinecall personas add <name> --goal '…' --style '…' [--about '…'] [--fact 'what=said']… [--expect '…']…
pinecall personas edit <name> [--goal '…'] [--style '…'] [--about '…'] [--fact 'what=said']… [--expect '…']… [--rename <name>]
… add and edit also take [--llm x] [--tts x] [--voice x] [--tag x]… [--interrupts 0-1] [--pause s]
[--backchannels 0-1] [--speed 0.5-2] [--ambience television|cafe|office|street] [--background-noise dB]
[--ambience-turns 0-1]
pinecall personas generate [N] [--about '…'] [--from-call <call>] [--template <name>] [--save]
pinecall personas rm <name> · pinecall personas pull
… any of them with --json, --prod in production, and --agent <name> or
--file agent.tsx when the project holds more than one agent
The callers are the AGENT's, kept by the gateway — one list per agent, the same in both environments:
the patient who cancels is the clinic's, and another agent of the org has callers of its own, even
under the same name. So the console shows the same ones this verb does, and a caller written here
needs no deploy. Or the code's: an agent with a agents/<agent>/test/personas.ts (.py, .rb),
beside its goldens, owns the roster. Every ownPersona({ name, goal, style, … }) the file exports
(own_persona(...), Pinecall.own_persona(...) it defines) is one of the agent's own, and its on
(ON in Python and Ruby) names which of Pinecall's its runs play; the class neither names them nor
imports the file, and the roster is sent when pinecall start or the deploy registers the agent.
The list then marks each of the code's rows class, and its last line names the file;
add, edit, rm, on and off are refused here with exit 2, naming the file, and the
console shows the roster locked. pull is the way across: it writes the roster the gateway keeps
into that file as code, once; the rows stay until rm drops them, which is done before the file
is written, or in the console.
A class that names its callers itself (@agent({ personas: ["in-a-hurry", hurried] }) in TypeScript,
personas = personas(on=…, own=…) in Python, personas on:, own: in Ruby) is the place they had
before, and it still owns the roster for an agent with no personas file: pinecall start says once
where they moved, pull writes them into the file, and then personas comes out of the class. The
two together are refused when the agent starts.
Pinecall's library comes first, each one off until pinecall personas on <name> switches it
on for the agent (the nightly plays what is on): realism — in-a-hurry, wrong-number,
non-native, switches-language, interrupts, changes-mind, elderly-slow, angry-repeat-caller,
asks-for-a-person — and a red team — prompt-leak, data-leak, off-task, harmful,
unauthorized-action. One of them is never dropped (rm says to switch it off) nor written: write
your own under another name.
$ pinecall personas
NAME OWNER ON ABOUT
in-a-hurry pinecall off A caller with two minutes who wants it done.
prompt-leak pinecall on A caller who tries to get the agent's instructions.
…
hurried yours on move the appointment to Tuesday
suspicious yours on find out the price of a crown
→ pinecall personas show <name> reads one
$ pinecall personas add price-shopper --goal "get a price for a deep clean" \
--style "blunt, impatient" --fact "their name=Tom Baker"
price-shopper written · 3 personas
add writes one whole; edit changes what is named and leaves the rest — a list (--expect, --tag)
is replaced whole by the ones given, not added to — and --rename moves it
to another name. --llm, --tts and --voice say how the caller is played, in the words
agent set takes for the agent — the model that improvises it, the vendor and the voice its lines
are read in — and a vendor or a voice the platform does not have, or a vendor nobody keyed for the org, is refused when it is written. Unset,
the runtime chooses: its default model, and a voice the agent does not have; edit --voice ''
clears one back. --expect '…', repeated, is what the caller expects of the agent, one verifiable
line each, written "The agent should …": the expected-outcome judge holds every call of theirs to
them at hang-up, and the model playing them is never told. --interrupts 0.4 makes a spoken caller
talk over that share of the agent's answers, some way into them — so the agent's barge-in is tested
for real; each answer is a draw of its own, never the notice or the greeting, so a call of three
answers at 0.6 passes with none cut one time in sixteen, and 1 cuts every one. A cut answer is a
turn.agent with interrupted: true — and --pause 2 leaves two seconds of silence before each of their lines.
--backchannels 0.3 has them murmur an "mm-hmm", in their language, into that share of the
answers a few seconds in, keeping their turn, so an agent that stops for a listener's noise is
found out; --speed 0.8 makes them a slower talker, their words a little slower and the pauses between their phrases
longer, and 1.3 hurries their voice to that much of the vendor's tempo, the pitch kept; --ambience cafe says what plays behind them — television, cafe, office
or street, each the same sound every run — at the --background-noise dB under them, and
without a level nothing plays; --ambience-turns 0.5 has it heard behind that share of their own lines and
nowhere else, a noise that comes and goes, where 1 (the default) is a room that never stops, under the agent's
answers and through every silence. show prints one a label a line — about, goal, style, how they speak,
their facts, what they expect (and says so when they expect nothing) — with the models that play them
only when one is not the runtime's; rm drops it; try puts it on the class in
this directory, which is simulate without the judge. A name is lower-case letters and digits
joined by hyphens, as --persona takes it — anything else is refused here, with exit 2, before it
travels. A caller nobody wrote is the same sentence and the same exit 2 from show, edit,
rm and try.
Every verb names the agent whose callers it reads and writes: the project's one agent, by the
slug its folder's name, or the one --agent names (--file names the class
by its path). A project of several with nobody named is refused with the names, and an agent the
project does not have is refused before the gateway is asked. try calls that agent as the
caller, and push sends that agent's files as its callers. --json prints what
the gateway answered — the caller for show, the roster ({"personas": […]}) for list, add,
edit, rm and push; try prints a call as it happens, has no answer to print, and refuses the
flag with exit 2.
generate asks the judge model to write callers for the agent — N of them (3 unless said,
up to 10) — from its prompt, its tools and its knowledge; --about steers them, --from-call makes
them like a real call's caller, --template writes one of the library's again for this agent, N times
with N (say 1 for one). Each comes with what it expects. They are printed and saved nowhere; --save keeps every one as the
agent's own — as rows, or, when its code owns the roster, as code appended to
agents/<agent>/test/personas.*, an ownPersona each, which plays from the next start; a written line names each file and name.
A class that still names its callers is refused here with exit 2, saying that pull moves them first.
The code written holds what the caller is, never a default: a behavior field at the runtime's own
value (interrupts: 0, speed: 1, no ambience) is left out, as pull leaves it out.
Each caller written is one eval, none when your judges run on your own key. The console's
"generate" keeps one the same way, through the pinecall start in the agent's directory.
pull writes the agent's roster as the gateway keeps it to agents/<agent>/test/personas.* as
code. A file that is not there is started with on, naming the ones of Pinecall's that are on, and
then holds every one of the agent's own, an ownPersona each, what add sends — the ones its class
still names among them, which is how a class that names its callers moves them: pull, then
personas out of the class. Into a file that is there go the rows the gateway keeps and the code
does not. A name the file declares already is refused, and the rows stay. (The push of earlier
versions, which sent files to the gateway once, is gone: the code is the agent's.)