Documentation
¶
Index ¶
- func IsCopilotInstalled() bool
- func New() (common.Model, error)
- type Copilot
- func (c *Copilot) Call(ctx context.Context, prompt string, options ...llms.CallOption) (string, error)
- func (c *Copilot) Close() error
- func (c *Copilot) ConsumptionOf(resp *llms.ContentResponse) common.Consumption
- func (c *Copilot) GenerateContent(ctx context.Context, messages []llms.MessageContent, ...) (*llms.ContentResponse, error)
- func (c *Copilot) PatchTools(*[]llms.Tool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCopilotInstalled ¶
func IsCopilotInstalled() bool
Types ¶
type Copilot ¶
type Copilot struct{}
func (*Copilot) ConsumptionOf ¶
func (c *Copilot) ConsumptionOf(resp *llms.ContentResponse) common.Consumption
func (*Copilot) GenerateContent ¶
func (c *Copilot) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
Click to show internal directories.
Click to hide internal directories.