fix(web): move EpisodicMemoryType type
This commit is contained in:
@@ -21,7 +21,6 @@ import type {
|
|||||||
import type {
|
import type {
|
||||||
ConfigForm as SelfReflectionEngineConfig
|
ConfigForm as SelfReflectionEngineConfig
|
||||||
} from '@/views/SelfReflectionEngine/types'
|
} from '@/views/SelfReflectionEngine/types'
|
||||||
import type { EpisodicMemoryType } from '@/views/UserMemoryDetail/pages/ExplicitDetail'
|
|
||||||
import type { TestParams } from '@/views/MemoryConversation'
|
import type { TestParams } from '@/views/MemoryConversation'
|
||||||
import type { EndUser } from '@/views/UserMemoryDetail/types'
|
import type { EndUser } from '@/views/UserMemoryDetail/types'
|
||||||
import { handleSSE, type SSEMessage } from '@/utils/stream'
|
import { handleSSE, type SSEMessage } from '@/utils/stream'
|
||||||
@@ -219,6 +218,8 @@ export const getTimelineMemories = (data: { id: string; label: string; }) => {
|
|||||||
export const getExplicitMemory = (end_user_id: string) => {
|
export const getExplicitMemory = (end_user_id: string) => {
|
||||||
return request.post(`/memory/explicit-memory/overview`, { end_user_id })
|
return request.post(`/memory/explicit-memory/overview`, { end_user_id })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EpisodicMemoryType = "conversation" | "project_work" | "learning" | "decision" | "important_event"
|
||||||
export interface EpisodicMemoryQuery {
|
export interface EpisodicMemoryQuery {
|
||||||
end_user_id?: string;
|
end_user_id?: string;
|
||||||
page?: number;
|
page?: number;
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {
|
|||||||
getSemanticsMemory,
|
getSemanticsMemory,
|
||||||
getEpisodicMemory,
|
getEpisodicMemory,
|
||||||
type EpisodicMemoryQuery,
|
type EpisodicMemoryQuery,
|
||||||
|
type EpisodicMemoryType,
|
||||||
} from '@/api/memory'
|
} from '@/api/memory'
|
||||||
import { formatDateTime } from '@/utils/format'
|
import { formatDateTime } from '@/utils/format'
|
||||||
import Empty from '@/components/Empty'
|
import Empty from '@/components/Empty'
|
||||||
@@ -25,7 +26,6 @@ import ExplicitDetailModal from '../components/ExplicitDetailModal'
|
|||||||
|
|
||||||
/** An episodic (event-based) memory entry with a title and free-text content. */
|
/** An episodic (event-based) memory entry with a title and free-text content. */
|
||||||
|
|
||||||
export type EpisodicMemoryType = "conversation" | "project_work" | "learning" | "decision" | "important_event"
|
|
||||||
export interface EpisodicMemory {
|
export interface EpisodicMemory {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
@@ -116,7 +116,7 @@ const ExplicitDetail: FC = () => {
|
|||||||
|
|
||||||
if (range && range.length === 2) {
|
if (range && range.length === 2) {
|
||||||
params.start_date = range[0]!.startOf('day').valueOf()
|
params.start_date = range[0]!.startOf('day').valueOf()
|
||||||
params.end_date = range[0]!.endOf('day').valueOf()
|
params.end_date = range[1]!.endOf('day').valueOf()
|
||||||
}
|
}
|
||||||
setEpisodicLoading(true)
|
setEpisodicLoading(true)
|
||||||
getEpisodicMemory(params)
|
getEpisodicMemory(params)
|
||||||
|
|||||||
Reference in New Issue
Block a user