UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

13 lines (12 loc) • 822 B
import type { EngineText } from "../../prompt-assembly/engine-text.js"; /** * The listed skills `text` names as `/<name>`, each once, in the order the text first names it (the module header gives the * reading). `listed` is the leg's announced skill names; a name outside it is never a mention. */ export declare function skillMentionsIn(text: string, listed: ReadonlySet<string>): string[]; /** * The frame body for the named skills, in the run's engine text reading: one sentence per skill, joined by a line break, as * many whole sentences as fit the kind's ceiling (`maxBytes` of the `skill_mention` registry row) in the order given. * `undefined` when nothing is named or not one sentence fits. */ export declare function renderSkillMentionFrame(names: readonly string[], say: EngineText): string | undefined;