@swiss-ai-hub/web 0.301.6 → 0.302.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Event/Display/ConversationTitleEvent.vue +20 -0
- package/components/Event/Display/FollowUpQuestionsEvent.vue +26 -0
- package/composables/evaluation/useDataset.ts +4 -1
- package/composables/event/useEventComponent.ts +4 -0
- package/package.json +1 -1
- package/sdk/client/index.ts +4 -0
- package/sdk/client/schemas.gen.ts +1281 -268
- package/sdk/client/types.gen.ts +550 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<EventDisplayBase
|
|
3
|
+
:event="event"
|
|
4
|
+
:thread="thread"
|
|
5
|
+
icon="mdi:format-title"
|
|
6
|
+
>
|
|
7
|
+
<p class="font-medium text-surface-700 dark:text-surface-200">
|
|
8
|
+
{{ event.event.title }}
|
|
9
|
+
</p>
|
|
10
|
+
</EventDisplayBase>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup lang="ts">
|
|
14
|
+
import type { ConversationTitleEvent, ThreadDto, ContextualizedAgentEvent } from '@core/sdk/client'
|
|
15
|
+
|
|
16
|
+
defineProps<{
|
|
17
|
+
event: ContextualizedAgentEvent & { event: ConversationTitleEvent }
|
|
18
|
+
thread: ThreadDto
|
|
19
|
+
}>()
|
|
20
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<EventDisplayBase
|
|
3
|
+
:event="event"
|
|
4
|
+
:thread="thread"
|
|
5
|
+
icon="mdi:comment-question-outline"
|
|
6
|
+
>
|
|
7
|
+
<ul class="flex flex-col gap-1">
|
|
8
|
+
<li
|
|
9
|
+
v-for="question in event.event.questions"
|
|
10
|
+
:key="question"
|
|
11
|
+
class="text-sm text-surface-600 dark:text-surface-400"
|
|
12
|
+
>
|
|
13
|
+
{{ question }}
|
|
14
|
+
</li>
|
|
15
|
+
</ul>
|
|
16
|
+
</EventDisplayBase>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import type { FollowUpQuestionsEvent, ThreadDto, ContextualizedAgentEvent } from '@core/sdk/client'
|
|
21
|
+
|
|
22
|
+
defineProps<{
|
|
23
|
+
event: ContextualizedAgentEvent & { event: FollowUpQuestionsEvent }
|
|
24
|
+
thread: ThreadDto
|
|
25
|
+
}>()
|
|
26
|
+
</script>
|
|
@@ -10,11 +10,14 @@ export const useDataset = defineQuery(() => {
|
|
|
10
10
|
staleTime: minutesToMilliseconds(5),
|
|
11
11
|
enabled: useTenantReady('dataset_id'),
|
|
12
12
|
query: async () => {
|
|
13
|
+
const datasetId = route.params.dataset_id as string | undefined
|
|
14
|
+
if (!datasetId) return
|
|
15
|
+
|
|
13
16
|
return await getDataset({
|
|
14
17
|
composable: '$fetch',
|
|
15
18
|
path: {
|
|
16
19
|
tenant_id: tenantId.value!,
|
|
17
|
-
dataset_id:
|
|
20
|
+
dataset_id: datasetId,
|
|
18
21
|
},
|
|
19
22
|
})
|
|
20
23
|
},
|
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
EventDisplayAgentInTheLoopRequestEvent,
|
|
5
5
|
EventDisplayAgentInTheLoopResponseEvent,
|
|
6
6
|
EventDisplayChunkEvent,
|
|
7
|
+
EventDisplayConversationTitleEvent,
|
|
8
|
+
EventDisplayFollowUpQuestionsEvent,
|
|
7
9
|
EventDisplayEmbeddingEvent,
|
|
8
10
|
EventDisplayHumanInTheLoopRequestEvent,
|
|
9
11
|
EventDisplayHumanInTheLoopResponseEvent,
|
|
@@ -42,6 +44,8 @@ export const useEventComponent = () => {
|
|
|
42
44
|
LLMCostEvent: EventDisplayLLMCostEvent,
|
|
43
45
|
LimitChatHistoryEvent: EventDisplayLimitChatHistoryEvent,
|
|
44
46
|
ThoughtEvent: EventDisplayThoughtEvent,
|
|
47
|
+
ConversationTitleEvent: EventDisplayConversationTitleEvent,
|
|
48
|
+
FollowUpQuestionsEvent: EventDisplayFollowUpQuestionsEvent,
|
|
45
49
|
EmbeddingEvent: EventDisplayEmbeddingEvent,
|
|
46
50
|
RerankerEvent: EventDisplayRerankerEvent,
|
|
47
51
|
RetrieverEvent: EventDisplayRetrieverEvent,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"author": "bbv Software Services AG (https://www.bbv.ch)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.302.0",
|
|
7
7
|
"description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
|
|
8
8
|
"main": "./nuxt.config.ts",
|
|
9
9
|
"repository": {
|
package/sdk/client/index.ts
CHANGED
|
@@ -252,6 +252,8 @@ export {
|
|
|
252
252
|
type ContextualizedAgentEventWritable,
|
|
253
253
|
type ControlEvent,
|
|
254
254
|
type ControlEventWritable,
|
|
255
|
+
type ConversationTitleEvent,
|
|
256
|
+
type ConversationTitleEventWritable,
|
|
255
257
|
type CreateAgentInstanceData,
|
|
256
258
|
type CreateAgentInstanceError,
|
|
257
259
|
type CreateAgentInstanceErrors,
|
|
@@ -383,6 +385,8 @@ export {
|
|
|
383
385
|
type FewShotRejectEventWritable,
|
|
384
386
|
type File,
|
|
385
387
|
type FileFile,
|
|
388
|
+
type FollowUpQuestionsEvent,
|
|
389
|
+
type FollowUpQuestionsEventWritable,
|
|
386
390
|
type FullAgentInstanceDto,
|
|
387
391
|
type FullAgentInstanceDtoWritable,
|
|
388
392
|
type FullProcessInstanceDto,
|