Combining multiple workflows to solve tasks.
initial_state
defines default system messages stored across interactions.
get_new_user_message
: Formats user input as a message.add_user_message
: Inserts the new message into conversation history.
Retrieving Search Resultssearch_generation
: Calls Google Search and Wikipedia to fetch relevant information.
Processing Resultsadd_tool_and_asst_msgs
: Merges retrieved search results with prior conversation history.
Generating Final Responsellm_call
: Extracts the latest message from the updated conversation.search_chat
, enabling continuous interaction: