gateway

package
v0.260.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decider

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

Decider answers questions through the gateway's Decisions API, so the provider behind a "provider/model" id is the gateway's concern.

func New

func New(client sdk.Client) *Decider

New returns a Decider calling the Decisions API on client.

func (*Decider) Decide

func (d *Decider) Decide(ctx context.Context, model string, evidence string, questions []decisiondomain.Question) (decisiondomain.Decisions, error)

Decide sends evidence and questions as one decision request and maps the typed answers back by name.

Jump to

Keyboard shortcuts

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