pinecall generate
One more agent in the project, or one more golden (g for short).
pinecall generate agent <name> [--typescript | --ruby | --python]
pinecall generate golden <name> --say '…' [--say '…']… [--tool <name>]… [--agent <name>]
g for short. Run at the project's root; it writes files and nothing else, and never over a file
that is there.
agent writes an agent's folder, agents/<name>/: its class, its ring-0 test under
agents/<name>/test/, one golden and its docs/ folder with a README. It is written in the project's language unless
--typescript, --ruby or --python says otherwise. At the root, pinecall start then
holds every agent, and a verb about one takes --agent.
golden writes agents/<agent>/test/goldens/<name>.json. A golden is turns: each one a caller's
line (say) or a fact of the backend (event); after a line, what must follow it, in order
(then), asserted with livekit's own test run of that line. An event turn takes no then.
--say writes one turn per line, in order; --tool the tools the whole call must make, in its
expect. What must follow each turn — then: a tool with its arguments, a tool that must not run,
a reply with its phrases and its intent, the end of the call, nothing else — and the rest of
expect (says, not, grounded, register, a judge by name) are added by hand
(golden expectations). --agent names the
agent when the project has several.
$ pinecall g golden asks-for-a-refund --say "Hi, I want a refund." --say "It's Ana Ruiz." --tool takeMessage
wrote agents/front-desk/test/goldens/asks-for-a-refund.json
{
"turns": [
{ "say": "Hi, I want a refund." },
{ "say": "It's Ana Ruiz." }
],
"expect": { "tools": ["takeMessage"] }
}
The same file, with what must follow the second turn written in:
{ "say": "It's Ana Ruiz.",
"then": [
{ "tool": "takeMessage", "args": { "name": "Ana Ruiz" } },
{ "reply": { "intent": "tells the caller the message reached the team" } }
] }
A golden from a call that already happened is pinecall runs promote <call>; a simulated caller is
pinecall personas add, kept by the gateway, not a file.