check_required_models_available


Description:

public static async bool check_required_models_available (Config2 config)

Checks if the required models for codebase search are available on the server.

Verifies that both the embedding model and analysis model are available on the server. Reads from CodebaseSearchToolConfig in tools map, or falls back to usage map for backward compatibility. This should be called before initializing the codebase search tool.

Parameters:

config

The Config2 instance containing model usage configuration

Returns:

true if both models are available, false otherwise