copilotsdk

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a Copilot SDK client that uses the GitHub Copilot SDK for programmatic access to Copilot CLI, providing session management and streaming capabilities.

func NewClient

func NewClient(model string) (*Client, error)

NewClient creates a new Copilot SDK client. Unlike copilotcli which executes the CLI directly, copilotsdk uses the GitHub Copilot SDK for programmatic access with session management.

func (*Client) GenerateCommitMessage

func (c *Client) GenerateCommitMessage(diff string, branch string) (string, error)

GenerateCommitMessage generates a commit message based on the provided diff

Jump to

Keyboard shortcuts

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