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

# defineConfig: 项目默认配置

> defineConfig 参考：judge、reporters、并发、超时和 sandbox 默认值。

`defineConfig` 从根目录的 `niceeval.config.ts` 默认导出，只放项目级默认值。agent、model、flags、runs 和实验预算写在 `experiments/` 下的 `defineExperiment` 文件里。

```ts theme={null}
import { defineConfig } from "niceeval";

export default defineConfig({
  judge: { model: "gpt-5.4-mini" },
  sandbox: "auto",
  maxConcurrency: 4,
  timeoutMs: 300_000,
});
```

<ParamField body="judge" type="JudgeConfig">
  `t.judge.autoevals.*` 的默认评判模型和端点。
</ParamField>

<ParamField body="reporters" type="Reporter[]">
  额外 reporter。临时生成 JUnit 可用 CLI 的 `--junit <path>`。
</ParamField>

<ParamField body="maxConcurrency" type="number">
  最大并发 attempt 数。
</ParamField>

<ParamField body="timeoutMs" type="number">
  单个 attempt 的超时时间，单位毫秒。
</ParamField>

<ParamField body="sandbox" type="SandboxOption">
  默认 sandbox 后端。起始文件不会自动上传；sandbox eval 在 `test(t)` 里调用 `t.sandbox.uploadDirectory(...)`、`uploadFiles(...)` 或 `writeFiles(...)`。
</ParamField>

niceeval 把环境准备放在普通代码里：eval 自己需要的文件写在 `test(t)`，agent 自己的准备写在 adapter 的 `setup`。
