请让我为使用watson的辅助日志API而挣扎。目前,我们使用watson助手日志API来获取聊天机器人和客户之间的日常会话日志,并将日志输入NLC,以便为精确分析人员分类。最近,我们观察到IBM已经退出NLC,并建议我们迁移到NLU。从那时起,我们一直有问题,使组件运行。现在,辅助日志返回此过滤器的空日志。
authenticator = IAMAuthenticator('********')
assistant = AssistantV2(
version='2021-06-14',
authenticator = authenticator
)
assistant.set_service_url('https://api.eu-gb.assistant.watson.cloud.ibm.com')
print("The assistant URL ")
response=assistant.list_logs(
assistant_id='******', page_limit=100, filter='response_timestamp>2022-09-14T00:00:00.000Z',
cursor=cursor).get_result()
response=assistant.list_logs(
assistant_id='*******').get_result()
print(json.dumps(response, indent=2))
#print("the response is ",response) 这是返回一个空数据。
{
"logs": [],
"pagination": {}
}发布于 2022-09-19 07:20:47
以下是可能发生这种情况的一些原因。
您的过滤器看起来很好,但是尝试这个过滤器(更改语言和助手ID):
language::en,request.context.system.assistant_id::<YOUR_ASSISTANT_ID>,response_timestamp>2022-09-14T00:00:00.000Z既然你的时间是午夜,你也可以把这部分改为:
response_timestamp>2022-09-14https://stackoverflow.com/questions/73716446
复制相似问题