# get_rubric

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/goal_tools/GoalToolsMiddleware/__init__/get_rubric)

Read the current acceptance criteria used to evaluate completion.

Call this to inspect the active rubric, whether it came from a goal,
a sticky rubric, or the current invocation, and the latest grading
status if a graded turn has already run.

## Signature

```python
get_rubric(
    state: Annotated[dict[str, Any], InjectedState],
) -> RubricSnapshot
```

## Returns

`RubricSnapshot`

Rubric snapshot with `active`, `criteria`, `source`, and

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/goal_tools.py#L319)