abacusai.llm_execution_result
Classes
The result of executing a SQL query |
|
Preview of executing queries using LLM. |
|
Results of executing queries using LLM. |
Module Contents
- class abacusai.llm_execution_result.ExecuteFeatureGroupOperation(client, featureGroupOperationRunId=None, status=None, error=None, query=None)
Bases:
abacusai.return_class.AbstractApiClassThe result of executing a SQL query
- Parameters:
- __repr__()
Return repr(self).
- to_dict()
Get a dict representation of the parameters in this class
- Returns:
The dict value representation of the class parameters
- Return type:
- wait_for_results(timeout=3600, delay=2)
A waiting call until query is executed.
- wait_for_execution(timeout=3600, delay=2)
A waiting call until query is executed.
- get_status()
Gets the status of the query execution
- Returns:
A string describing the status of a query execution (pending, complete, etc.).
- Return type:
- refresh()
Calls describe and refreshes the current object’s fields
- Returns:
The current object
- Return type:
- describe()
Gets the description of the query execution
- Returns:
A ExecuteFeatureGroupOperation object describing the query execution.
- Return type:
- _download_avro_file(file_part, tmp_dir, part_index)
- class abacusai.llm_execution_result.LlmExecutionPreview(client, error=None, sql=None)
Bases:
abacusai.return_class.AbstractApiClassPreview of executing queries using LLM.
- Parameters:
- __repr__()
Return repr(self).
- class abacusai.llm_execution_result.AbstractApiClass(client, id)
- __eq__(other)
Return self==value.
- _get_attribute_as_dict(attribute)
- class abacusai.llm_execution_result.LlmExecutionResult(client, status=None, error=None, execution={}, preview={})
Bases:
abacusai.return_class.AbstractApiClassResults of executing queries using LLM.
- Parameters:
client (ApiClient) – An authenticated API Client instance
status (str) – The status of the execution.
error (str) – The error message if the execution failed.
execution (ExecuteFeatureGroupOperation) – Information on execution of the query.
preview (LlmExecutionPreview) – Preview of executing queries using LLM.
- __repr__()
Return repr(self).