package com.vayunmathur.news.intents import com.vayunmathur.library.intents.news.NewsArticleQuery import com.vayunmathur.library.intents.news.NewsArticleExcerptData import com.vayunmathur.library.util.AssistantIntent /** Assistant tool: One capped page of an extracted article (`news_read_article`). Validated and clamped provider-side in [NewsAssistantBackend]. */ class ReadArticleIntent : AssistantIntent( NewsArticleQuery.serializer(), NewsArticleExcerptData.serializer(), ) { override suspend fun performCalculation(input: NewsArticleQuery): NewsArticleExcerptData = readArticle(input, newsAssistantBackend(this)) }