Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 4x 4x 4x | import type { StatusScale } from "@/components/detail";
import type { LucideIcon } from "lucide-react";
import { Brain, Hammer, Layers3, MessagesSquare, Scale } from "lucide-react";
import { KNOWLEDGE_CATEGORIES } from "../../knowledge/categories";
/**
* What an agent draws on, as its page draws it: each kind's icon, and what
* a kind's state means.
*
* The kinds, what each is, the feature that owns it and what it says are
* svc-core's (`services/agent_context/kinds.py`); the keys are pinned to
* them by `agentContext.test.ts`. Three are knowledge, by kind; the other
* five belong to features of their own, never a repository.
*/
export const AGENT_CONTEXT_ICONS: Record<string, LucideIcon> = {
domain: KNOWLEDGE_CATEGORIES.domain.Icon,
temporal: KNOWLEDGE_CATEGORIES.temporal.Icon,
reasoning: KNOWLEDGE_CATEGORIES.reasoning.Icon,
procedural: Layers3,
contextual: MessagesSquare,
episodic: Brain,
operational: Hammer,
normative: Scale,
};
/**
* A kind's state: a meaning. Having none is not a fault — an agent with
* no Reasoning knowledge may not need any — so it is neutral, never a
* warning; what svc-ai could not say is set aside.
*/
export const AGENT_CONTEXT: StatusScale = {
present: "success",
missing: "neutral",
unavailable: "muted",
};
export const AGENT_CONTEXT_LABEL: Record<string, string> = {
present: "In use",
missing: "None",
unavailable: "Unavailable",
};
|