From 84564237d1bbfcdf835bf21ba44dde14781e08bd Mon Sep 17 00:00:00 2001 From: Farouk Adeleke Date: Sun, 9 Nov 2025 04:18:23 -0500 Subject: [PATCH] fix thread error --- main.py | 12 ++++++++++-- pyproject.toml | 2 +- src/__init__.py | 3 --- 3 files changed, 11 insertions(+), 6 deletions(-) delete mode 100644 src/__init__.py diff --git a/main.py b/main.py index d725ea7..744620b 100644 --- a/main.py +++ b/main.py @@ -1,9 +1,17 @@ -from src import CodexAgent, CodexAgentConfig +from dotenv import load_dotenv +from src.index import CodexAgent, CodexAgentConfig + +load_dotenv() codex_agent = CodexAgent(CodexAgentConfig()) + def main(): - codex_agent.push_to_hub("darinkishore/codex-agent", with_code=True, commit_message="Do not call forward directly") + codex_agent.push_to_hub("darinkishore/codex-agent", with_code=True, commit_message="fix thread error") + #result = codex_agent(message="What files are in this directory?") + #print(result.answer) # String response + #print(result.trace) # Execution items (commands, files, etc.) + #print(result.usage) # Token counts if __name__ == "__main__": main() \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 6a302e5..60725f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ version = "0.1.0" description = "DSPy module for OpenAI Codex SDK - signature-driven agentic workflows" readme = "README.md" requires-python = ">=3.13" -dependencies = ["dspy>=3.0.3", "modaic>=0.4.0"] +dependencies = ["dspy>=3.0.3", "modaic>=0.4.0", "python-dotenv>=1.1.1"] authors = [ { name = "Darin Kishore" } ] diff --git a/src/__init__.py b/src/__init__.py deleted file mode 100644 index e8e37d2..0000000 --- a/src/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from .index import * - -__all__ = ["CodexAgent"]