Skip to content

Cut over to agent-core for OpenAI Agent SDK wrapper#20

Merged
John-Lin merged 1 commit into
masterfrom
wip/cut-over-to-agent-core
Apr 8, 2026
Merged

Cut over to agent-core for OpenAI Agent SDK wrapper#20
John-Lin merged 1 commit into
masterfrom
wip/cut-over-to-agent-core

Conversation

@John-Lin
Copy link
Copy Markdown
Owner

@John-Lin John-Lin commented Apr 8, 2026

OpenAIAgent and supporting helpers moved to the new agent-core package. This bot now imports them from there instead of carrying its own copy.

  • pyproject.toml: add agent-core as a git dependency, enable hatchling allow-direct-references so the build accepts it
  • bot/agents.py: deleted (moved to agent-core)
  • bot/telegram.py: import OpenAIAgent from agent_core
  • bot/config.py: re-export env_flag from agent_core.env so existing callers (app.py, tests) keep working
  • app.py: import OpenAIAgent from agent_core
  • tests/test_agents.py: deleted; the same coverage now lives in agent-core's own test suite

Net diff: -800 lines.

OpenAIAgent and supporting helpers moved to the new agent-core
package. This bot now imports them from there instead of carrying
its own copy.

- pyproject.toml: add agent-core as a git dependency, enable
  hatchling allow-direct-references so the build accepts it
- bot/agents.py: deleted (moved to agent-core)
- bot/telegram.py: import OpenAIAgent from agent_core
- bot/config.py: re-export env_flag from agent_core.env so
  existing callers (app.py, tests) keep working
- app.py: import OpenAIAgent from agent_core
- tests/test_agents.py: deleted; the same coverage now lives in
  agent-core's own test suite

Net diff: -800 lines.
@John-Lin John-Lin merged commit 68942ce into master Apr 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant