# software-agent-sdk · Declarative configuration

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [software-agent-sdk](https://ai-agents-review.com/runtime/software-agent-sdk.md)
- Column: [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) (Product integration)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/software-agent-sdk/declarative-configuration

## Rationale

Pydantic types and ranges validated; unknown keys silently ignored for Config, LLM and settings

## Rubric criteria for this column

- 0: Configuration only through code or flags
- 1: Config file(s), no validation: unknown keys and wrong types silently ignored
- 2: Config file(s) with type validation, but unknown keys ignored or warning only by default
- 3: Schema-validated config where unknown keys are rejected, **or** strict mode available and documented
- 4: Level 3 by default, plus semantic checks (limits, references) **and** a published machine-readable schema

## Review finding

Code-first pydantic models, serializable to JSON; server JSON file merged with `OH_*` env. Types/ranges validated; unknown keys silently ignored for server `Config`, `LLM` and settings, but rejected for events and conversation requests. Settings schema export for UIs. [I124][I125][I126][I127]

## Evidence cited by the mark

- [I124] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-agent-server/openhands/agent_server/config.py#L533 — server `Config` only `frozen` (pydantic default `extra=ignore`); JSON+env merge at :620-642 — [S]
- [I125] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/llm/llm.py#L745-L746 — `LLM` `extra="ignore"` — [S]
- [I127] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/settings/model.py#L517-L530 — settings schema export for UIs — [S]

## Evidence also cited by the review finding

- [I126] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/event/base.py#L24 — events `extra="forbid"` (also conversation requests, sdk/conversation/request.py:128) — [S]

## Grading record

- Grader A (default / best): 2 / 2
- Grader B (default / best): 2 / 2
