abacusai.llm_code_block ======================= .. py:module:: abacusai.llm_code_block Classes ------- .. autoapisummary:: abacusai.llm_code_block.LlmCodeBlock Module Contents --------------- .. py:class:: LlmCodeBlock(client, language=None, code=None, start=None, end=None, valid=None) Bases: :py:obj:`abacusai.return_class.AbstractApiClass` Parsed code block from an LLM response :param client: An authenticated API Client instance :type client: ApiClient :param language: The language of the code block. Eg - python/sql/etc. :type language: str :param code: source code string :type code: str :param start: index of the starting character of the code block in the original response :type start: int :param end: index of the last character of the code block in the original response :type end: int :param valid: flag denoting whether the soruce code string is syntactically valid :type valid: bool .. py:attribute:: language :value: None .. py:attribute:: code :value: None .. py:attribute:: start :value: None .. py:attribute:: end :value: None .. py:attribute:: valid :value: None .. py:attribute:: deprecated_keys .. py:method:: __repr__() .. py:method:: to_dict() Get a dict representation of the parameters in this class :returns: The dict value representation of the class parameters :rtype: dict