Response Info
pyllmut.mutant_lib.response_info.ResponseInfo
Bases: PromptInfo
A class to store information about response details from the LLM.
Source code in pyllmut/mutant_lib/response_info.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
get_line_number()
Returns the line number in the module where we want to generate mutants.
Source code in pyllmut/mutant_lib/prompt_info.py
30 31 32 | |
get_original_module_content()
Returns the content of the module we plan to generate mutants for.
Source code in pyllmut/mutant_lib/prompt_info.py
26 27 28 | |
get_prompt_content()
Returns the content of the prompt.
Source code in pyllmut/mutant_lib/prompt_info.py
22 23 24 | |
get_received_token_count()
Returns the number of tokens in the response.
Source code in pyllmut/mutant_lib/response_info.py
44 45 46 | |
get_response_content()
Returns the response returned from the model.
Source code in pyllmut/mutant_lib/response_info.py
40 41 42 | |
get_sent_token_count()
Returns the number of sent tokens when using the LLM.
Source code in pyllmut/mutant_lib/response_info.py
36 37 38 | |