Documentation
¶
Overview ¶
Package fimproviders exposes seshat's fim.Completer implementations for direct use by a host application, independent of the agent/tool loop.
Index ¶
- func NewDeepSeek(opts ...DeepSeekOption) internalfim.Completer
- func NewMistral(opts ...MistralOption) internalfim.Completer
- type DeepSeekOption
- func WithDeepSeekAPIKey(key string) DeepSeekOption
- func WithDeepSeekBaseURL(url string) DeepSeekOption
- func WithDeepSeekHTTPClient(hc *http.Client) DeepSeekOption
- func WithDeepSeekMaxTokens(n int64) DeepSeekOption
- func WithDeepSeekModel(model string) DeepSeekOption
- func WithDeepSeekTemperature(t float64) DeepSeekOption
- type MistralOption
- func WithMistralAPIKey(key string) MistralOption
- func WithMistralBaseURL(url string) MistralOption
- func WithMistralHTTPClient(hc *http.Client) MistralOption
- func WithMistralMaxTokens(n int64) MistralOption
- func WithMistralModel(model string) MistralOption
- func WithMistralTemperature(t float64) MistralOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeepSeek ¶
func NewDeepSeek(opts ...DeepSeekOption) internalfim.Completer
NewDeepSeek creates a DeepSeek FIM completion client.
func NewMistral ¶
func NewMistral(opts ...MistralOption) internalfim.Completer
NewMistral creates a Mistral Codestral FIM completion client.
Types ¶
type DeepSeekOption ¶
type DeepSeekOption = internalproviders.DeepSeekOption
DeepSeekOption configures a DeepSeek FIM client.
func WithDeepSeekAPIKey ¶
func WithDeepSeekAPIKey(key string) DeepSeekOption
WithDeepSeekAPIKey sets the API key.
func WithDeepSeekBaseURL ¶
func WithDeepSeekBaseURL(url string) DeepSeekOption
WithDeepSeekBaseURL overrides the default endpoint (self-hosted server, or a proxy).
func WithDeepSeekHTTPClient ¶
func WithDeepSeekHTTPClient(hc *http.Client) DeepSeekOption
WithDeepSeekHTTPClient injects a custom HTTP client.
func WithDeepSeekMaxTokens ¶
func WithDeepSeekMaxTokens(n int64) DeepSeekOption
WithDeepSeekMaxTokens caps the number of generated tokens.
func WithDeepSeekModel ¶
func WithDeepSeekModel(model string) DeepSeekOption
WithDeepSeekModel sets the completion model.
func WithDeepSeekTemperature ¶
func WithDeepSeekTemperature(t float64) DeepSeekOption
WithDeepSeekTemperature sets sampling temperature.
type MistralOption ¶
type MistralOption = internalproviders.MistralOption
MistralOption configures a Mistral FIM client.
func WithMistralAPIKey ¶
func WithMistralAPIKey(key string) MistralOption
WithMistralAPIKey sets the API key.
func WithMistralBaseURL ¶
func WithMistralBaseURL(url string) MistralOption
WithMistralBaseURL overrides the default endpoint (self-hosted server, or a proxy).
func WithMistralHTTPClient ¶
func WithMistralHTTPClient(hc *http.Client) MistralOption
WithMistralHTTPClient injects a custom HTTP client.
func WithMistralMaxTokens ¶
func WithMistralMaxTokens(n int64) MistralOption
WithMistralMaxTokens caps the number of generated tokens.
func WithMistralModel ¶
func WithMistralModel(model string) MistralOption
WithMistralModel sets the completion model.
func WithMistralTemperature ¶
func WithMistralTemperature(t float64) MistralOption
WithMistralTemperature sets sampling temperature.