返回探索

用Rust enum定义Jev Choice选项

该帖子展示了在system2中,如何将Rust enum用作Jev Choice的选项:其文档注释向Jev描述选项含义,返回结果直接对应一个枚举变体。所有问题通过一次请求发出,答案以类型化形式返回,便于程序化决策。

With system2, a Rust enum can be the options of a Jev Choice: its doc comments describe them to Jev, and the answer is one of your variants. All three questions go out in one request, and the answers come back typed, ready to decide programmatically.

用Rust enum定义Jev Choice选项 1
· 0 次赞在 X 打开