Add user agent to simulators (#38544)
* Update task_query_response.prompty remove required keys * Update task_simulate.prompty * Update task_query_response.prompty * Update task_simulate.prompty * Fix the api_key needed * Update for release * Black fix for file * Add original text in global context * Update test * Update the indirect attack simulator * Black suggested fixes * Update simulator prompty * Update adversarial scenario enum to exclude XPIA * Update changelog * Black fixes * Remove duplicate import * Fix the mypy error * Mypy please be happy * Updates to non adv simulator * accept context from assistant messages, exclude them when using them for conversation * update changelog * pylint fixes * pylint fixes * remove redundant quotes * Fix typo * pylint fix * Update broken tests * Include the grounding json in the manifest * Fix typo * Come on package * Release 1.0.0b5 * Notice from Chang * Remove adv_conv template parameters from the outputs * Update chanagelog * Experimental tags on adv scenarios * Readme fix onbreaking change * Add the category and both user and assistant context to the response of qr_json_lines * Update changelog * Rename _kwargs to _options * _options as prefix * update troubleshooting for simulator * Rename according to suggestions * Clean up readme * more links * Update the user agent * removed check * Use type= format * Black changes * Add subtype --------- Co-authored-by: Nagkumar Arkalgud <nagkumar@naarkalg-work-mac.local> Co-authored-by: Nagkumar Arkalgud <nagkumar@naarkalgworkmac.lan> Co-authored-by: Nagkumar Arkalgud <nagkumar@Mac.lan>
This commit is contained in:
Родитель
71c3c88847
Коммит
305fa34a7e
|
@ -25,6 +25,9 @@ from ._helpers import ConversationHistory, Turn
|
|||
from ._utils import JsonLineChatProtocol
|
||||
|
||||
|
||||
USER_AGENT += " (type=simulator subtype=Simulator)"
|
||||
|
||||
|
||||
@experimental
|
||||
class Simulator:
|
||||
"""
|
||||
|
|
Загрузка…
Ссылка в новой задаче