[kimi] Add produce_thought() to stream thinking to Matrix (#672) #734

Merged
kimi merged 1 commits from kimi/issue-672 into main 2026-03-21 14:09:20 +00:00
Collaborator

Fixes #672

Changes

  • Added produce_thought(agent_id: str, thought_text: str, thought_id: int, chain_id: str = None) -> dict function in src/infrastructure/presence.py
  • Returns dict with type="thought", agent_id, data={text, thought_id, chain_id}, ts
  • Text is truncated to 500 chars
  • Added comprehensive test class TestProduceThought in tests/unit/test_presence.py with 11 test cases

Acceptance Criteria

  • Returns dict with type="thought", agent_id, data={text, thought_id, chain_id}, ts
  • Text is truncated to 500 chars
  • tox -e unit passes (2468 passed, 1 skipped)
  • tox -e lint passes
Fixes #672 ## Changes - Added `produce_thought(agent_id: str, thought_text: str, thought_id: int, chain_id: str = None) -> dict` function in `src/infrastructure/presence.py` - Returns dict with `type="thought"`, `agent_id`, `data={text, thought_id, chain_id}`, `ts` - Text is truncated to 500 chars - Added comprehensive test class `TestProduceThought` in `tests/unit/test_presence.py` with 11 test cases ## Acceptance Criteria - [x] Returns dict with type="thought", agent_id, data={text, thought_id, chain_id}, ts - [x] Text is truncated to 500 chars - [x] tox -e unit passes (2468 passed, 1 skipped) - [x] tox -e lint passes
kimi added 1 commit 2026-03-21 14:08:38 +00:00
feat: add produce_thought() to stream thinking to Matrix
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
7dd3a02848
- Add produce_thought() function in src/infrastructure/presence.py
- Returns dict with type='thought', agent_id, data={text, thought_id, chain_id}, ts
- Text is truncated to 500 chars
- Add comprehensive tests in tests/unit/test_presence.py

Fixes #672
kimi merged commit 646eaefa3e into main 2026-03-21 14:09:20 +00:00
kimi deleted branch kimi/issue-672 2026-03-21 14:09:20 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#734