OnEvent in RunOptions oder ContinueOptions, um strukturierte Lifecycle-Ereignisse zu erhalten, ohne deine Anwendung an den Modelltransport zu koppeln.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Beobachte Go-Agent-Läufe, Modellzüge, Tools, Pausen und den Abschluss in Echtzeit.
OnEvent in RunOptions oder ContinueOptions, um strukturierte Lifecycle-Ereignisse zu erhalten, ohne deine Anwendung an den Modelltransport zu koppeln.
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,
)
},
})
War diese Seite hilfreich?