/ internal / client / llmclient.go
llmclient.go
 1  package client
 2  
 3  import "context"
 4  
 5  // LLMClient is the common interface for LLM completion backends.
 6  // Satisfied by *GatewayClient and *OllamaClient.
 7  type LLMClient interface {
 8  	Complete(ctx context.Context, req CompletionRequest) (*CompletionResponse, error)
 9  	CompleteStream(ctx context.Context, req CompletionRequest, onDelta func(StreamDelta)) (*CompletionResponse, error)
10  }