Skip to content

Commit

Permalink
link to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Feb 3, 2025
1 parent 8330a48 commit fef8a51
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/pipelines/nodes/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,14 +738,11 @@ def _get_assistant_runnable(self, assistant: OpenAiAssistant, session: Experimen
return AssistantChat(adapter=adapter, history_manager=history_manager)


DEFAULT_FUNCTION = """# You must define a main function, which takes the node input as a string.
CODE_NODE_DOCS = f"{settings.DOCUMENTATION_BASE_URL}{settings.DOCUMENTATION_LINKS['node_code']}"
DEFAULT_FUNCTION = f"""# You must define a main function, which takes the node input as a string.
# Return a string to pass to the next node.
# Available functions:
# - get_participant_data() -> dict
# - set_participant_data(data: Any) -> None
# - get_temp_state_key(key_name: str) -> str | None
# - set_temp_state_key(key_name: str, data: Any) -> None
# Learn more about Python nodes at {CODE_NODE_DOCS}
def main(input: str, **kwargs) -> str:
return input
Expand Down

0 comments on commit fef8a51

Please sign in to comment.