MesopGUIMessageVisitor
fastagency.ui.mesop.message.MesopGUIMessageVisitor #
MesopGUIMessageVisitor(
level: int,
conversation_id: str,
conversation_message: ConversationMessage,
styles: MesopHomePageStyles,
read_only: bool = False,
)
Bases: MessageProcessorMixin
Initialize the MesopGUIMessageVisitor object.
PARAMETER | DESCRIPTION |
---|---|
level | The level of the message. TYPE: |
conversation_id | The ID of the conversation. TYPE: |
conversation_message | Conversation message that wraps the visited io_message TYPE: |
styles | Styles for the message TYPE: |
read_only | Input messages are disabled in read only mode TYPE: |
Source code in fastagency/ui/mesop/message.py
error #
error(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
short: Optional[str] = None,
long: Optional[str] = None,
) -> Optional[str]
Source code in fastagency/messages.py
function_call_execution #
function_call_execution(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
function_name: Optional[str] = None,
call_id: Optional[str] = None,
retval: Any = None,
) -> Optional[str]
Source code in fastagency/messages.py
keep_alive #
keep_alive(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
) -> Optional[str]
Source code in fastagency/messages.py
multiple_choice #
multiple_choice(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
prompt: Optional[str] = None,
choices: Optional[list[str]] = None,
default: Optional[str] = None,
single: bool = True,
) -> Optional[str]
Source code in fastagency/messages.py
process_message #
render_error_message #
render_error_message(
e: Exception,
message: IOMessage,
*,
content: Optional[str] = None,
style: Optional[MesopMessageStyles] = None
) -> None
Source code in fastagency/ui/mesop/message.py
suggested_function_call #
suggested_function_call(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
function_name: Optional[str] = None,
call_id: Optional[str] = None,
arguments: Optional[dict[str, Any]] = None,
) -> Optional[str]
Source code in fastagency/messages.py
system_message #
system_message(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
message: Optional[dict[str, Any]] = None,
) -> Optional[str]
Source code in fastagency/messages.py
text_input #
text_input(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
prompt: Optional[str] = None,
suggestions: Optional[list[str]] = None,
password: bool = False,
) -> Optional[str]
Source code in fastagency/messages.py
text_message #
text_message(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
body: Optional[str] = None,
) -> Optional[str]
Source code in fastagency/messages.py
visit #
visit_default #
visit_default(
message: IOMessage,
*,
content: Optional[str] = None,
style: Optional[MesopMessageStyles] = None,
error: Optional[bool] = False,
inner_callback: Optional[Callable[..., None]] = None,
scrollable: Optional[bool] = False
) -> None
Source code in fastagency/ui/mesop/message.py
visit_function_call_execution #
visit_function_call_execution(
message: FunctionCallExecution,
) -> None
Source code in fastagency/ui/mesop/message.py
visit_keep_alive #
visit_keep_alive(message: KeepAlive) -> None
Source code in fastagency/ui/mesop/message.py
visit_multiple_choice #
visit_multiple_choice(message: MultipleChoice) -> str
visit_suggested_function_call #
visit_suggested_function_call(
message: SuggestedFunctionCall,
) -> None
Source code in fastagency/ui/mesop/message.py
visit_system_message #
visit_system_message(message: SystemMessage) -> None
Source code in fastagency/ui/mesop/message.py
visit_text_input #
Source code in fastagency/ui/mesop/message.py
visit_text_message #
visit_text_message(message: TextMessage) -> None
Source code in fastagency/ui/mesop/message.py
visit_workflow_completed #
visit_workflow_completed(
message: WorkflowCompleted,
) -> Optional[str]
visit_workflow_started #
visit_workflow_started(
message: WorkflowStarted,
) -> Optional[str]
workflow_completed #
workflow_completed(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
result: Optional[str] = None,
) -> Optional[str]
Source code in fastagency/messages.py
workflow_started #
workflow_started(
workflow_uuid: str,
sender: Optional[str] = None,
recipient: Optional[str] = None,
auto_reply: bool = False,
uuid: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
params: Optional[dict[str, Any]] = None,
) -> Optional[str]