mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-21 00:28:27 +00:00
refactor: remove referenceTime parameter from knowledge graph ingestion
This commit is contained in:
parent
484d248f0b
commit
6bb933ca29
@ -14,7 +14,6 @@ export async function ingestKnowledgeGraph(args: IngestKG) {
|
|||||||
const response = await axiosInstance.post(`/ingest`, {
|
const response = await axiosInstance.post(`/ingest`, {
|
||||||
episodeBody: args.message,
|
episodeBody: args.message,
|
||||||
source: process.env.SOURCE,
|
source: process.env.SOURCE,
|
||||||
referenceTime: args.referenceTime,
|
|
||||||
sessionId: undefined,
|
sessionId: undefined,
|
||||||
});
|
});
|
||||||
return response.data;
|
return response.data;
|
||||||
|
|||||||
@ -9,7 +9,6 @@ export const SearchKGSchema = z.object({
|
|||||||
|
|
||||||
export const IngestKGSchema = z.object({
|
export const IngestKGSchema = z.object({
|
||||||
message: z.string().describe("The data to ingest in text format"),
|
message: z.string().describe("The data to ingest in text format"),
|
||||||
referenceTime: z.string().describe("The reference time in ISO format"),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type SearchKG = z.infer<typeof SearchKGSchema>;
|
export type SearchKG = z.infer<typeof SearchKGSchema>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user