Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Feb 3, 2025
1 parent fef8a51 commit 0b17ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/pipelines/tests/data/CodeNode.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ui:widget": "node_name"
},
"code": {
"default": "# You must define a main function, which takes the node input as a string.\n# Return a string to pass to the next node.\n\n# Available functions:\n# - get_participant_data() -> dict\n# - set_participant_data(data: Any) -> None\n# - get_temp_state_key(key_name: str) -> str | None\n# - set_temp_state_key(key_name: str, data: Any) -> None\n\ndef main(input: str, **kwargs) -> str:\n return input\n",
"default": "# You must define a main function, which takes the node input as a string.\n# Return a string to pass to the next node.\n\n# Learn more about Python nodes at https://dimagi.github.io/open-chat-studio-docs/concepts/pipelines/nodes/#python-node\n\ndef main(input: str, **kwargs) -> str:\n return input\n",
"description": "The code to run",
"title": "Code",
"type": "string",
Expand Down

0 comments on commit 0b17ecb

Please sign in to comment.