From 00c4f8b6bbffa1126fd49f2effcd283ab0d64db9 Mon Sep 17 00:00:00 2001 From: Farouk Adeleke Date: Wed, 29 Oct 2025 17:15:27 -0400 Subject: [PATCH] (no commit message) --- LICENSE | 18 ------------------ README.md | 4 +++- __init__.py | 0 agent.json | 9 +++++++++ auto_classes.json | 4 ++++ config.json | 4 ++++ main.py | 23 +++++++++++++++++++++++ pyproject.toml | 7 +++++++ 8 files changed, 50 insertions(+), 19 deletions(-) delete mode 100644 LICENSE create mode 100644 __init__.py create mode 100644 agent.json create mode 100644 auto_classes.json create mode 100644 config.json create mode 100644 main.py create mode 100644 pyproject.toml diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 24b227e..0000000 --- a/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -MIT License - -Copyright (c) 2025 fadeleke - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and -associated documentation files (the "Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO -EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 856c5a0..abbe572 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -# prompt-to-signature +# Prompt To Signature + + diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/agent.json b/agent.json new file mode 100644 index 0000000..d3f1728 --- /dev/null +++ b/agent.json @@ -0,0 +1,9 @@ +{ + "metadata": { + "dependency_versions": { + "python": "3.11", + "dspy": "3.0.3", + "cloudpickle": "3.1" + } + } +} \ No newline at end of file diff --git a/auto_classes.json b/auto_classes.json new file mode 100644 index 0000000..2aa60f7 --- /dev/null +++ b/auto_classes.json @@ -0,0 +1,4 @@ +{ + "AutoConfig": "main.PromptToSignatureConfig", + "AutoAgent": "main.PromptToSignatureAgent" +} \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..831713f --- /dev/null +++ b/config.json @@ -0,0 +1,4 @@ +{ + "lm": "gpt-4o", + "max_tokens": 1024 +} \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..7be506a --- /dev/null +++ b/main.py @@ -0,0 +1,23 @@ +from modaic import PrecompiledAgent, PrecompiledConfig + +class PromptToSignatureConfig(PrecompiledConfig): + lm: str = "gpt-4o" + max_tokens: int = 1024 + +class PromptToSignatureAgent(PrecompiledAgent): + config: PromptToSignatureConfig + + def __init__(self, config: PromptToSignatureConfig, **kwargs): + super().__init__(config, **kwargs) + + def forward(self, prompt: str) -> str: + return "hello world" + + +agent = PromptToSignatureAgent(PromptToSignatureConfig()) + +def main(): + agent.push_to_hub("fadeleke/prompt-to-signature", with_code=True) + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1328b26 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[project] +name = "prompt-to-signature" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.11" +dependencies = ["dspy>=3.0.3", "modaic>=0.4.0", "rich>=14.2.0", "typer>=0.20.0"]