bugfix: aofertas
This commit is contained in:
13
tests/migration/test_guardrail_context_dict_history.py
Normal file
13
tests/migration/test_guardrail_context_dict_history.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from agent_framework.guardrails.calibrated.prompts._context import format_context_block
|
||||
|
||||
|
||||
def test_format_context_block_suporta_history_em_dict_do_contas():
|
||||
context = {
|
||||
"conversation_history": [
|
||||
{"role": "assistant", "content": "O TIM Music custa R$ 12,90."},
|
||||
{"role": "user", "content": "Quero cancelar o TIM Music"},
|
||||
]
|
||||
}
|
||||
block = format_context_block(context)
|
||||
assert "[assistant] O TIM Music custa R$ 12,90." in block
|
||||
assert "[user] Quero cancelar o TIM Music" in block
|
||||
Reference in New Issue
Block a user