Skip to main content

Function: createTopicalityPack()

createTopicalityPack(options?): ExtensionPack

Defined in: packages/agentos/src/extensions/packs/topicality/index.ts:75

Create an ExtensionPack that bundles:

  • The TopicalityGuardrail guardrail (evaluates input & output against allowed/forbidden topics and drift detection).
  • The CheckTopicTool check_topic tool (on-demand topic analysis).

Parameters

options?

TopicalityPackOptions

Optional pack-level configuration. All properties have sensible defaults; see TopicalityPackOptions.

Returns

ExtensionPack

A fully-configured ExtensionPack with one guardrail descriptor and one tool descriptor.