diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-09 21:17:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 21:17:12 +0800 |
| commit | 02e335c99526fe52dee0d0a016aee6bf62d874c2 (patch) | |
| tree | 48d347d9d1652cfa62ec778de65509952534b8ff /tools/demo_tool.py | |
| parent | 0dbdc9e7109b77895743a6d8d11b83caf906e726 (diff) | |
| download | llm-functions-docker-02e335c99526fe52dee0d0a016aee6bf62d874c2.tar.gz | |
refactor: demo tools/agents (#67)
Diffstat (limited to 'tools/demo_tool.py')
| -rw-r--r-- | tools/demo_tool.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/demo_tool.py b/tools/demo_tool.py deleted file mode 100644 index d53cd0b..0000000 --- a/tools/demo_tool.py +++ /dev/null @@ -1,30 +0,0 @@ -import os -from typing import List, Literal, Optional - -def run( - boolean: bool, - string: str, - string_enum: Literal["foo", "bar"], - integer: int, - number: float, - array: List[str], - string_optional: Optional[str] = None, - array_optional: Optional[List[str]] = None, -) -> None: - """Demonstrate how to create a tool using Python and how to use comments. - Args: - boolean: Define a required boolean property - string: Define a required string property - string_enum: Define a required string property with enum - integer: Define a required integer property - number: Define a required number property - array: Define a required string array property - string_optional: Define a optional string property - array_optional: Define a optional string array property - """ - for key, value in locals().items(): - print(f"{key}: {value}") - - for key, value in os.environ.items(): - if key.startswith("LLM_"): - print(f"{key}: {value}")
\ No newline at end of file |
