langgraph_agent_toolkit.ui.utils.message module
Provide Streamlit message, feedback, and multimodal content helpers.
- langgraph_agent_toolkit.ui.utils.message.create_welcome_message(agent)[source][source]
Create a welcome message for the current agent.
- Parameters:
agent (str)
- Return type:
- langgraph_agent_toolkit.ui.utils.message.file_to_content_block(file)[source][source]
Encode an uploaded Streamlit file as a base64 LangChain content block.
- Return type:
dict
- langgraph_agent_toolkit.ui.utils.message.build_chat_message(text, files)[source][source]
Return text or content blocks when files are attached.
- Parameters:
text (str)
files (list)
- Return type:
str | list[dict]