class_docstr: The set of expected inputs to a custom handler for a
class_docstr_tok: ["The","set","of","expected","inputs","to","a","custom","handler","for","a"]
code: def __init__(self):
      self.errors = []
      self.states: Optional[
          List[
              Literal[
                  "sync_pre_api_call",
                  "async_pre_api_call",
                  "post_api_call",
                  "sync_stream",
                  "async_stream",
                  "sync_success",
                  "async_success",
                  "sync_failure",
                  "async_failure",
              ]
          ]
      ] = []
  
file_path: litellm/litellm/tests/test_custom_callback_input.py
imports: import sys, os, time, inspect, asyncio, traceback
  from datetime import datetime
  import pytest
  from typing import Optional, Literal, List, Union
  from litellm import completion, embedding, Cache
  import litellm
  from litellm.integrations.custom_logger import CustomLogger
label_desc: Use image node_id 1 to create a new CompletionCustomHandler object from inherited base classes: CustomLogger with example: obj = CompletionCustomHandler()