gpt4 book ai didi

python - 有没有办法从步行器返回结果而不使用 jaseci 报告它

转载 作者:行者123 更新时间:2023-12-02 18:01:47 26 4
gpt4 key购买 nike

有没有办法从步行者返回结果而不使用 jaseci 报告它。

因为当您报告一般内容时,它会在我们不需要的最终报告中排队。

report: [
{"response": "xyz"}
];

instead of

report: [
"jdsjdbjs",
"dndkfndkfn",
{"response": "xyz"}
];

它搞乱了挑选记录

最佳答案

如果 Jac 有更多关于此的语言功能,那就太好了,但您可以查看“报告自定义”支持。此处描述 https://docs.jaseci.org/docs/docs/Developing_with_JAC/Language_Features/report_custom.html (文档不是很好的自动取款机)。另请记住,一旦设置 report:custom =,运行后将报告确切的 json 化对象。 (您不会获得完整的沃克词典,其中包括“报告”、“成功”等。

另请注意,最后执行的report:custom 将是唯一返回的报告。

以下是一些示例:

walker cust_report{
report:custom = {'a': 'b'};
}

walker cust_report_neutralize{ # this walker will report nothing
report:custom = {'a': 'b'};
report:custom = null;
}

walker disengage_report{ # this walker will report {'a': 'b'}
disengage report:custom = {'a': 'b'};
report:custom = null;
}

关于python - 有没有办法从步行器返回结果而不使用 jaseci 报告它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74224633/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com