Skip to main content
A simulated user is a model that plays the user in a conversation. After the assistant answers, the simulated user writes the next user message, so a single dataset row becomes a conversation with several user turns. You steer how it behaves on each row with a user persona. You add a simulated user by choosing a User Model on a synthesis or evaluation job. See Synthesize agent data and Evaluate with tools and a simulated user for the steps.
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:
  1. 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.
  2. 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.
  3. The conversation ends when the simulated user decides it is finished, or when it reaches the maximum number of user turns.
Without a user model, each conversation has exactly one user turn, and the assistant may still make several tool calls within it. The simulated user follows a platform-defined instruction. It writes brief messages in the user’s voice, never answers its own request, and builds on what was already said. When its goals are met, or when the assistant clearly cannot help further, it ends the conversation. You do not see an end marker in the output. The conversation simply stops after the last assistant response. The simulated user also answers calls to interactive tool implementations, so a job that attaches one must set a user model.

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 key user_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:
You can read a row’s persona in the dataset viewer. Open a row, and the persona appears under Tools & persona.

GENERATE PERSONAS WITH SYNTHESIS

In Generate Synthetic Data from Scratch, add a transformed attribute with the Attribute 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:
FAiE (Frontier AI Engineer Agent) can propose the dimensions and build these attributes for you. With the API, these attributes go in 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 agenticInferenceConfig for every field.