Class: AgentEvalPlanner::VectorCatalog
- Inherits:
-
Object
- Object
- AgentEvalPlanner::VectorCatalog
- Defined in:
- lib/agent_eval_planner/vector_catalog.rb
Defined Under Namespace
Classes: Vector
Constant Summary collapse
- CATEGORY_TITLES =
{ "SCOPE" => "Escopo (SCOPE)", "INJECT" => "Prompt injection (INJECT)", "ROLE" => "Role escape (ROLE)", "PII" => "PII / vazamento (PII)", "TOOL" => "Abuso de tools (TOOL)", "HALLUC" => "Grounding / alucinação (HALLUC)", "EXFIL" => "Exfiltração (EXFIL)" }.freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(analyzer) ⇒ VectorCatalog
constructor
A new instance of VectorCatalog.
- #selected_vectors ⇒ Object
Constructor Details
#initialize(analyzer) ⇒ VectorCatalog
Returns a new instance of VectorCatalog.
39 40 41 42 |
# File 'lib/agent_eval_planner/vector_catalog.rb', line 39 def initialize(analyzer) @analyzer = analyzer @context = build_context end |
Class Method Details
.vectors_for(analyzer) ⇒ Object
35 36 37 |
# File 'lib/agent_eval_planner/vector_catalog.rb', line 35 def self.vectors_for(analyzer) new(analyzer).selected_vectors end |
Instance Method Details
#selected_vectors ⇒ Object
44 45 46 |
# File 'lib/agent_eval_planner/vector_catalog.rb', line 44 def selected_vectors all_vectors.select { |v| applicable?(v) }.map { |v| (v) } end |