Learn R Programming

mLLMCelltype (version 1.3.2)

check_consensus: Check if consensus is reached among models

Description

Check if consensus is reached among models

Usage

check_consensus(
  round_responses,
  api_keys = NULL,
  controversy_threshold = 2/3,
  entropy_threshold = 1,
  consensus_check_model = NULL
)

Arguments

round_responses

A vector of model responses to check for consensus

api_keys

A list of API keys for different providers

controversy_threshold

Threshold for consensus proportion (default: 2/3)

entropy_threshold

Threshold for entropy (default: 1.0)

consensus_check_model

Model to use for consensus checking (default: NULL, will try available models in order)