From c2e6e44714333827676aebcb84a17aa62a239abe Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 10 Jun 2024 17:33:40 -0700 Subject: [PATCH] refac --- src/lib/components/workspace/Tools/CodeEditor.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/components/workspace/Tools/CodeEditor.svelte b/src/lib/components/workspace/Tools/CodeEditor.svelte index e55762bbc..e367e3d75 100644 --- a/src/lib/components/workspace/Tools/CodeEditor.svelte +++ b/src/lib/components/workspace/Tools/CodeEditor.svelte @@ -5,11 +5,7 @@ let codeEditor; - let boilerplate = `# Add your custom tools using pure Python code here, make sure to add type hints -# Use Sphinx-style docstrings to document your tools, they will be used for generating tools specifications -# Please refer to function_calling_filter_pipeline.py file from pipelines project for an example - -# Tip: Use Ctrl/Cmd + S to format the code + let boilerplate = `# Tip: Use Ctrl/Cmd + S to format the code from datetime import datetime import requests @@ -19,6 +15,10 @@ class Tools: def __init__(self): pass + # Add your custom tools using pure Python code here, make sure to add type hints + # Use Sphinx-style docstrings to document your tools, they will be used for generating tools specifications + # Please refer to function_calling_filter_pipeline.py file from pipelines project for an example + def get_current_time(self) -> str: """ Get the current time.