Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LLMClient ¶
type LLMClient interface {
InvokeModel(ctx context.Context, request LLMRequest) (*LLMResponse, error)
InvokeModelWithRetry(ctx context.Context, request LLMRequest) (*LLMResponse, error)
}
LLMClient is an interface for invoking LLM models This allows mocking in tests without making real API calls
type LLMClientRegistry ¶
type LLMClientRegistry struct {
// contains filtered or unexported fields
}
LLMClientRegistry stores LLM clients organized by family and model ID
func NewLLMClientRegistry ¶
func NewLLMClientRegistry(clients map[LLMFamily]map[string]LLMClient) *LLMClientRegistry
NewLLMClientRegistry creates a new registry with the provided clients clients map is structured as: family -> (modelID -> client)