Skip to main content
Build an agent that can check the status of a customer’s order. You’ll define the tool it can call, give the tool a simulated implementation, and evaluate whether the agent calls it correctly and answers using its result. You’ll finish with an evaluation of the agent’s behavior, including its tool calls and final responses. You don’t need a live order system or a trained model to get started.

BUILD WITH FAiE

FAiE (Frontier AI Engineer Agent) can help create tools, test implementations, and configure evaluations. Open Ask FAiE in your project and describe the workflow you want:
Review the tools, settings, and evaluators FAiE proposes before approving jobs. You can also complete the same workflow manually below.

BEFORE YOU START

Create a project in Oumi, or open an existing one. The agent, the simulated tool, and the judge each call a model. These model calls are billed as inference. This tutorial evaluates an agent with one tool, get_order_status, on a small test dataset. It does not deploy a complete production agent.

1. DEFINE THE ORDER-STATUS TOOL

  1. Open your project’s Tools page and click Create Tool.
  2. Enter Get Order Status as the display name and get_order_status as the function name.
  3. Describe when the model should call it: “Return the current status and expected delivery date of one order. Call when the customer asks where an order is or when it will arrive.”
  4. Add one required string parameter named order_id. Describe the parameter: “The customer’s order ID.”
  5. Under Output schema, open the JSON tab and paste the schema below so the simulated tool formats the output correctly. Click Create Tool.
A tool defines what the model can request, not how that request is answered. See Tools for parameter schemas.

2. SIMULATE THE TOOL’S RESPONSE

Oumi opens the implementation form after you create the tool.
  1. Enter Simulated order status as the display name.
  2. Choose Simulated as the implementation type.
  3. Under Simulating model, select a model to generate tool responses.
  4. In the Tool persona, enter:
  1. Keep Cache repeated calls on, so that tool calls with the same inputs in a conversation return identical outputs.
  2. Create the implementation. On its page, use the Test card to call it with the arguments below, then click Run test.
Confirm that the output has a status and, if present, an expected_delivery date. Because a simulated implementation uses a model, its results can vary. For deterministic tests, replace it later with a Lookup implementation; for real order records, use an Endpoint implementation connected to your HTTPS or MCP service. See Tool implementations.

3. UPLOAD A FEW TEST REQUESTS

Create a local file named order-status-test.jsonl and paste in the following three lines. Each line is one conversation that ends with a user request.
Open Datasets, click Create Dataset, choose Upload a Dataset, and upload the file. Oumi creates a Conversation dataset, which you can select when you run the evaluation. See Upload datasets if you need help with the format or quality checks.

4. CREATE A TOOL-USE EVALUATOR

Go to Evaluators, click Create Evaluator, and choose LLM Evaluator.
  1. Under Judgments, add two judgments: label Correct with score 1, and label Incorrect with score 0.
  2. Under Model Settings, select a judge model.
  3. Under Prompt, enter:
Save the evaluator as Order status tool use. The evaluation should measure the steps taken, not just whether the final sentence sounds helpful. See Create judge evaluators.

5. RUN YOUR AGENT EVALUATION

  1. Open Evaluations, click Run Evaluation, and choose Run an Evaluation.
  2. Under Inference Source, keep Use model. Choose a tool-capable model as the Assistant Model.
  3. Select Order status tool use as the evaluator and order-status-test as the dataset.
  4. Expand Tools and click Select tools and implementations. Select the simulated implementation of get_order_status.
  5. Click Execute, name the evaluation, and click Run Evaluation.
For this first run, leave User Model empty. Each example asks one question, so you can focus on whether the model chooses the right tool. To test follow-up conversations later, add a simulated user and set Max user turns. See Evaluate agents.

6. INSPECT THE RESULTS

Open the completed evaluation. Review the scores and inspect individual conversations, including the assistant’s get_order_status call, the arguments, the simulated tool output, and the final response. If a row fails, identify whether the problem is the tool description, the implementation output, or the model’s decision. Fix the appropriate part, then run the same dataset and evaluator again to compare results. See Evaluation results. You’ve now built and evaluated a tool-using agent in Oumi.

7. SYNTHESIZE AGENT DATA (OPTIONAL)

Use Synthesize agent data to generate more tool-using conversations for training or evaluation. With Generate Completions, you can reuse your test prompts and tool implementations to produce full conversations, optionally adding a simulated user for multiple turns. Review the generated examples before using them in a training or evaluation dataset.

NEXT STEPS

Train a specialized model

Fine-tune a model on high-quality conversations, then compare it with your baseline.

Run your agent

Deploy the underlying model for inference and connect it to an agent harness such as pi or Hermes.

Bring your own harness

Evaluate an existing agent while keeping its orchestration, tools, and state in your runtime.

Continuous improvement

Use evaluated results and production evidence to guide further model improvements.
Deploying a model endpoint does not by itself host the full agent runtime. The tool loop, orchestration, and state must run in an agent harness or application. See Run your agent.