Sender¶
- class aisploit.sender.SendReport(*, run_id: str)¶
Bases:
BaseReport
[SendReportEntry
]- add_entry(entry: SendReportEntry) None ¶
- has_entries() bool ¶
- class aisploit.sender.SendReportEntry(prompt_value: langchain_core.prompt_values.PromptValue, metadata: Dict[str, Any], converter: aisploit.core.converter.BaseConverter | None, response: aisploit.core.target.Response, start_time: datetime.datetime, end_time: datetime.datetime)¶
Bases:
object
- converter: BaseConverter | None¶
- end_time: datetime¶
- metadata: Dict[str, Any]¶
- prompt_value: PromptValue¶
- property round_trip_time: float¶
- start_time: datetime¶
- class aisploit.sender.SenderJob(target: aisploit.core.target.BaseTarget, converters: List[aisploit.core.converter.BaseConverter] = <factory>, include_original_prompt: bool = False, callbacks: Sequence[aisploit.core.callbacks.BaseCallbackHandler] = <factory>, *, disable_progressbar: bool = <factory>, verbose: bool = False)¶
Bases:
BaseJob
- callbacks: Sequence[BaseCallbackHandler]¶
- converters: List[BaseConverter]¶
- execute(*, run_id: str | None = None, prompts: Sequence[str | Prompt]) SendReport ¶
- include_original_prompt: bool¶
- target: BaseTarget¶