Documentation / @agentick/core / autoMessageSummary
Function: autoMessageSummary() ​
autoMessageSummary(
role,content?):string
Defined in: core/src/jsx/components/auto-summary.ts:30
Auto-summarize a message.
Role-aware:
- Assistant messages: text-only (no tool/media metadata). Including fake metadata like "[tools: shell ×3]" in assistant summaries causes ICL corruption — the model starts producing literal metadata strings instead of real tool calls.
- Other roles: role prefix + truncated text.
Parameters ​
role ​
content? ​
string | any[] | ContentBlock[]
Returns ​
string