Posit Assistant
Workbench | Preview
This feature is in preview. Preview features are unsupported and may face breaking changes in a future release. Any issues found in the feature will be addressed during the regular release schedule; they will not result in immediate patches or hotfixes.
We encourage customers to try these features and we welcome any feedback via Posit Support, but we recommend that the feature not be used in production until it is in general availability (i.e., officially released as a full feature). To provide feedback, please email your Posit Customer Success representative or sales@posit.co and specify that you are trialing this feature.
Posit Assistant is an AI coding assistant built specifically for data science workflows. Users can configure model providers like Anthropic or GitHub Copilot, or administrators can configure Workbench-managed credentials for Amazon Bedrock or Snowflake Cortex.
This page covers configuring Posit Assistant for Positron Pro sessions. For end-user documentation, see the Posit Assistant documentation.
Enable or disable Posit Assistant
Posit Assistant is enabled by default. Control its availability with the assistant-enabled profile key in /etc/rstudio/profiles, which enforces Posit Assistant across both Positron Pro and RStudio Pro sessions. See Posit Assistant Admin Controls for details.
Language model providers
Posit Assistant supports multiple language model providers, including Anthropic, GitHub Copilot, Amazon Bedrock, Snowflake Cortex, and Microsoft Foundry. Enable or disable providers and constrain their available models through the ai-providers-enforced profile setting. See AI Provider Admin Controls for the full list of recognized providers and configuration options.
Some providers require additional Workbench setup before they can be used:
Amazon Bedrock
To set up Amazon Bedrock with Posit Assistant:
- Configure AWS Credentials for Workbench, if not already configured.
- Configure AWS Identity and access management (IAM) for Amazon Bedrock policies to allow access to Bedrock models.
- Enable the
bedrockprovider and constrain its available models through theai-providers-enforcedprofile setting. See AI Provider Admin Controls, which also covers the provider’sawsconnection settings.
Snowflake Cortex
To set up Snowflake Cortex with Posit Assistant:
- Integrate Workbench with Snowflake.
- Configure Snowflake access to Snowflake Cortex.
- If applicable, refer to Snowflake’s guides on how to control model access and set up cross-region inference.
- Enable the
snowflake-cortexprovider and constrain its available models through theai-providers-enforcedprofile setting. See AI Provider Admin Controls, which also covers the provider’ssnowflakeconnection settings.
Microsoft Foundry
Microsoft Foundry provides access to AI models, including Azure OpenAI models. Posit Assistant uses Workbench delegated Azure credentials with Entra ID to authenticate. Unlike other providers, Microsoft Foundry requires the following Workbench extension settings in addition to any configuration you supply through AI Provider Admin Controls.
To set up Microsoft Foundry with Posit Assistant:
Configure delegated Azure credentials for Workbench, if not already configured.
Set the Microsoft Foundry endpoint. This is the Azure resource endpoint URL (for example,
https://my-resource.openai.azure.comorhttps://my-resource.services.ai.azure.com):/etc/rstudio/positron-user-settings.json
{ "posit.workbench.foundry.endpoint": "https://my-resource.services.ai.azure.com" }This can also be set using Positron Enforced Settings:
/etc/rstudio/enforced-settings.json
{ "posit.workbench.foundry.endpoint": "https://my-resource.services.ai.azure.com" }If a gateway fronts Foundry with its own Entra ID app registration, set
posit.workbench.foundry.audienceto the gateway app’s identifier. The default ishttps://cognitiveservices.azure.com/for direct-to-Foundry deployments:/etc/rstudio/positron-user-settings.json
{ "posit.workbench.foundry.endpoint": "https://my-gateway.example.com", "posit.workbench.foundry.audience": "api://example-gateway-app-id" }Enable the
ms-foundryprovider through theai-providers-enforcedprofile setting. See AI Provider Admin Controls.
By default, Microsoft Foundry uses model-router for server-side model selection. If you are not using model-router, turn off model discovery and declare the available models with the provider’s custom model list in the file that ai-providers-enforced references:
/etc/rstudio/ai-providers-enforced/default.json
{
"providers": {
"ms-foundry": {
"enabled": true,
"models": {
"discovery": "off",
"custom": [
{
"id": "gpt-4o",
"name": "GPT-4o",
"maxContextLength": 128000,
"supportsTools": true,
"supportsImages": true,
"supportsToolResultImages": false,
"supportsWebSearch": false
}
]
}
}
}
}Other providers
Refer to the Posit Assistant provider documentation for information on configuring additional language model providers.