refactor: break up create_timmy() into testable helpers #522

Closed
kimi wants to merge 0 commits from kimi/issue-512 into main
Collaborator

Extract three focused helpers from the 131-line create_timmy():

  • _build_tools_list(): assembles toolkit + optional MCP servers
  • _build_prompt(): builds system prompt with memory context
  • _create_ollama_agent(): constructs the Agno Agent

create_timmy() now delegates to these helpers, reducing it to ~30 lines. Added 8 unit tests for the new helpers.

Fixes #512

Extract three focused helpers from the 131-line `create_timmy()`: - `_build_tools_list()`: assembles toolkit + optional MCP servers - `_build_prompt()`: builds system prompt with memory context - `_create_ollama_agent()`: constructs the Agno Agent `create_timmy()` now delegates to these helpers, reducing it to ~30 lines. Added 8 unit tests for the new helpers. Fixes #512
kimi added 1 commit 2026-03-19 23:55:07 +00:00
refactor: break up create_timmy() into testable helpers
All checks were successful
Tests / lint (pull_request) Successful in 3s
Tests / test (pull_request) Successful in 1m16s
735bfc7820
Extract three focused helpers from the 131-line create_timmy():
- _build_tools_list(): assembles toolkit + optional MCP servers
- _build_prompt(): builds system prompt with memory context
- _create_ollama_agent(): constructs the Agno Agent

create_timmy() now delegates to these helpers, making each
concern independently testable. Added 8 unit tests for the
new helpers.

Fixes #512

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner

Closing as duplicate — this refactor was already merged in PR #520 (commit b45b543). The branch conflicts because main already has these changes.

Closing as duplicate — this refactor was already merged in PR #520 (commit b45b543). The branch conflicts because main already has these changes.
Timmy closed this pull request 2026-03-20 00:06:38 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#522