Create Plugin Action for Recipes to check for installed default provider

Created on 19 May 2025, about 2 months ago

Problem/Motivation

Currently we have some helper plugin actions that lets you:

  • Setup an AI Provider if its not setup. Meaning setting up api keys and setting default models.
  • Setup an VDB server with the default embeddings model.
  • Setup an VDB index via the recipe.yml, so that the above recipe runs before hand.

This makes it possible to setup something from scratch very easily. The issue with that is that there would be a lot of recipes that would either require some base recipe or would need you to setup things that might already be setup.

It would instead be much easier if the recipe could do a simple check if the operation type it is looking for has a provider installed or if the operation type it is looking for has a default model setup.

So it could look something like this:

config:
  actions:
    custom_config:
      verifyAiDefaults:
        providers: 
          - chat_with_tools
        default_model:
          - chat_with_tools

This is a work around that uses config actions in a way its not meant to be used - for validation of requirements before application, but since any exception rolls back the configuration, it would work.

Proposed resolution

  • Discuss if this is a good idea, since its a little bit of an antipattern for recipes.
  • Add a custom plugin action called verifyAiDefault that can verify if a list of operation types has provider and/or default models and that throws exceptions if not.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.2

Component

AI Core module

Created by

πŸ‡©πŸ‡ͺGermany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024