# validate_goal_application_total

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/goal_state_limits/validate_goal_application_total)

Validate only the combined budget, not either field's own limit.

Split out because the two kinds of overshoot need opposite handling in the
criteria agent's structured-output loop: a per-field overshoot is a model
mistake against a limit the schema publishes, so it is worth retrying, while
the combined budget is not in the schema at all and half of it is the user's
own objective. See `_raise_terminal_goal_state_size_error`.

## Signature

```python
validate_goal_application_total(
    objective: str,
    criteria: str,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `objective` | `str` | Yes | Goal objective that will be activated. |
| `criteria` | `str` | Yes | Acceptance criteria that will be activated with the goal. |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/goal_state_limits.py#L191)