Skip to article
CogniTech.Docs

Rich Responses and market data

Typed response blocks, public data validation, chart rendering, and historical fallback.

On this page

Supported blocks

Markdown remains the primary response. A Zod discriminated union also accepts market_overview, price_chart, metric_grid, comparison_table, research_timeline, news_collection, and strategy_preview. The frontend renders only valid blocks. The registry is in lib/agent/response-blocks.ts and components/agent/response-blocks.tsx. Application action cards and inline citations follow their own event or Markdown paths.

json
{"type":"research_timeline","entries":[
  {"date":"2024-01-01","title":"Example milestone","summary":"Illustrative event used to show the payload shape.","source":1},
  {"date":"2024-02-01","title":"Example follow-up","summary":"An illustrative second timeline entry.","source":2}
]}

Source numbers refer to the response's numbered evidence. This sample deliberately uses fictional events. Persisted blocks are validated again when a conversation is restored. Invalid blocks are ignored without deleting their surrounding Markdown.

Market pipeline

CoinGecko supplies USD data for BTC, ETH, and SOL. The server reads coins/markets for current observations, market_chart for historical price and volume samples, and a single-asset OHLC endpoint when appropriate. It validates the returned shapes, rejects stale or implausibly future timestamps, and deduplicates and downsamples historical points. Charts use Lightweight Charts with range controls and optional candles when available.

Market overviews can show price and 24-hour change, single-asset metric grids can show market cap, volume and supply, and multi-asset comparisons use the validated snapshots. No valid response means unavailable or omitted data, not a model estimate. Strategies use a separate timestamped quote path for the same supported market assets.

See CoinGecko API, Lightweight Charts, and citations.