# `LlmCore.Pipelines.RoutingPipeline`
[🔗](https://github.com/fosferon/llm_core/blob/v0.3.0/lib/llm_core/pipelines/routing_pipeline.ex#L14)

ALF pipeline that resolves task types to provider/agent configurations.

The pipeline currently runs through `ALF.Manager` in synchronous mode so it
can be embedded directly in the GenServer router workflow. We can switch to a
supervised, asynchronous pipeline when higher throughput is required.

# `alf_components`

# `call`

```elixir
@spec call(any(), Keyword.t()) :: any() | [any()] | nil
@spec call(any(), Keyword.t()) :: reference()
```

# `cast`

# `components`

```elixir
@spec components() :: [map()]
```

# `flow`

```elixir
@spec flow(map(), list(), Keyword.t()) :: Enumerable.t()
```

# `route`

```elixir
@spec route(
  String.t() | atom(),
  keyword()
) :: {:ok, LlmCore.Router.ResolvedRoute.t()} | {:error, term()}
```

Executes the routing pipeline synchronously for a single task type.

# `start`

```elixir
@spec start() :: :ok
```

# `start`

```elixir
@spec start(list()) :: :ok
```

# `started?`

```elixir
@spec started?() :: true | false
```

# `stop`

```elixir
@spec stop() :: :ok | {:exit, {atom(), any()}}
```

# `stream`

```elixir
@spec stream(Enumerable.t(), Keyword.t()) :: Enumerable.t()
```

---

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