scope
module wittgenstein_agent_guardrails.scope
Abstraction for checking whether a question falls within an agent's scope.
Classes
-
ScopeSource — Something that knows whether a question is answerable from its data.
wittgenstein_agent_guardrails.scope.ScopeSource
class ScopeSource()
Bases : Protocol
Something that knows whether a question is answerable from its data.
Deliberately decoupled from any specific data store (knowledge graph,
vector index, fixture file, ...) so GuardrailAgent stays reusable —
implement this against whatever backs a given agent's knowledge.
Methods
-
is_in_scope — Return True if
questionmatches something this source knows about.
wittgenstein_agent_guardrails.scope.ScopeSource.is_in_scope
method ScopeSource.is_in_scope(question: str) → bool
Return True if question matches something this source knows about.