dedekind-gradio-chat / prompts.py
Sathishkumartheta's picture
Upload 3 files
912584a verified
raw
history blame contribute delete
298 Bytes
from langchain_core.messages import(
HumanMessage,SystemMessage,ToolMessage,AIMessage,BaseMessage,ChatMessage
)
def compose_prompt(system_message,human_message):
message=[
SystemMessage(content=system_message),
HumanMessage(content=human_message)
]
return message