Conversation
| "files": { | ||
| "pyproject.toml": { | ||
| "checksum": "placeholder" | ||
| }, | ||
| "requirements.txt": { | ||
| "checksum": "placeholder" | ||
| }, | ||
| "README.md": { | ||
| "checksum": "placeholder" | ||
| }, | ||
| "app.py": { | ||
| "checksum": "placeholder" | ||
| } | ||
| } |
There was a problem hiding this comment.
should we include the css as well?
There was a problem hiding this comment.
Yeah, Claude generated this up front and I didn't revisit it. #318 adds a CLAUDE.md, maybe we can put guidance in it about adding files to the manifest if it adds new files.
| ui.h3("Option 1: Posit Connect AWS Integration (Recommended)", class_="setup-section-title"), | ||
| ui.div( | ||
| ui.HTML( | ||
| "Associate an AWS Integration with this content that has a role granting Bedrock access. " | ||
| "Credentials will be obtained automatically at runtime. " | ||
| 'See <a href="https://docs.posit.co/connect/admin/integrations/aws/" class="setup-link">Connect AWS Integration docs</a>.' | ||
| ), | ||
| class_="setup-description", |
There was a problem hiding this comment.
This was a helpful feature, could we also add a note that you need to restart the app after associating the integration? It doesn't happen automatically and that tripped me up for a bit.
There was a problem hiding this comment.
We can, though that's also a bug to fix in Connect. (I wrote up an issue on Monday.)
There was a problem hiding this comment.
(Also annoying that there's no restart button in Connect, I did not write that issue though. I did the trick of setting a garbage env var because that does trigger restart.)
| CONNECT_INTEGRATION_USED = False | ||
|
|
||
|
|
||
| def setup_connect_aws_integration() -> bool: |
There was a problem hiding this comment.
maybe for a followup PR, but it'd be nice to have some automatic refreshing of these credentials
There was a problem hiding this comment.
I will bring that change over from the other version I have of this, I had to fix that today.
| 1. Verify environment variables are correctly set | ||
| 2. For Bedrock, ensure `CLAUDE_CODE_USE_BEDROCK=1` is set | ||
| 3. Check Connect logs for authentication errors | ||
|
|
There was a problem hiding this comment.
| 4. If running on Connect with an AWS integration, force a restart of the application by editing and saving an environment variable. | |
| "tags": ["python", "shiny", "llm", "chat"], | ||
| "requiredFeatures": [], | ||
| "minimumConnectVersion": "2025.04.0", | ||
| "version": "0.0.0" |
There was a problem hiding this comment.
| "version": "0.0.0" | |
| "version": "0.0.1" |
I think to get this officially added to the extensions this needs to be at least 0.0.1
From the README:
Claude Chat
A basic chat interface powered by the Claude Agent SDK. This extension serves as a building block for exploring Claude's capabilities on Posit Connect.
Overview
This extension provides a simple chat interface for asking general questions using the Claude Agent SDK. It demonstrates how to authenticate and interact with Claude models on Connect, supporting both direct Anthropic API access and AWS Bedrock.
Features