jev

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package jev implements a decision.provider capability backed by a Jev-style "System One" decision API: state plus typed questions in, typed answers with calibrated probabilities out.

The endpoint is configurable because the same wire shape is served from several places: a local LM Studio instance hosting an open Jev-compatible model (the default — LM Studio exposes POST /v1/systemone for loaded decision models), TypeSafe AI's hosted API, or a gateway. The Vercel AI Gateway's /v1/evaluate names the yes/no type "boolean" and returns "probability" rather than "noul"; the `dialect` key selects that variant.

Jev is not an LLM and does not ride llm.request: it answers decision.ask events, filling the pointer payload in place like the search providers do.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() engine.Plugin

New creates a Jev decision provider.

Types

type Plugin

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

Plugin advertises decision.provider and answers decision.ask events.

func (*Plugin) Capabilities

func (p *Plugin) Capabilities() []engine.Capability

func (*Plugin) ConfigSchema

func (p *Plugin) ConfigSchema() []byte

ConfigSchema implements engine.ConfigSchemaProvider.

func (*Plugin) Dependencies

func (p *Plugin) Dependencies() []string

func (*Plugin) Emissions

func (p *Plugin) Emissions() []string

func (*Plugin) ID

func (p *Plugin) ID() string

func (*Plugin) Init

func (p *Plugin) Init(ctx engine.PluginContext) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Ready

func (p *Plugin) Ready() error

func (*Plugin) Requires

func (p *Plugin) Requires() []engine.Requirement

func (*Plugin) Shutdown

func (p *Plugin) Shutdown(_ context.Context) error

func (*Plugin) Subscriptions

func (p *Plugin) Subscriptions() []engine.EventSubscription

func (*Plugin) Version

func (p *Plugin) Version() string

Jump to

Keyboard shortcuts

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