openvibe-sdk/agents/roads
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
From types/agents-roads.d.ts (both). Declarations are shown verbatim.
type Mode
export type Mode = 'auto' | 'agent' | 'chat' | 'code';type Road
export type Road = 'choice' | 'free' | 'key' | 'computer' | 'plan' | 'none' | 'code';interface Allowance
export interface Allowance { unlimited?: boolean; tokens?: number | null; left?: number | null; resets_at?: string | null; }interface Rung
export interface Rung { road: Road; open: boolean; why: string; }interface RoadResult
export interface RoadResult {
road: Road; mode: Mode; need: number; why: string; ladder: Rung[];
provider?: string | null; model?: string | null; machine?: { id: string | number | null; name: string | null };
harness?: string | null; harness_name?: string | null; plan?: string | null;
left?: number | null; known?: boolean; resets_at?: string | null; chat_only?: boolean; value?: unknown;
}interface Facts
export interface Facts {
mode?: Mode | string; need?: number; allowance?: Allowance | null; choice?: { provider: string; model?: string | null } | null;
keys?: Array<{ provider: string; ok?: boolean; status?: string; apps?: string[] }>;
machines?: Array<{ id?: string | number; name?: string; online?: boolean; disabled?: boolean }>;
app?: string;
/** Codes' fleet: with it, mode 'code' walks the coding order (choice, plan, key, free). */
fleet?: Array<{ machine?: string | number; machine_name?: string; harness: string; harness_name?: string; plan?: string; online?: boolean; disabled?: boolean; window_left?: number | null }>;
}interface Rungs
export interface Rungs {
mode?: Mode | string; need?: number;
choice?: Lazy<{ provider: string; model?: string | null }>;
allowance?: Lazy<Allowance>;
key?: Lazy<{ provider: string; [k: string]: unknown }>;
computer?: Lazy<unknown>;
/** The coding order's plan rung: with it, mode 'code' walks choice, plan, key, free. */
plan?: Lazy<{ harness?: string; plan?: string; [k: string]: unknown }>;
}export export const ROADS: readonly ['choice', 'free', 'key', 'comp
export const ROADS: readonly ['choice', 'free', 'key', 'computer'];export export const CODE_ROADS: readonly ['choice', 'plan', 'key',
export const CODE_ROADS: readonly ['choice', 'plan', 'key', 'free'];export export const CODE_TURN_TOKENS: number;
export const CODE_TURN_TOKENS: number;export export const MODES: readonly Mode[];
export const MODES: readonly Mode[];export export const TURN_TOKENS: number;
export const TURN_TOKENS: number;export export function needFor(mode: Mode | string, options?: { tur
export function needFor(mode: Mode | string, options?: { turnTokens?: number }): number;export export function fits(allowance: Allowance | null | undefined
export function fits(allowance: Allowance | null | undefined, need: number): { ok: boolean; known: boolean; left: number | null; why: string };export export function pick(facts?: Facts): RoadResult;
export function pick(facts?: Facts): RoadResult;export export function walk(rungs?: Rungs): Promise<RoadResult>;
export function walk(rungs?: Rungs): Promise<RoadResult>;export export function say(result: RoadResult | null | undefined):
export function say(result: RoadResult | null | undefined): string;