fix: update Tavily component in Instagram Copywriter and Market Research projects and tests (#5789)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-01-18 22:07:23 -03:00 • committed by GitHub
commit f5d9d53264
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 573 additions and 507 deletions

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
"data": { "data": {
"sourceHandle": { "sourceHandle": {
"dataType": "OpenAIModel", "dataType": "OpenAIModel",
"id": "OpenAIModel-qEjqV", "id": "OpenAIModel-by2Or",
"name": "model_output", "name": "model_output",
"output_types": [ "output_types": [
"LanguageModel" "LanguageModel"
@ -15,19 +15,19 @@
}, },
"targetHandle": { "targetHandle": {
"fieldName": "llm", "fieldName": "llm",
"id": "StructuredOutputComponent-Fk5AM", "id": "StructuredOutputComponent-JpsG1",
"inputTypes": [ "inputTypes": [
"LanguageModel" "LanguageModel"
], ],
"type": "other" "type": "other"
} }
}, },
"id": "reactflow__edge-OpenAIModel-qEjqV{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-qEjqVœ,œnameœ:œmodel_outputœ,œoutput_typesœ:[œLanguageModelœ]}-StructuredOutputComponent-Fk5AM{œfieldNameœ:œllmœ,œidœ:œStructuredOutputComponent-Fk5AMœ,œinputTypesœ:[œLanguageModelœ],œtypeœ:œotherœ}", "id": "reactflow__edge-OpenAIModel-by2Or{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-by2Orœ,œnameœ:œmodel_outputœ,œoutput_typesœ:[œLanguageModelœ]}-StructuredOutputComponent-JpsG1{œfieldNameœ:œllmœ,œidœ:œStructuredOutputComponent-JpsG1œ,œinputTypesœ:[œLanguageModelœ],œtypeœ:œotherœ}",
"selected": false, "selected": false,
"source": "OpenAIModel-qEjqV", "source": "OpenAIModel-by2Or",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-qEjqVœ, œnameœ: œmodel_outputœ, œoutput_typesœ: [œLanguageModelœ]}", "sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-by2Orœ, œnameœ: œmodel_outputœ, œoutput_typesœ: [œLanguageModelœ]}",
"target": "StructuredOutputComponent-Fk5AM", "target": "StructuredOutputComponent-JpsG1",
"targetHandle": "{œfieldNameœ: œllmœ, œidœ: œStructuredOutputComponent-Fk5AMœ, œinputTypesœ: [œLanguageModelœ], œtypeœ: œotherœ}" "targetHandle": "{œfieldNameœ: œllmœ, œidœ: œStructuredOutputComponent-JpsG1œ, œinputTypesœ: [œLanguageModelœ], œtypeœ: œotherœ}"
}, },
{ {
"animated": false, "animated": false,
@ -35,7 +35,7 @@
"data": { "data": {
"sourceHandle": { "sourceHandle": {
"dataType": "StructuredOutputComponent", "dataType": "StructuredOutputComponent",
"id": "StructuredOutputComponent-Fk5AM", "id": "StructuredOutputComponent-JpsG1",
"name": "structured_output", "name": "structured_output",
"output_types": [ "output_types": [
"Data" "Data"
@ -43,19 +43,19 @@
}, },
"targetHandle": { "targetHandle": {
"fieldName": "data", "fieldName": "data",
"id": "ParseData-zFzM6", "id": "ParseData-pw2fU",
"inputTypes": [ "inputTypes": [
"Data" "Data"
], ],
"type": "other" "type": "other"
} }
}, },
"id": "reactflow__edge-StructuredOutputComponent-Fk5AM{œdataTypeœ:œStructuredOutputComponentœ,œidœ:œStructuredOutputComponent-Fk5AMœ,œnameœ:œstructured_outputœ,œoutput_typesœ:[œDataœ]}-ParseData-zFzM6{œfieldNameœ:œdataœ,œidœ:œParseData-zFzM6œ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}", "id": "reactflow__edge-StructuredOutputComponent-JpsG1{œdataTypeœ:œStructuredOutputComponentœ,œidœ:œStructuredOutputComponent-JpsG1œ,œnameœ:œstructured_outputœ,œoutput_typesœ:[œDataœ]}-ParseData-pw2fU{œfieldNameœ:œdataœ,œidœ:œParseData-pw2fUœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
"selected": false, "selected": false,
"source": "StructuredOutputComponent-Fk5AM", "source": "StructuredOutputComponent-JpsG1",
"sourceHandle": "{œdataTypeœ: œStructuredOutputComponentœ, œidœ: œStructuredOutputComponent-Fk5AMœ, œnameœ: œstructured_outputœ, œoutput_typesœ: [œDataœ]}", "sourceHandle": "{œdataTypeœ: œStructuredOutputComponentœ, œidœ: œStructuredOutputComponent-JpsG1œ, œnameœ: œstructured_outputœ, œoutput_typesœ: [œDataœ]}",
"target": "ParseData-zFzM6", "target": "ParseData-pw2fU",
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-zFzM6œ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}" "targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-pw2fUœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
}, },
{ {
"animated": false, "animated": false,
@ -63,7 +63,7 @@
"data": { "data": {
"sourceHandle": { "sourceHandle": {
"dataType": "ParseData", "dataType": "ParseData",
"id": "ParseData-zFzM6", "id": "ParseData-pw2fU",
"name": "text", "name": "text",
"output_types": [ "output_types": [
"Message" "Message"
@ -71,19 +71,19 @@
}, },
"targetHandle": { "targetHandle": {
"fieldName": "input_value", "fieldName": "input_value",
"id": "ChatOutput-NJfzg", "id": "ChatOutput-fzkT2",
"inputTypes": [ "inputTypes": [
"Message" "Message"
], ],
"type": "str" "type": "str"
} }
}, },
"id": "reactflow__edge-ParseData-zFzM6{œdataTypeœ:œParseDataœ,œidœ:œParseData-zFzM6œ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-NJfzg{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-NJfzgœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}", "id": "reactflow__edge-ParseData-pw2fU{œdataTypeœ:œParseDataœ,œidœ:œParseData-pw2fUœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-fzkT2{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-fzkT2œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false, "selected": false,
"source": "ParseData-zFzM6", "source": "ParseData-pw2fU",
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-zFzM6œ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}", "sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-pw2fUœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-NJfzg", "target": "ChatOutput-fzkT2",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-NJfzgœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}" "targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-fzkT2œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
}, },
{ {
"animated": false, "animated": false,
@ -91,7 +91,7 @@
"data": { "data": {
"sourceHandle": { "sourceHandle": {
"dataType": "ChatInput", "dataType": "ChatInput",
"id": "ChatInput-N6esY", "id": "ChatInput-Ifrc6",
"name": "message", "name": "message",
"output_types": [ "output_types": [
"Message" "Message"
@ -99,19 +99,19 @@
}, },
"targetHandle": { "targetHandle": {
"fieldName": "input_value", "fieldName": "input_value",
"id": "Agent-axUVK", "id": "Agent-BFfCq",
"inputTypes": [ "inputTypes": [
"Message" "Message"
], ],
"type": "str" "type": "str"
} }
}, },
"id": "reactflow__edge-ChatInput-N6esY{œdataTypeœ:œChatInputœ,œidœ:œChatInput-N6esYœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-axUVK{œfieldNameœ:œinput_valueœ,œidœ:œAgent-axUVKœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}", "id": "reactflow__edge-ChatInput-Ifrc6{œdataTypeœ:œChatInputœ,œidœ:œChatInput-Ifrc6œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-BFfCq{œfieldNameœ:œinput_valueœ,œidœ:œAgent-BFfCqœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false, "selected": false,
"source": "ChatInput-N6esY", "source": "ChatInput-Ifrc6",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-N6esYœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}", "sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-Ifrc6œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-axUVK", "target": "Agent-BFfCq",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-axUVKœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}" "targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-BFfCqœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
}, },
{ {
"animated": false, "animated": false,
@ -119,7 +119,7 @@
"data": { "data": {
"sourceHandle": { "sourceHandle": {
"dataType": "Agent", "dataType": "Agent",
"id": "Agent-axUVK", "id": "Agent-BFfCq",
"name": "response", "name": "response",
"output_types": [ "output_types": [
"Message" "Message"
@ -127,25 +127,27 @@
}, },
"targetHandle": { "targetHandle": {
"fieldName": "input_value", "fieldName": "input_value",
"id": "StructuredOutputComponent-Fk5AM", "id": "StructuredOutputComponent-JpsG1",
"inputTypes": [ "inputTypes": [
"Message" "Message"
], ],
"type": "str" "type": "str"
} }
}, },
"id": "reactflow__edge-Agent-axUVK{œdataTypeœ:œAgentœ,œidœ:œAgent-axUVKœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-StructuredOutputComponent-Fk5AM{œfieldNameœ:œinput_valueœ,œidœ:œStructuredOutputComponent-Fk5AMœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}", "id": "reactflow__edge-Agent-BFfCq{œdataTypeœ:œAgentœ,œidœ:œAgent-BFfCqœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-StructuredOutputComponent-JpsG1{œfieldNameœ:œinput_valueœ,œidœ:œStructuredOutputComponent-JpsG1œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false, "selected": false,
"source": "Agent-axUVK", "source": "Agent-BFfCq",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-axUVKœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}", "sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-BFfCqœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "StructuredOutputComponent-Fk5AM", "target": "StructuredOutputComponent-JpsG1",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œStructuredOutputComponent-Fk5AMœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}" "targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œStructuredOutputComponent-JpsG1œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
}, },
{ {
"animated": false,
"className": "",
"data": { "data": {
"sourceHandle": { "sourceHandle": {
"dataType": "TavilySearchComponent", "dataType": "TavilySearchComponent",
"id": "TavilySearchComponent-J0fu0", "id": "TavilySearchComponent-3wVdo",
"name": "component_as_tool", "name": "component_as_tool",
"output_types": [ "output_types": [
"Tool" "Tool"
@ -153,18 +155,18 @@
}, },
"targetHandle": { "targetHandle": {
"fieldName": "tools", "fieldName": "tools",
"id": "Agent-axUVK", "id": "Agent-BFfCq",
"inputTypes": [ "inputTypes": [
"Tool" "Tool"
], ],
"type": "other" "type": "other"
} }
}, },
"id": "xy-edge__TavilySearchComponent-J0fu0{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-J0fu0œ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-axUVK{œfieldNameœ:œtoolsœ,œidœ:œAgent-axUVKœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}", "id": "xy-edge__TavilySearchComponent-3wVdo{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-3wVdoœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-BFfCq{œfieldNameœ:œtoolsœ,œidœ:œAgent-BFfCqœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"source": "TavilySearchComponent-J0fu0", "source": "TavilySearchComponent-3wVdo",
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-J0fu0œ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}", "sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-3wVdoœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-axUVK", "target": "Agent-BFfCq",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-axUVKœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}" "targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-BFfCqœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
} }
], ],
"nodes": [ "nodes": [
@ -172,7 +174,7 @@
"data": { "data": {
"description": "Get chat inputs from the Playground.", "description": "Get chat inputs from the Playground.",
"display_name": "Chat Input", "display_name": "Chat Input",
"id": "ChatInput-N6esY", "id": "ChatInput-Ifrc6",
"node": { "node": {
"base_classes": [ "base_classes": [
"Message" "Message"
@ -444,10 +446,10 @@
}, },
"dragging": false, "dragging": false,
"height": 234, "height": 234,
"id": "ChatInput-N6esY", "id": "ChatInput-Ifrc6",
"measured": { "measured": {
"height": 234, "height": 234,
"width": 360 "width": 320
}, },
"position": { "position": {
"x": 472.38251755471583, "x": 472.38251755471583,
@ -465,7 +467,7 @@
"data": { "data": {
"description": "Display a chat message in the Playground.", "description": "Display a chat message in the Playground.",
"display_name": "Chat Output", "display_name": "Chat Output",
"id": "ChatOutput-NJfzg", "id": "ChatOutput-fzkT2",
"node": { "node": {
"base_classes": [ "base_classes": [
"Message" "Message"
@ -491,7 +493,7 @@
"frozen": false, "frozen": false,
"icon": "MessagesSquare", "icon": "MessagesSquare",
"legacy": false, "legacy": false,
"lf_version": "1.0.19.post2", "lf_version": "1.1.1",
"metadata": {}, "metadata": {},
"output_types": [], "output_types": [],
"outputs": [ "outputs": [
@ -725,10 +727,10 @@
}, },
"dragging": false, "dragging": false,
"height": 234, "height": 234,
"id": "ChatOutput-NJfzg", "id": "ChatOutput-fzkT2",
"measured": { "measured": {
"height": 234, "height": 234,
"width": 360 "width": 320
}, },
"position": { "position": {
"x": 2518.282039019285, "x": 2518.282039019285,
@ -744,7 +746,7 @@
}, },
{ {
"data": { "data": {
"id": "note-40RoE", "id": "note-3WRHy",
"node": { "node": {
"description": "The StructuredOutputComponent, when utilized with our company information schema, performs the following functions:\n\n1. Accepts an input query regarding a company.\n2. Employs a Language Model (LLM) to analyze the query.\n3. Instructs the LLM to generate a structured response adhering to the predefined schema:\n - Domain\n - LinkedIn URL\n - Cheapest Plan\n - Has Free Trial\n - Has Enterprise Plan\n - Has API\n - Market\n - Pricing Tiers\n - Key Features\n - Target Industries\n\n4. Validates the LLM output against this schema.\n5. Returns a Data object containing the company information structured according to the schema.\n\nIn essence, this component transforms a free-text query about a company into a structured, consistent dataset, facilitating subsequent analysis and application of the information.", "description": "The StructuredOutputComponent, when utilized with our company information schema, performs the following functions:\n\n1. Accepts an input query regarding a company.\n2. Employs a Language Model (LLM) to analyze the query.\n3. Instructs the LLM to generate a structured response adhering to the predefined schema:\n - Domain\n - LinkedIn URL\n - Cheapest Plan\n - Has Free Trial\n - Has Enterprise Plan\n - Has API\n - Market\n - Pricing Tiers\n - Key Features\n - Target Industries\n\n4. Validates the LLM output against this schema.\n5. Returns a Data object containing the company information structured according to the schema.\n\nIn essence, this component transforms a free-text query about a company into a structured, consistent dataset, facilitating subsequent analysis and application of the information.",
"display_name": "", "display_name": "",
@ -757,10 +759,10 @@
}, },
"dragging": false, "dragging": false,
"height": 403, "height": 403,
"id": "note-40RoE", "id": "note-3WRHy",
"measured": { "measured": {
"height": 403, "height": 403,
"width": 328 "width": 325
}, },
"position": { "position": {
"x": 2089.5869930853464, "x": 2089.5869930853464,
@ -781,7 +783,7 @@
}, },
{ {
"data": { "data": {
"id": "note-hgOqR", "id": "note-erQ7I",
"node": { "node": {
"description": "PURPOSE:\nConverts unstructured company research into standardized JSON format\n\nKEY FUNCTIONS:\n- Extracts specific business data points\n- Validates and formats information\n- Ensures data consistency\n\nINPUT:\n- Raw company research data\n\nOUTPUT:\nStructured JSON with:\n- Domain information\n- Social links\n- Pricing details\n- Feature availability\n- Market classification\n- Product features\n- Industry focus\n\nRULES:\n1. Uses strict boolean values\n2. Standardizes pricing formats\n3. Validates market categories\n4. Handles missing data consistently", "description": "PURPOSE:\nConverts unstructured company research into standardized JSON format\n\nKEY FUNCTIONS:\n- Extracts specific business data points\n- Validates and formats information\n- Ensures data consistency\n\nINPUT:\n- Raw company research data\n\nOUTPUT:\nStructured JSON with:\n- Domain information\n- Social links\n- Pricing details\n- Feature availability\n- Market classification\n- Product features\n- Industry focus\n\nRULES:\n1. Uses strict boolean values\n2. Standardizes pricing formats\n3. Validates market categories\n4. Handles missing data consistently",
"display_name": "", "display_name": "",
@ -794,10 +796,10 @@
}, },
"dragging": false, "dragging": false,
"height": 382, "height": 382,
"id": "note-hgOqR", "id": "note-erQ7I",
"measured": { "measured": {
"height": 382, "height": 382,
"width": 328 "width": 325
}, },
"position": { "position": {
"x": 1237.6627823432912, "x": 1237.6627823432912,
@ -818,7 +820,7 @@
}, },
{ {
"data": { "data": {
"id": "note-ifPGq", "id": "note-Hvebs",
"node": { "node": {
"description": "# Market Research\nThis flow helps you gather comprehensive information about companies for sales and business intelligence purposes.\n\n## Instructions\n\n1. Enter Company Name\n - In the Chat Input node, type the name of the company you want to research\n - Example inputs: \"Salesforce.com\", \"Shopify\", \"Zoom Video Communications\"\n\n2. Initiate Research\n - The Agent will use the Tavily AI Search tool to gather information\n - It will focus on key areas like pricing, features, and market positioning\n\n3. Review Structured Output\n - The flow will generate a structured JSON output with standardized fields\n - This includes domain, LinkedIn URL, pricing details, and key features\n\n4. Examine Formatted Results\n - The Parse Data component will convert the JSON into a readable format\n - You'll see a comprehensive company profile with organized sections\n\n5. Analyze and Use Data\n - Use the generated information for sales prospecting, competitive analysis, or market research\n - The structured format allows for easy comparison between different companies\n\nRemember: Always verify critical information from official sources before making business decisions! 🔍💼", "description": "# Market Research\nThis flow helps you gather comprehensive information about companies for sales and business intelligence purposes.\n\n## Instructions\n\n1. Enter Company Name\n - In the Chat Input node, type the name of the company you want to research\n - Example inputs: \"Salesforce.com\", \"Shopify\", \"Zoom Video Communications\"\n\n2. Initiate Research\n - The Agent will use the Tavily AI Search tool to gather information\n - It will focus on key areas like pricing, features, and market positioning\n\n3. Review Structured Output\n - The flow will generate a structured JSON output with standardized fields\n - This includes domain, LinkedIn URL, pricing details, and key features\n\n4. Examine Formatted Results\n - The Parse Data component will convert the JSON into a readable format\n - You'll see a comprehensive company profile with organized sections\n\n5. Analyze and Use Data\n - Use the generated information for sales prospecting, competitive analysis, or market research\n - The structured format allows for easy comparison between different companies\n\nRemember: Always verify critical information from official sources before making business decisions! 🔍💼",
"display_name": "", "display_name": "",
@ -831,10 +833,10 @@
}, },
"dragging": false, "dragging": false,
"height": 513, "height": 513,
"id": "note-ifPGq", "id": "note-Hvebs",
"measured": { "measured": {
"height": 513, "height": 513,
"width": 328 "width": 325
}, },
"position": { "position": {
"x": 244.92297036777086, "x": 244.92297036777086,
@ -857,7 +859,7 @@
"data": { "data": {
"description": "Transforms LLM responses into **structured data formats**. Ideal for extracting specific information or creating consistent outputs.", "description": "Transforms LLM responses into **structured data formats**. Ideal for extracting specific information or creating consistent outputs.",
"display_name": "Structured Output", "display_name": "Structured Output",
"id": "StructuredOutputComponent-Fk5AM", "id": "StructuredOutputComponent-JpsG1",
"node": { "node": {
"base_classes": [ "base_classes": [
"Data" "Data"
@ -879,7 +881,7 @@
"frozen": false, "frozen": false,
"icon": "braces", "icon": "braces",
"legacy": false, "legacy": false,
"lf_version": "1.0.19.post2", "lf_version": "1.1.1",
"metadata": {}, "metadata": {},
"output_types": [], "output_types": [],
"outputs": [ "outputs": [
@ -1117,10 +1119,10 @@
}, },
"dragging": false, "dragging": false,
"height": 541, "height": 541,
"id": "StructuredOutputComponent-Fk5AM", "id": "StructuredOutputComponent-JpsG1",
"measured": { "measured": {
"height": 541, "height": 541,
"width": 360 "width": 320
}, },
"position": { "position": {
"x": 1716.7237308033855, "x": 1716.7237308033855,
@ -1138,7 +1140,7 @@
"data": { "data": {
"description": "Generates text using OpenAI LLMs.", "description": "Generates text using OpenAI LLMs.",
"display_name": "OpenAI", "display_name": "OpenAI",
"id": "OpenAIModel-qEjqV", "id": "OpenAIModel-by2Or",
"node": { "node": {
"base_classes": [ "base_classes": [
"LanguageModel", "LanguageModel",
@ -1210,7 +1212,7 @@
"input_types": [ "input_types": [
"Message" "Message"
], ],
"load_from_db": true, "load_from_db": false,
"name": "api_key", "name": "api_key",
"password": true, "password": true,
"placeholder": "", "placeholder": "",
@ -1433,10 +1435,10 @@
}, },
"dragging": false, "dragging": false,
"height": 543, "height": 543,
"id": "OpenAIModel-qEjqV", "id": "OpenAIModel-by2Or",
"measured": { "measured": {
"height": 543, "height": 543,
"width": 360 "width": 320
}, },
"position": { "position": {
"x": 1696.6021757625274, "x": 1696.6021757625274,
@ -1452,7 +1454,7 @@
}, },
{ {
"data": { "data": {
"id": "ParseData-zFzM6", "id": "ParseData-pw2fU",
"node": { "node": {
"base_classes": [ "base_classes": [
"Message" "Message"
@ -1474,7 +1476,7 @@
"icon": "braces", "icon": "braces",
"key": "ParseData", "key": "ParseData",
"legacy": false, "legacy": false,
"lf_version": "1.0.19.post2", "lf_version": "1.1.1",
"metadata": {}, "metadata": {},
"output_types": [], "output_types": [],
"outputs": [ "outputs": [
@ -1587,10 +1589,10 @@
}, },
"dragging": false, "dragging": false,
"height": 302, "height": 302,
"id": "ParseData-zFzM6", "id": "ParseData-pw2fU",
"measured": { "measured": {
"height": 302, "height": 302,
"width": 360 "width": 320
}, },
"position": { "position": {
"x": 2139.05558520377, "x": 2139.05558520377,
@ -1608,7 +1610,7 @@
"data": { "data": {
"description": "Define the agent's instructions, then enter a task to complete using tools.", "description": "Define the agent's instructions, then enter a task to complete using tools.",
"display_name": "Agent", "display_name": "Agent",
"id": "Agent-axUVK", "id": "Agent-BFfCq",
"node": { "node": {
"base_classes": [ "base_classes": [
"Message" "Message"
@ -1746,7 +1748,7 @@
"input_types": [ "input_types": [
"Message" "Message"
], ],
"load_from_db": true, "load_from_db": false,
"name": "api_key", "name": "api_key",
"password": true, "password": true,
"placeholder": "", "placeholder": "",
@ -2167,10 +2169,10 @@
}, },
"dragging": false, "dragging": false,
"height": 650, "height": 650,
"id": "Agent-axUVK", "id": "Agent-BFfCq",
"measured": { "measured": {
"height": 650, "height": 650,
"width": 360 "width": 320
}, },
"position": { "position": {
"x": 1287.5681517817056, "x": 1287.5681517817056,
@ -2182,7 +2184,7 @@
}, },
{ {
"data": { "data": {
"id": "note-NrsCo", "id": "note-hp7gL",
"node": { "node": {
"description": "# 🔑 Tavily AI Search Needs API Key\n\nYou can get 1000 searches/month free [here](https://tavily.com/) ", "description": "# 🔑 Tavily AI Search Needs API Key\n\nYou can get 1000 searches/month free [here](https://tavily.com/) ",
"display_name": "", "display_name": "",
@ -2195,10 +2197,10 @@
}, },
"dragging": false, "dragging": false,
"height": 325, "height": 325,
"id": "note-NrsCo", "id": "note-hp7gL",
"measured": { "measured": {
"height": 325, "height": 325,
"width": 328 "width": 325
}, },
"position": { "position": {
"x": 878.7898510090017, "x": 878.7898510090017,
@ -2214,7 +2216,7 @@
}, },
{ {
"data": { "data": {
"id": "TavilySearchComponent-J0fu0", "id": "TavilySearchComponent-3wVdo",
"node": { "node": {
"base_classes": [ "base_classes": [
"Data", "Data",
@ -2241,6 +2243,7 @@
"icon": "TavilyIcon", "icon": "TavilyIcon",
"key": "TavilySearchComponent", "key": "TavilySearchComponent",
"legacy": false, "legacy": false,
"lf_version": "1.1.1",
"metadata": {}, "metadata": {},
"minimized": false, "minimized": false,
"output_types": [], "output_types": [],
@ -2522,41 +2525,36 @@
"type": "str", "type": "str",
"value": "general" "value": "general"
} }
} },
"tool_mode": true
}, },
"showNode": true, "showNode": true,
"type": "TavilySearchComponent" "type": "TavilySearchComponent"
}, },
"dragging": false, "dragging": false,
"id": "TavilySearchComponent-J0fu0", "id": "TavilySearchComponent-3wVdo",
"measured": { "measured": {
"height": 489, "height": 437,
"width": 360 "width": 320
}, },
"position": { "position": {
"x": 875.7686789989679, "x": 875.7686789989679,
"y": 798.478848045035 "y": 798.478848045035
}, },
"selected": true, "selected": false,
"type": "genericNode" "type": "genericNode"
} }
], ],
"viewport": { "viewport": {
"x": -56.57567835815098, "x": -272.7790874888751,
"y": -85.58742561611257, "y": 63.44626914733033,
"zoom": 0.5411592744108725 "zoom": 0.4593805108979444
} }
}, },
"description": "Researches companies, extracts key business data, and presents structured information for efficient analysis. ", "description": "Researches companies, extracts key business data, and presents structured information for efficient analysis. ",
"endpoint_name": null, "endpoint_name": null,
"gradient": "1", "id": "2b5680e5-a393-42d1-9e5e-1602c95a6468",
"icon": "PieChart",
"id": "153a05e5-86bd-4de8-b159-2cb4f9f94de5",
"is_component": false, "is_component": false,
"last_tested_version": "1.0.19.post2", "last_tested_version": "1.1.1",
"name": "Market Research", "name": "Market Research"
"tags": [
"assistants",
"agents"
]
} }

View file

@ -1,14 +1,9 @@
import { expect, test } from "@playwright/test"; import { expect, test } from "@playwright/test";
import * as dotenv from "dotenv"; import * as dotenv from "dotenv";
import path from "path"; import path from "path";
import { addNewApiKeys } from "../../utils/add-new-api-keys";
import { adjustScreenView } from "../../utils/adjust-screen-view";
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test"; import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
import { getAllResponseMessage } from "../../utils/get-all-response-message"; import { getAllResponseMessage } from "../../utils/get-all-response-message";
import { initialGPTsetup } from "../../utils/initialGPTsetup"; import { initialGPTsetup } from "../../utils/initialGPTsetup";
import { removeOldApiKeys } from "../../utils/remove-old-api-keys";
import { selectGptModel } from "../../utils/select-gpt-model";
import { updateOldComponents } from "../../utils/update-old-components";
import { waitForOpenModalWithChatInput } from "../../utils/wait-for-open-modal"; import { waitForOpenModalWithChatInput } from "../../utils/wait-for-open-modal";
test( test(
@ -41,9 +36,11 @@ test(
await initialGPTsetup(page); await initialGPTsetup(page);
// We have to get the rf__node because there are more components with popover-anchor-input-api_key
await page await page
.getByTestId(/rf__node-TavilySearchComponent-[A-Za-z0-9]{5}/)
.getByTestId("popover-anchor-input-api_key") .getByTestId("popover-anchor-input-api_key")
.nth(2) .nth(0)
.fill(process.env.TAVILY_API_KEY ?? ""); .fill(process.env.TAVILY_API_KEY ?? "");
await page.getByTestId("button_run_chat output").click(); await page.getByTestId("button_run_chat output").click();

View file

@ -34,8 +34,8 @@ test(
}); });
await initialGPTsetup(page); await initialGPTsetup(page);
await page await page
.getByTestId(/rf__node-TavilySearchComponent-[A-Za-z0-9]{5}/)
.getByTestId("popover-anchor-input-api_key") .getByTestId("popover-anchor-input-api_key")
.nth(0) .nth(0)
.fill(process.env.TAVILY_API_KEY ?? ""); .fill(process.env.TAVILY_API_KEY ?? "");