feat: agent log (#3537)

Co-authored-by: jyong <718720800@qq.com>
This commit is contained in:
KVOJJJin
2024-04-17 10:30:52 +08:00
committed by GitHub
parent 9b8861e3e1
commit e70482dfc0
26 changed files with 732 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
import type { Fetcher } from 'swr'
import { get, post } from './base'
import type {
AgentLogDetailRequest,
AgentLogDetailResponse,
AnnotationsCountResponse,
ChatConversationFullDetailResponse,
ChatConversationsRequest,
@@ -73,3 +75,7 @@ export const fetchRunDetail = ({ appID, runID }: { appID: string; runID: string
export const fetchTracingList: Fetcher<NodeTracingListResponse, { url: string }> = ({ url }) => {
return get<NodeTracingListResponse>(url)
}
export const fetchAgentLogDetail = ({ appID, params }: { appID: string; params: AgentLogDetailRequest }) => {
return get<AgentLogDetailResponse>(`/apps/${appID}/agent/logs`, { params })
}