oracle

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package oracle provides a one-shot second-opinion client backed by the Copilot SDK. It is intentionally separate from the streaming session client used by the main loop so the two cannot interfere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDKOracle

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

SDKOracle wraps a CopilotClient to satisfy core.OracleClient. The wrapped client owns its own session lifecycle managed by Consult.

func New

func New(model, workingDir string) (*SDKOracle, error)

New builds a fresh oracle client targeting model. The caller passes the same working directory used by the main loop so file-touching tools resolve to the right tree.

func (*SDKOracle) Close

func (o *SDKOracle) Close() error

Close releases the underlying client.

func (*SDKOracle) Consult

func (o *SDKOracle) Consult(ctx context.Context, prompt string) (string, error)

Consult sends prompt to the oracle and returns the assembled assistant reply. It manages a fresh session per consultation so previous invocations cannot bleed into the next one.

Jump to

Keyboard shortcuts

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