Spaces:
Sleeping
Sleeping
{"id":"76181f0a-1d58-46ec-8380-cc4ceecab626","data":{"nodes":[{"id":"ChatOutput-1hrB9","type":"genericNode","position":{"x":1046.304618497026,"y":114.72848251061484},"data":{"type":"ChatOutput","node":{"template":{"code":{"type":"code","required":true,"placeholder":"","list":false,"show":true,"multiline":true,"value":"from typing import Optional, Union\n\nfrom langflow.base.io.chat import ChatComponent\nfrom langflow.field_typing import Text\nfrom langflow.schema import Record\n\n\nclass ChatOutput(ChatComponent):\n display_name = \"Chat Output\"\n description = \"Display a chat message in the Playground.\"\n icon = \"ChatOutput\"\n\n def build(\n self,\n sender: Optional[str] = \"Machine\",\n sender_name: Optional[str] = \"AI\",\n input_value: Optional[str] = None,\n session_id: Optional[str] = None,\n return_record: Optional[bool] = False,\n record_template: Optional[str] = \"{text}\",\n ) -> Union[Text, Record]:\n return super().build_with_record(\n sender=sender,\n sender_name=sender_name,\n input_value=input_value,\n session_id=session_id,\n return_record=return_record,\n record_template=record_template or \"\",\n )\n","fileTypes":[],"file_path":"","password":false,"name":"code","advanced":true,"dynamic":true,"info":"","load_from_db":false,"title_case":false},"input_value":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":true,"fileTypes":[],"file_path":"","password":false,"name":"input_value","display_name":"Message","advanced":false,"input_types":["Text"],"dynamic":false,"info":"","load_from_db":false,"title_case":false},"record_template":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":true,"value":"{text}","fileTypes":[],"file_path":"","password":false,"name":"record_template","display_name":"Record Template","advanced":true,"dynamic":false,"info":"In case of Message being a Record, this template will be used to convert it to text.","load_from_db":false,"title_case":false,"input_types":["Text"]},"return_record":{"type":"bool","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":false,"fileTypes":[],"file_path":"","password":false,"name":"return_record","display_name":"Return Record","advanced":true,"dynamic":false,"info":"Return the message as a record containing the sender, sender_name, and session_id.","load_from_db":false,"title_case":false},"sender":{"type":"str","required":false,"placeholder":"","list":true,"show":true,"multiline":false,"value":"Machine","fileTypes":[],"file_path":"","password":false,"options":["Machine","User"],"name":"sender","display_name":"Sender Type","advanced":true,"dynamic":false,"info":"","load_from_db":false,"title_case":false,"input_types":["Text"]},"sender_name":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":"AI","fileTypes":[],"file_path":"","password":false,"name":"sender_name","display_name":"Sender Name","advanced":false,"dynamic":false,"info":"","load_from_db":false,"title_case":false,"input_types":["Text"]},"session_id":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"fileTypes":[],"file_path":"","password":false,"name":"session_id","display_name":"Session ID","advanced":true,"dynamic":false,"info":"If provided, the message will be stored in the memory.","load_from_db":false,"title_case":false,"input_types":["Text"]},"_type":"CustomComponent"},"description":"Display a chat message in the Playground.","icon":"ChatOutput","base_classes":["object","Record","str","Text"],"display_name":"Chat Output","documentation":"","custom_fields":{"sender":null,"sender_name":null,"input_value":null,"session_id":null,"return_record":null,"record_template":null},"output_types":["Text","Record"],"field_formatters":{},"frozen":false,"field_order":[],"beta":false,"name":"Chat Output"},"id":"ChatOutput-1hrB9"},"selected":false,"width":384,"height":381,"positionAbsolute":{"x":1046.304618497026,"y":114.72848251061484},"dragging":false},{"id":"OpenAIModel-S6IHn","type":"genericNode","position":{"x":446.29355190970364,"y":64.41096982392725},"data":{"type":"OpenAIModel","node":{"template":{"input_value":{"type":"str","required":true,"placeholder":"","list":false,"show":true,"multiline":false,"fileTypes":[],"file_path":"","password":false,"name":"input_value","display_name":"Input","advanced":false,"dynamic":false,"info":"","load_from_db":false,"title_case":false,"input_types":["Text"],"value":""},"code":{"type":"code","required":true,"placeholder":"","list":false,"show":true,"multiline":true,"value":"from typing import Optional\n\nfrom langchain_openai import ChatOpenAI\nfrom pydantic.v1 import SecretStr\n\nfrom langflow.base.constants import STREAM_INFO_TEXT\nfrom langflow.base.models.model import LCModelComponent\nfrom langflow.base.models.openai_constants import MODEL_NAMES\nfrom langflow.field_typing import NestedDict, Text\n\n\nclass OpenAIModelComponent(LCModelComponent):\n display_name = \"OpenAI\"\n description = \"Generates text using OpenAI LLMs.\"\n icon = \"OpenAI\"\n\n field_order = [\n \"max_tokens\",\n \"model_kwargs\",\n \"model_name\",\n \"openai_api_base\",\n \"openai_api_key\",\n \"temperature\",\n \"input_value\",\n \"system_message\",\n \"stream\",\n ]\n\n def build_config(self):\n return {\n \"input_value\": {\"display_name\": \"Input\"},\n \"max_tokens\": {\n \"display_name\": \"Max Tokens\",\n \"advanced\": True,\n \"info\": \"The maximum number of tokens to generate. Set to 0 for unlimited tokens.\",\n },\n \"model_kwargs\": {\n \"display_name\": \"Model Kwargs\",\n \"advanced\": True,\n },\n \"model_name\": {\n \"display_name\": \"Model Name\",\n \"advanced\": False,\n \"options\": MODEL_NAMES,\n },\n \"openai_api_base\": {\n \"display_name\": \"OpenAI API Base\",\n \"advanced\": True,\n \"info\": (\n \"The base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\\n\\n\"\n \"You can change this to use other APIs like JinaChat, LocalAI and Prem.\"\n ),\n },\n \"openai_api_key\": {\n \"display_name\": \"OpenAI API Key\",\n \"info\": \"The OpenAI API Key to use for the OpenAI model.\",\n \"advanced\": False,\n \"password\": True,\n },\n \"temperature\": {\n \"display_name\": \"Temperature\",\n \"advanced\": False,\n \"value\": 0.1,\n },\n \"stream\": {\n \"display_name\": \"Stream\",\n \"info\": STREAM_INFO_TEXT,\n \"advanced\": True,\n },\n \"system_message\": {\n \"display_name\": \"System Message\",\n \"info\": \"System message to pass to the model.\",\n \"advanced\": True,\n },\n }\n\n def build(\n self,\n input_value: Text,\n openai_api_key: str,\n temperature: float,\n model_name: str = \"gpt-4o\",\n max_tokens: Optional[int] = 256,\n model_kwargs: NestedDict = {},\n openai_api_base: Optional[str] = None,\n stream: bool = False,\n system_message: Optional[str] = None,\n ) -> Text:\n if not openai_api_base:\n openai_api_base = \"https://api.openai.com/v1\"\n if openai_api_key:\n api_key = SecretStr(openai_api_key)\n else:\n api_key = None\n\n output = ChatOpenAI(\n max_tokens=max_tokens or None,\n model_kwargs=model_kwargs,\n model=model_name,\n base_url=openai_api_base,\n api_key=api_key,\n temperature=temperature,\n )\n\n return self.get_chat_result(output, stream, input_value, system_message)\n","fileTypes":[],"file_path":"","password":false,"name":"code","advanced":true,"dynamic":true,"info":"","load_from_db":false,"title_case":false},"max_tokens":{"type":"int","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":256,"fileTypes":[],"file_path":"","password":false,"name":"max_tokens","display_name":"Max Tokens","advanced":true,"dynamic":false,"info":"The maximum number of tokens to generate. Set to 0 for unlimited tokens.","load_from_db":false,"title_case":false},"model_kwargs":{"type":"NestedDict","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":{},"fileTypes":[],"file_path":"","password":false,"name":"model_kwargs","display_name":"Model Kwargs","advanced":true,"dynamic":false,"info":"","load_from_db":false,"title_case":false},"model_name":{"type":"str","required":false,"placeholder":"","list":true,"show":true,"multiline":false,"value":"gpt-4o","fileTypes":[],"file_path":"","password":false,"options":["gpt-4o","gpt-4-turbo","gpt-4-turbo-preview","gpt-3.5-turbo","gpt-3.5-turbo-0125"],"name":"model_name","display_name":"Model Name","advanced":false,"dynamic":false,"info":"","load_from_db":false,"title_case":false,"input_types":["Text"]},"openai_api_base":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"fileTypes":[],"file_path":"","password":false,"name":"openai_api_base","display_name":"OpenAI API Base","advanced":true,"dynamic":false,"info":"The base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\n\nYou can change this to use other APIs like JinaChat, LocalAI and Prem.","load_from_db":false,"title_case":false,"input_types":["Text"]},"openai_api_key":{"type":"str","required":true,"placeholder":"","list":false,"show":true,"multiline":false,"fileTypes":[],"file_path":"","password":true,"name":"openai_api_key","display_name":"OpenAI API Key","advanced":false,"dynamic":false,"info":"The OpenAI API Key to use for the OpenAI model.","load_from_db":true,"title_case":false,"input_types":["Text"],"value":"OpenAI4o"},"stream":{"type":"bool","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":false,"fileTypes":[],"file_path":"","password":false,"name":"stream","display_name":"Stream","advanced":true,"dynamic":false,"info":"Stream the response from the model. Streaming works only in Chat.","load_from_db":false,"title_case":false},"system_message":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"fileTypes":[],"file_path":"","password":false,"name":"system_message","display_name":"System Message","advanced":true,"dynamic":false,"info":"System message to pass to the model.","load_from_db":false,"title_case":false,"input_types":["Text"]},"temperature":{"type":"float","required":true,"placeholder":"","list":false,"show":true,"multiline":false,"value":"0.7","fileTypes":[],"file_path":"","password":false,"name":"temperature","display_name":"Temperature","advanced":false,"dynamic":false,"info":"","rangeSpec":{"step_type":"float","min":-1,"max":1,"step":0.1},"load_from_db":false,"title_case":false},"_type":"CustomComponent"},"description":"Generates text using OpenAI LLMs.","icon":"OpenAI","base_classes":["object","str","Text"],"display_name":"OpenAI","documentation":"","custom_fields":{"input_value":null,"openai_api_key":null,"temperature":null,"model_name":null,"max_tokens":null,"model_kwargs":null,"openai_api_base":null,"stream":null,"system_message":null},"output_types":["Text"],"field_formatters":{},"frozen":false,"field_order":["max_tokens","model_kwargs","model_name","openai_api_base","openai_api_key","temperature","input_value","system_message","stream"],"beta":false,"name":"OpenAI"},"id":"OpenAIModel-S6IHn"},"selected":false,"width":384,"height":563,"positionAbsolute":{"x":446.29355190970364,"y":64.41096982392725},"dragging":false},{"id":"Prompt-TRNNZ","type":"genericNode","position":{"x":-46.65599053045304,"y":145.5440720425554},"data":{"type":"Prompt","node":{"template":{"code":{"type":"code","required":true,"placeholder":"","list":false,"show":true,"multiline":true,"value":"from langchain_core.prompts import PromptTemplate\n\nfrom langflow.custom import CustomComponent\nfrom langflow.field_typing import Prompt, TemplateField, Text\n\n\nclass PromptComponent(CustomComponent):\n display_name: str = \"Prompt\"\n description: str = \"Create a prompt template with dynamic variables.\"\n icon = \"prompts\"\n\n def build_config(self):\n return {\n \"template\": TemplateField(display_name=\"Template\"),\n \"code\": TemplateField(advanced=True),\n }\n\n def build(\n self,\n template: Prompt,\n **kwargs,\n ) -> Text:\n from langflow.base.prompts.utils import dict_values_to_string\n\n prompt_template = PromptTemplate.from_template(Text(template))\n kwargs = dict_values_to_string(kwargs)\n kwargs = {k: \"\\n\".join(v) if isinstance(v, list) else v for k, v in kwargs.items()}\n try:\n formated_prompt = prompt_template.format(**kwargs)\n except Exception as exc:\n raise ValueError(f\"Error formatting prompt: {exc}\") from exc\n self.status = f'Prompt:\\n\"{formated_prompt}\"'\n return formated_prompt\n","fileTypes":[],"file_path":"","password":false,"name":"code","advanced":true,"dynamic":true,"info":"","load_from_db":false,"title_case":false},"template":{"type":"prompt","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":"Extract key medical instructions and recommendations from a doctor-patient conversation transcript. Specifically, identify:\nMedication Prescription: Name, dosage, and frequency.\nLifestyle Recommendations: Physical movement or mental wellness activities.\nSpecialist Referrals: Type of specialist or therapist.\nFollow-up Visits: Time frame and purpose.\nLab Work or Imaging: Specific tests or procedures.\n\nUser: {user_input}\n\nAnswer:\n","fileTypes":[],"file_path":"","password":false,"name":"template","display_name":"Template","advanced":false,"input_types":["Text"],"dynamic":false,"info":"","load_from_db":false,"title_case":false},"_type":"CustomComponent","user_input":{"field_type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":true,"value":"","fileTypes":[],"file_path":"","password":false,"name":"user_input","display_name":"user_input","advanced":false,"input_types":["Document","Record","Text"],"dynamic":false,"info":"","load_from_db":false,"title_case":false,"type":"str"}},"description":"Create a prompt template with dynamic variables.","icon":"prompts","is_input":null,"is_output":null,"is_composition":null,"base_classes":["object","str","Text"],"name":"Prompt","display_name":"Prompt","documentation":"","custom_fields":{"template":["user_input"]},"output_types":["Text"],"full_path":null,"field_formatters":{},"frozen":false,"field_order":[],"beta":false,"error":null},"id":"Prompt-TRNNZ","description":"Create a prompt template with dynamic variables.","display_name":"Prompt"},"selected":false,"width":384,"height":383,"positionAbsolute":{"x":-46.65599053045304,"y":145.5440720425554},"dragging":false},{"id":"ChatInput-ym1H8","type":"genericNode","position":{"x":-555.8861189619518,"y":132.51195103343198},"data":{"type":"ChatInput","node":{"template":{"code":{"type":"code","required":true,"placeholder":"","list":false,"show":true,"multiline":true,"value":"from typing import Optional, Union\n\nfrom langflow.base.io.chat import ChatComponent\nfrom langflow.field_typing import Text\nfrom langflow.schema import Record\n\n\nclass ChatInput(ChatComponent):\n display_name = \"Chat Input\"\n description = \"Get chat inputs from the Playground.\"\n icon = \"ChatInput\"\n\n def build_config(self):\n build_config = super().build_config()\n build_config[\"input_value\"] = {\n \"input_types\": [],\n \"display_name\": \"Message\",\n \"multiline\": True,\n }\n\n return build_config\n\n def build(\n self,\n sender: Optional[str] = \"User\",\n sender_name: Optional[str] = \"User\",\n input_value: Optional[str] = None,\n session_id: Optional[str] = None,\n return_record: Optional[bool] = False,\n ) -> Union[Text, Record]:\n return super().build_no_record(\n sender=sender,\n sender_name=sender_name,\n input_value=input_value,\n session_id=session_id,\n return_record=return_record,\n )\n","fileTypes":[],"file_path":"","password":false,"name":"code","advanced":true,"dynamic":true,"info":"","load_from_db":false,"title_case":false},"input_value":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":true,"fileTypes":[],"file_path":"","password":false,"name":"input_value","display_name":"Message","advanced":false,"input_types":[],"dynamic":false,"info":"","load_from_db":false,"title_case":false,"value":"D: What brings you in?\nP: Hi, I've I've had this pain on the outside of my uh right elbow now it's it I first started knowing, noticing it several months ago, but recently\nit's just been more painful.\nD: OK, so you said several months ago. Um did anything happen several months ago? Was there any sort of trigger, trauma, anything like that to that\narea?\nP: No, there wasn't any any trauma or any triggers that that I noticed, I was just um feeling it, uh, a bit more at the end of of work. Um yeah, I was\njust having it uh, feeling the pain a bit more at the end of work.\nD: OK, does uh anything make it better or worse, the pain?\nP: Um yeah, if I, really if I'm just resting the elbow um it makes it better, and I've tried uh things like ibuprofen um which has helped with the pain,\nI'll I'll do that for um hoping I can get through work sometimes if the pain is bad enough. \nD: Right, OK. Um and if you were to describe the quality of the pain, is it sharp, throbby, achy?\nP: Uh it's um kind of uh, well, it's achy and then sometimes depending on the movement it can get, it can be sharp as well.\nD: It can be sharp, OK. OK, um and what sorts of movements make it worse? \nP: Um, so like, really it's mostly the movements at my wrist, if I'm bending my wrist down, uh I can I can feel it, or um if I'm having to pick things\nup or hold heavy objects at work, I do a lot of repetitive uh things at at work, I work on a line. \nD: OK, OK. And 1 to 10, 10 being the worst pain you've ever felt, how bad is this pain?\nP: It is about a four.\nD: About a four, OK. And have you ever experienced this type of pain before?\nP: Uh, no I haven't.\nD: No, OK, and do you feel like your pain is getting worse over the past several months, or is it the same, getting better? \nP: Uh it's been getting worse.\nD: It's been getting worse, OK. OK, um have you tried any like topical ointments or anything like that for it?\nP: Uh I did, I yeah, I tried some um some stuff that you can get at the um drugstore and it did help take the edge off a little bit.\nD: OK. Um alright and are you still able to move that arm, your right arm, um as well as your hand?\nP: I am, yeah, I I have full range of motion of both the elbow and uh hand.\nD: OK and it's not like preventing you from doing everyday tasks?\nP: Uh, no. I I've been been able to manage so far at work, but um it is starting to become an issue um yeah, with my job.\nD: OK. Um alright, and then do you have any sorts of aches or pains uh in any other joint or muscle groups?\nP: No, it's just right there on the outside of my right elbow, and it's really annoying 'cause I'm right handed as well, so um yeah, it's causing\nproblems there.\nD: Right, um and is the pain radiating upwards or downwards?\nP: Uh no, I kinda just feel it right over that that one spot.\nD: OK, any numbness or tingling in that arm?\nP: No, no, no numbness or tingling.\nD: Yeah, um OK, and then how about um like your arm feeling like it's cold?\nP: No, I haven't had anything like that.\nD: OK, alright, um and then otherwise do you have any other symptoms?\nP: Um no I, it's just been the elbow pain.\nD: OK, so no weight loss?\nP: No, my weights been stable over these last few months.\nD: OK, fevers or chills?\nP: No, I haven't had any fevers or chills.\nD: OK, any fatigue?\nP: No, my energy's been good.\nD: OK. How about um rashes?\nP: Uh no rashes. \nD: OK. Changes to your senses like vision, hearing, smell, smell or taste?\nP: No changes there. \nD: OK any coughing, shortness of breath, or wheezing?\nP: No.\nD: OK. Chest pain, any heart palpitations, or uh dizziness?\nP: Nothing like that.\nD: OK, changes to your bowel movements? \nP: No.\nD: No, no no nausea or vomiting?\nP: No, I haven't had any nausea or vomiting.\nD: OK. Changes to your urine?\nP: No, I haven't had any urinary uh symptoms.\nD: OK. Memory loss or confusion?\nP: No.\nD: OK, so if you look at that right elbow, um do you notice any redness or swelling?\nP: Uh no, I don't.\nD: No, OK. Does it seem misaligned or like asymmetrical compared to your other elbow?\nP: No, it looks, it looks the same.\nD: Looks the same, OK so no um skin changes or deformities there?\nP: Uh no.\nD: No, OK, alright and now I'm going to get you to um just palpate uh that lateral or yeah, the lateral aspect of that elbow and you let me know if you\nfeel pain when you push, push on that.\nP: Uh there is pain at the lateral uh lateral elbow.\nD: How about the medial aspect?\nP: No pain.\nD: No pain, OK, and how about when you palpate your um forearm and your biceps?\nP: Uh no no pain. \nD: OK, alright and then do you feel like it's hot, that area?\nP: No.\nD: No, OK now I am going to get you to um extend your wrist.\nP: OK.\nD: And then keep your elbow in full extension as well. Does that hurt?\nP: Uh it does, yeah.\nD: Yeah, OK, how about when you flex your wrist with the elbow still in full extension?\nP: Uh it does, yeah that hurts as well.\nD: OK, how about when you flex your elbow?\nP: Uh no, that that doesn't cause any pain.\nD: OK. How about when you extend your shoulder all the way up?\nP: No, nothing there, that feels fine.\nD: OK, and then flexing your uh, or sorry abducting your shoulder?\nP: That feels normal. \nD: OK, alright, and then how about when you pronate and supinate your forearms? \nP: Uh, pronation um?\nD: So like twist your um arm inwards so that your palm is facing the floor.\nP: No, that doesn't really cause any pain, pronation and supination.\nD: OK, alright. Um alright, and then are you otherwise healthy or do you have any longstanding medical conditions?\nP: Um I'm uh healthy.\nD: You're healthy, OK. And then UM do you have, have you had any hospitalizations or surgeries in the past?\nP: I had a surgery for um a C-section for uh my, my son, um but that's that's it.\nD: OK. OK, and um how long ago was that?\nP: That was about uh 17 years ago.\nD: OK. And was that an emergency C-section? \nP: Uh no, it was not.\nD: OK um and then are you on any medications?\nP: Um no, I've just been taking uh Tylenol and Advil um for the pain.\nD: OK, alright um immunizations wise, are you up to date? \nP: Uh I I am, yes.\nD: OK. Do you have any allergies?\nP: Uh no allergies. \nD: OK, family history of any uh skeletal or muscular um issues?\nP: Um no, nothing like that in the family.\nD: OK, neurological issues in the family?\nP: Um no neurological issues in the family.\nD: OK, how about um autoimmune conditions?\nP: Uh no, nothing like that.\nD: OK and then um do you smoke?\nP: Uh no, I haven't smoked before.\nD: OK, uh do you do um marijuana.\nP: No, I I don't use that. \nD: OK. Um Alcohol?\nP: Um uh yeah, I'll have a glass of wine every once in awhile, but maybe just one, one a week.\nD: OK, and have you been around sick contacts recently? \nP: Um no, I haven't been around anybody who's been sick.\nD: OK. Any recent travel?\nP: Uh nope, I've been at home.\nD: OK. Um I think those are all the questions that I had for you, um did you have any questions of your own for myself?\nP: Uh no, I was just wondering what this pain could be on my, in my elbow. \nD: Yeah, so right now it seems like you may have a case of something called um lateral epicondylitis. So, it's also known as uh tennis elbow, um and\nthere are a lot of things that could kind of predispose you to this, um so it could be like the repetitive strain at work, um and like continuous\ncontraction of your wrist extensor muscle group there. Um so for this we basically recommend um a couple of things to manage the pain. Uh but first,\nlike in terms of imaging, I don't think it is necessary because it doesn't seem like there was any trauma and I'm not too worried about any fractures.\nUm so to help you treat this, um we recommend some activity modifications, so um at work not doing things that are too repetitive, especially if it's\nusing those um extensor forearm muscles. Um and then you can use some, use a compression sleeve as well, continue taking Tylenol or NSAIDs for the pain\nand uh really important is physical therapy um to increase mobility and strength in that arm. Uh and as well you can apply things like ice um to it for\nlike the pain and swelling if you see any. Uh, yeah, so it should resolve in about six months to two years at most, uh but normally it does um go away\nin a couple of months with some physical therapy and the compression and splints if you choose to do that. How does that sound?\nP: Yeah, that that sounds um good, thank you.\nD: Yeah, no worries.\n"},"return_record":{"type":"bool","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":false,"fileTypes":[],"file_path":"","password":false,"name":"return_record","display_name":"Return Record","advanced":true,"dynamic":false,"info":"Return the message as a record containing the sender, sender_name, and session_id.","load_from_db":false,"title_case":false},"sender":{"type":"str","required":false,"placeholder":"","list":true,"show":true,"multiline":false,"value":"User","fileTypes":[],"file_path":"","password":false,"options":["Machine","User"],"name":"sender","display_name":"Sender Type","advanced":true,"dynamic":false,"info":"","load_from_db":false,"title_case":false,"input_types":["Text"]},"sender_name":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"value":"Patient","fileTypes":[],"file_path":"","password":false,"name":"sender_name","display_name":"Sender Name","advanced":false,"dynamic":false,"info":"","load_from_db":false,"title_case":false,"input_types":["Text"]},"session_id":{"type":"str","required":false,"placeholder":"","list":false,"show":true,"multiline":false,"fileTypes":[],"file_path":"","password":false,"name":"session_id","display_name":"Session ID","advanced":true,"dynamic":false,"info":"If provided, the message will be stored in the memory.","load_from_db":false,"title_case":false,"input_types":["Text"]},"_type":"CustomComponent"},"description":"Get chat inputs from the Playground.","icon":"ChatInput","base_classes":["object","Record","str","Text"],"display_name":"Chat Input","documentation":"","custom_fields":{"sender":null,"sender_name":null,"input_value":null,"session_id":null,"return_record":null},"output_types":["Text","Record"],"field_formatters":{},"frozen":false,"field_order":[],"beta":false,"name":"Chat Input"},"id":"ChatInput-ym1H8"},"selected":true,"width":384,"height":375,"positionAbsolute":{"x":-555.8861189619518,"y":132.51195103343198},"dragging":false}],"edges":[{"source":"Prompt-TRNNZ","sourceHandle":"{œbaseClassesœ:[œobjectœ,œstrœ,œTextœ],œdataTypeœ:œPromptœ,œidœ:œPrompt-TRNNZœ}","target":"OpenAIModel-S6IHn","targetHandle":"{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-S6IHnœ,œinputTypesœ:[œTextœ],œtypeœ:œstrœ}","data":{"targetHandle":{"fieldName":"input_value","id":"OpenAIModel-S6IHn","inputTypes":["Text"],"type":"str"},"sourceHandle":{"baseClasses":["object","str","Text"],"dataType":"Prompt","id":"Prompt-TRNNZ"}},"style":{"stroke":"#555"},"className":"stroke-gray-900 stroke-connection","id":"reactflow__edge-Prompt-TRNNZ{œbaseClassesœ:[œobjectœ,œstrœ,œTextœ],œdataTypeœ:œPromptœ,œidœ:œPrompt-TRNNZœ}-OpenAIModel-S6IHn{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-S6IHnœ,œinputTypesœ:[œTextœ],œtypeœ:œstrœ}"},{"source":"OpenAIModel-S6IHn","sourceHandle":"{œbaseClassesœ:[œobjectœ,œstrœ,œTextœ],œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-S6IHnœ}","target":"ChatOutput-1hrB9","targetHandle":"{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-1hrB9œ,œinputTypesœ:[œTextœ],œtypeœ:œstrœ}","data":{"targetHandle":{"fieldName":"input_value","id":"ChatOutput-1hrB9","inputTypes":["Text"],"type":"str"},"sourceHandle":{"baseClasses":["object","str","Text"],"dataType":"OpenAIModel","id":"OpenAIModel-S6IHn"}},"style":{"stroke":"#555"},"className":"stroke-gray-900 stroke-connection","id":"reactflow__edge-OpenAIModel-S6IHn{œbaseClassesœ:[œobjectœ,œstrœ,œTextœ],œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-S6IHnœ}-ChatOutput-1hrB9{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-1hrB9œ,œinputTypesœ:[œTextœ],œtypeœ:œstrœ}"},{"source":"ChatInput-ym1H8","sourceHandle":"{œbaseClassesœ:[œobjectœ,œRecordœ,œstrœ,œTextœ],œdataTypeœ:œChatInputœ,œidœ:œChatInput-ym1H8œ}","target":"Prompt-TRNNZ","targetHandle":"{œfieldNameœ:œuser_inputœ,œidœ:œPrompt-TRNNZœ,œinputTypesœ:[œDocumentœ,œRecordœ,œTextœ],œtypeœ:œstrœ}","data":{"targetHandle":{"fieldName":"user_input","id":"Prompt-TRNNZ","inputTypes":["Document","Record","Text"],"type":"str"},"sourceHandle":{"baseClasses":["object","Record","str","Text"],"dataType":"ChatInput","id":"ChatInput-ym1H8"}},"style":{"stroke":"#555"},"className":"stroke-gray-900 stroke-connection","id":"reactflow__edge-ChatInput-ym1H8{œbaseClassesœ:[œobjectœ,œRecordœ,œstrœ,œTextœ],œdataTypeœ:œChatInputœ,œidœ:œChatInput-ym1H8œ}-Prompt-TRNNZ{œfieldNameœ:œuser_inputœ,œidœ:œPrompt-TRNNZœ,œinputTypesœ:[œDocumentœ,œRecordœ,œTextœ],œtypeœ:œstrœ}"}],"viewport":{"x":466.8448046318722,"y":-5.641644049384922,"zoom":0.5514240186850298}},"description":"Summarize Doctor-Patient conversation","name":"Notetaker","last_tested_version":"0.0.11","is_component":false} |