From 3c17aa1325b43aa92e9086fdc6d42ef845f6aec2 Mon Sep 17 00:00:00 2001 From: Connor Shorten Date: Wed, 26 Nov 2025 19:24:07 -0500 Subject: [PATCH] My first commit --- auto_classes.json | 4 ---- hello.py | 25 ------------------------- pyproject.toml | 7 ------- 3 files changed, 36 deletions(-) delete mode 100644 auto_classes.json delete mode 100644 hello.py delete mode 100644 pyproject.toml diff --git a/auto_classes.json b/auto_classes.json deleted file mode 100644 index 6685e21..0000000 --- a/auto_classes.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "AutoConfig": "hello.EchoConfig", - "AutoAgent": "hello.EchoAgent" -} \ No newline at end of file diff --git a/hello.py b/hello.py deleted file mode 100644 index fa6cf8b..0000000 --- a/hello.py +++ /dev/null @@ -1,25 +0,0 @@ -from modaic import PrecompiledAgent, PrecompiledConfig - -from dotenv import load_dotenv - -load_dotenv() - -class EchoConfig(PrecompiledConfig): - lm: str = "gpt-4o" - -class EchoAgent(PrecompiledAgent): - config: EchoConfig # ! Important: config must be annotated with the config class - - def __init__(self, config: EchoConfig): - super().__init__(config) - - def forward(self, text: str) -> str: - return f"Echo: {text}" - -agent = EchoAgent(EchoConfig()) -print(agent(text="hello")) -agent.push_to_hub( - "connor/CrossEncoderRanker", - with_code=True, - commit_message="My first commit" -) diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index a7d5bba..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,7 +0,0 @@ -[project] -name = "CrossEncoderRanker" -version = "0.1.0" -description = "Add your description here" -readme = "README.md" -requires-python = ">=3.11" -dependencies = ["modaic>=0.4.1", "weaviate-client>=4.18.1"]