stop_when:
has_tool_call(...) وfinish_reason_is(...). احتفظ بحد للخطوات أو المدة حتى عند تحديد التكلفة أو عدد الرموز، لأن هذه الحدود تعتمد على الاستخدام المُبلّغ عنه.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
حدّد عمل وكيل Python بعدد الخطوات أو الرموز أو التكلفة أو المدة أو الأدوات أو سبب الانتهاء.
stop_when:
stop_when = [
step_count_is(12),
max_tokens_used(40_000),
max_cost(2),
max_duration(60_000),
]
has_tool_call(...) وfinish_reason_is(...). احتفظ بحد للخطوات أو المدة حتى عند تحديد التكلفة أو عدد الرموز، لأن هذه الحدود تعتمد على الاستخدام المُبلّغ عنه.
هل كانت هذه الصفحة مفيدة؟