code: """Global eval handlers."""
  
  from typing import Any
  
  from llama_index.callbacks.arize_phoenix_callback import arize_phoenix_callback_handler
  from llama_index.callbacks.base_handler import BaseCallbackHandler
  from llama_index.callbacks.honeyhive_callback import honeyhive_callback_handler
  from llama_index.callbacks.open_inference_callback import OpenInferenceCallbackHandler
  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 == "simple":
          handler = SimpleLLMHandler(**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.wandb_callback.WandbCallbackHandler llama_index.callbacks.arize_phoenix_callback.arize_phoenix_callback_handler llama_index.callbacks.honeyhive_callback.honeyhive_callback_handler
extract_api: [((917, 952), 'llama_index.callbacks.wandb_callback.WandbCallbackHandler', 'WandbCallbackHandler', ([], {}), '(**eval_params)\n', (937, 952), False, 'from llama_index.callbacks.wandb_callback import WandbCallbackHandler\n'), ((1010, 1053), 'llama_index.callbacks.open_inference_callback.OpenInferenceCallbackHandler', 'OpenInferenceCallbackHandler', ([], {}), '(**eval_params)\n', (1038, 1053), False, 'from llama_index.callbacks.open_inference_callback import OpenInferenceCallbackHandler\n'), ((1111, 1156), 'llama_index.callbacks.arize_phoenix_callback.arize_phoenix_callback_handler', 'arize_phoenix_callback_handler', ([], {}), '(**eval_params)\n', (1141, 1156), False, 'from llama_index.callbacks.arize_phoenix_callback import arize_phoenix_callback_handler\n'), ((1210, 1251), 'llama_index.callbacks.honeyhive_callback.honeyhive_callback_handler', 'honeyhive_callback_handler', ([], {}), '(**eval_params)\n', (1236, 1251), False, 'from llama_index.callbacks.honeyhive_callback import honeyhive_callback_handler\n'), ((1302, 1333), 'llama_index.callbacks.simple_llm_handler.SimpleLLMHandler', 'SimpleLLMHandler', ([], {}), '(**eval_params)\n', (1318, 1333), False, 'from llama_index.callbacks.simple_llm_handler import SimpleLLMHandler\n')]