Mcpixir.LLMClient (Mcpixir v0.1.0)

View Source

Client for interacting with LLM providers.

This module defines the interface for LLM clients and provides basic implementation that delegates to provider-specific modules.

Summary

Functions

Creates a new LLM client with the given configuration.

Runs a query using the LLM client.

Types

t()

@type t() :: %Mcpixir.LLMClient{config: map(), provider: atom()}

Functions

new(config)

@spec new(map()) :: {:ok, t()}

Creates a new LLM client with the given configuration.

run(client, messages)

@spec run(t(), list()) :: {:ok, map()} | {:error, String.t()}

Runs a query using the LLM client.