Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge connects hawk to the sight code-review library. If initialization fails, all operations degrade gracefully and return empty results rather than errors.
func NewBridge ¶
NewBridge creates a bridge to the sight library using the given eyrie client and provider name. Additional sight options (model, concerns, etc.) are applied to all operations.
func (*Bridge) Describe ¶
Describe generates a PR description from a unified diff string. Falls back silently if the bridge is not initialized.
func (*Bridge) Improve ¶
Improve analyzes a diff and suggests code improvements. Falls back silently if the bridge is not initialized.
type EyrieAdapter ¶
type EyrieAdapter struct {
// contains filtered or unexported fields
}
EyrieAdapter implements sight's Provider interface using hawk's eyrie client. It translates between sight.Message/sight.ChatOpts and eyrie's client.EyrieMessage/client.ChatOptions.
func NewEyrieAdapter ¶
func NewEyrieAdapter(c *client.EyrieClient, provider string) *EyrieAdapter
NewEyrieAdapter creates an adapter that satisfies sight.Provider using the given eyrie client and provider name (e.g. "anthropic", "openai").