Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Chaining Bot Actions #208

Open
samuelvkwong opened this issue Aug 2, 2023 · 2 comments
Open

[ENH] Chaining Bot Actions #208

samuelvkwong opened this issue Aug 2, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@samuelvkwong
Copy link
Contributor

  1. Motivation - Chaining bot actions are currently needed for the enhancement LLM integration to make the conversation feel more natural when we want to personalize a response from another service function. Currently, getting the result from a previous service function and having it be available for the openai service function seems to be difficult as even if the openai service function is triggered afterwards in the code, both make their requests asynchronously.
  2. Specification - A suggestion was made to change the bot model so that a bot action can trigger another bot action after it has returned.
  3. Finalised state - For the personalize openai wrapper function, responses from service function could be personalized in addition to simple text responses.
@samuelvkwong samuelvkwong added the enhancement New feature or request label Aug 2, 2023
@lakhoune
Copy link
Member

lakhoune commented Aug 15, 2023

Currently, the bot model describes the sequential behaviour of IncomingMessage_A->BotAction->IncomingMessage_B
as IncomingMessage_A->BotAction and IncomingMessage_A->IncomingMessage_B. This would however suggest that IncomingMessage_B can also happen before BotAction and even if the BotAction fails, which is not the case.
Thus I think we should model this as IncomingMessage_A---leadsTo--->BotAction---leadsTo--->IncomingMessage_B This would reflect the sequential behaviour and also allow us to chain BotActions as proposed in this enhancement issue

@lakhoune
Copy link
Member

@AlexanderNeumann what do you think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants