app: description: '' icon: "\U0001F916" icon_background: '#FFEAD5' mode: workflow name: exa paper search kind: app version: 0.1.0 workflow: environment_variables: - id: 27db971b-b5c9-46e6-8e5b-16017e997cf3 name: EXA_API_KEY value: '' value_type: secret features: file_upload: image: enabled: false number_limits: 3 transfer_methods: - local_file - remote_url opening_statement: '' retriever_resource: enabled: false sensitive_word_avoidance: enabled: false speech_to_text: enabled: false suggested_questions: [] suggested_questions_after_answer: enabled: false text_to_speech: enabled: false language: '' voice: '' graph: edges: - data: isInIteration: false sourceType: code targetType: http-request id: 1722137811017-source-1722137976611-target source: '1722137811017' sourceHandle: source target: '1722137976611' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: http-request targetType: end id: 1722137976611-source-1722138357646-target source: '1722137976611' sourceHandle: source target: '1722138357646' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: start targetType: code id: 1722137410375-source-1722220372212-target source: '1722137410375' sourceHandle: source target: '1722220372212' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: code targetType: code id: 1722220372212-source-1722137811017-target source: '1722220372212' sourceHandle: source target: '1722137811017' targetHandle: target type: custom zIndex: 0 nodes: - data: desc: '' selected: false title: "\u5F00\u59CB" type: start variables: - label: query max_length: 48 options: [] required: true type: text-input variable: query - label: start_year max_length: 48 options: [] required: true type: text-input variable: start_year height: 116 id: '1722137410375' position: x: 80 y: 282 positionAbsolute: x: 80 y: 282 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "import json\n\ndef main(query: str, startPublishedDate: str) -> dict:\n\ \ json_data = {\n \"query\": query,\n \"type\": \"neural\"\ ,\n \"category\": \"research paper\",\n \"numResults\": 10,\n\ \ \"useAutoprompt\": True,\n \"startPublishedDate\": startPublishedDate,\n\ \ \"contents\": {\n \"text\": {\n \"maxCharacters\"\ : 1000\n },\n \"highlights\": {\n \"\ numSentences\": 3,\n \"highlightsPerUrl\": 3\n \ \ }\n }\n }\n return {\n \"result\": json.dumps(json_data)\n\ \ }" code_language: python3 desc: '' outputs: result: children: null type: string selected: false title: "\u51C6\u5907\u4F20\u9012 exa \u53C2\u6570" type: code variables: - value_selector: - '1722137410375' - query variable: query - value_selector: - '1722220372212' - result variable: startPublishedDate height: 54 id: '1722137811017' position: x: 782.1289520494063 y: 282 positionAbsolute: x: 782.1289520494063 y: 282 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: authorization: config: api_key: '{{#env.EXA_API_KEY#}}' header: x-api-key type: custom type: api-key body: data: '{{#1722137811017.result#}}' type: json desc: '' headers: 'accept:application/json content-type:application/json' method: post params: '' selected: false timeout: max_connect_timeout: 0 max_read_timeout: 0 max_write_timeout: 0 title: "exa HTTP \u8BF7\u6C42" type: http-request url: https://api.exa.ai/search variables: [] height: 90 id: '1722137976611' position: x: 1292 y: 282 positionAbsolute: x: 1292 y: 282 selected: true sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1722137976611' - body variable: result selected: false title: "\u7ED3\u675F" type: end height: 90 id: '1722138357646' position: x: 1596 y: 282 positionAbsolute: x: 1596 y: 282 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "from datetime import datetime, timezone\n\ndef main(start_year: str)\ \ -> dict:\n date = datetime(int(start_year), 1, 1, tzinfo=timezone.utc)\n\ \ return {\n \"result\": date.strftime(\"%Y-%m-%dT%H:%M:%S.000Z\"\ )\n }" code_language: python3 desc: '' outputs: result: children: null type: string selected: false title: "\u8D77\u59CB\u5E74\u4EFD\u8F6C\u6362\u6210\u6807\u51C6\u65F6\u95F4\ \u683C\u5F0F" type: code variables: - value_selector: - '1722137410375' - start_year variable: start_year height: 54 id: '1722220372212' position: x: 384 y: 282 positionAbsolute: x: 384 y: 282 selected: false sourcePosition: right targetPosition: left type: custom width: 244 viewport: x: -1417.9389446691225 y: -56.181626837487215 zoom: 0.9883230178516429