Heura Studios Docs
Log in Book a demo

The four Agent mode tools, every action they take, and the fields each action reads.

Agent mode has four tools. heura_read takes the action in what; the other three take it in do. Most actions also take model, the model’s id.

{ "do": "add_demo", "model": "quarry-3f9a1c2b7d", "q": "How many orders shipped last month?", "a": "SELECT count(*) FROM orders WHERE ..." }

The tools use the Studio’s own names for things: a policy is a rule or fact, a demo is an example, a correction is a fix, and an eval is a test question.

heura_read

Look. Read-only.

whatFieldsReturns
modelsEvery model the account can open. Start here.
statemodelThe model’s full picture: script, counts, versions, settings.
changesmodel, sinceWhat changed since a cursor. Read this instead of state again.
policiesmodel, idRules and facts.
demosmodel, idExamples.
correctionsmodel, idFixes.
filesmodel, idFiles.
evalsmodel, idTest questions.
resultsmodelTest results, with what each run fixed and broke.
runsmodelTraining runs and their rounds.
servingmodel, fullThe endpoint, website agent and live version.
chatmodel, sessionA chat’s messages.
interviewmodelThe interview and what it covered.
basesThe base models the account can build on.
enginesThe engines the account can answer with.
usageThe account’s usage.

Lists return up to 50 rows by default; use limit (up to 200) and offset to page. Long text in a list is cut short; pass id (and full: true) for one row whole.

heura_write

Build. Adds and edits reach the model’s users at once.

doFields
create_modelname, purpose, voice, kit, base, color, script
update_modelname, purpose, voice, color, abilities, daily_cap
add_policytext, kind (rule or fact), topic
edit_policyid, text
add_demoq, a
edit_demoid, q, a
import_demoscsv (question and answer rows)
add_filename, text or base64
add_evalq, must, must_not, ideal
edit_evalid, q, must, must_not, ideal
evals_from_demos
askq, session, why
goodmessage_id, session
fixmessage_id, answer, session
interviewtext
run_evals
compareengine (kind, connection, model)
train
evaluateversion (an uploaded version)
check_importrepo
retry_importid
export

All with model where the action is about one.

heura_release

Release. Changes what a model’s users get.

doFields
promoteversion (0 is the base model)
plug, unplugwire
add_tool, remove_toolnode
autorun_at (1 to 100, 0 is off), nightly_evals
update_servingtitle, greeting, color, allowed_sites
new_api_key
switch_engineengine (kind: heura or connection, connection, model)

heura_remove

Remove. Deletes or cancels.

doFields
delete_model
remove_policy, remove_demo, remove_file, remove_evalid
unqueueTakes the model’s run out of the line.
cancel_openaiCancels a GPT fine-tune on OpenAI.
cancel_import, delete_importid
clear_chatsession

Refusals

A refused call returns the Studio’s own words, the status, and anything that helps, like retry_after. The instructions an agent receives on connecting say it plainly: a refusal is the Studio’s own words; do what it says and call again.

{ "error": "Add at least one test question first. Every run is scored on the tests before and after, and a checkpoint that breaks more test questions than it fixes never goes live.", "status": 400 }