UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

14 lines • 688 B
import type { Segment, SegmentSource } from './types.js'; /** * Text slots of structured values (tool arguments, tool results): each slot is a piece of text to * scan plus a setter that writes the (redacted / restored) text back in place. */ export interface Slot { segment: Segment; set(text: string): void; /** The text lives inside a JSON document (tool-call arguments): restored values are escaped. */ json?: boolean; } /** String leaves of a JSON value (tool arguments, structured results). */ export declare function jsonSlots(root: unknown, source: SegmentSource, fresh: boolean, replaceRoot?: (v: string) => void): Slot[]; //# sourceMappingURL=segments.d.ts.map