Class DemoApi
java.lang.Object
ai.redouble.demo.DemoApi
The demo's read-side logic, shared by every host. The endpoints that only read process state and
shape it for the page - the skill list, the agent's capability palette, and the runtime status
(providers, their declared credentials, the catalog by grade) - are computed here once, so no host
carries a copy that can drift from the page it feeds. A host adds only its routing: it maps a
route to one of these calls and serializes the result. The write-side endpoints, where a host
builds a Tool or a Doer and submits it, stay in the host as the demonstration of using the runtime
under that framework; those carry no logic a second host would repeat, only the framework wiring.
- Since:
- 0.1 (2026-09-24)
- Author:
- Andrey Santrosyan
-
Method Summary
Modifier and TypeMethodDescriptionstatic AgentCapabilitiesagentCapabilities(String owner) The agent's tools and the skills it may draw on, for the "what can it do" panel.static List<SkillEntry> skills()Every registered skill, as the page lists them, sorted by name.static RuntimeStatusstatus(DemoCatalog catalog, DemoCorpus corpus, Predicate<String> sessionHeld) What this process can do: whether the dispatcher runs, every provider with the credentials it declares, the catalog by entry with each entry's seat, the compliance envelope's verdict, and its status, the shipped corpus's path, and the day the corpus's price story is answered for (DemoCorpus.AS_OF).
-
Method Details
-
skills
Every registered skill, as the page lists them, sorted by name. -
agentCapabilities
The agent's tools and the skills it may draw on, for the "what can it do" panel. The owner names the workflow the palette is enumerated under. -
status
public static RuntimeStatus status(DemoCatalog catalog, DemoCorpus corpus, Predicate<String> sessionHeld) What this process can do: whether the dispatcher runs, every provider with the credentials it declares, the catalog by entry with each entry's seat, the compliance envelope's verdict, and its status, the shipped corpus's path, and the day the corpus's price story is answered for (DemoCorpus.AS_OF).sessionHeldanswers whether a credential id is held as a session credential - a host capability, so it is passed in; a host without one passesid -> false.
-