SDKsOntology SDKTypeScript
@segmentstream/ontology/groups
8 public exports from @segmentstream/ontology/groups.
Public exports
ChatOverrideInput
interface ChatOverrideInput {
readonly mode?: string;
readonly smart?: Pick<SmartPolicyInput, "instructions" | "criteria" | "engagement" | "thresholds"> & {
readonly context?: Pick<NonNullable<SmartPolicyInput["context"]>, "messages" | "includeChatGuidance">;
};
readonly participants?: Participants;
}GroupPolicyInput
interface GroupPolicyInput {
readonly mode?: string;
readonly smart?: SmartPolicyInput;
readonly participants?: Participants;
readonly chats?: Readonly<Record<string, ChatOverrideInput>>;
readonly observability?: {
readonly storeRouterPayload?: boolean;
readonly shadow?: SmartPolicyInput;
};
}GroupPolicyIssue
interface GroupPolicyIssue {
readonly message: string;
readonly path: ReadonlyArray<string>;
}Participants
type Participants = Readonly<Record<string, {
readonly aliases: ReadonlyArray<string>;
}>>;SmartPolicyInput
Channel-independent group policy. All names and aliases are supplied by the workspace.
interface SmartPolicyInput {
readonly model?: string;
readonly instructions?: string | {
readonly append?: string;
readonly replace?: string;
readonly file?: string;
};
readonly criteria?: {
readonly observe?: string;
readonly reply?: string;
};
readonly context?: {
readonly messages?: number;
readonly includeAgentDescription?: boolean;
readonly includeAgentInstructions?: boolean | {
readonly maxChars: number;
};
readonly includeChatGuidance?: boolean;
readonly includeParticipants?: boolean;
};
readonly engagement?: {
readonly policy?: string;
readonly agentAliases?: ReadonlyArray<string>;
readonly idleMinutes?: number;
readonly humanExchangeMinutes?: number;
readonly humanQuestionMinutes?: number;
readonly inferredMaxMinutes?: number;
readonly burst?: {
readonly quietSeconds?: number;
readonly maxSeconds?: number;
readonly gapSeconds?: number;
};
readonly followUpMinutes?: number;
readonly engagementMinutes?: number;
readonly openQuestionMinutes?: number | "unlimited";
readonly addresseeGate?: boolean;
};
readonly thresholds?: {
readonly continuation?: number;
readonly inferredContinuation?: number;
readonly contested?: number;
readonly ambient?: number;
readonly humanExchange?: number;
readonly engaged?: number;
readonly neutral?: number;
readonly humanThread?: number;
readonly reply?: number;
readonly defer?: number;
};
readonly timeoutSeconds?: number;
}currentGroupPolicyInput
function currentGroupPolicyInput<T>(value: T): T;
expandGroupFiles
Expand authored files before bundling. The caller owns the workspace-relative filesystem boundary.
function expandGroupFiles(input: GroupPolicyInput, read: (path: string) => string): GroupPolicyInput;
groupPolicyIssues
Strict validation of the `groups` section that `agent/segmentstream.json` authors.
function groupPolicyIssues(authored: unknown): ReadonlyArray<GroupPolicyIssue>;