20 lines
528 B
Python
20 lines
528 B
Python
from src.codex_dspy.agent import CodexModule, CodexAgentConfig
|
|
|
|
codex_agent = CodexModule(CodexAgentConfig())
|
|
|
|
|
|
def main():
|
|
codex_agent.push_to_hub(
|
|
"darinkishore/codex-agent",
|
|
with_code=True,
|
|
commit_message="update readme",
|
|
)
|
|
# 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()
|