Now have the message box - send to langchain4j routine set up and confirmed, even without an LLM to test against so we prove that the onscreen workflow is OK

This commit is contained in:
2026-02-26 10:33:33 +11:00
parent 3f281d0b5b
commit 7c1bc79fb2
8 changed files with 282 additions and 34 deletions

View File

@@ -39,11 +39,12 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
isCoreLibraryDesugaringEnabled = true
}
kotlinOptions {
jvmTarget = "11"
jvmTarget = "17"
}
buildFeatures {
compose = true
@@ -68,10 +69,14 @@ dependencies {
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)
// LangChain4j Core Orchestration
implementation("dev.langchain4j:langchain4j:0.29.1")
// LangChain4j BOM (Bill of Materials)
// This ensures all langchain4j modules use the same, compatible version.
implementation(platform("dev.langchain4j:langchain4j-bom:0.36.2"))
// We use the OpenAI module because almost all local Android LLM runners
// (like Llama.cpp) host a local server that mimics the OpenAI API format.
implementation("dev.langchain4j:langchain4j-open-ai:0.29.1")
// Now, declare the modules you need without specifying the version.
implementation("dev.langchain4j:langchain4j")
implementation("dev.langchain4j:langchain4j-open-ai")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
}