abacusai.deployment_conversation_event
Classes
A single deployment conversation message. |
Module Contents
- class abacusai.deployment_conversation_event.DeploymentConversationEvent(client, role=None, text=None, timestamp=None, messageIndex=None, regenerateAttempt=None, modelVersion=None, searchResults=None, isUseful=None, feedback=None, feedbackType=None, docInfos=None, keywordArguments=None, inputParams=None, attachments=None, responseVersion=None, agentWorkflowNodeId=None, nextAgentWorkflowNodeId=None, chatType=None, agentResponse=None, error=None, segments=None, streamedData=None, streamedSectionData=None, highlights=None, llmDisplayName=None, llmBotIcon=None, formResponse=None, routedLlm=None)
Bases:
abacusai.return_class.AbstractApiClass
A single deployment conversation message.
- Parameters:
client (ApiClient) – An authenticated API Client instance
role (str) – The role of the message sender
text (str) – The text of the message
timestamp (str) – The timestamp at which the message was sent
messageIndex (int) – The index of the message in the conversation
regenerateAttempt (int) – The sequence number of regeneration. Not regenerated if 0.
modelVersion (str) – The model instance id associated with the message.
searchResults (dict) – The search results for the message.
isUseful (bool) – Whether this message was marked as useful or not
feedback (str) – The feedback provided for the message
feedbackType (str) – The type of feedback provided for the message
docInfos (list) – A list of information on the documents associated with the message
keywordArguments (dict) – User message only. A dictionary of keyword arguments used to generate response.
inputParams (dict) – User message only. A dictionary of input parameters used to generate response.
attachments (list) – A list of attachments associated with the message.
responseVersion (str) – The version of the response, used to differentiate w/ legacy agent response.
agentWorkflowNodeId (str) – The workflow node id associated with the agent response.
nextAgentWorkflowNodeId (str) – The id of the workflow node to be executed next.
chatType (str) – The type of chat llm that was run for the message.
agentResponse (dict) – Response from the agent. Only for conversation with agents.
error (str) – The error message in case of an error.
segments (list) – The segments of the message.
streamedData (str) – Aggregated streamed messages from the agent.
streamedSectionData (str) – Aggregated streamed section outputs from the agent in a list.
highlights (dict) – Chunks with bounding boxes for highlighting the result sources.
llmDisplayName (str) – The display name of the LLM model used to generate the response. Only used for system-created bots.
llmBotIcon (str) – The icon location of the LLM model used to generate the response. Only used for system-created bots.
formResponse (dict) – Contains form data response from the user when a Form Segment is given out by the bot.
routedLlm (str) – The LLM that was chosen by RouteLLM to generate the response.
- role
- text
- timestamp
- message_index
- regenerate_attempt
- model_version
- search_results
- is_useful
- feedback
- feedback_type
- doc_infos
- keyword_arguments
- input_params
- attachments
- response_version
- agent_workflow_node_id
- next_agent_workflow_node_id
- chat_type
- agent_response
- error
- segments
- streamed_data
- streamed_section_data
- highlights
- llm_display_name
- llm_bot_icon
- form_response
- routed_llm
- deprecated_keys
- __repr__()