public class KnowledgeServiceImpl extends Object implements KnowledgeService
| Constructor and Description |
|---|
KnowledgeServiceImpl(ZaiClient zAiClient) |
| Modifier and Type | Method and Description |
|---|---|
KnowledgeUsedResponse |
checkKnowledgeUsed()
Checks if knowledge is used.
|
CreateKnowledgeResponse |
createKnowledge(KnowledgeBaseParams request)
Creates a new knowledge base.
|
KnowledgeEditResponse |
deleteKnowledge(String knowledgeId)
Deletes a knowledge base.
|
KnowledgeEditResponse |
modifyKnowledge(KnowledgeBaseParams request)
Modifies an existing knowledge base.
|
QueryKnowledgeApiResponse |
queryKnowledge(QueryKnowledgeRequest request)
Queries knowledge.
|
public KnowledgeServiceImpl(ZaiClient zAiClient)
public CreateKnowledgeResponse createKnowledge(KnowledgeBaseParams request)
KnowledgeServicecreateKnowledge in interface KnowledgeServicerequest - the knowledge creation requestpublic KnowledgeEditResponse modifyKnowledge(KnowledgeBaseParams request)
KnowledgeServicemodifyKnowledge in interface KnowledgeServicerequest - the knowledge modification requestpublic QueryKnowledgeApiResponse queryKnowledge(QueryKnowledgeRequest request)
KnowledgeServicequeryKnowledge in interface KnowledgeServicerequest - the knowledge query requestpublic KnowledgeEditResponse deleteKnowledge(String knowledgeId)
KnowledgeServicedeleteKnowledge in interface KnowledgeServiceknowledgeId - the knowledge ID to deletepublic KnowledgeUsedResponse checkKnowledgeUsed()
KnowledgeServicecheckKnowledgeUsed in interface KnowledgeServiceCopyright © 2025. All rights reserved.