class_docstr: Stores the data, status, and block information of a sequence.
  
  Args:
      seq_id: The ID of the sequence.
      prompt: The prompt of the sequence.
      prompt_token_ids: The token IDs of the prompt.
class_docstr_tok: ["Stores","the","data",",","status",",","and","block","information","of","a","sequence",".","Args",":","seq_id",":","The","ID","of","the","sequence",".","prompt",":","The","prompt","of","the","sequence",".","prompt_token_ids",":","The","token","IDs","of","the","prompt","."]
code: def append_token_id(
      self,
      token_id: int,
      logprobs: Dict[int, float],
      latency: Optional[float] = None,
  ) -> None:
      invalidInputError(
          token_id in logprobs, "token id should be in logprobs"
      )
      self.output_logprobs.append(logprobs)
      self.data.append_token_id(token_id, logprobs[token_id])
      if not (latency is None):
          self.output_token_latency.append(latency)
  
imports: import copy
  import enum
  import time
  from typing import Dict, List, Optional, Union
  from bigdl.llm.vllm.sampling_params import SamplingParams
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 2 for calling the Sequence obj's underlying member method code with example usage: obj.append_token_id(token_id, logprobs, latency) without return types