LLMUtils.Providers (llm_utils v0.1.3)

Copy Markdown View Source

Registry of all supported LLM providers.

Provides functions to list, look up, and verify provider configurations. All provider modules implement LLMUtils.Provider behaviour.

Summary

Functions

List all provider configs.

Check if a provider ID exists.

Get a provider config by string ID (e.g. "openai"). Returns nil if not found.

Get the provider module by string ID.

List all provider IDs.

Functions

all()

List all provider configs.

exists?(id)

Check if a provider ID exists.

get(id)

Get a provider config by string ID (e.g. "openai"). Returns nil if not found.

get_module(id)

Get the provider module by string ID.

ids()

List all provider IDs.