Documentation ¶
Overview ¶
Package chatter contains adapters for interacting with chat models.
Each chatter adapter should have a constructor, and configuration structure which can be directly embedded into the application's configuration, and support the common port interfaces needed by the application service layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeminiChatter ¶
type GeminiChatter struct {
// contains filtered or unexported fields
}
func NewGeminiChatter ¶
func NewGeminiChatter(ctx context.Context, gCfg Gemini) (*GeminiChatter, error)
func (*GeminiChatter) Close ¶
func (c *GeminiChatter) Close() error
func (*GeminiChatter) MakeSynchronousTextQuery ¶
func (*GeminiChatter) Model ¶
func (c *GeminiChatter) Model() string
type OpenAIChatter ¶
type OpenAIChatter struct {
// contains filtered or unexported fields
}
func NewOpenAIChatter ¶
func NewOpenAIChatter(cCfg OpenAI) (*OpenAIChatter, error)
func (*OpenAIChatter) Close ¶
func (c *OpenAIChatter) Close() error
func (*OpenAIChatter) MakeSynchronousTextQuery ¶
func (*OpenAIChatter) Model ¶
func (c *OpenAIChatter) Model() string
Click to show internal directories.
Click to hide internal directories.