[kimi] Add produce_thought() to stream thinking to Matrix (#672) #734
Reference in New Issue
Block a user
Delete Branch "kimi/issue-672"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #672
Changes
produce_thought(agent_id: str, thought_text: str, thought_id: int, chain_id: str = None) -> dictfunction insrc/infrastructure/presence.pytype="thought",agent_id,data={text, thought_id, chain_id},tsTestProduceThoughtintests/unit/test_presence.pywith 11 test casesAcceptance Criteria
- 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