> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: isSdkError()

> Generated from the public TypeScript API.

```ts theme={null}
function isSdkError(error): error is SdkError;
```

Recognize SDK setup/lifecycle failures without depending on class identity.

## Parameters

### error

`unknown`

Any caught value, including a deserialized error record.

## Returns

`error is SdkError`

True when the value carries the SDK error name, kind, and message.

## Example

```ts theme={null}
if (isSdkError(error) && error.kind === "configuration") console.error(error.message)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.