openace

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDaemonAddr      = "127.0.0.1:8765"
	DefaultMaxOutputLength = 12000
	DefaultTimeout         = 30 * time.Second
	DefaultMaxRetries      = 2
	DefaultRetryBaseDelay  = 250 * time.Millisecond
	DefaultRetryMaxDelay   = 2 * time.Second
	DefaultRetryJitter     = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

func BuildInformationRequest

func BuildInformationRequest(req enhancer.Request) string

Types

type Client

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

func New

func New(cfg Config) (*Client, error)

func (*Client) Retrieve

func (c *Client) Retrieve(ctx context.Context, req enhancer.Request) ([]string, error)

type Config

type Config struct {
	DaemonAddr        string
	DaemonToken       string
	ProviderProfileID string
	MaxOutputLength   int
	Timeout           time.Duration
	MaxRetries        int
	RetryBaseDelay    time.Duration
	RetryMaxDelay     time.Duration
	RetryJitter       time.Duration
	HTTPClient        *http.Client
}

Jump to

Keyboard shortcuts

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