Represent instructions as agents
An Agent can specify instructions without representing a demographic persona. Here each agent supplies one instruction and aninstruction_id trait identifying the condition. The first feedback message, “Great, another unexpected charge,” allows a literal or sarcastic reading; the second, “The receipt arrived today,” offers a simpler comparison.
.by(agents).by(records) gives each instruction configuration both records. The question and response options stay the same, so the four interviews compare the two ways of instructing the model on matched inputs. Agent traits also appear in the prompt, so these configurations include their identifying traits as well as the instruction text.
Put the answers side by side
With model access configured, run the job and arrange its answers into one row per record:literal and inference. A difference within a row means the two configurations produced different labels for the same text. The example does not assume which labels the model will choose: agreement on both records is also a possible result.
To see the actual instructions and question sent for each interview, select the recorded prompts:
Vary a different part of the prompt
Use agent instructions when a general way of answering should apply across a survey. For question-specific wording, put the alternatives in scenarios and substitute them into a question template; Experimental conditions shows that pattern. A question’sanswering_instructions can change the guidance for producing its answer, while survey memory changes which earlier exchanges are supplied as context.
To examine whether the same instruction difference appears across models, attach a ModelList. To examine repeated responses, use job.run(n=3). In either case, keep the model or iteration fields with the answers: the simple pivot above assumes exactly one answer for each record and instruction condition.