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