Skip to content

Commit 874915d

Browse files
committed
array to object
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent b90a065 commit 874915d

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

  • library/src/androidTest/java/com/owncloud/android/lib/resources/assistant/v2

library/src/androidTest/java/com/owncloud/android/lib/resources/assistant/v2/AssistantV2Tests.kt

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
package com.owncloud.android.lib.resources.assistant.v2
1010

1111
import com.owncloud.android.AbstractIT
12+
import com.owncloud.android.lib.resources.assistant.v2.model.Shape
1213
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInputShape
1314
import com.owncloud.android.lib.resources.assistant.v2.model.TaskOutputShape
1415
import com.owncloud.android.lib.resources.assistant.v2.model.TaskTypeData
@@ -29,20 +30,24 @@ class AssistantV2Tests : AbstractIT() {
2930
"core:text2text",
3031
"Free text to text prompt",
3132
"Runs an arbitrary prompt through a language model that returns a reply",
32-
listOf(
33+
inputShape =
3334
TaskInputShape(
34-
"Prompt",
35-
"Describe a task that you want the assistant to do or ask a question",
36-
"Text"
37-
)
38-
),
39-
listOf(
35+
input =
36+
Shape(
37+
"Prompt",
38+
"Describe a task that you want the assistant to do or ask a question",
39+
"Text"
40+
)
41+
),
42+
outputShape =
4043
TaskOutputShape(
41-
"Generated reply",
42-
"The generated text from the assistant",
43-
"Text"
44+
output =
45+
Shape(
46+
"Generated reply",
47+
"The generated text from the assistant",
48+
"Text"
49+
)
4450
)
45-
)
4651
)
4752

4853
private fun getSelectedTaskType(): String = "core:text2text"

0 commit comments

Comments
 (0)