feat: Integrate web search configuration and enhance input field functionality
- Added logic to load and manage web search configuration in the InputField component, ensuring proper handling of web search states. - Implemented user notifications for unconfigured web search settings, guiding users to the appropriate settings page. - Enhanced the AgentStreamDisplay component to improve tooltip content rendering for knowledge base citations. - Updated event data structures to include total duration in milliseconds for better precision in agent completion events. - Refactored citation handling to ensure inline citations are displayed correctly, improving user experience in content rendering.
This commit is contained in:
@@ -398,8 +398,8 @@ func (h *AgentStreamHandler) handleComplete(ctx context.Context, evt event.Event
|
||||
Done: true,
|
||||
Timestamp: time.Now(),
|
||||
Data: map[string]interface{}{
|
||||
"total_steps": data.TotalSteps,
|
||||
"total_duration": data.TotalDuration,
|
||||
"total_steps": data.TotalSteps,
|
||||
"total_duration_ms": data.TotalDurationMs,
|
||||
},
|
||||
}); err != nil {
|
||||
logger.GetLogger(h.ctx).Error("Append complete event to stream failed", "error", err)
|
||||
|
||||
Reference in New Issue
Block a user