fix thread error

This commit is contained in:
2025-11-09 04:18:23 -05:00
parent be172fa8b7
commit 84564237d1
3 changed files with 11 additions and 6 deletions

12
main.py
View File

@@ -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()

View File

@@ -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" }
]

View File

@@ -1,3 +0,0 @@
from .index import *
__all__ = ["CodexAgent"]