writer 0.8.3rc4__py3-none-any.whl → 1.25.1rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- writer/__init__.py +1 -1
- writer/abstract.py +1 -1
- writer/{ai.py → ai/__init__.py} +867 -163
- writer/app_runner.py +596 -241
- writer/app_templates/default/.wf/components-blueprints_blueprint-0-0decp3w5erhvl0nw.jsonl +11 -0
- writer/app_templates/default/.wf/components-blueprints_root.jsonl +1 -0
- writer/app_templates/default/.wf/components-page-0-c0f99a9e-5004-4e75-a6c6-36f17490b134.jsonl +27 -0
- writer/app_templates/default/.wf/components-root.jsonl +1 -0
- writer/app_templates/default/.wf/components-workflows_root.jsonl +1 -0
- writer/app_templates/default/.wf/components-workflows_workflow-0-lfltcky7l1fsm6j2.jsonl +1 -0
- writer/app_templates/default/.wf/metadata.json +3 -0
- writer/app_templates/default/README.md +3 -0
- writer/app_templates/default/main.py +16 -0
- writer/app_templates/default/requirements.txt +1 -0
- writer/app_templates/default/static/README.md +8 -0
- writer/app_templates/default/static/agent_builder_demo.png +0 -0
- writer/app_templates/default/static/favicon.png +0 -0
- writer/app_templates/hello/.wf/components-blueprints_blueprint-0-t84xyhxau9ej3823.jsonl +18 -0
- writer/app_templates/hello/.wf/components-blueprints_root.jsonl +1 -0
- writer/app_templates/hello/.wf/components-page-0-c0f99a9e-5004-4e75-a6c6-36f17490b134.jsonl +15 -0
- writer/app_templates/hello/.wf/components-root.jsonl +1 -0
- writer/app_templates/hello/.wf/metadata.json +3 -0
- writer/app_templates/hello/main.py +16 -0
- writer/app_templates/hello/static/README.md +8 -0
- writer/app_templates/hello/static/favicon.png +0 -0
- writer/app_templates/hello/static/welcome.svg +40 -0
- writer/auth.py +7 -2
- writer/autogen.py +352 -0
- writer/blocks/__init__.py +51 -17
- writer/blocks/addtostatelist.py +10 -9
- writer/blocks/apitrigger.py +45 -0
- writer/blocks/base_block.py +332 -21
- writer/blocks/base_trigger.py +14 -0
- writer/blocks/calleventhandler.py +39 -35
- writer/blocks/changepage.py +48 -0
- writer/blocks/code.py +102 -0
- writer/blocks/crontrigger.py +49 -0
- writer/blocks/foreach.py +70 -53
- writer/blocks/httprequest.py +112 -99
- writer/blocks/ifelse.py +71 -0
- writer/blocks/logmessage.py +34 -39
- writer/blocks/parsejson.py +30 -29
- writer/blocks/returnvalue.py +7 -7
- writer/blocks/runblueprint.py +63 -0
- writer/blocks/setstate.py +43 -33
- writer/blocks/sharedblueprint.py +86 -0
- writer/blocks/uieventtrigger.py +49 -0
- writer/blocks/writeraddchatmessage.py +50 -12
- writer/blocks/writeraddtokg.py +38 -11
- writer/blocks/writeraskkg.py +123 -0
- writer/blocks/writerchat.py +80 -61
- writer/blocks/writerchatreply.py +279 -0
- writer/blocks/writerchatreplywithtoolconfig.py +393 -0
- writer/blocks/writerclassification.py +78 -39
- writer/blocks/writercompletion.py +49 -44
- writer/blocks/writerfileapi.py +85 -0
- writer/blocks/writerinitchat.py +24 -12
- writer/blocks/writerkeyvaluestorage.py +106 -0
- writer/blocks/writernocodeapp.py +35 -37
- writer/blocks/writerparsepdf.py +73 -0
- writer/blocks/writerstructuredoutput.py +105 -0
- writer/blocks/writertoolcalling.py +251 -0
- writer/blocks/writervision.py +141 -0
- writer/blocks/writerwebsearch.py +175 -0
- writer/blueprints.py +839 -0
- writer/command_line.py +52 -16
- writer/core.py +562 -290
- writer/core_ui.py +6 -2
- writer/evaluator.py +98 -46
- writer/journal.py +227 -0
- writer/keyvalue_storage.py +93 -0
- writer/logs.py +277 -0
- writer/serve.py +625 -327
- writer/ss_types.py +101 -12
- writer/static/assets/Arrow.dom-GBJpMYQS.js +1 -0
- writer/static/assets/BaseMarkdown-Wrvby5J8.js +1 -0
- writer/static/assets/BlueprintToolbar-BuXNRxWT.js +1 -0
- writer/static/assets/BlueprintToolbar-wpfX0jo_.css +1 -0
- writer/static/assets/BuilderApp-PTOI76jZ.js +8 -0
- writer/static/assets/BuilderApp-WimUfNZr.css +1 -0
- writer/static/assets/BuilderApplicationSelect-DXzy4e_h.js +7 -0
- writer/static/assets/BuilderApplicationSelect-XaM1D5fv.css +1 -0
- writer/static/assets/BuilderBlueprintLibraryPanel-Ckrhknlh.css +1 -0
- writer/static/assets/BuilderBlueprintLibraryPanel-DBDzhTlc.js +1 -0
- writer/static/assets/BuilderEmbeddedCodeEditor-B0bcjlhk.css +1 -0
- writer/static/assets/BuilderEmbeddedCodeEditor-Dn7eDICN.js +726 -0
- writer/static/assets/BuilderGraphSelect-C-LRsO8W.js +7 -0
- writer/static/assets/BuilderGraphSelect-D7B61d5s.css +1 -0
- writer/static/assets/BuilderInsertionLabel-BhyL9wgn.js +1 -0
- writer/static/assets/BuilderInsertionLabel-_YS5WPfq.css +1 -0
- writer/static/assets/BuilderInsertionOverlay-D2XS0ij9.css +1 -0
- writer/static/assets/BuilderInsertionOverlay-MkAIVruY.js +1 -0
- writer/static/assets/BuilderJournal-A0LcEwGI.js +7 -0
- writer/static/assets/BuilderJournal-DHv3Pvvm.css +1 -0
- writer/static/assets/BuilderModelSelect-CdSo_sih.js +7 -0
- writer/static/assets/BuilderModelSelect-Dc4IPLp2.css +1 -0
- writer/static/assets/BuilderSettings-BDwZBveu.js +16 -0
- writer/static/assets/BuilderSettings-lZkOXEYw.css +1 -0
- writer/static/assets/BuilderSettingsArtifactAPITriggerDetails-3O6jKBXD.js +4 -0
- writer/static/assets/BuilderSettingsArtifactAPITriggerDetails-DnX66iRg.css +1 -0
- writer/static/assets/BuilderSettingsDeploySharedBlueprint-BR_3ptsd.js +1 -0
- writer/static/assets/BuilderSettingsDeploySharedBlueprint-KJTl8gxP.css +1 -0
- writer/static/assets/BuilderSettingsHandlers-CBtEQFSo.js +1 -0
- writer/static/assets/BuilderSettingsHandlers-DJPeASfz.css +1 -0
- writer/static/assets/BuilderSidebarComponentTree-DLltgas5.js +1 -0
- writer/static/assets/BuilderSidebarComponentTree-DYu1F793.css +1 -0
- writer/static/assets/BuilderSidebarToolkit-CApZNTAq.js +7 -0
- writer/static/assets/BuilderSidebarToolkit-CwqbjRv8.css +1 -0
- writer/static/assets/BuilderTemplateEditor-CYSDeWgV.css +1 -0
- writer/static/assets/BuilderTemplateEditor-DnRDRcA0.js +87 -0
- writer/static/assets/BuilderVault-2vGoV0sx.js +1 -0
- writer/static/assets/BuilderVault-Cx6oQSES.css +1 -0
- writer/static/assets/ComponentRenderer-72hqvEvI.css +1 -0
- writer/static/assets/ComponentRenderer-D4Pj1i3s.js +1 -0
- writer/static/assets/SharedCopyClipboardButton-BipJKGtz.css +1 -0
- writer/static/assets/SharedCopyClipboardButton-DNI9kLe6.js +1 -0
- writer/static/assets/WdsCheckbox-DKvpPA4D.css +1 -0
- writer/static/assets/WdsCheckbox-edQcn1cf.js +1 -0
- writer/static/assets/WdsDropdownMenu-CzzPN9Wg.css +1 -0
- writer/static/assets/WdsDropdownMenu-DQnrRBNV.js +1 -0
- writer/static/assets/WdsFieldWrapper-Cmufx5Nj.js +1 -0
- writer/static/assets/WdsFieldWrapper-CsemOh8D.css +1 -0
- writer/static/assets/WdsTabs-DKj7BqI0.css +1 -0
- writer/static/assets/WdsTabs-DcfY_zn5.js +1 -0
- writer/static/assets/abap-D8nrxEjS.js +6 -0
- writer/static/assets/apex-BrXDlLUW.js +6 -0
- writer/static/assets/art-paper-D70v1WMA.svg +180 -0
- writer/static/assets/azcli-CElzELwZ.js +6 -0
- writer/static/assets/bat-CUsyEhik.js +6 -0
- writer/static/assets/bicep-BtxyJn6H.js +7 -0
- writer/static/assets/cameligo-ClBCoF8h.js +6 -0
- writer/static/assets/clojure-B9TqLHAk.js +6 -0
- writer/static/assets/codicon-BA2IlpFX.ttf +0 -0
- writer/static/assets/coffee-DYsfeylR.js +6 -0
- writer/static/assets/cpp-VVGvvgir.js +6 -0
- writer/static/assets/csharp-Z6z2stHy.js +6 -0
- writer/static/assets/csp-DgZoLDI1.js +6 -0
- writer/static/assets/css-KqQ96-gC.js +8 -0
- writer/static/assets/css.worker-DvNUQFd1.js +84 -0
- writer/static/assets/cssMode-BYq4oZGq.js +9 -0
- writer/static/assets/cypher-CYoSlgTu.js +6 -0
- writer/static/assets/dart-BGDl7St1.js +6 -0
- writer/static/assets/dockerfile-CuCtxA7T.js +6 -0
- writer/static/assets/ecl-BCTFAUpS.js +6 -0
- writer/static/assets/editor.worker-BVwmgLrR.js +11 -0
- writer/static/assets/elixir-C7hRTYZ9.js +6 -0
- writer/static/assets/flow9-Bi_qi707.js +6 -0
- writer/static/assets/freemarker2-CnNourkO.js +8 -0
- writer/static/assets/fsharp-CxaaEKKi.js +6 -0
- writer/static/assets/go-DUImKuGY.js +6 -0
- writer/static/assets/graphql-D5sGVkLV.js +6 -0
- writer/static/assets/handlebars-Bm22yapJ.js +6 -0
- writer/static/assets/hcl-zD_CCkZ1.js +6 -0
- writer/static/assets/html-CAKAfoZF.js +6 -0
- writer/static/assets/html.worker-BJMlcbMU.js +458 -0
- writer/static/assets/htmlMode-BGZ97n-V.js +9 -0
- writer/static/assets/index-5u5REPT4.js +16 -0
- writer/static/assets/index-BKNuk68o.css +1 -0
- writer/static/assets/index-BQNXU3IR.js +17 -0
- writer/static/assets/index-BQr1pfrb.js +1 -0
- writer/static/assets/index-DHXAd5Yn.js +4 -0
- writer/static/assets/index-Zki-pfO-.js +8525 -0
- writer/static/assets/index.esm-B1ZQtduY.js +17 -0
- writer/static/assets/ini-8kKHd4ZL.js +6 -0
- writer/static/assets/java-De1axCfe.js +6 -0
- writer/static/assets/javascript-X1f02eyK.js +6 -0
- writer/static/assets/json.worker-BwvX8PuZ.js +42 -0
- writer/static/assets/jsonMode-hT0bNgT8.js +11 -0
- writer/static/assets/julia-D3ApGBxz.js +6 -0
- writer/static/assets/kotlin-GbSrCElU.js +6 -0
- writer/static/assets/less-DNUaDNdz.js +7 -0
- writer/static/assets/lexon-Bg9QKxBu.js +6 -0
- writer/static/assets/liquid-KmCCiJw2.js +6 -0
- writer/static/assets/lua-Crkvc3mc.js +6 -0
- writer/static/assets/m3-DsrzVyM1.js +6 -0
- writer/static/assets/mapbox-gl-C0cyFYYW.js +2329 -0
- writer/static/assets/markdown-CY5IOZuu.js +6 -0
- writer/static/assets/marked.esm-273vDTCT.js +45 -0
- writer/static/assets/mdx-DtRFauUw.js +6 -0
- writer/static/assets/mips-BE8RsGBA.js +6 -0
- writer/static/assets/msdax-N5ajIiFQ.js +6 -0
- writer/static/assets/mysql-DRxbB97D.js +6 -0
- writer/static/assets/objective-c-BHUZy23s.js +6 -0
- writer/static/assets/pascal-BemVzBTY.js +6 -0
- writer/static/assets/pascaligo-BACCcnx_.js +6 -0
- writer/static/assets/pdf-B6-yWJ-Y.js +12 -0
- writer/static/assets/pdf.worker.min-CyUfim15.mjs +21 -0
- writer/static/assets/perl-CuU66Ptk.js +6 -0
- writer/static/assets/pgsql-CQ6TMH2r.js +6 -0
- writer/static/assets/php-BvyzZa65.js +6 -0
- writer/static/assets/pla-DrIuu9u1.js +6 -0
- writer/static/assets/plotly.min-DutuuatZ.js +4030 -0
- writer/static/assets/poppins-latin-300-italic-4WBEAciR.woff +0 -0
- writer/static/assets/poppins-latin-300-italic-EWCPeN2Y.woff2 +0 -0
- writer/static/assets/poppins-latin-300-normal-DCNuMXUj.woff +0 -0
- writer/static/assets/poppins-latin-300-normal-Dku2WoCh.woff2 +0 -0
- writer/static/assets/poppins-latin-400-italic-B4GYq972.woff2 +0 -0
- writer/static/assets/poppins-latin-400-italic-BPejoDS-.woff +0 -0
- writer/static/assets/poppins-latin-400-normal-BOb3E3N0.woff +0 -0
- writer/static/assets/poppins-latin-400-normal-cpxAROuN.woff2 +0 -0
- writer/static/assets/poppins-latin-500-italic-Ce_qjtl5.woff +0 -0
- writer/static/assets/poppins-latin-500-italic-o28Otv0U.woff2 +0 -0
- writer/static/assets/poppins-latin-500-normal-C8OXljZJ.woff2 +0 -0
- writer/static/assets/poppins-latin-500-normal-DGXqpDMm.woff +0 -0
- writer/static/assets/poppins-latin-600-italic-BhOZippK.woff +0 -0
- writer/static/assets/poppins-latin-600-italic-CZ4wqKBi.woff2 +0 -0
- writer/static/assets/poppins-latin-600-normal-BJdTmd5m.woff +0 -0
- writer/static/assets/poppins-latin-600-normal-zEkxB9Mr.woff2 +0 -0
- writer/static/assets/poppins-latin-700-italic-CW91C-LJ.woff +0 -0
- writer/static/assets/poppins-latin-700-italic-RKf6esGj.woff2 +0 -0
- writer/static/assets/poppins-latin-700-normal-BVuQR_eA.woff +0 -0
- writer/static/assets/poppins-latin-700-normal-Qrb0O0WB.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-300-italic-CBzyU4Pf.woff +0 -0
- writer/static/assets/poppins-latin-ext-300-italic-DdDvTq5-.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-300-normal-7Zg2msWE.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-300-normal-C9p7gvmA.woff +0 -0
- writer/static/assets/poppins-latin-ext-400-italic-BiCGV3eO.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-400-italic-gsPYOGqV.woff +0 -0
- writer/static/assets/poppins-latin-ext-400-normal-CIpeJEZw.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-400-normal-Ce_uWq1Z.woff +0 -0
- writer/static/assets/poppins-latin-ext-500-italic-CwrTHwbn.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-500-italic-jdc8Bv4M.woff +0 -0
- writer/static/assets/poppins-latin-ext-500-normal-Bl1-S02S.woff +0 -0
- writer/static/assets/poppins-latin-ext-500-normal-H4Q0z8D2.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-600-italic-BqeDa496.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-600-italic-C7MQPb_A.woff +0 -0
- writer/static/assets/poppins-latin-ext-600-normal-Cn4C8475.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-600-normal-DB6FJURc.woff +0 -0
- writer/static/assets/poppins-latin-ext-700-italic-BAdhB_WS.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-700-italic-WKTwQMp8.woff +0 -0
- writer/static/assets/poppins-latin-ext-700-normal-CE2WFKmF.woff +0 -0
- writer/static/assets/poppins-latin-ext-700-normal-DDaViAzG.woff2 +0 -0
- writer/static/assets/postiats-BR_hrfni.js +6 -0
- writer/static/assets/powerquery-CKDUeRmd.js +6 -0
- writer/static/assets/powershell-Dsa4rhA_.js +6 -0
- writer/static/assets/protobuf-CGsvhooB.js +7 -0
- writer/static/assets/pug-D2p3uOX2.js +6 -0
- writer/static/assets/python-DVhxg746.js +6 -0
- writer/static/assets/qsharp-B7F3HtPF.js +6 -0
- writer/static/assets/r-3aLoi2fs.js +6 -0
- writer/static/assets/razor-DR5Ns_BC.js +6 -0
- writer/static/assets/redis-jqFeRM5s.js +6 -0
- writer/static/assets/redshift-BriwQgXR.js +6 -0
- writer/static/assets/restructuredtext-hbBFZ0w9.js +6 -0
- writer/static/assets/ruby-ByThyB2Q.js +6 -0
- writer/static/assets/rust-DIEZMp5R.js +6 -0
- writer/static/assets/sb-C6Gjjw_x.js +6 -0
- writer/static/assets/scala-DZNw3jJB.js +6 -0
- writer/static/assets/scheme-55eqh71t.js +6 -0
- writer/static/assets/scss-D-OVkc4F.js +8 -0
- writer/static/assets/serialization-DJC7NP0N.js +20 -0
- writer/static/assets/shell-DSpi8_qN.js +6 -0
- writer/static/assets/solidity-BHddiNFS.js +6 -0
- writer/static/assets/sophia-D6taVZFb.js +6 -0
- writer/static/assets/sparql-LA0C7mUc.js +6 -0
- writer/static/assets/sql-C3-3IcFM.js +6 -0
- writer/static/assets/st-C4g7059C.js +6 -0
- writer/static/assets/swift-DNI1vH3h.js +8 -0
- writer/static/assets/systemverilog-DL_FVbcQ.js +6 -0
- writer/static/assets/tcl-DVJXmIwd.js +6 -0
- writer/static/assets/ts.worker-CwG1rUES.js +37021 -0
- writer/static/assets/tsMode-BNUEZzir.js +16 -0
- writer/static/assets/twig-BVWDLtw5.js +6 -0
- writer/static/assets/typescript-CRVt7Hx0.js +6 -0
- writer/static/assets/useBlueprintRun-C00bCxh-.js +1 -0
- writer/static/assets/useKeyValueEditor-nDmI7cTJ.js +1 -0
- writer/static/assets/useListResources-DLkZhRSJ.js +1 -0
- writer/static/assets/vb-Btz91-7U.js +6 -0
- writer/static/assets/vega-embed.module-SNP5iNdJ.js +201 -0
- writer/static/assets/wgsl-D8V_buCG.js +303 -0
- writer/static/assets/xml-C_6-t1tb.js +6 -0
- writer/static/assets/yaml-DIw8G7jk.js +6 -0
- writer/static/components/annotatedtext.svg +4 -0
- writer/static/components/avatar.svg +4 -0
- writer/static/components/blueprints_addtostatelist.svg +4 -0
- writer/static/components/blueprints_apitrigger.svg +4 -0
- writer/static/components/blueprints_calleventhandler.svg +9 -0
- writer/static/components/blueprints_category_Logic.svg +4 -0
- writer/static/components/blueprints_category_Other.svg +4 -0
- writer/static/components/blueprints_category_Triggers.svg +4 -0
- writer/static/components/blueprints_category_Writer.svg +25 -0
- writer/static/components/blueprints_code.svg +9 -0
- writer/static/components/blueprints_crontrigger.svg +6 -0
- writer/static/components/blueprints_foreach.svg +4 -0
- writer/static/components/blueprints_httprequest.svg +11 -0
- writer/static/components/blueprints_logmessage.svg +11 -0
- writer/static/components/blueprints_parsejson.svg +4 -0
- writer/static/components/blueprints_returnvalue.svg +4 -0
- writer/static/components/blueprints_runblueprint.svg +4 -0
- writer/static/components/blueprints_setstate.svg +4 -0
- writer/static/components/blueprints_uieventtrigger.svg +4 -0
- writer/static/components/blueprints_writeraddchatmessage.svg +19 -0
- writer/static/components/blueprints_writeraddtokg.svg +19 -0
- writer/static/components/blueprints_writerchat.svg +11 -0
- writer/static/components/blueprints_writerchatreply.svg +19 -0
- writer/static/components/blueprints_writerclassification.svg +24 -0
- writer/static/components/blueprints_writercompletion.svg +14 -0
- writer/static/components/blueprints_writerinitchat.svg +11 -0
- writer/static/components/blueprints_writernocodeapp.svg +14 -0
- writer/static/components/button.svg +4 -0
- writer/static/components/category_Content.svg +4 -0
- writer/static/components/category_Embed.svg +4 -0
- writer/static/components/category_Input.svg +5 -0
- writer/static/components/category_Layout.svg +9 -0
- writer/static/components/category_Other.svg +4 -0
- writer/static/components/chatbot.svg +4 -0
- writer/static/components/checkboxinput.svg +4 -0
- writer/static/components/colorinput.svg +11 -0
- writer/static/components/column.svg +4 -0
- writer/static/components/columns.svg +4 -0
- writer/static/components/dataframe.svg +4 -0
- writer/static/components/dateinput.svg +4 -0
- writer/static/components/dropdowninput.svg +5 -0
- writer/static/components/fileinput.svg +4 -0
- writer/static/components/googlemaps.svg +4 -0
- writer/static/components/header.svg +4 -0
- writer/static/components/heading.svg +9 -0
- writer/static/components/horizontalstack.svg +4 -0
- writer/static/components/html.svg +9 -0
- writer/static/components/icon.svg +4 -0
- writer/static/components/iframe.svg +4 -0
- writer/static/components/image.svg +11 -0
- writer/static/components/jsonviewer.svg +4 -0
- writer/static/components/link.svg +12 -0
- writer/static/components/mapbox.svg +4 -0
- writer/static/components/message.svg +4 -0
- writer/static/components/metric.svg +4 -0
- writer/static/components/multiselectinput.svg +4 -0
- writer/static/components/numberinput.svg +4 -0
- writer/static/components/page.svg +50 -0
- writer/static/components/pagination.svg +4 -0
- writer/static/components/pdf.svg +4 -0
- writer/static/components/plotlygraph.svg +7 -0
- writer/static/components/progressbar.svg +5 -0
- writer/static/components/radioinput.svg +4 -0
- writer/static/components/rangeinput.svg +4 -0
- writer/static/components/ratinginput.svg +4 -0
- writer/static/components/repeater.svg +4 -0
- writer/static/components/reuse.svg +4 -0
- writer/static/components/section.svg +4 -0
- writer/static/components/selectinput.svg +5 -0
- writer/static/components/separator.svg +4 -0
- writer/static/components/sidebar.svg +4 -0
- writer/static/components/sliderinput.svg +4 -0
- writer/static/components/step.svg +4 -0
- writer/static/components/steps.svg +4 -0
- writer/static/components/switchinput.svg +4 -0
- writer/static/components/tab.svg +4 -0
- writer/static/components/tabs.svg +4 -0
- writer/static/components/tags.svg +11 -0
- writer/static/components/text.svg +4 -0
- writer/static/components/textareainput.svg +11 -0
- writer/static/components/textinput.svg +4 -0
- writer/static/components/timeinput.svg +4 -0
- writer/static/components/timer.svg +4 -0
- writer/static/components/vegalitechart.svg +7 -0
- writer/static/components/videoplayer.svg +11 -0
- writer/static/components/webcamcapture.svg +4 -0
- writer/static/favicon.png +0 -0
- writer/static/index.html +84 -0
- writer/static/status/cancelled.svg +5 -0
- writer/static/status/error.svg +5 -0
- writer/static/status/skipped.svg +4 -0
- writer/static/status/stopped.svg +4 -0
- writer/static/status/success.svg +4 -0
- writer/sync.py +431 -0
- writer/ui.py +2268 -0
- writer/vault.py +48 -0
- writer/wf_project.py +90 -66
- writer-1.25.1rc1.dist-info/METADATA +92 -0
- writer-1.25.1rc1.dist-info/RECORD +382 -0
- {writer-0.8.3rc4.dist-info → writer-1.25.1rc1.dist-info}/WHEEL +1 -1
- writer/blocks/runworkflow.py +0 -59
- writer/workflows.py +0 -183
- writer-0.8.3rc4.dist-info/METADATA +0 -117
- writer-0.8.3rc4.dist-info/RECORD +0 -44
- {writer-0.8.3rc4.dist-info → writer-1.25.1rc1.dist-info}/entry_points.txt +0 -0
- {writer-0.8.3rc4.dist-info → writer-1.25.1rc1.dist-info/licenses}/LICENSE.txt +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{"id": "0decp3w5erhvl0nw", "type": "blueprints_blueprint", "content": {"key": "button@click_1"}, "handlers": {}, "isCodeManaged": false, "parentId": "blueprints_root", "position": 0}
|
|
2
|
+
{"id": "dv1jzdoaz27j60wq", "type": "blueprints_uieventtrigger", "content": {"alias": "Draft response clicked", "refComponentId": "zazp9q0cpsglynsb", "refEventType": "wf-click"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "nxwa9ls502oqhy9u", "outId": "trigger"}], "parentId": "0decp3w5erhvl0nw", "position": 0, "x": 72, "y": 624}
|
|
3
|
+
{"id": "nxwa9ls502oqhy9u", "type": "blueprints_setstate", "content": {"alias": "Set progress message", "element": "progress_message", "value": "% Reviewing..."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "r0314ycb8wb21pc8", "outId": "success"}], "parentId": "0decp3w5erhvl0nw", "position": 1, "x": 456, "y": 576}
|
|
4
|
+
{"id": "r0314ycb8wb21pc8", "type": "blueprints_writerclassification", "content": {"alias": "Classify review category", "categories": "{\n \"Packaging\": \"The review mentions packaging issues or compliments.\",\n \"Pricing\": \"The review discusses pricing concerns or satisfaction.\",\n \"Quality\": \"The review is about the quality of the product or service.\",\n \"Delivery\": \"The review relates to delivery times or issues.\",\n \"Empty\": \"A review is mentioned but the review cannot be found\"\n}", "text": "The review ---- @{customer_review}"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "fmltu4qrq9qnu7vk", "outId": "category_Packaging"}, {"toNodeId": "n63w3bvyin80gus4", "outId": "category_Pricing"}, {"toNodeId": "uolelullwetqhgbv", "outId": "category_Quality"}, {"toNodeId": "fyvf1qtrpq85vac3", "outId": "category_Delivery"}, {"toNodeId": "2goghkw7qirzs9u9", "outId": "category_Empty"}], "parentId": "0decp3w5erhvl0nw", "position": 2, "x": 840, "y": 504}
|
|
5
|
+
{"id": "fmltu4qrq9qnu7vk", "type": "blueprints_writercompletion", "content": {"alias": "Draft packaging response", "modelId": "palmyra-x5", "prompt": "Take the role of a customer success rep and draft an email response to the customer review below that mentions packaging: @{customer_review}\n\nThe response should be short, positive and helpful in style.\n\nAcknowledge their feedback about the packaging. Express appreciation if it\u2019s positive, or apologize and offer a resolution if it\u2019s negative. Mention steps we're taking to improve or maintain packaging standards."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "253p2vp9msfuywdo", "outId": "success"}], "parentId": "0decp3w5erhvl0nw", "position": 3, "x": 1224, "y": 96}
|
|
6
|
+
{"id": "n63w3bvyin80gus4", "type": "blueprints_writercompletion", "content": {"alias": "Draft pricing response", "modelId": "palmyra-x5", "prompt": "Take the role of a customer success rep and draft an email response to the customer review below that mentions pricing: @{customer_review}\n\nRespond to the customer\u2019s comments on pricing. If it\u2019s positive, thank them for recognizing the value. If it\u2019s negative, empathize and briefly explain our pricing approach or any ongoing offers that may help."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "253p2vp9msfuywdo", "outId": "success"}], "parentId": "0decp3w5erhvl0nw", "position": 4, "x": 1224, "y": 360}
|
|
7
|
+
{"id": "uolelullwetqhgbv", "type": "blueprints_writercompletion", "content": {"alias": "Draft quality response", "modelId": "palmyra-x5", "prompt": "Take the role of a customer success rep and draft an email response to the customer review below that mentions quality: @{customer_review}\n\nCraft a response focused on product quality. Thank the reviewer if they\u2019re satisfied. If not, apologize sincerely and offer help or a replacement, while reinforcing our commitment to high standards."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "253p2vp9msfuywdo", "outId": "success"}], "parentId": "0decp3w5erhvl0nw", "position": 5, "x": 1224, "y": 576}
|
|
8
|
+
{"id": "fyvf1qtrpq85vac3", "type": "blueprints_writercompletion", "content": {"alias": "Draft delivery response", "modelId": "palmyra-x5", "prompt": "Take the role of a customer success rep and draft an email response to the customer review below that mentions delivery: @{customer_review}\n\nAddress the customer\u2019s delivery experience. Thank them if it was smooth, or apologize and investigate if it was delayed or problematic. Reassure them we\u2019re improving logistics and care about their satisfaction."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "253p2vp9msfuywdo", "outId": "success"}], "parentId": "0decp3w5erhvl0nw", "position": 6, "x": 1224, "y": 816}
|
|
9
|
+
{"id": "2goghkw7qirzs9u9", "type": "blueprints_setstate", "content": {"alias": "Handle empty review", "element": "review_response", "value": "You must specify a review."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "253p2vp9msfuywdo", "outId": "success"}], "parentId": "0decp3w5erhvl0nw", "position": 7, "x": 1224, "y": 1056}
|
|
10
|
+
{"id": "253p2vp9msfuywdo", "type": "blueprints_setstate", "content": {"alias": "Store response", "element": "review_response", "value": "@{result}"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "x4flvjxp3vcyz21s", "outId": "success"}], "parentId": "0decp3w5erhvl0nw", "position": 8, "x": 1608, "y": 576}
|
|
11
|
+
{"id": "x4flvjxp3vcyz21s", "type": "blueprints_setstate", "content": {"alias": "Clear progress message", "element": "progress_message"}, "handlers": {}, "isCodeManaged": false, "parentId": "0decp3w5erhvl0nw", "position": 9, "x": 1992, "y": 576}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id": "blueprints_root", "type": "blueprints_root", "content": {}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{"id": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "type": "page", "content": {"pageMode": "compact"}, "handlers": {}, "isCodeManaged": false, "parentId": "root", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
2
|
+
{"id": "2ime7p1jioyr1yz2", "type": "sidebar", "content": {"sidebarBackgroundColor": "#ECE1FF"}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": -2, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
3
|
+
{"id": "3toyuvfwhlwsq8e6", "type": "tags", "content": {"primaryTextColor": "#ffffff", "referenceColor": "#4A46DA", "rotateHue": "no", "tags": "{\n \"Public Beta\": \"Public Beta\"\n}"}, "handlers": {}, "isCodeManaged": false, "parentId": "2ime7p1jioyr1yz2", "position": 0}
|
|
4
|
+
{"id": "pb3ooumyznopaqh4", "type": "heading", "content": {"headingType": "h1", "text": "Welcome to Agent Builder"}, "handlers": {}, "isCodeManaged": false, "parentId": "2ime7p1jioyr1yz2", "position": 1}
|
|
5
|
+
{"id": "a4rbvwms5exs3bta", "type": "text", "content": {"text": "A collaborative platform for engineers and business users to design, build and deploy AI agents together."}, "handlers": {}, "isCodeManaged": false, "parentId": "2ime7p1jioyr1yz2", "position": 2}
|
|
6
|
+
{"id": "y2mrnml4ukza7uwd", "type": "image", "content": {"caption": "", "maxWidth": "160px", "src": "static/agent_builder_demo.png"}, "handlers": {}, "isCodeManaged": false, "parentId": "2ime7p1jioyr1yz2", "position": 3}
|
|
7
|
+
{"id": "29qur7xljy4faoqt", "type": "section", "content": {"title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 0}
|
|
8
|
+
{"id": "7fz70dyp64raqr7u", "type": "heading", "content": {"headingType": "h1", "text": "Example Customer Support Agent "}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 0}
|
|
9
|
+
{"id": "fkxnuw7eitb422j6", "type": "text", "content": {"text": "Test this agent in Preview and then go to Interface and Blueprints to see how it was built. ", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 1}
|
|
10
|
+
{"id": "5dgdzkdrgc5a9yss", "type": "separator", "content": {}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 2}
|
|
11
|
+
{"id": "iee6l0lcbz2cne8q", "type": "columns", "content": {}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 3}
|
|
12
|
+
{"id": "cqkp4hx6rjurlrhd", "type": "column", "content": {"width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "iee6l0lcbz2cne8q", "position": 0}
|
|
13
|
+
{"id": "2mybry5io5mmww7x", "type": "section", "content": {"containerBackgroundColor": "#fcfcfc", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "cqkp4hx6rjurlrhd", "position": 0}
|
|
14
|
+
{"id": "f52d0p6b65rjqkpx", "type": "heading", "content": {"headingType": "h3", "text": "1. Copy Review"}, "handlers": {}, "isCodeManaged": false, "parentId": "2mybry5io5mmww7x", "position": 0}
|
|
15
|
+
{"id": "el6v2mozugelu9mw", "type": "text", "content": {"primaryTextColor": "", "text": "*I\u2019ve been searching for the perfect tailored blazer for years and I think I\u2019ve finally found it. The cut is precise without feeling restrictive. The material is rich and smooth. It instantly elevates any outfit and makes me feel confident the moment I put it on. I've already received several compliments after just one wear.*", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "2mybry5io5mmww7x", "position": 1}
|
|
16
|
+
{"id": "gzl9y3qtexw7vmwg", "type": "column", "content": {"width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "iee6l0lcbz2cne8q", "position": 1}
|
|
17
|
+
{"id": "p7golp2r05uziezm", "type": "section", "content": {"containerBackgroundColor": "#fcfcfc", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "gzl9y3qtexw7vmwg", "position": 0}
|
|
18
|
+
{"id": "8kzm2mhcv5xd5ji2", "type": "heading", "content": {"text": "2. Paste Review"}, "handlers": {}, "isCodeManaged": false, "parentId": "p7golp2r05uziezm", "position": 0}
|
|
19
|
+
{"id": "po6m73qliiv7g2ep", "type": "textareainput", "binding": {"eventType": "wf-change", "stateRef": "customer_review"}, "content": {"label": "", "rows": "4"}, "handlers": {}, "isCodeManaged": false, "parentId": "p7golp2r05uziezm", "position": 1}
|
|
20
|
+
{"id": "zazp9q0cpsglynsb", "type": "button", "content": {"text": "3. Draft response"}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 4}
|
|
21
|
+
{"id": "k9fn5wf1kqwxvugj", "type": "section", "content": {"title": "Response message"}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 1, "visible": {"binding": "", "expression": "custom", "reversed": false}}
|
|
22
|
+
{"id": "khbe69j233n3d9ot", "type": "message", "content": {"message": "@{progress_message}"}, "handlers": {}, "isCodeManaged": false, "parentId": "k9fn5wf1kqwxvugj", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
23
|
+
{"id": "z2noh2qiejykjjlq", "type": "section", "content": {"containerBackgroundColor": "#F5F5F9", "containerShadow": "none", "separatorColor": "none", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "k9fn5wf1kqwxvugj", "position": 1, "visible": {"binding": "review_response", "expression": "custom", "reversed": false}}
|
|
24
|
+
{"id": "sbzcwvq5e0z386cq", "type": "text", "content": {"text": "@{review_response}", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "z2noh2qiejykjjlq", "position": 0, "visible": {"binding": "", "expression": "custom", "reversed": false}}
|
|
25
|
+
{"id": "coz1oojtyzs0slm0", "type": "section", "content": {"containerBackgroundColor": "#fcfcfc", "containerShadow": "none", "separatorColor": "none", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "k9fn5wf1kqwxvugj", "position": 2, "visible": {"binding": "review_response", "expression": "custom", "reversed": true}}
|
|
26
|
+
{"id": "akkcjdnrtudjd704", "type": "text", "content": {"text": "The response will be shown here.", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "coz1oojtyzs0slm0", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
27
|
+
{"id": "nbr03edevbgnhi29", "type": "text", "content": {"alignment": "center", "primaryTextColor": "#828282", "text": "This is just an example agent - just delete the page and create a new one to start experimenting."}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 2}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id": "root", "type": "root", "content": {"appName": "lucky-jellyfish"}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id": "workflows_root", "type": "workflows_root", "content": {}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id": "lfltcky7l1fsm6j2", "type": "workflows_workflow", "content": {}, "handlers": {}, "parentId": "workflows_root", "position": 0}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import writer as wf
|
|
2
|
+
|
|
3
|
+
# Shows in the log when the app starts
|
|
4
|
+
# print("Hello world!")
|
|
5
|
+
|
|
6
|
+
# Or you can use a logger object
|
|
7
|
+
# logger.info("Successful startup")
|
|
8
|
+
|
|
9
|
+
# You can define functions which can be called from Python code blocks
|
|
10
|
+
# def my_func():
|
|
11
|
+
# return 1
|
|
12
|
+
|
|
13
|
+
# You can initialize state via code
|
|
14
|
+
# initial_state = wf.init_state({
|
|
15
|
+
# "my_var": 1337,
|
|
16
|
+
# })
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
writer==0.8.3rc21
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Serving static files
|
|
2
|
+
|
|
3
|
+
You can use this folder to store files which will be served statically in the "/static" route.
|
|
4
|
+
|
|
5
|
+
This is useful to store images and other files which will be served directly to the user of your application.
|
|
6
|
+
|
|
7
|
+
For example, if you store an image named "myimage.jpg" in this folder, it'll be accessible as "static/myimage.jpg".
|
|
8
|
+
You can use this relative route as the source in an Image component.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{"id": "t84xyhxau9ej3823", "type": "blueprints_blueprint", "content": {"key": "button@click_1"}, "handlers": {}, "isCodeManaged": false, "parentId": "blueprints_root", "position": 0}
|
|
2
|
+
{"id": "ajz7x4j5a8hxs2bv", "type": "blueprints_uieventtrigger", "content": {"alias": "Draft response clicked", "refComponentId": "zazp9q0cpsglynsb", "refEventType": "wf-click"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "93g3eyjmg2fg70qp", "outId": "trigger"}], "parentId": "t84xyhxau9ej3823", "position": 0, "x": 64, "y": 506}
|
|
3
|
+
{"id": "45o08yveht7ik3yy", "type": "blueprints_writerclassification", "content": {"alias": "Classify review category", "categories": "{\n \"Packaging\": \"The review mentions packaging issues or compliments.\",\n \"Pricing\": \"The review discusses pricing concerns or satisfaction.\",\n \"Quality\": \"The review is about the quality of the product or service.\",\n \"Delivery\": \"The review relates to delivery times or issues.\",\n \"Empty\": \"A review is mentioned but the review cannot be found\"\n}", "text": "The review ---- @{customer_review}"}, "handlers": {}, "isCodeManaged": false, "outs": [{"outId": "category_Packaging", "toNodeId": "dtuo9bh3p7toty0j"}, {"outId": "category_Pricing", "toNodeId": "mrpyadopzfli2h79"}, {"outId": "category_Delivery", "toNodeId": "n4elvd6x9dv5m7gb"}, {"toNodeId": "ivjmqw1niyhfthdr", "outId": "category_Quality"}, {"toNodeId": "ulqo7gkb31d71y5x", "outId": "category_Empty"}], "parentId": "t84xyhxau9ej3823", "position": 1, "x": 800, "y": 389}
|
|
4
|
+
{"id": "dtuo9bh3p7toty0j", "type": "blueprints_writercompletion", "content": {"alias": "Draft packaging response", "modelId": "palmyra-x-004", "prompt": "Take the role of a customer success rep and draft a response to the customer review below that metnions packaging: @{customer_review}\n\nThe response should be short, positive and helpful in style."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "btou78lp2y6p71nv", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 2, "x": 1168, "y": 64}
|
|
5
|
+
{"id": "mrpyadopzfli2h79", "type": "blueprints_writercompletion", "content": {"alias": "Draft pricing response", "modelId": "palmyra-x-004", "prompt": "Take the role of a customer success rep and draft a response to the customer review below that metnions pricing: @{customer_review}\n\nThe response should be short, positive and helpful in style."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "2zweloyuigct4dc1", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 3, "x": 1168, "y": 282}
|
|
6
|
+
{"id": "ivjmqw1niyhfthdr", "type": "blueprints_writercompletion", "content": {"alias": "Draft quality response", "modelId": "palmyra-x-004", "prompt": "Take the role of a customer success rep and draft a response to the customer review below that metnions quality: @{customer_review}\n\nThe response should be short, positive and helpful in style."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "n95sdks0gfo1i22x", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 4, "x": 1168, "y": 481}
|
|
7
|
+
{"id": "n4elvd6x9dv5m7gb", "type": "blueprints_writercompletion", "content": {"alias": "Draft delivery response", "modelId": "palmyra-x-004", "prompt": "Take the role of a customer success rep and draft a response to the customer review below that metnions delivery: @{customer_review}\n\nThe response should be short, positive and helpful in style."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "uihu1riz55hxbje6", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 5, "x": 1168, "y": 680}
|
|
8
|
+
{"id": "n95sdks0gfo1i22x", "type": "blueprints_setstate", "content": {"alias": "Store response", "element": "review_response", "value": "@{result}"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "csz5m0gkb3gis9ub", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 6, "x": 1536, "y": 462}
|
|
9
|
+
{"id": "2zweloyuigct4dc1", "type": "blueprints_setstate", "content": {"alias": "Store response", "element": "review_response", "value": "@{result}"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "mos6gff8lo7f8rx0", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 7, "x": 1536, "y": 263}
|
|
10
|
+
{"id": "btou78lp2y6p71nv", "type": "blueprints_setstate", "content": {"alias": "Store response", "element": "review_response", "value": "@{result}"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "rvruozvwzqwwmnws", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 8, "x": 1536, "y": 64}
|
|
11
|
+
{"id": "uihu1riz55hxbje6", "type": "blueprints_setstate", "content": {"alias": "Store response", "element": "review_response", "value": "@{result}"}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "pmus4a0919giu1hs", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 9, "x": 1536, "y": 661}
|
|
12
|
+
{"id": "93g3eyjmg2fg70qp", "type": "blueprints_setstate", "content": {"alias": "Set progress message", "element": "progress_message", "value": "% Reviewing..."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "45o08yveht7ik3yy", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 10, "x": 431, "y": 472}
|
|
13
|
+
{"id": "rvruozvwzqwwmnws", "type": "blueprints_setstate", "content": {"alias": "Clear progress message", "element": "progress_message"}, "handlers": {}, "isCodeManaged": false, "parentId": "t84xyhxau9ej3823", "position": 11, "x": 1904, "y": 134}
|
|
14
|
+
{"id": "mos6gff8lo7f8rx0", "type": "blueprints_setstate", "content": {"alias": "Clear progress message", "element": "progress_message"}, "handlers": {}, "isCodeManaged": false, "parentId": "t84xyhxau9ej3823", "position": 12, "x": 1904, "y": 352}
|
|
15
|
+
{"id": "csz5m0gkb3gis9ub", "type": "blueprints_setstate", "content": {"alias": "Clear progress message", "element": "progress_message"}, "handlers": {}, "isCodeManaged": false, "parentId": "t84xyhxau9ej3823", "position": 13, "x": 1904, "y": 571}
|
|
16
|
+
{"id": "pmus4a0919giu1hs", "type": "blueprints_setstate", "content": {"alias": "Clear progress message", "element": "progress_message"}, "handlers": {}, "isCodeManaged": false, "parentId": "t84xyhxau9ej3823", "position": 14, "x": 1904, "y": 790}
|
|
17
|
+
{"id": "ulqo7gkb31d71y5x", "type": "blueprints_setstate", "content": {"alias": "Handle empty review", "element": "review_response", "value": "You must specify a review."}, "handlers": {}, "isCodeManaged": false, "outs": [{"toNodeId": "69q6jc5p6ue4nr8q", "outId": "success"}], "parentId": "t84xyhxau9ej3823", "position": 15, "x": 1168, "y": 880}
|
|
18
|
+
{"id": "69q6jc5p6ue4nr8q", "type": "blueprints_setstate", "content": {"alias": "Clear progress message", "element": "progress_message"}, "handlers": {}, "isCodeManaged": false, "parentId": "t84xyhxau9ej3823", "position": 16, "x": 1536, "y": 860}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id": "blueprints_root", "type": "blueprints_root", "content": {}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{"id": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "type": "page", "content": {"pageMode": "compact"}, "handlers": {}, "isCodeManaged": false, "parentId": "root", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
2
|
+
{"id": "vwrfbi2qot5clwzy", "type": "image", "content": {"caption": "", "src": "static/welcome.svg?3"}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 0}
|
|
3
|
+
{"id": "29qur7xljy4faoqt", "type": "section", "content": {"title": "Example customer review responder"}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 1}
|
|
4
|
+
{"id": "fkxnuw7eitb422j6", "type": "text", "content": {"text": "See how a customer review can be categorized and used to generate a personalized response.\nCopy the sample review below, paste it in the customer review text box, and click draft response to see it in action."}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 0}
|
|
5
|
+
{"id": "jk7fvn9aek99d5hs", "type": "section", "content": {"containerBackgroundColor": "#D4FFF2", "containerShadow": "none", "separatorColor": "none", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 1}
|
|
6
|
+
{"id": "el6v2mozugelu9mw", "type": "text", "content": {"text": "**1. Copy me**\n\n\u201cI\u2019ve been searching for the perfect tailored blazer for years and I think I\u2019ve finally found it. The cut is precise without feeling restrictive. the material is rich and smooth\u201d", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "jk7fvn9aek99d5hs", "position": 0}
|
|
7
|
+
{"id": "po6m73qliiv7g2ep", "type": "textareainput", "binding": {"eventType": "wf-change", "stateRef": "customer_review"}, "content": {"label": "2. Paste the example customer review above", "rows": "5"}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 2}
|
|
8
|
+
{"id": "zazp9q0cpsglynsb", "type": "button", "content": {"text": "3. Generate response"}, "handlers": {}, "isCodeManaged": false, "parentId": "29qur7xljy4faoqt", "position": 3}
|
|
9
|
+
{"id": "k9fn5wf1kqwxvugj", "type": "section", "content": {"title": "Response message"}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 2, "visible": {"binding": "", "expression": "custom", "reversed": false}}
|
|
10
|
+
{"id": "khbe69j233n3d9ot", "type": "message", "content": {"message": "@{progress_message}"}, "handlers": {}, "isCodeManaged": false, "parentId": "k9fn5wf1kqwxvugj", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
11
|
+
{"id": "z2noh2qiejykjjlq", "type": "section", "content": {"containerBackgroundColor": "#F5F5F9", "containerShadow": "none", "separatorColor": "none", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "k9fn5wf1kqwxvugj", "position": 1, "visible": {"binding": "review_response", "expression": "custom", "reversed": false}}
|
|
12
|
+
{"id": "sbzcwvq5e0z386cq", "type": "text", "content": {"text": "@{review_response}", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "z2noh2qiejykjjlq", "position": 0, "visible": {"binding": "", "expression": "custom", "reversed": false}}
|
|
13
|
+
{"id": "coz1oojtyzs0slm0", "type": "section", "content": {"containerBackgroundColor": "#F5F5F9", "containerShadow": "none", "separatorColor": "none", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "k9fn5wf1kqwxvugj", "position": 2, "visible": {"binding": "review_response", "expression": "custom", "reversed": true}}
|
|
14
|
+
{"id": "akkcjdnrtudjd704", "type": "text", "content": {"text": "The response will be shown here.", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "coz1oojtyzs0slm0", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
15
|
+
{"id": "nbr03edevbgnhi29", "type": "text", "content": {"alignment": "center", "primaryTextColor": "#828282", "text": "This is just an example agent - edit or delete it to start experimenting."}, "handlers": {}, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id": "root", "type": "root", "content": {"appName": "My App"}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import writer as wf
|
|
2
|
+
|
|
3
|
+
# Shows in the log when the app starts
|
|
4
|
+
# print("Hello world!")
|
|
5
|
+
|
|
6
|
+
# Or you can use a logger object
|
|
7
|
+
# logger.info("Successful startup")
|
|
8
|
+
|
|
9
|
+
# You can define functions which can be called from Python code blocks
|
|
10
|
+
def my_func():
|
|
11
|
+
return 1
|
|
12
|
+
|
|
13
|
+
# You can initialize state via code
|
|
14
|
+
initial_state = wf.init_state({
|
|
15
|
+
"my_var": 1337,
|
|
16
|
+
})
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Serving static files
|
|
2
|
+
|
|
3
|
+
You can use this folder to store files which will be served statically in the "/static" route.
|
|
4
|
+
|
|
5
|
+
This is useful to store images and other files which will be served directly to the user of your application.
|
|
6
|
+
|
|
7
|
+
For example, if you store an image named "myimage.jpg" in this folder, it'll be accessible as "static/myimage.jpg".
|
|
8
|
+
You can use this relative route as the source in an Image component.
|
|
Binary file
|