# `ABSmartly.SDK`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L1)

Main SDK class for ABSmartly.

Provides context creation methods:
- `create_context/3`: Synchronous - fetches data from API, blocks until complete
- `create_context_async/3`: Async - starts context immediately, fetches data in background
- `create_context_with/4`: Uses pre-fetched data directly

# `t`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L15)

```elixir
@type t() :: %ABSmartly.SDK{config: ABSmartly.Types.SDKConfig.t()}
```

# `create_context`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L89)

Create context with synchronous data fetching (blocks until HTTP fetch completes).

Use `create_context_async/3` for non-blocking context creation.

# `create_context_async`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L120)

Create context with async data fetching (non-blocking).

The context is created immediately and data is fetched in the background.
Use `Context.wait_until_ready/2` to block until data is available.

# `create_context_with`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L147)

Create context with pre-fetched data (synchronous).

# `new`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L34)

Create a new SDK instance using keyword list configuration.

## Required Parameters
  * `:endpoint` - The URL to your API endpoint (e.g., "https://your-company.absmartly.io/v1")
  * `:api_key` - Your API key from the Web Console
  * `:application` - The name of your application
  * `:environment` - The environment name (e.g., "production", "development")

## Optional Parameters
  * `:timeout` - Connection timeout in milliseconds (default: 3000)
  * `:retries` - Number of retry attempts for failed requests (default: 5)

# `with_retries`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L52)

Set custom retry count for the SDK instance (pipe-friendly).

# `with_timeout`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/sdk.ex#L43)

Set custom timeout for the SDK instance (pipe-friendly).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
