copilot

package
v0.67.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Provider = "github_copilot"

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(options Options) *Generator

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, request generation.Request) (generation.Result, error)

func (*Generator) Models

func (*Generator) Status

func (g *Generator) Status(ctx context.Context) (Status, error)

type GrantChecker

type GrantChecker func(generation.Purpose) bool

type Options

type Options struct {
	CLIPath       string
	BaseDirectory string
	Model         string
	Grant         GrantChecker
}

type Status

type Status struct {
	Available     bool     `json:"available"`
	Authenticated bool     `json:"authenticated"`
	Login         string   `json:"login,omitempty"`
	Message       string   `json:"message,omitempty"`
	Models        []string `json:"models"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL