File size: 1,035 Bytes
6a42990
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from tinytroupe.experimentation import Proposition


class ValidationChamber:
    """  
    An Validation Chamber is a container where autonomous agents can be put to be validated with respect to various custom validation tasks.

    Validation tasks types include:
      - Question answering: given either a concrete question or a question pattern (to be instantitated via an LLM call), and an expectation, 
        the agent is expected to answer the question correctly. To check correctness, an LLM-based Proposer is used.
      - Behavioral patterns:
          * repeated actions - does the agent keep repeating the same action like a crazy person?
          * self-consistency - does the agent contradict itself over time?
    

    The class also provides convenience auxiliary methods to:
      - generate reasonable question/answer pairs, given some general overall scenario and agent description.
      - generate reasonable behavioral patterns, given some general overall scenario and agent description.
          
    """