With a harness, the simulated user answers when your harness pauses for input. See Evaluate with a harness.
HOW A CONVERSATION PROCEEDS
In an evaluation or a Generate Completions job, each row starts from its first user message. Oumi keeps everything up to and including that message, removes every later message, and then runs this loop:- The assistant model responds. If the response contains tool calls, each call goes to the tool implementation attached for that tool, and the result is appended as a tool message. The assistant responds again, and the loop repeats until the assistant replies without a tool call.
- The simulated user reads the user and assistant messages so far, plus any interactive tool calls it answers, and writes the next user message. It doesn’t see other tool calls, tool results, or the system message. The assistant then responds again, starting from step 1.
- The conversation ends when the simulated user decides it is finished, or when it reaches the maximum number of user turns.
TURN LIMITS
Max user turns sets the most user turns in one conversation, including the first user message. Set it low, such as 5, unless your real conversations run longer. If you have real traces, count the user turns in them and use the maximum plus a small buffer. Longer conversations cost more, and the extra turns rarely add new behavior. Oumi also stops an assistant that keeps calling tools without answering the user. See Review the output.STEER THE USER WITH A PERSONA
A persona is metadata on each row that steers the simulated user. Store it under the reserved keyuser_persona, and the simulated user follows it on every turn it writes. A dataset for Generate Completions or an evaluation looks like this, one conversation per line:
GENERATE PERSONAS WITH SYNTHESIS
In Generate Synthetic Data from Scratch, add a transformed attribute with theAttribute ID user_persona. Oumi copies its value into each conversation’s metadata. Build it from separate sampled attributes, so that each dimension of the persona varies independently. With the API, the attributes look like this:
strategyParams of a Generate Synthetic Data from Scratch recipe. See Synthesis recipes for a complete request.
WRITE GOOD PERSONAS
- Vary personas across rows. Similar personas produce similar conversations. Vary the user’s goal, background or expertise, temperament, and how clearly they state the request.
- Write the goal from the user’s side. Describe what the user wants (“You want to cancel a hotel reservation”), not what the assistant should do.
- Cover every tool. Include goals that require your less common tools. Do not name tools in the persona.
- Withhold some details. Give the persona specifics, such as an order id or a budget, that it reveals only when asked. This makes the assistant ask clarifying questions.
- Do not over-script the user. A clear goal usually works better than a detailed script.
REQUIREMENTS
- The User Model list shows only models that can play the user.
- Max user turns (
maxUserTurns) requires a user model. - See
agenticInferenceConfigfor every field.