trader.chat package¶
The chat CLI’s Core Service Layer (requirements §4, §13).
A second entry point into the same Core, alongside the trading loop — chat must not need the daemon running, and the daemon must not need chat running (requirements §4). It reads the same SQLite tables the trading loop writes (trades, decisions, account_snapshots) and the same config/strategies.yaml, and talks to the local model through the existing LlmProvider Protocol — no new provider, and Anthropic stays deferred (see docs/ideas.md).
Deliberately no re-exports, matching every other package in this codebase (strategies, brokers, marketdata, news, persistence, llm have empty __init__.py files; discovery, execution and risk carry a docstring and nothing else) — import from the submodule you need: trader.chat.service.ChatService, trader.chat.intent, trader.chat.prompt.