OnEvent في RunOptions أو ContinueOptions لتلقي أحداث دورة حياة منظّمة دون ربط التطبيق بوسيلة نقل النموذج.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
راقب في الوقت الفعلي عمليات تشغيل وكلاء Go وجولات النموذج والأدوات وحالات الإيقاف المؤقت والإكمال.
OnEvent في RunOptions أو ContinueOptions لتلقي أحداث دورة حياة منظّمة دون ربط التطبيق بوسيلة نقل النموذج.
result, err := agent.Run(ctx, phaseoagent.RunOptions{
Input: prompt,
Client: client,
OnEvent: func(event phaseoagent.AgentEvent) {
logger.Info("agent event",
"type", event.Type,
"run_id", event.RunID,
"details", event.Details,
)
},
})
هل كانت هذه الصفحة مفيدة؟