constants

package
v0.123.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 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
	BackgroundTaskPollDelay    = 500 * time.Millisecond // Delay for polling background tasks
	CompletionCheckDelay       = 100 * time.Millisecond // Delay for checking completion status

	// 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

View Source
const (
	// EventChannelBufferSize is the buffer size for the agent event channel
	EventChannelBufferSize = 100
)

Agent configuration constants

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