Skip to content

workflow

django_spire.ai.sms.intelligence.workflow

sms_conversation_workflow

Source code in django_spire/ai/sms/intelligence/workflow.py
@recorder_to_html_file('spire_ai_sms_conversation_workflow')
def sms_conversation_workflow(
    request: WSGIRequest,
    user_input: str,
    message_history: MessageHistory | None = None,
) -> SmsIntel:
    message_intel = chat_workflow(request, user_input=user_input, message_history=message_history)
    return SmsConversationBot().process(message_intel.render_to_str())