# Qwen Agents

This package contains OpenAI-compatible Qwen vision agents for OSWorld.

## Agents

- `QwenAgent`: Qwen computer-use agent with expanded actions, DashScope `enable_thinking` handling, and infeasible-task fallback behavior.

Preferred imports for new code:

```python
from mm_agents.qwen import QwenAgent
```

## API Configuration

The agents use an OpenAI-compatible Chat Completions endpoint.

```bash
export OPENAI_BASE_URL=http://127.0.0.1:8000/v1
export OPENAI_API_KEY=dummy
```

Useful runtime knobs:

- `OSWORLD_MAX_RETRY_TIMES`
- `OSWORLD_OPENAI_TIMEOUT`
- `OSWORLD_HTTP_CONNECT_TIMEOUT`
- `OSWORLD_HTTP_READ_TIMEOUT`

## Runner Example

```bash
python scripts/python/run_multienv_qwen.py \
  --model qwen3.7-plus \
  --base_url "$OPENAI_BASE_URL" \
  --api_key "$OPENAI_API_KEY"
```
