fix thread error
This commit is contained in:
12
main.py
12
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()
|
||||
@@ -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" }
|
||||
]
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
from .index import *
|
||||
|
||||
__all__ = ["CodexAgent"]
|
||||
Reference in New Issue
Block a user