code: """Global eval handlers."""
  
  from typing import Any
  
  from llama_index.callbacks.argilla_callback import argilla_callback_handler
  from llama_index.callbacks.arize_phoenix_callback import arize_phoenix_callback_handler
  from llama_index.callbacks.base_handler import BaseCallbackHandler
  from llama_index.callbacks.deepeval_callback import deepeval_callback_handler
  from llama_index.callbacks.honeyhive_callback import honeyhive_callback_handler
  from llama_index.callbacks.open_inference_callback import OpenInferenceCallbackHandler
  from llama_index.callbacks.promptlayer_handler import PromptLayerHandler
  from llama_index.callbacks.simple_llm_handler import SimpleLLMHandler
  from llama_index.callbacks.wandb_callback import WandbCallbackHandler
  
  
  def set_global_handler(eval_mode: str, **eval_params: Any) -> None:
      """Set global eval handlers."""
      import llama_index
  
      llama_index.global_handler = create_global_handler(eval_mode, **eval_params)
  
  
  def create_global_handler(eval_mode: str, **eval_params: Any) -> BaseCallbackHandler:
      """Get global eval handler."""
      if eval_mode == "wandb":
          handler: BaseCallbackHandler = WandbCallbackHandler(**eval_params)
      elif eval_mode == "openinference":
          handler = OpenInferenceCallbackHandler(**eval_params)
      elif eval_mode == "arize_phoenix":
          handler = arize_phoenix_callback_handler(**eval_params)
      elif eval_mode == "honeyhive":
          handler = honeyhive_callback_handler(**eval_params)
      elif eval_mode == "promptlayer":
          handler = PromptLayerHandler(**eval_params)
      elif eval_mode == "deepeval":
          handler = deepeval_callback_handler(**eval_params)
      elif eval_mode == "simple":
          handler = SimpleLLMHandler(**eval_params)
      elif eval_mode == "argilla":
          handler = argilla_callback_handler(**eval_params)
      else:
          raise ValueError(f"Eval mode {eval_mode} not supported.")
  
      return handler
  
apis: llama_index.callbacks.open_inference_callback.OpenInferenceCallbackHandler llama_index.callbacks.simple_llm_handler.SimpleLLMHandler llama_index.callbacks.deepeval_callback.deepeval_callback_handler llama_index.callbacks.wandb_callback.WandbCallbackHandler llama_index.callbacks.arize_phoenix_callback.arize_phoenix_callback_handler llama_index.callbacks.honeyhive_callback.honeyhive_callback_handler llama_index.callbacks.argilla_callback.argilla_callback_handler llama_index.callbacks.promptlayer_handler.PromptLayerHandler
extract_api: [((1144, 1179), 'llama_index.callbacks.wandb_callback.WandbCallbackHandler', 'WandbCallbackHandler', ([], {}), '(**eval_params)\n', (1164, 1179), False, 'from llama_index.callbacks.wandb_callback import WandbCallbackHandler\n'), ((1237, 1280), 'llama_index.callbacks.open_inference_callback.OpenInferenceCallbackHandler', 'OpenInferenceCallbackHandler', ([], {}), '(**eval_params)\n', (1265, 1280), False, 'from llama_index.callbacks.open_inference_callback import OpenInferenceCallbackHandler\n'), ((1338, 1383), 'llama_index.callbacks.arize_phoenix_callback.arize_phoenix_callback_handler', 'arize_phoenix_callback_handler', ([], {}), '(**eval_params)\n', (1368, 1383), False, 'from llama_index.callbacks.arize_phoenix_callback import arize_phoenix_callback_handler\n'), ((1437, 1478), 'llama_index.callbacks.honeyhive_callback.honeyhive_callback_handler', 'honeyhive_callback_handler', ([], {}), '(**eval_params)\n', (1463, 1478), False, 'from llama_index.callbacks.honeyhive_callback import honeyhive_callback_handler\n'), ((1534, 1567), 'llama_index.callbacks.promptlayer_handler.PromptLayerHandler', 'PromptLayerHandler', ([], {}), '(**eval_params)\n', (1552, 1567), False, 'from llama_index.callbacks.promptlayer_handler import PromptLayerHandler\n'), ((1620, 1660), 'llama_index.callbacks.deepeval_callback.deepeval_callback_handler', 'deepeval_callback_handler', ([], {}), '(**eval_params)\n', (1645, 1660), False, 'from llama_index.callbacks.deepeval_callback import deepeval_callback_handler\n'), ((1711, 1742), 'llama_index.callbacks.simple_llm_handler.SimpleLLMHandler', 'SimpleLLMHandler', ([], {}), '(**eval_params)\n', (1727, 1742), False, 'from llama_index.callbacks.simple_llm_handler import SimpleLLMHandler\n'), ((1794, 1833), 'llama_index.callbacks.argilla_callback.argilla_callback_handler', 'argilla_callback_handler', ([], {}), '(**eval_params)\n', (1818, 1833), False, 'from llama_index.callbacks.argilla_callback import argilla_callback_handler\n')]