> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Simulator Service

> Simulator Service API methods in the Galtea SDK for running multi-turn conversation simulations.

> [!WARNING]
>
> You are reading the docs of Galtea 5.16. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/simulator/service.md).

The [Conversation Simulator](https://docs.galtea.ai/v5.16/concepts/product/dataset/test-case/conversation-simulator.md) is a feature for testing conversational AI systems. The `SimulatorService` in the Galtea SDK allows you to run these simulations programmatically. This service is exposed through the `galtea.simulator` object.

> [!NOTE]
>
> Remember that we will be using the `galtea` object. More information [here](https://docs.galtea.ai/v5.16/sdk/api/galtea.md).

## Quick Example

First, initialize the Galtea SDK:

```python theme={"system"}
galtea = Galtea(api_key="YOUR_API_KEY")
```

Simulate a conversation with your agent:

```python theme={"system"}
# Define your agent function
def my_agent(user_message: str) -> str:
    return f"Response to: {user_message}"


simulation_result = galtea.simulator.simulate(
    session_id=behavior_session.id,
    agent=my_agent,
    max_turns=3,
)
```

## Service Methods

* [Simulate Conversation](https://docs.galtea.ai/v5.16/sdk/api/simulator/simulate.md)

## Related

> [card] [Conversation Simulator](https://docs.galtea.ai/v5.16/concepts/product/dataset/test-case/conversation-simulator.md)
>
> Test your conversational AI with simulated multi-turn conversations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.