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

# Check Safety • Rust AI Agent SDK

> check_safety: Check safety constraints before handoff

# check\_safety

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Handoff**](../classes/Handoff) class in the [**handoff**](../modules/handoff) module.

Check safety constraints before handoff

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def check_safety(
        &self,
        _source_agent_name: &str,
        chain: &HandoffChain,
    ) -> Result<()>
```

## Parameters

<ParamField query="_source_agent_name" type="&str" required={true}>
  No description available.
</ParamField>

<ParamField query="chain" type="&HandoffChain" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Result<()>">
  The result of the operation.
</ResponseField>
