IBM / clai

Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
https://clai-home.mybluemix.net/
MIT License
475 stars 73 forks source link

enabled question based invocation for howdoi skill #38

Closed kpfadnis closed 4 years ago

kpfadnis commented 4 years ago

:pushpin: References

:tophat: What is the goal?

howdoi skill invokes for built-in bash commands causing unwanted behavior. In order to curtain invocation of howdoi skill, additional requirements were added to invocation pattern.

howdoi skill can be only invoked for "WH" type questions now on. For example,

  1. pwd -> will result into execution of pwd bash command
  2. what is pwd? -> will result into response from howdoi skill (when active) as man pwd

:memo: How is it being implemented?

All incoming requests (commands) to howdoi skill now are tested to ensure that they are "WH"-type question. If they are not, then the command is returned as it is without activating howdoi assist logic.

:tv: Screenshot or gif showing the result.

New howdoi plugin in action: howdoi_invocation_change

Local integration test results:

image

:boom: How can it be tested?

Install CLAI, activate howdoi plugin