Class AsiDesktopAgiConfig
java.lang.Object
uno.anahata.asi.agi.event.BasicPropertyChangeSource
uno.anahata.asi.agi.AgiConfig
uno.anahata.asi.swing.agi.SwingAgiConfig
uno.anahata.asi.destkop.swing.AsiDesktopAgiConfig
- All Implemented Interfaces:
PropertyChangeSource, Rebindable
The default
AgiConfig implementation for the
standalone Swing application. It pre-registers the GeminiAiProvider.- Author:
- anahata
-
Nested Class Summary
Nested classes/interfaces inherited from class SwingAgiConfig
SwingAgiConfig.UIThemeModifier and TypeClassDescriptionstatic classA collection of color and font definitions that define the visual identity of the Anahata Swing UI. -
Field Summary
Fields inherited from class BasicPropertyChangeSource
propertyChangeSupportModifier and TypeFieldDescriptionprotected PropertyChangeSupportSupport for firing property change events. -
Constructor Summary
ConstructorsConstructorDescriptionAsiDesktopAgiConfig(AbstractAsiContainer asiConfig) Constructs a new configuration for a fresh agi session.AsiDesktopAgiConfig(AbstractAsiContainer asiConfig, String sessionId) Constructs a new configuration for a restored agi session. -
Method Summary
Methods inherited from class SwingAgiConfig
getColor, getColor, getColor, getColorForContextUsage, getTheme, setShowPrunedModifier and TypeMethodDescriptionstatic ColorRetrieves the thematic color associated with a specific agi status.static ColorgetColor(ToolExecutionStatus status) Retrieves the color associated with a specific tool execution status.static ColorgetColor(ToolPermission permission) Retrieves the color associated with a specific tool permission level.static ColorgetColorForContextUsage(double percentage) Calculates a color representing context window usage, shifting from green to red as the usage approaches the threshold.getTheme()Returns a new theme object containing the color and font definitions for the UI.voidsetShowPruned(boolean showPruned) Sets whether pruned parts and messages should be shown in the UI.Methods inherited from class AgiConfig
createResourceHandle, getHostApplicationId, getTokenThreshold, setApiInitialDelayMillis, setApiMaxDelayMillis, setApiMaxRetries, setAutoReplyTools, setDefaultBlobPartMaxDepth, setDefaultModelCodeExecutionMaxDepth, setDefaultTextPartMaxDepth, setDefaultThoughtPartMaxDepth, setDefaultToolMaxDepth, setDefaultWebSearchMaxDepth, setExpandThoughts, setExpandTools, setHostedToolsEnabled, setIncludeThoughts, setLocalToolsEnabled, setSelectedModelId, setSelectedProviderUuid, setStreaming, setTokenThresholdModifier and TypeMethodDescriptioncreateResourceHandle(URI uri) Creates a specializedResourceHandlebased on the URI scheme.Convenience method to get the host application ID from the parent AsiContainer.intGets the maximum number of tokens allowed in the context window.voidsetApiInitialDelayMillis(long apiInitialDelayMillis) Sets the initial API retry delay and fires a property change event.voidsetApiMaxDelayMillis(long apiMaxDelayMillis) Sets the max API retry delay and fires a property change event.voidsetApiMaxRetries(int apiMaxRetries) Sets the max API retries and fires a property change event.voidsetAutoReplyTools(boolean autoReplyTools) Sets whether tool calls should be auto-replied and fires a property change event.voidsetDefaultBlobPartMaxDepth(int defaultBlobPartMaxDepth) Sets the default blob part max depth and fires a property change event.voidsetDefaultModelCodeExecutionMaxDepth(int defaultModelCodeExecutionMaxDepth) Sets the default model code execution max depth and fires a property change event.voidsetDefaultTextPartMaxDepth(int defaultTextPartMaxDepth) Sets the default text part max depth and fires a property change event.voidsetDefaultThoughtPartMaxDepth(int defaultThoughtPartMaxDepth) Sets the default thought part max depth and fires a property change event.voidsetDefaultToolMaxDepth(int defaultToolMaxDepth) Sets the default tool response max depth and fires a property change event.voidsetDefaultWebSearchMaxDepth(int defaultWebSearchMaxDepth) Sets the default web search max depth and fires a property change event.voidsetExpandThoughts(boolean expandThoughts) Sets whether thoughts should be expanded and fires a property change event.voidsetExpandTools(ExpandToolsPreference expandTools) Sets the tool expansion preference and fires a property change event.voidsetHostedToolsEnabled(boolean enabled) Configures the session to utilize hosted server-side tools (e.g., Google Search).voidsetIncludeThoughts(boolean includeThoughts) Sets whether thoughts should be included and fires a property change event.voidsetLocalToolsEnabled(boolean enabled) Configures the session to utilize local Java-based toolkits.voidsetSelectedModelId(String selectedModelId) Sets the selected model ID and fires a property change event.voidsetSelectedProviderUuid(String selectedProviderUuid) Sets the selected provider UUID and fires a property change event.voidsetStreaming(boolean streaming) Sets whether streaming is enabled and fires a property change event.voidsetTokenThreshold(int tokenThreshold) Sets the token threshold and fires a property change event.Methods inherited from class BasicPropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, rebind, removePropertyChangeListener, removePropertyChangeListenerModifier and TypeMethodDescriptionvoidAdds a property change listener.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds a property change listener for a specific property.voidrebind()Re-initializes the transientPropertyChangeSupportafter deserialization.voidRemoves a property change listener.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Removes a property change listener for a specific property.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyChangeSource
getPropertyChangeSupportModifier and TypeMethodDescriptionGets the PropertyChangeSupport instance for this object.
-
Constructor Details
-
AsiDesktopAgiConfig
Constructs a new configuration for a fresh agi session.- Parameters:
asiConfig- The parent ASI container.
-
AsiDesktopAgiConfig
Constructs a new configuration for a restored agi session.- Parameters:
asiConfig- The parent ASI container.sessionId- The unique ID of the session being restored.
-

