# createRuntime

**Kind:** Function

**Source:** [`atloria-monorepo/libs/agent-core/src/runtime/runtime-factory.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/runtime/runtime-factory.ts#L34)

Create an IAgentLoop from config.
This is the recommended way to create a runtime — replaces manual
`new AzureModelProvider() + new AgentRuntime()` construction.

## Signature

```ts
function createRuntime(config: RuntimeConfig): IAgentLoop
```

## Parameters

| Name | Type |
|---|---|
| `config` | `RuntimeConfig` |

**Returns:** `IAgentLoop`
