mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-15 02:49:16 +08:00
e6849af698
- Delete monolithic agent.ts (−1464 lines) - Add agent/index.ts: Agent orchestrator class with runAgent/runAgentStream - Add agent/types.ts: AgentConfig, AgentStreamChunk, AgentResult, PromptConfig - Add agent/prompt-builder.ts: system prompt construction with i18n - Add agent/content-parser.ts: thinking tag and tool call tag parsing - Add agent/event-handler.ts: runtime state, event mapping, token estimation