abacusai.llm_response
Module Contents
Classes
The response returned by LLM |
- class abacusai.llm_response.LlmResponse(client, content=None, tokens=None, stopReason=None, llmCodeBlock={})
Bases:
abacusai.return_class.AbstractApiClass
The response returned by LLM
- Parameters:
client (ApiClient) – An authenticated API Client instance
content (str) – Content of the response.
tokens (int) – The number of tokens in the response.
stopReason (str) – The reason due to which the response generation stopped.
llmCodeBlock (LlmCodeBlock) – Parsed code block from raw LLM Response
- __repr__()
Return repr(self).