Skip to content

Commit 4cf2f6f

Browse files
committed
update lib
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 51f57b8 commit 4cf2f6f

3 files changed

Lines changed: 23 additions & 17 deletions

File tree

app/src/main/java/com/nextcloud/client/assistant/repository/AssistantMockRepository.kt

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,29 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult
1212
import com.owncloud.android.lib.resources.assistant.v2.model.Shape
1313
import com.owncloud.android.lib.resources.assistant.v2.model.Task
1414
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInput
15-
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInputShape
1615
import com.owncloud.android.lib.resources.assistant.v2.model.TaskOutput
17-
import com.owncloud.android.lib.resources.assistant.v2.model.TaskOutputShape
1816
import com.owncloud.android.lib.resources.assistant.v2.model.TaskTypeData
1917

2018
@Suppress("MagicNumber")
2119
class AssistantMockRepository(private val giveEmptyTasks: Boolean = false) : AssistantRepositoryType {
2220
override fun getTaskTypes(): List<TaskTypeData> {
2321
return listOf(
2422
TaskTypeData(
25-
"core:text2text",
26-
"Free text to text prompt",
27-
"Runs an arbitrary prompt through a language model that returns a reply",
28-
inputShape = TaskInputShape(
29-
input = Shape(
30-
"Prompt",
31-
"Describe a task that you want the assistant to do or ask a question",
32-
"Text"
23+
id = "core:text2text",
24+
name = "Free text to text prompt",
25+
description = "Runs an arbitrary prompt through a language model that returns a reply",
26+
inputShape = mapOf(
27+
"input" to Shape(
28+
name = "Prompt",
29+
description = "Describe a task that you want the assistant to do or ask a question",
30+
type = "Text"
3331
)
3432
),
35-
outputShape = TaskOutputShape(
36-
output = Shape(
37-
"Generated reply",
38-
"The generated text from the assistant",
39-
"Text"
33+
outputShape = mapOf(
34+
"output" to Shape(
35+
name = "Generated reply",
36+
description = "The generated text from the assistant",
37+
type = "Text"
4038
)
4139
)
4240
)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
buildscript {
1212
ext {
13-
androidLibraryVersion ="8c14b444c709e91462fd503af87608a7fa40e90b"
13+
androidLibraryVersion ="d0e6fa5c8b"
1414
androidCommonLibraryVersion = "0.26.0"
1515
androidPluginVersion = "8.9.2"
1616
androidxMediaVersion = "1.5.1"

gradle/verification-metadata.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4512,7 +4512,7 @@
45124512
</component>
45134513
<component group="androidx.lifecycle" name="lifecycle-viewmodel" version="2.3.1">
45144514
<artifact name="lifecycle-viewmodel-2.3.1.aar">
4515-
<sha256 value="b6db4c274a12ff85a4747e1e6669c7e98aefa2571ace9d1f1a6fa6be417ce838" origin="Generated by Gradle"/>
4515+
<sha256 value="b6db4c274a12ff85a4747e1e6669c7e98aefa2571ace9d1f1a6fa6be417ce838" origin="Generated by Gradle" reason="Artifact is not signed"/>
45164516
</artifact>
45174517
<artifact name="lifecycle-viewmodel-2.3.1.module">
45184518
<sha256 value="a531853dfe316c90b7466d24be94dbe60a60ef54a52c904c86381986202e51f4" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -12426,6 +12426,14 @@
1242612426
<sha256 value="23be4020754cbb39a6d197281a0d55f84e8851b13afa204081e29132d785a340" origin="Generated by Gradle" reason="Artifact is not signed"/>
1242712427
</artifact>
1242812428
</component>
12429+
<component group="com.github.nextcloud" name="android-library" version="d0e6fa5c8b">
12430+
<artifact name="android-library-d0e6fa5c8b.aar">
12431+
<sha256 value="a6ed682f5e0c651759519963e8470fdd3aabcf0104868e8455811d7b7dfa1405" origin="Generated by Gradle" reason="Artifact is not signed"/>
12432+
</artifact>
12433+
<artifact name="android-library-d0e6fa5c8b.module">
12434+
<sha256 value="b29d8928cba81c13d016ac2e0b7a7d40f1b2e71f8229d65efcffb871a27576de" origin="Generated by Gradle" reason="Artifact is not signed"/>
12435+
</artifact>
12436+
</component>
1242912437
<component group="com.github.nextcloud" name="android-library" version="d5f21fa1ec5b67c564983b0c8a07bc3acd96f695">
1243012438
<artifact name="android-library-d5f21fa1ec5b67c564983b0c8a07bc3acd96f695.aar">
1243112439
<sha256 value="95c86f501a4c1a2e055ba2d1fe68f5ffeed3613492bdaf0594abbae4b21b9227" origin="Generated by Gradle" reason="Artifact is not signed"/>

0 commit comments

Comments
 (0)