> ## 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.

The [Conversation Simulator](/concepts/product/test/case/conversation-simulator) 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.

<Info>
  Remember that we will be using the `galtea` object. More information [here](/sdk/api/galtea).
</Info>

## 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](/sdk/api/simulator/simulate)

## Related

<Card title="Conversation Simulator" icon="user-group" iconType="solid" href="/concepts/product/test/case/conversation-simulator">
  Test your conversational AI with simulated multi-turn conversations
</Card>
