old-agentic-v1^2
Travis Fischer 2023-06-13 02:06:40 -07:00
rodzic 97536de2ec
commit 09d762098f
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -213,7 +213,7 @@ export interface DiffbotKnowledgeGraphEnhanceOptions {
nonCanonicalFacts?: boolean nonCanonicalFacts?: boolean
} }
export interface DiffbotKnowledgeGraphSearchResponse { export interface DiffbotKnowledgeGraphResponse {
data: DiffbotKnowledgeGraphNode[] data: DiffbotKnowledgeGraphNode[]
version: number version: number
hits: number hits: number
@ -388,7 +388,7 @@ export class DiffbotClient {
token: this.apiKey token: this.apiKey
} }
}) })
.json<DiffbotKnowledgeGraphSearchResponse>() .json<DiffbotKnowledgeGraphResponse>()
} }
async knowledgeGraphEnhance(options: DiffbotKnowledgeGraphEnhanceOptions) { async knowledgeGraphEnhance(options: DiffbotKnowledgeGraphEnhanceOptions) {
@ -399,6 +399,6 @@ export class DiffbotClient {
token: this.apiKey token: this.apiKey
} }
}) })
.json<DiffbotKnowledgeGraphSearchResponse>() .json<DiffbotKnowledgeGraphResponse>()
} }
} }