KB / Memory / tech-ai-sdk-history-dto-convert
Convert history DTO → UIMessage
Keep API neutral; translate tool-call DTOs to AI SDK parts per client
Map tool-call/args/result → dynamic-tool with input/output and correct state. Map annotations → data-* parts.
Keep one endpoint for multiple clients until legacy dies. Related: reference-ai-sdk-uimessage, tech-ai-sdk-uimessage-native-tools.