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

# Detect URL Scheme • TypeScript AI Agent SDK

> detect_url_scheme: API reference for detect_url_scheme

# detect\_url\_scheme

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**config**](../modules/config) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def detect_url_scheme(url: string) -> string | undefined
```

### Returns

<ResponseField name="Returns" type="string | undefined">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/config/index.ts#L934">
  `src/config/index.ts` at line 934
</Card>
