Uses of Annotation Type
uno.anahata.ai.tools.AIToolMethod
Packages that use AIToolMethod
Package
Description
Contains the Service Provider Interface (SPI) for UI-specific local tools.
Provides a Service Provider Interface (SPI) with a collection of pre-built, general-purpose local tools.
-
Uses of AIToolMethod in uno.anahata.ai.media.functions.spi
Methods in uno.anahata.ai.media.functions.spi with annotations of type AIToolMethodModifier and TypeMethodDescriptionstatic StringRadioTool.getCurrentStation()RadioTool.listStations()static StringPianoTool.playMelody(List<PianoTool.Note> notes) static StringDJTool.setTempo(int bpm) static StringDJTool.setTrackInstrument(String trackName, int instrumentId) static StringDJTool.setTrackMute(String trackName, boolean mute) static Stringstatic StringRadioTool.startRandom()static voidAudioTool.startRecording()static StringRadioTool.startStation(String stationUrl) static StringDJTool.stop()static StringRadioTool.stop()static FileAudioTool.stopRecording() -
Uses of AIToolMethod in uno.anahata.ai.swing.tools.spi
Methods in uno.anahata.ai.swing.tools.spi with annotations of type AIToolMethodModifier and TypeMethodDescriptionstatic MultiPartResponseScreenCapture.attachWindowCaptures()static StringScreenCapture.takeDeviceScreenshot(int deviceIdx) -
Uses of AIToolMethod in uno.anahata.ai.tools.spi
Methods in uno.anahata.ai.tools.spi with annotations of type AIToolMethodModifier and TypeMethodDescriptionstatic MultiPartResponseLocalFiles.addToUserPrompt(List<String> absolutePath) Adds the contents of specified files as blobs to the next user feedback message.static FileInfoLocalFiles.appendToFile(String path, String content) Appends content to the end of a file.static ObjectRunningJVM.compileAndExecuteJava(String sourceCode, String extraClassPath, String[] compilerOptions) Compiles and executes a Java class namedAnahatathat implementsCallable.static ClassRunningJVM.compileJava(String sourceCode, String className, String extraClassPath, String[] compilerOptions) Compiles Java source code in memory and returns the resulting Class object.static StringCopies a file.static StringGenerates a single image from a text prompt and saves it to the local file system.static StringLocalFiles.createDirectories(String path) Creates a directory structure.static FileInfoLocalFiles.createFile(String path, String content) Creates a new file with the given content.static StringLocalFiles.deleteFile(String path) Deletes a file and prunes it from the context.static booleanLocalFiles.fileExists(String path) Checks if a file or directory exists.static StringContextWindow.getContextSummary()Generates a detailed Markdown summary of all messages and parts in the context.static StringRunningJVM.getDefaultCompilerClasspath()Gets the current default compiler classpath.static StringRunningJVM.getPrettyPrintedDefaultCompilerClasspath()Returns a pretty-printed, tree-like representation of the default classpath.static intContextWindow.getTokenCount()Gets the current total token count in the context window.static intContextWindow.getTokenThreshold()Gets the current token threshold.LocalFiles.listDirectory(String path) Lists the contents of a directory.Session.listSavedSessions()Lists all available saved chat sessions.static voidSession.loadSession(String id) Loads a conversation history from a saved session file.static StringMoves or renames a file.static StringContextWindow.pruneEphemeralToolCalls(List<String> toolCallIds, String reason) Prunes ephemeral tool calls and their responses by ID.static StringContextWindow.pruneOther(List<String> partIds, String reason) Prunes specific non-tool parts from the context.static StringContextWindow.pruneStatefulResources(List<String> resourceIds, String reason) Prunes all parts associated with specific stateful resources.static byte[]LocalFiles.readBinaryFile(String path) Reads a binary file and returns its raw bytes.static FileInfoReads a text file and returns aFileInfoobject.Executes a shell command usingbash -c.static StringSession.saveSession(String name) Saves the current conversation history to a file.static voidRunningJVM.setDefaultCompilerClasspath(String defaultCompilerClasspath) Sets a new default compiler classpath.static StringContextWindow.setTokenThreshold(int newThreshold) Sets a new token threshold.static StringContextWindow.toggleContextProviders(List<String> contextProviderIds, boolean enabled) Enables or disables specific context providers.static FileInfoWrites content to an existing file, using optimistic locking.
