> ## 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.

# detach • AI Agent SDK

> detach: Detach ``client_id`` from ``session_id`` (stop observing).

# detach

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

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

Detach `client_id` from `session_id` (stop observing).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def detach(session_id: str, client_id: str) -> None
```

## Parameters

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

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L338">
  `praisonaiagents/gateway/protocols.py` at line 338
</Card>
