router

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	Primary   Route
	Fallbacks []Route
	Reason    string
}

type Policy

type Policy struct{}

func (Policy) Decide

func (Policy) Decide(parsed intent.Intent) Decision

type Route

type Route string
const (
	RouteConversation Route = "conversation"
	RouteResearch     Route = "research"
	RouteBrowser      Route = "browser"
	RouteFile         Route = "file"
	RouteDesktop      Route = "desktop"
	RouteAutomation   Route = "automation"
	RoutePlanning     Route = "planning"
	RouteTask         Route = "task"
)

type RoutePlan

type RoutePlan struct {
	Primary              Route         `json:"primary"`
	Capabilities         []string      `json:"capabilities"`
	Fallbacks            []Route       `json:"fallbacks,omitempty"`
	ExcludedCapabilities []string      `json:"excluded_capabilities,omitempty"`
	Reason               string        `json:"reason"`
	Intent               intent.Intent `json:"intent"`
}

func RouteIntent

func RouteIntent(parsed intent.Intent) RoutePlan

func (RoutePlan) UsesCapability

func (p RoutePlan) UsesCapability(wanted string) bool

Jump to

Keyboard shortcuts

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