constants

package
v0.80.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Agent service processing delays
	AgentIterationDelay        = 100 * time.Millisecond // Delay between agent iterations
	AgentToolExecutionDelay    = 100 * time.Millisecond // Delay during tool execution
	AgentParallelToolsDelay    = 100 * time.Millisecond // Delay for parallel tool coordination
	AgentConversationSaveDelay = 100 * time.Millisecond // Delay when saving conversations
	AgentStatusTickerInterval  = 200 * time.Millisecond // Status update ticker interval

	// UI component timing for smooth transitions
	ToolCallUpdateThrottle    = 50 * time.Millisecond  // Minimum time between tool call updates
	ToolCallMinShowTime       = 400 * time.Millisecond // Minimum time to show tool call before hiding
	ParallelToolsTickInterval = 500 * time.Millisecond // Parallel tools UI refresh interval
	TimerUpdateThrottle       = 100 * time.Millisecond // Minimum time between timer updates (e.g., bash command duration)
	RenderThrottleInterval    = 33 * time.Millisecond  // Throttle interval for streaming content rendering (~30 FPS)

	// Test timing delays
	TestSleepDelay = 100 * time.Millisecond // Standard delay in tests for timing-sensitive operations
)

TaskTransitionTiming contains constants for task state transition delays to improve UX when tasks transition from queued → working → completed

View Source
const (
	// Minimum display times for better UX
	MinToolDisplayTime    = 400 * time.Millisecond
	ToolUpdateThrottle    = 50 * time.Millisecond
	SpinnerUpdateInterval = 200 * time.Millisecond
	StatusRefreshInterval = 500 * time.Millisecond
)

UITransitionTiming contains timing constants for UI state transitions

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL