abacusai.api_class.segments
Classes
An attachment that an agent can return to render attachments. |
|
A segment that an agent can return to render specific UI elements. |
|
A segment that an agent can return to render attachments. |
|
A segment that an AI Agent can return to render a button. |
|
A segment that an agent can return to render an image. |
|
A segment that an agent can return to render text. |
Module Contents
- class abacusai.api_class.segments.Attachment
Bases:
abacusai.api_class.abstract.ApiClassAn attachment that an agent can return to render attachments.
- Parameters:
- to_dict()
Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.
- class abacusai.api_class.segments.Segment
Bases:
abacusai.api_class.abstract.ApiClassA segment that an agent can return to render specific UI elements.
- Parameters:
type (SegmentType) – The type of the segment.
id (str) – The section key of the segment.
- to_dict()
Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.
- class abacusai.api_class.segments.AttachmentsSegment(attachments, section_key=None)
Bases:
SegmentA segment that an agent can return to render attachments.
- Parameters:
attachments (List[Attachment]) – The list of attachments to be displayed.
section_key (str)
- attachments: List[Attachment]
- to_dict()
Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.
- class abacusai.api_class.segments.AgentFlowButtonSegment(label, agent_workflow_node_name, section_key=None)
Bases:
SegmentA segment that an AI Agent can return to render a button.
- Parameters: