abacusai.agent_chat_message

Classes

AgentChatMessage

A single chat message with Agent Chat.

Module Contents

class abacusai.agent_chat_message.AgentChatMessage(client, role=None, text=None, docIds=None, keywordArguments=None, segments=None, streamedData=None, streamedSectionData=None, agentWorkflowNodeId=None)

Bases: abacusai.return_class.AbstractApiClass

A single chat message with Agent Chat.

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • role (str) – The role of the message sender

  • text (list[dict]) – A list of text segments for the message

  • docIds (list[str]) – A list of IDs of the uploaded document if the message has

  • keywordArguments (dict) – User message only. A dictionary of keyword arguments used to generate response.

  • segments (list[dict]) – A list of segments for the message

  • streamedData (str) – The streamed data for the message

  • streamedSectionData (list) – A list of streamed section data for the message

  • agentWorkflowNodeId (str) – The workflow node name associated with the agent response.

role
text
doc_ids
keyword_arguments
segments
streamed_data
streamed_section_data
agent_workflow_node_id
deprecated_keys
__repr__()
to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict