@rcrsr/rill-ext-foundry
v0.19.2
Published
rill extension for Azure AI Foundry integration
Maintainers
Readme
@rcrsr/rill-ext-foundry
rill extension for Azure AI Foundry integration. Provides message, messages, embed, embed_batch, tool_loop, generate, shield, ground, and search host functions.
Install
npm install @rcrsr/rill-ext-foundry openai
# For Entra ID (recommended for production):
npm install @azure/identityQuick Start
rill-config.json
{
"main": "app.rill",
"extensions": {
"mounts": {
"foundry": "@rcrsr/rill-ext-foundry"
},
"config": {
"foundry": {
"endpoint": "https://my-resource.openai.azure.com",
"auth": {
"type": "api-key",
"key": "${AZURE_OPENAI_API_KEY}"
},
"inference": {
"model": "gpt-4o",
"apiVersion": "2025-01-01-preview"
}
}
}
}
}app.rill
use<ext:foundry> => $foundry
$foundry.message("Explain TCP handshakes") -> each { log }rill-runDocumentation
See full documentation for configuration, functions, error handling, and events.
License
MIT
