How to use Claude Agent SDK in shiny (python) and deploy it on shinyapps.io

I have a shiny Python app with chat components. These chatbots use the chatlas library to communicate with Anthropic/Claude API. This allows the chatbot to generate chat answers using Claude LLM models and call tools as well.

Besides the LLM API, Anthropic (and other LLM firms) has Agent SDKs that have full agentic capabilities. For instance the Anthropic Agent SDK is the underlying engine that powers the Claude Code.

In a shiny app, rather than using the chatbots viachatlas library, how can we use Claude Agent SDK? And is it possible to deploy that app on shinyapps.io?