|
Download README.md from netop/AI-Agents-for-RAN-Challenge: direct link, hf CLI and curl.
- Browser
- Download file 13.5 kB
-
https://huggingface.co/datasets/netop/AI-Agents-for-RAN-Challenge/resolve/main/README.md
- Command line
-
hf download hf://datasets/netop/AI-Agents-for-RAN-Challenge/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/netop/AI-Agents-for-RAN-Challenge/resolve/main/README.md
13.5 kB
| language: | |
| - en | |
| tags: | |
| - ai-agents | |
| - telecommunications | |
| - radio-access-network | |
| - simulation | |
| - tool-use | |
| - challenge | |
| pretty_name: ' AI Agents for RAN Challenge — Participant Resources' | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: test | |
| path: problems.json | |
| extra_gated_fields: | |
| First Name: text | |
| Last Name: text | |
| Affiliation: text | |
| Country: country | |
| Job title: | |
| type: select | |
| options: | |
| - Student | |
| - Research Graduate | |
| - Researcher | |
| - Engineer | |
| - Reporter | |
| - Other | |
| geo: ip_location | |
| <div align="center"> | |
| <img src="https://www.giuliaapi.com/static/challenge-banner.svg" width="100%" alt="AI Agents for RAN" /> | |
| </div> | |
| # AI Agents for RAN Challenge | |
| Build an AI agent that investigates radio networks, tests engineering decisions | |
| and returns answers supported by simulation results. | |
| The challenge contains **20 radio access network (RAN) problems**, covering | |
| network analysis, diagnosis and optimization. Each problem defines the scenario, | |
| objective, permitted changes, constraints, simulation budget and required answer | |
| format. Agents interact with **[Giulia](https://www.giuliaapi.com)** to inspect scenarios and run experiments. | |
| All participants must use **[Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B)** | |
| as the base language model for their agent. The included ReAct baseline uses this | |
| model by default. | |
| Start with the demo, then run one challenge problem and inspect its answer and | |
| conversation before attempting all 20. See | |
| [Zindi](https://zindi.world/competitions/ai-agents-for-ran-challenge) for the full competition rules. | |
| ## Included resources | |
| | File | Purpose | | |
| | --- | --- | | |
| | [problems.json](problems.json) | All 20 problems, simulation budgets and answer fields. | | |
| | [run_problems.py](run_problems.py) | Execute problems, save answers and traces, and resume unfinished runs. | | |
| | [react_agent.py](react_agent.py) | ReAct baseline using an OpenAI-compatible model API and Giulia REST tools. | | |
| | [agent.py](agent.py) / [example_agent.py](example_agent.py) | Common agent interface and a template for your implementation. | | |
| | [demo_problem.json](demo_problem.json) | Separate example comparing three network configurations. | | |
| | [sample_submission.csv](sample_submission.csv) | Blank competition submission template. | | |
| | [trace_contract.py](trace_contract.py) | Check conversation format locally. | | |
| ## Install | |
| Use **Python 3.10 or later**. Download the files into one folder and run commands | |
| from that folder. A virtual environment is recommended. | |
| ```bash | |
| python -m pip install -r requirements.txt | |
| ``` | |
| ## Configure access | |
| Set your assigned Giulia key and your OpenRouter key. | |
| PowerShell: | |
| ```powershell | |
| $env:GIULIA_API_KEY = "<your Giulia key>" | |
| $env:MODEL_API_KEY = "<your OpenRouter key>" | |
| ``` | |
| Linux or macOS: | |
| ```bash | |
| export GIULIA_API_KEY="<your Giulia key>" | |
| export MODEL_API_KEY="<your OpenRouter key>" | |
| ``` | |
| The runner connects to Giulia at `https://platform.giuliaapi.com`. | |
| The default model endpoint is `https://openrouter.ai/api/v1`, with model ID | |
| `qwen/qwen3.6-35b-a3b`. | |
| See the [OpenRouter documentation](https://openrouter.ai/docs/quickstart) for | |
| account and API setup. | |
| `--model-url` and `--model` override the model endpoint and model ID. | |
| `OPENAI_BASE_URL` can also set the model endpoint. Supply the complete API base | |
| URL, including `/v1` if your server requires it. To try a local OpenAI-compatible | |
| server, such as vLLM, supply its URL and served model name: | |
| ```bash | |
| python run_problems.py --demo --model-url http://localhost:8000/v1 --model your-served-model --output local_demo.csv | |
| ``` | |
| Model credentials are read only from `MODEL_API_KEY`. Use the key for the | |
| provider selected by `--model-url`. For a local server without authentication, | |
| leave `MODEL_API_KEY` unset. | |
| Giulia enforces simulation limits. Your daily quota applies to both demo and | |
| challenge runs, and its remaining balance is displayed at startup when available. | |
| ## Try the demo | |
| ```bash | |
| python run_problems.py --demo | |
| ``` | |
| The demo compares the default ITU UMa network with two configurations that | |
| reduce transmit power at site 0 by 3 dB and 6 dB. It uses three simulation steps | |
| and returns mean user throughput and its changes relative to baseline. | |
| See `demo_problem.json` for the complete task. | |
| The runner saves answers and the execution trace in `demo_submission.csv`. | |
| The demo is separate from the 20 challenge problems and is not a competition | |
| submission. | |
| Reference answer for the demo: | |
| ```json | |
| { | |
| "baseline_mean_throughput_Mbps": 7.597, | |
| "minus_3dB_mean_throughput_Mbps": 7.578, | |
| "minus_6dB_mean_throughput_Mbps": 7.548, | |
| "minus_3dB_change_Mbps": -0.019, | |
| "minus_6dB_change_Mbps": -0.048 | |
| } | |
| ``` | |
| Check its trace with: | |
| ```bash | |
| python trace_contract.py demo_submission.csv --demo | |
| ``` | |
| ## Run the 20 challenge problems | |
| ```bash | |
| python run_problems.py --output submission.csv | |
| ``` | |
| Without `--problems`, the runner executes all 20 challenge problems. Select one | |
| or more IDs to run a subset, in the order supplied: | |
| ```bash | |
| python run_problems.py --problems C03 --output c03.csv | |
| python run_problems.py --problems C03 C07 C12 --output trial.csv | |
| ``` | |
| Problems run sequentially from `problems.json`. Each has a complete `question`, | |
| required `output_fields` and a simulation budget, `max_runs`. | |
| The runner creates and closes a workspace for each problem. Use `--timeout` | |
| to set the per-problem time allowance in seconds (default: 3600, including setup). | |
| `--demo` and `--problems` cannot be combined. | |
| If you already have an open workspace, the runner stops. Close it yourself or | |
| add `--force` to delete your existing workspaces before starting: | |
| ```bash | |
| python run_problems.py --problems C03 --output c03_new.csv --force | |
| ``` | |
| **`--force` deletes existing workspaces and their simulation results**, including | |
| those used by another run under your account. If a workspace is busy, wait for | |
| the operation to finish. This option does not overwrite local output files. | |
| ## Saved files and resuming a run | |
| For `--output submission.csv`, the runner saves exactly these files: | |
| ```text | |
| submission.csv | |
| submission_run/ | |
| conversations.jsonl | |
| run.json | |
| ``` | |
| - **`submission.csv`** contains every required competition row, including when | |
| running a subset. Answers for tasks not executed remain blank. Each trace row | |
| contains the problem ID and conversation; tasks not started have an empty | |
| conversation. | |
| - **`conversations.jsonl`** contains the saved conversations in a readable form, | |
| one JSON record per problem with a nonempty conversation. | |
| - **`run.json`** records the original problem selection, model, model endpoint, | |
| timeout, agent class and dataset fingerprint. It contains no API keys or duplicate answers. | |
| The runner saves after every problem, including failures and interruptions. | |
| Use `Ctrl+C` to stop and save the current partial trace. Forcibly closing the | |
| process may lose the current problem's unsaved work. | |
| To resume: | |
| ```bash | |
| python run_problems.py --resume --output submission.csv | |
| ``` | |
| Resume restores the original selection and settings. It skips complete answers | |
| with valid traces, including `NOT_SOLVABLE`, and reruns unfinished or invalid | |
| tasks in new workspaces. It does not continue an interrupted conversation. | |
| Keep the CSV, `run.json`, original dataset and agent code available, and set your | |
| API keys again. Do not combine `--resume` with `--problems`, `--demo`, `--model`, | |
| `--model-url`, `--timeout` or `--agent`. Use a new output filename to change | |
| settings or agent code, or to repeat a completed task. | |
| To resume the demo, use `--resume --output demo_submission.csv`. | |
| ## Use your own agent | |
| The default is `react_agent:ReactAgent`. To use another agent, put its Python | |
| module next to `run_problems.py` and select the class: | |
| ```bash | |
| python run_problems.py --agent my_agent:CustomAgent --demo --output my_demo.csv | |
| ``` | |
| `my_agent` is the filename without `.py`; `CustomAgent` is the class name. | |
| Start from `example_agent.py` and implement `run(task)` and `kill()`. | |
| The template and ReAct baseline both inherit from `Agent` in `agent.py`. | |
| You can also integrate other open-source agent frameworks or harnesses by | |
| implementing an adapter that follows the `Agent` interface in [`agent.py`](agent.py). | |
| The adapter must accept the same configuration and task inputs, implement | |
| `run()` and `kill()`, and return results and conversation traces in the documented | |
| format. | |
| The runner creates a new instance per problem, passing `model`, `model_url` | |
| and `model_api_key` (from `MODEL_API_KEY`, or `None` when unset). | |
| Use these supplied settings and pass them to `super().__init__()` to initialize | |
| the base class and `self.conversation`. | |
| A successful `run(task)` returns: | |
| ```python | |
| return { | |
| "status": "completed", | |
| "final_answer": '{"requested_field": 12.345}', | |
| "conversation": self.conversation, | |
| } | |
| ``` | |
| `run(task)` receives the problem and its Giulia connection details: | |
| | Field | Meaning | | |
| | --- | --- | | |
| | `id` | Problem ID. | | |
| | `prompt` | Complete problem statement. | | |
| | `timeout_s` | Remaining time allowance, in seconds. | | |
| | `giulia.url` | GiuliaAPI service URL, without `/api` or `/mcp`. | | |
| | `giulia.api_key` | Participant GiuliaAPI key. | | |
| | `giulia.workspace_id` | Workspace assigned to this problem. | | |
| The runner passes connection details only. Your agent chooses the protocol and | |
| performs tool discovery itself. ReAct fetches definitions from | |
| `giulia.url + "/api/tools/openai"` and calls tools with POST requests to | |
| `giulia.url + "/api/" + tool_name`. An MCP agent can connect to | |
| `giulia.url + "/mcp"` and discover tools using MCP. | |
| Use `X-API-Key` and `X-Workspace-ID` headers with the supplied values, including | |
| during discovery. Use the supplied Giulia URL, stay within the assigned workspace | |
| and keep request timeouts within the task's remaining allowance. | |
| `final_answer` must be a **string containing the requested JSON object**, not a | |
| Python dictionary. For a technical failure, return `status="failed"`, | |
| `final_answer=None` and an `error` string, or raise an exception. | |
| `timeout` and `killed` are also accepted execution statuses. Preserve the | |
| conversation in every case. | |
| `kill()` is called after each task, including on timeout or `Ctrl+C`. It must | |
| return promptly, stop further requests and leave the conversation available. | |
| Cancellation is cooperative; the runner cannot forcibly stop arbitrary agent | |
| code. Keep constructors quick and perform requests inside `run()`. | |
| Test your agent with the demo: inspect the saved answer and trace, then start | |
| another run with a new output filename and interrupt it with `Ctrl+C`. | |
| Check that requests stop and the partial conversation is saved. | |
| ### Conversation format | |
| Append messages to `self.conversation` during execution and return that same list. | |
| The runner snapshots this live list, including when a task fails or is interrupted. | |
| Use the following message format, regardless of your model provider or framework: | |
| ```json | |
| [ | |
| {"role": "user", "content": "The complete problem statement"}, | |
| { | |
| "role": "assistant", | |
| "content": null, | |
| "tool_calls": [{ | |
| "id": "call_1", | |
| "type": "function", | |
| "function": { | |
| "name": "run_simulation", | |
| "arguments": "{\"sim_id\":\"simulation_id\"}" | |
| } | |
| }] | |
| }, | |
| { | |
| "role": "tool", | |
| "tool_call_id": "call_1", | |
| "content": "{\"status\":\"completed\"}" | |
| }, | |
| {"role": "assistant", "content": "{\"requested_field\":123}"} | |
| ] | |
| ``` | |
| Record actual messages, arguments and responses. Roles are `system`, `user`, | |
| `assistant` and `tool`. Content must be a string; only assistant messages may use | |
| `null`. Tool arguments are strings containing JSON; JSON-encode structured tool | |
| responses. Preserve malformed arguments and errors as observed. | |
| Use `tool_call_id` to associate responses with calls. Record calls before | |
| executing them; interrupted traces may end with an unanswered call. Internal | |
| model reasoning and extra metadata are optional. The runner validates structure | |
| and field types, and saves the trace for you. | |
| ## Answers and submission | |
| The final answer contains the flat JSON object requested in `question`. The runner adds | |
| the problem prefix and status: for example, `site_id` becomes `C01_site_id`. | |
| `sample_submission.csv` is the blank competition template. The completed CSV has | |
| columns `ID,Value` and 144 rows: 124 answer/status rows and 20 trace rows, | |
| `C01_trace` through `C20_trace`. Each trace value is a JSON object with `id` and | |
| `conversation`, matching that problem's record in `conversations.jsonl`. | |
| Messages and tool calls are preserved. The runner redacts your assigned Giulia key | |
| and the supplied model API key; custom agents must avoid logging any other credentials. | |
| A normal answer produces status `ANSWERED`. To declare a problem not solvable, | |
| return exactly `{"status":"NOT_SOLVABLE"}`. Its ordinary answer fields remain | |
| blank. This claim is evaluated; it is not an automatic response to a failed search. | |
| Pending tasks, malformed answers and execution failures leave answer rows blank | |
| and are reported in the terminal. | |
| Check that the competition traces follow the required conversation format: | |
| ```bash | |
| python trace_contract.py submission.csv | |
| ``` | |
| The validator checks all 20 traces, so a subset run reports unattempted problems | |
| as missing. The runner | |
| returns a nonzero exit code if a selected task has no complete answer or valid | |
| trace. Upload the completed competition `submission.csv` to [Zindi](https://zindi.world/competitions/ai-agents-for-ran-challenge). | |