Declare the per-row inputs a prompt needs
Read a prompt, work out which values have to change from row to row, declare them, and return the prompt with each literal mention replaced by a reference to what was declared. Inputs the agent already declares keep their ids and are never dropped. Nothing is stored — the caller drops the result into the editor and decides what to keep.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
A prompt to work out the per-row inputs of.
A saved agent's prompt: literal text with references between the runs.
The same convention every other stored prompt in the product uses
(EnrichmentPromptTemplate for columns, template segments for
sequences): identity-keyed segments, so renaming what a reference points
at never rewrites the prompt. Structurally parallel to the enrichment
template rather than importing it — an agent prompt references INPUTS,
an enrichment prompt references COLUMNS, and the import hierarchy keeps
the two domains apart.
20Response
Successful Response
The declared inputs, and the prompt rewritten to reference them.
Every declared input after the pass: the ones already held, each keeping its id, plus any the prompt turned out to need.
A saved agent's prompt: literal text with references between the runs.
The same convention every other stored prompt in the product uses
(EnrichmentPromptTemplate for columns, template segments for
sequences): identity-keyed segments, so renaming what a reference points
at never rewrites the prompt. Structurally parallel to the enrichment
template rather than importing it — an agent prompt references INPUTS,
an enrichment prompt references COLUMNS, and the import hierarchy keeps
the two domains apart.