MCPcopy Create free account

hub / github.com/RunanywhereAI/runanywhere-sdks / functions

Functions8,121 in github.com/RunanywhereAI/runanywhere-sdks

↓ 1 callersFunctiondetectError
* Detect error messages
Playground/on-device-browser-agent/src/background/agents/obstacle-detector.ts:160
↓ 1 callersFunctiondetectFormatFromUrl
sdk/runanywhere-kotlin/src/commonMain/kotlin/com/runanywhere/sdk/public/extensions/RunAnywhere+ModelManagement.kt:238
↓ 1 callersFunctiondetectLoginRequired
* Detect login required
Playground/on-device-browser-agent/src/background/agents/obstacle-detector.ts:102
↓ 1 callersMethoddetectObstacle
* Detect obstacles that require user intervention
Playground/on-device-browser-agent/src/background/agents/amazon-state-machine.ts:185
↓ 1 callersFunctiondetectOutOfStock
* Detect out of stock items
Playground/on-device-browser-agent/src/background/agents/obstacle-detector.ts:140
↓ 1 callersMethoddetectToolCallFormat
* Detect the appropriate tool call format based on model name. * LFM2-Tool models use the lfm2 format, others use default JSON format. */
examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/settings/ToolSettingsViewModel.kt:210
↓ 1 callersFunctiondetectWASMSIMD
()
sdk/runanywhere-web/packages/core/src/Infrastructure/DeviceCapabilities.ts:117
↓ 1 callersMethoddetectWebGPUWithJSPI
()
sdk/runanywhere-web/packages/llamacpp/src/Foundation/LlamaCppBridge.ts:521
↓ 1 callersFunctiondetect_model_format_from_path
* Detect model format from path. Only Apple CoreML diffusion is supported. * ONNX diffusion is not supported; we only look for CoreML. */
sdk/runanywhere-commons/src/features/diffusion/rac_diffusion_service.cpp:32
↓ 1 callersFunctiondetect_vlm_model_type
* Detect VLM model type from model name metadata. */
sdk/runanywhere-commons/src/backends/llamacpp/rac_vlm_llamacpp.cpp:126
↓ 1 callersMethoddispose
* Release all audio resources.
sdk/runanywhere-web/packages/core/src/Infrastructure/AudioPlayback.ts:135
↓ 1 callersMethoddoInitialize
(modelId: string)
Playground/on-device-browser-agent/src/background/llm-engine.ts:148
↓ 1 callersFunctiondoLoad
( filename: string, exportNames: readonly string[], )
sdk/runanywhere-web/packages/onnx/src/Foundation/SherpaHelperLoader.ts:92
↓ 1 callersMethoddocument_count
sdk/runanywhere-commons/src/features/rag/rag_backend.cpp:512
↓ 1 callersMethoddownload
* Perform a download with custom logic. * * @param url The URL to download from * @param destinationPath The local file pat
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgeDownload.kt:406
↓ 1 callersFunctiondownloadEmbeddingModelFiles
* Download an embedding model and its companion files (e.g., vocab.txt) using direct HTTP. * All files are saved into the same directory: {base}/mode
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/public/extensions/RunAnywhere+ModelManagement.jvmAndroid.kt:902
↓ 1 callersFunctiondownloadFileWithHttpURLConnection
* Download a file using HttpURLConnection with redirect support. */
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/public/extensions/RunAnywhere+ModelManagement.jvmAndroid.kt:968
↓ 1 callersMethoddownloadModel
* Download a model * @param modelId Model identifier * @param url Download URL * @param destPath Destination path * @returns true if downl
sdk/runanywhere-react-native/packages/core/src/specs/RunAnywhereCore.nitro.ts:191
↓ 1 callersMethoddownloadModel
( fileName: string, url: string, onProgress?: (progress: number) => void )
sdk/runanywhere-react-native/packages/core/src/native/NativeRunAnywhereCore.ts:254
↓ 1 callersMethoddownloadUrl
* Build a HuggingFace download URL for this chip. * @param modelSlug Model slug (e.g. "qwen3-4b") → produces * "qwen3-4b-genie-w4a16-8elit
sdk/runanywhere-kotlin/src/commonMain/kotlin/com/runanywhere/sdk/core/types/NPUChip.kt:32
↓ 1 callersFunctiondrawBatchedByColor
* Draws batched points grouped by quantized color to minimize draw calls. * Colors are quantized to ~16 levels per channel to group similar particles
examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/voice/VoiceAssistantParticleView.kt:427
↓ 1 callersFunctiondrawParticlesBatched
* Draws all particles with minimal allocations. * Small particles are batched into a single drawPoints call. * Only larger/brighter particles get in
examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/voice/VoiceAssistantParticleView.kt:284
↓ 1 callersMethodelapsed_ms
sdk/runanywhere-commons/src/core/rac_benchmark.cpp:29
↓ 1 callersMethodemitDeviceRegistered
* Emit device registered event via C++. */
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgeEvents.kt:740
↓ 1 callersMethodemitDeviceRegistrationFailed
* Emit device registration failed event via C++. */
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgeEvents.kt:752
↓ 1 callersMethodemitDownloadStarted
* Emit download started event via C++. * * @param modelId The model being downloaded * @param totalBytes Expected total bytes (0 if unk
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgeEvents.kt:409
↓ 1 callersMethodemitProgress
(stage: string)
sdk/runanywhere-web/packages/llamacpp/src/Infrastructure/VLMWorkerBridge.ts:185
↓ 1 callersMethodemitSDKInitCompleted
* Emit SDK init completed event via C++. */
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgeEvents.kt:614
↓ 1 callersMethodemitSDKInitStarted
* Emit SDK init started event via C++. */
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgeEvents.kt:601
↓ 1 callersMethodemitSTTModelLoadFailed
(modelId: string, errorCode: number, errorMessage: string)
sdk/runanywhere-web/packages/core/src/services/AnalyticsEmitter.ts:24
↓ 1 callersMethodemitSTTTranscriptionFailed
(transcriptionId: string, modelId: string, errorCode: number, errorMessage: string)
sdk/runanywhere-web/packages/core/src/services/AnalyticsEmitter.ts:31
↓ 1 callersMethodemitTTSSynthesisFailed
(synthesisId: string, modelId: string, errorCode: number, errorMessage: string)
sdk/runanywhere-web/packages/core/src/services/AnalyticsEmitter.ts:41
↓ 1 callersMethodemitTTSVoiceLoadFailed
(modelId: string, errorCode: number, errorMessage: string)
sdk/runanywhere-web/packages/core/src/services/AnalyticsEmitter.ts:35
↓ 1 callersMethodemitToEventBus
(eventType: number, dataPtr: number)
sdk/runanywhere-web/packages/llamacpp/src/Foundation/AnalyticsEventsBridge.ts:212
↓ 1 callersFunctionemit_device_registered
Helper to emit device registered event
sdk/runanywhere-commons/src/infrastructure/device/rac_device_manager.cpp:44
↓ 1 callersFunctionencodeBase64Audio
sdk/runanywhere-react-native/packages/onnx/cpp/HybridRunAnywhereONNX.cpp:88
↓ 1 callersFunctionencodeBase64Bytes
sdk/runanywhere-react-native/packages/onnx/cpp/HybridRunAnywhereONNX.cpp:93
↓ 1 callersMethodend_array
sdk/runanywhere-commons/src/infrastructure/telemetry/telemetry_json.cpp:38
↓ 1 callersFunctionensureContentScriptLoaded
(tabId: number)
Playground/on-device-browser-agent/src/background/index.ts:324
↓ 1 callersFunctionensureCrossOriginIsolation
* Registers a service worker that injects COOP/COEP headers for browsers * that don't support `credentialless` COEP (Safari/WebKit). * * - On Chrom
examples/web/RunAnywhereAI/src/main.ts:26
↓ 1 callersMethodensureCurrentConversationInHistory
* Ensure the current chat is in the store's list and persisted before showing history. * Syncs latest messages to the store and adds the conversa
examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/chat/ChatViewModel.kt:886
↓ 1 callersMethodensureDir
* Ensure a directory exists in the sherpa-onnx Emscripten virtual FS.
sdk/runanywhere-web/packages/onnx/src/Foundation/SherpaONNXBridge.ts:353
↓ 1 callersMethodensureModelReady
Playground/android-use-agent/app/src/main/java/com/runanywhere/agent/kernel/AgentKernel.kt:1254
↓ 1 callersFunctionensureOffscreenDocument
()
Playground/on-device-browser-agent/src/background/llm-engine.ts:36
↓ 1 callersMethodensureOffscreenDocument
()
Playground/on-device-browser-agent/src/background/vision-engine.ts:181
↓ 1 callersMethodensureVLMBackendRegistered
* Ensure the llama.cpp VLM backend is registered with the service registry. * Must be called before creating the VLM component so it can find a pro
sdk/runanywhere-web/packages/llamacpp/src/Extensions/RunAnywhere+VLM.ts:46
↓ 1 callersFunctionensure_espeak_voice_files
* Ensures espeak-ng voice files from lang/ subdirectories are also * accessible directly under voices/ so that espeak_SetVoiceByName() * can find th
sdk/runanywhere-commons/src/backends/onnx/onnx_backend.cpp:670
↓ 1 callersFunctionensure_trailing_slash
* Ensure trailing slash on directory path. */
sdk/runanywhere-commons/src/infrastructure/extraction/rac_extraction.cpp:126
↓ 1 callersFunctionescapeHtml
(str: string)
examples/web/RunAnywhereAI/src/views/storage.ts:299
↓ 1 callersFunctionescapeHtml
(str: string)
examples/web/RunAnywhereAI/src/views/voice.ts:477
↓ 1 callersFunctionescapeHtml
(str: string)
examples/web/RunAnywhereAI/src/views/vision.ts:487
↓ 1 callersMethodeventCallback
* Event callback invoked by C++ core when an analytics event occurs. * * Routes events to the registered [AnalyticsEventListener] if one is
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgeEvents.kt:328
↓ 1 callersFunctionevent_type_to_modality
Convert analytics event type to modality
sdk/runanywhere-commons/src/infrastructure/telemetry/telemetry_manager.cpp:96
↓ 1 callersFunctionevent_type_to_string
Convert analytics event type to event type string
sdk/runanywhere-commons/src/infrastructure/telemetry/telemetry_manager.cpp:133
↓ 1 callersMethodevictOPFSModels
* Evict old models from OPFS to free space for a new model. * Deletes models sorted by oldest-first until enough space is freed, * skipping the
sdk/runanywhere-web/packages/core/src/Infrastructure/ModelDownloader.ts:487
↓ 1 callersMethodexecute
examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/benchmarks/services/BenchmarkRunner.kt:24
↓ 1 callersFunctionexecuteClick
* Click an element by selector with retry logic
Playground/on-device-browser-agent/src/content/action-executor.ts:196
↓ 1 callersFunctionexecuteExtract
* Extract text content from an element
Playground/on-device-browser-agent/src/content/action-executor.ts:442
↓ 1 callersFunctionexecuteNavigation
(tabId: number, url: string)
Playground/on-device-browser-agent/src/background/index.ts:253
↓ 1 callersFunctionexecutePressEnter
* Press Enter key on an element (for submitting forms/search)
Playground/on-device-browser-agent/src/content/action-executor.ts:353
↓ 1 callersFunctionexecuteScroll
* Scroll the page
Playground/on-device-browser-agent/src/content/action-executor.ts:474
↓ 1 callersMethodexecuteTool
* Execute a tool call by looking up the registered executor.
sdk/runanywhere-web/packages/llamacpp/src/Extensions/RunAnywhere+ToolCalling.ts:521
↓ 1 callersFunctionextractAlerts
* Extract alert/notification messages from the page
Playground/on-device-browser-agent/src/content/dom-observer.ts:105
↓ 1 callersFunctionextractAmazonElements
* Extract Amazon-specific interactive elements with priority
Playground/on-device-browser-agent/src/content/dom-observer.ts:134
↓ 1 callersFunctionextractArchive
* Extract an archive to the model directory using native C++ extraction (libarchive). * * Supports all formats via auto-detection: ZIP, TAR.GZ, TAR.
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/public/extensions/RunAnywhere+ModelManagement.jvmAndroid.kt:788
↓ 1 callersFunctionextractBoolValue
sdk/runanywhere-react-native/packages/core/cpp/HybridRunAnywhereCore.cpp:255
↓ 1 callersFunctionextractJsonBool
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/public/extensions/RunAnywhere+ModelManagement.jvmAndroid.kt:1300
↓ 1 callersFunctionextractJsonLong
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/public/extensions/RunAnywhere+ModelManagement.jvmAndroid.kt:1290
↓ 1 callersFunctionextractLastUserMessage
sdk/runanywhere-commons/src/server/openai_translation.cpp:172
↓ 1 callersFunctionextractLocationFromStack
* Extract file, line, and function from the first relevant stack frame.
sdk/runanywhere-react-native/packages/core/src/Foundation/ErrorTypes/ErrorContext.ts:81
↓ 1 callersFunctionextractModelIdFromPath
sdk/runanywhere-commons/src/server/http_server.cpp:37
↓ 1 callersMethodextractRGB
* Extract raw RGB pixels from a canvas 2D context. * * Canvas gives RGBA; this strips the alpha channel to produce the * RGBRGBRGB... byte la
sdk/runanywhere-web/packages/core/src/Infrastructure/VideoCapture.ts:254
↓ 1 callersMethodextractSearchQuery
* Extract search query from task without LLM
Playground/on-device-browser-agent/src/background/agents/executor.ts:563
↓ 1 callersMethodextractText
* Extract plain text from a file identified by a content URI. * * Supports PDF (via pdfbox-android) and JSON (via org.json). * Mirrors
examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/domain/services/DocumentService.kt:91
↓ 1 callersMethodextractText
examples/react-native/RunAnywhereAI/android/app/src/main/java/com/runanywhereaI/DocumentServiceModule.kt:25
↓ 1 callersFunctionextractTextFromFile
* Extract text from a document using native PDFKit (for PDF) or string parsing. * Mirrors iOS DocumentService.swift - handles PDF, JSON, and plain te
examples/react-native/RunAnywhereAI/src/screens/RAGScreen.tsx:85
↓ 1 callersFunctionextractThinkingSummary
examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/chat/ChatScreen.kt:759
↓ 1 callersFunctionextractVisibleText
* Extract visible text content from the page
Playground/on-device-browser-agent/src/content/dom-observer.ts:597
↓ 1 callersFunctionextractYouTubeElements
* Extract YouTube-specific interactive elements with priority * YouTube uses web components that standard querySelectorAll may miss
Playground/on-device-browser-agent/src/content/dom-observer.ts:213
↓ 1 callersFunctionextract_json_array_raw
* @brief Extract a JSON array as a raw string (including brackets) */
sdk/runanywhere-commons/src/features/llm/tool_calling.cpp:387
↓ 1 callersFunctionextract_json_object_raw
* @brief Extract a JSON object as a raw string (including braces) */
sdk/runanywhere-commons/src/features/llm/tool_calling.cpp:307
↓ 1 callersFunctionextract_tool_name_and_args
* @brief Extract tool name and arguments using multiple strategies * * Strategies in order: * 1. Standard format: {"tool": "name", "arguments": {..
sdk/runanywhere-commons/src/features/llm/tool_calling.cpp:810
↓ 1 callersFunctionextract_url_host
Simple URL host extraction (after ://)
sdk/runanywhere-commons/src/infrastructure/network/environment.cpp:106
↓ 1 callersFunctionextract_url_scheme
Simple URL scheme extraction
sdk/runanywhere-commons/src/infrastructure/network/environment.cpp:86
↓ 1 callersMethodfault
sdk/runanywhere-kotlin/src/jvmMain/kotlin/com/runanywhere/sdk/foundation/PlatformLogger.kt:53
↓ 1 callersMethodfeed_audio
sdk/runanywhere-commons/src/backends/onnx/onnx_backend.cpp:522
↓ 1 callersMethodfileDelete
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgePlatformAdapter.kt:607
↓ 1 callersMethodfileRead
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgePlatformAdapter.kt:603
↓ 1 callersMethodfileWrite
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/foundation/bridge/extensions/CppBridgePlatformAdapter.kt:605
↓ 1 callersMethodfilterForDevTable
* Strip keys that don't exist in the V2 `telemetry_events` table. * Handles both array format (dev flat batch) and single-object format.
sdk/runanywhere-web/packages/llamacpp/src/Foundation/TelemetryService.ts:341
↓ 1 callersMethodfindBestProduct
* Find the best matching product from search results
Playground/on-device-browser-agent/src/background/agents/amazon-state-machine.ts:463
↓ 1 callersFunctionfindButtonByText
* Find button by text content
Playground/on-device-browser-agent/src/content/action-executor.ts:706
↓ 1 callersMethodfindCartBtn
(dom: DOMState)
Playground/on-device-browser-agent/src/background/agents/navigator-agent.ts:400
↓ 1 callersMethodfindFirstVideo
(dom: DOMState)
Playground/on-device-browser-agent/src/background/agents/state-machines/youtube.ts:158
↓ 1 callersFunctionfindInputByLabel
* Find input element by placeholder, label, or aria-label
Playground/on-device-browser-agent/src/content/action-executor.ts:645
↓ 1 callersFunctionfindLinkByText
* Find link by text content
Playground/on-device-browser-agent/src/content/action-executor.ts:687
↓ 1 callersMethodfindProduct
(dom: DOMState, task: string)
Playground/on-device-browser-agent/src/background/agents/navigator-agent.ts:357
↓ 1 callersMethodfindSearchBox
(dom: DOMState)
Playground/on-device-browser-agent/src/background/agents/state-machines/youtube.ts:130
↓ 1 callersFunctionfind_matching_bracket
* @brief Find matching closing bracket for a JSON array * * Tracks string boundaries to ignore brackets inside strings. * * @param str String to s
sdk/runanywhere-commons/src/features/llm/tool_calling.cpp:340
↓ 1 callersMethodfinish
sdk/runanywhere-kotlin/src/jvmAndroidMain/kotlin/com/runanywhere/sdk/data/transform/IncompleteBytesToStringBuffer.kt:39
← previousnext →1,901–2,000 of 8,121, ranked by callers