edreisMD / plugnplai

🎸 Integrating AI plugins to LLMs
https://plugnplai.com
MIT License
230 stars 17 forks source link

Add section on using @plugins.apply_plugins decorator #131

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

This PR adds a section to the README on using the @plugins.apply_plugins decorator. The section covers:

  1. Importing the Plugins class and decorator
  2. Defining an LLM function to decorate
  3. What the decorator handles (prepending prompt, checking for API calls, calling plugins, summarizing calls)
  4. Returning the original response if no API calls are detected

The goal of this PR is to make the usage of the decorator more clear for users.

Fixes #128.