Package: foundryR 1.0.0.9000

foundryR: Data Frame Workflows for 'Microsoft Foundry'

Work with 'Microsoft Foundry' from data-frame-oriented 'R' workflows. Provides data-frame-returning helpers for 'Azure AI Content Safety', 'Azure OpenAI' Responses API calls, strict structured extraction, vector representations, files, batch jobs, audio, media, and chat completions. Supports research annotation, safety gates, semantic search, and 'tidymodels' recipes. Helps teams keep model workflows inside their 'Azure' environment while preserving analyzable outputs. See the Microsoft Foundry REST API documentation <https://learn.microsoft.com/rest/api/microsoft-foundry/> and Azure AI Content Safety documentation <https://learn.microsoft.com/azure/ai-services/content-safety/>.

Authors:Alex Farach [aut, cre, cph]

foundryR_1.0.0.9000.tar.gz
foundryR_1.0.0.9000.zip(r-4.7-any)foundryR_1.0.0.9000.zip(r-4.6-any)foundryR_1.0.0.9000.zip(r-4.5-any)
foundryR_1.0.0.9000.tgz(r-4.6-any)foundryR_1.0.0.9000.tgz(r-4.5-any)
foundryR_1.0.0.9000.tar.gz(r-4.7-any)foundryR_1.0.0.9000.tar.gz(r-4.6-any)
foundryR_1.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
foundryR/json (API)

# Install 'foundryR' in R:
install.packages('foundryR', repos = c('https://farach.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/farach/foundryr/issues

Pkgdown/docs site:https://farach.github.io

On CRAN:

Conda:

5.78 score 1 stars 165 downloads 142 exports 23 dependencies

Last updated from:a771a0b028. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK162
source / vignettesOK274
linux-releaseOK175
macos-releaseOK120
macos-oldrelOK93
windows-develOK115
windows-releaseOK136
windows-oldrelOK141
wasm-releaseOK156

Exports:%>%as_foundry_schemacodebook_difffoundry_agentfoundry_agent_createfoundry_agent_deletefoundry_agent_getfoundry_agent_messagefoundry_agent_referencefoundry_agent_toolfoundry_agent_tool_callfoundry_agent_versionsfoundry_agentsfoundry_agreementfoundry_batch_cancelfoundry_batch_createfoundry_batch_getfoundry_batch_requestsfoundry_batch_resultsfoundry_batch_waitfoundry_batchesfoundry_blocklist_add_itemsfoundry_blocklist_createfoundry_blocklist_deletefoundry_blocklist_getfoundry_blocklist_itemsfoundry_blocklist_remove_itemsfoundry_blocklistsfoundry_cache_clearfoundry_chatfoundry_check_setupfoundry_codebookfoundry_consistencyfoundry_conversation_createfoundry_conversation_deletefoundry_conversation_getfoundry_conversation_itemsfoundry_conversation_items_addfoundry_conversation_updatefoundry_conversationsfoundry_embedfoundry_embed_batchfoundry_eval_createfoundry_eval_data_configfoundry_eval_deletefoundry_eval_getfoundry_eval_itemfoundry_eval_run_cancelfoundry_eval_run_createfoundry_eval_run_datafoundry_eval_run_getfoundry_eval_run_output_itemsfoundry_eval_run_resultsfoundry_eval_run_waitfoundry_eval_runsfoundry_evalsfoundry_evaluatefoundry_extractfoundry_extract_batchfoundry_extract_batch_resultsfoundry_file_deletefoundry_file_downloadfoundry_file_getfoundry_file_uploadfoundry_filesfoundry_get_endpointfoundry_get_project_endpointfoundry_grader_azure_aifoundry_grader_label_modelfoundry_grader_score_modelfoundry_grader_string_checkfoundry_grader_text_similarityfoundry_groundednessfoundry_imagefoundry_image_editfoundry_llm_resourcefoundry_modelsfoundry_moderatefoundry_moderate_imagefoundry_moderate_multimodalfoundry_protected_codefoundry_protected_materialfoundry_provenancefoundry_responsefoundry_response_cancelfoundry_response_deletefoundry_response_input_itemsfoundry_response_retrievefoundry_save_imagefoundry_schemafoundry_set_content_safety_endpointfoundry_set_content_safety_keyfoundry_set_endpointfoundry_set_image_endpointfoundry_set_image_keyfoundry_set_keyfoundry_set_project_endpointfoundry_set_routefoundry_set_speech_endpointfoundry_set_speech_keyfoundry_set_tokenfoundry_set_token_providerfoundry_shieldfoundry_similarityfoundry_speakfoundry_task_adherencefoundry_token_azure_clifoundry_token_azure_identityfoundry_toolfoundry_tool_file_searchfoundry_transcribefoundry_translate_audiofoundry_usagefoundry_vector_searchfoundry_vector_store_createfoundry_vector_store_deletefoundry_vector_store_file_addfoundry_vector_store_file_batchfoundry_vector_store_file_removefoundry_vector_store_filesfoundry_vector_store_getfoundry_vector_store_modifyfoundry_vector_storesfoundry_video_downloadfoundry_video_getfoundry_video_job_createfoundry_video_job_deletefoundry_video_job_getfoundry_video_jobsfoundry_web_searchschema_arrayschema_booleanschema_enumschema_integerschema_numberschema_objectschema_stringstep_foundry_embedtype_booleantype_enumtype_numbertype_string

Dependencies:askpassclicurldigestdplyrgenericsgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigpurrrR6rlangsystibbletidyselectutf8vctrswithr

Analyze evaluation results with uncertainty
Simulated results | Pass rates with intervals | Compare the targets case by case | Where the targets fail | How many test cases a comparison needs | Check the judge before trusting it | Weigh quality against cost and latency | Report the method

Last update: 2026-09-27
Started: 2026-09-27

Annotate at scale with the Batch API
Prepare requests | Submit and wait with the low-level API | Submit now and collect later | Clean up files

Last update: 2026-09-27
Started: 2026-06-25

API support matrix
Endpoint and authentication families | OpenAI-compatible and project surfaces | Evaluations | Speech family | Content Safety surfaces | Current omissions | Compatibility policy

Last update: 2026-09-27
Started: 2026-09-01

Content Safety gates in a research pipeline
Configure a Content Safety resource | Moderate open-text answers | Add study-specific blocklists | Check whether an answer is grounded | Screen prompts and retrieved documents | Other Content Safety checks | Use the gate outputs

Last update: 2026-09-27
Started: 2026-02-02

Embeddings for research
What embeddings are for | Generate embeddings | Compare same-source and cross-source pairs | Rank documents for a query | Cluster text responses | Work with larger collections

Last update: 2026-09-27
Started: 2026-02-01

Embeddings in tidymodels recipes
Why put embeddings in a recipe? | Create an embedding recipe | Fit a small classifier with PCA | Control the embedding step | Resampling, caching, and cost | Troubleshooting | Next steps

Last update: 2026-09-27
Started: 2026-02-02

Evaluate models and agents in Microsoft Foundry
Setup | Grade a model on labeled examples | Audit labels already in your data | Compare two prompts in one evaluation | Evaluate an agent | Evaluate responses your application already stored | Safety evaluators | Finding the results later

Last update: 2026-09-27
Started: 2026-09-27

From text to defensible estimates
Start with a versioned codebook | Extract only the coded fields | Compare with hand codes on a sample | Check repeated-run stability | Estimate a theme share with an interval | Record provenance | What to report

Last update: 2026-09-27
Started: 2026-06-25

Generate images
Configure image resources | Generate a research stimulus | Save and display the image | Make a controlled variant | Record what you used

Last update: 2026-09-27
Started: 2026-06-25

Get started with foundryR
Install | Configure credentials | Understand endpoints and routes | Know deployment names | Get a first response | Extract structured fields | Embed and compare text | Choose the next article

Last update: 2026-09-27
Started: 2026-02-01

Responses API, structured extraction, and web search
Response text and usage | Stateful turns | Structured extraction | User-defined R tools | Remote MCP tools | Web-grounded answers | Reasoning token accounting | Streaming and chat completions

Last update: 2026-09-27
Started: 2026-06-06

Transcribe and translate audio
Fast transcription | MAI-Transcribe enhanced mode | Transcribe non-English audio | Audio translation endpoints | Code the transcript | Synthesize speech | Notes for analysis

Last update: 2026-09-27
Started: 2026-06-25

Readme and manuals

Help Manual

Help pageTopics
Convert an object to a foundryR JSON Schemaas_foundry_schema
Apply the Foundry embedding step to new databake.step_foundry_embed
Compare two codebookscodebook_diff format.foundry_codebook_diff print.foundry_codebook_diff
Run a bounded Responses API tool-calling loopfoundry_agent
Create a Foundry agentfoundry_agent_create
Delete a Foundry agentfoundry_agent_delete
Retrieve a Foundry agentfoundry_agent_get
Describe an agent message for task adherencefoundry_agent_message
Reference a Foundry agent from the Responses APIfoundry_agent_reference
Describe an agent tool for task adherencefoundry_agent_tool
Describe an agent tool call for task adherencefoundry_agent_tool_call
List versions of a Foundry agentfoundry_agent_versions
List Foundry agentsfoundry_agents
Compute agreement metrics for LLM annotationfoundry_agreement
Cancel a Microsoft Foundry batchfoundry_batch_cancel
Create a Microsoft Foundry batchfoundry_batch_create
Retrieve a Microsoft Foundry batchfoundry_batch_get
Write JSONL requests for the Batch APIfoundry_batch_requests
Parse completed Microsoft Foundry batch resultsfoundry_batch_results
Wait for a Microsoft Foundry batch to finishfoundry_batch_wait
List Microsoft Foundry batchesfoundry_batches
Manage Content Safety text blocklistsfoundry_blocklists foundry_blocklist_add_items foundry_blocklist_create foundry_blocklist_delete foundry_blocklist_get foundry_blocklist_items foundry_blocklist_remove_items
Clear the foundryR embedding cachefoundry_cache_clear
Chat with a Microsoft Foundry modelfoundry_chat
Check foundryR Setupfoundry_check_setup
Create a measurement codebookfoundry_codebook
Measure repeated-extraction consistencyfoundry_consistency
Manage Responses API conversationsfoundry_conversations foundry_conversation_create foundry_conversation_delete foundry_conversation_get foundry_conversation_items foundry_conversation_items_add foundry_conversation_update
Generate Text Embeddingsfoundry_embed
Generate Text Embeddings in Parallel Batchesfoundry_embed_batch
Create an evaluationfoundry_eval_create
Define an evaluation data-source configurationfoundry_eval_data_config
Delete an evaluationfoundry_eval_delete
Retrieve an evaluationfoundry_eval_get
Build an evaluation item for model-based gradersfoundry_eval_item
Cancel an evaluation runfoundry_eval_run_cancel
Create an evaluation runfoundry_eval_run_create
Define an evaluation run data sourcefoundry_eval_run_data
Retrieve an evaluation runfoundry_eval_run_get
List evaluation run output itemsfoundry_eval_run_output_items
Collect evaluation results joined to the evaluated rowsfoundry_eval_run_results
Wait for an evaluation run to finishfoundry_eval_run_wait
List evaluation runsfoundry_eval_runs
List evaluationsfoundry_evals
Evaluate a data frame with Microsoft Foundry cloud evaluationfoundry_evaluate
Extract structured data from text using JSON Schemafoundry_extract
Extract structured data with the Batch APIfoundry_extract_batch
Collect completed structured extraction batch resultsfoundry_extract_batch_results
Delete a Microsoft Foundry filefoundry_file_delete
Download Microsoft Foundry file contentfoundry_file_download
Retrieve a Microsoft Foundry filefoundry_file_get
Upload a file to Microsoft Foundryfoundry_file_upload
List uploaded Microsoft Foundry filesfoundry_files
Get Microsoft Foundry Endpointfoundry_get_endpoint
Get Microsoft Foundry project endpointfoundry_get_project_endpoint
Microsoft Foundry built-in evaluator graderfoundry_grader_azure_ai
Label-model graderfoundry_grader_label_model
Score-model graderfoundry_grader_score_model
String-check graderfoundry_grader_string_check
Text-similarity graderfoundry_grader_text_similarity
Detect Groundedness of LLM Responsesfoundry_groundedness
Generate Images with Microsoft Foundryfoundry_image
Edit an image with Microsoft Foundryfoundry_image_edit
Describe a bring-your-own Azure OpenAI resource for groundednessfoundry_llm_resource
List or retrieve models available to a Foundry resourcefoundry_models
Moderate Text Contentfoundry_moderate
Moderate image contentfoundry_moderate_image
Moderate an image together with its textfoundry_moderate_multimodal
Detect protected material in codefoundry_protected_code
Detect protected material in textfoundry_protected_material
Capture model and schema provenancefoundry_provenance
Create a response with the Azure OpenAI Responses APIfoundry_response
Cancel a background Responses API responsefoundry_response_cancel
Delete a stored Responses API responsefoundry_response_delete
List input items for a Responses API responsefoundry_response_input_items
Retrieve a stored Responses API responsefoundry_response_retrieve
Save Generated Image to Filefoundry_save_image
Build a strict JSON Schema objectfoundry_schema
Set Azure Content Safety Endpointfoundry_set_content_safety_endpoint
Set Azure Content Safety API Keyfoundry_set_content_safety_key
Set Microsoft Foundry Endpointfoundry_set_endpoint
Set Image Generation Endpointfoundry_set_image_endpoint
Set Image Generation API Keyfoundry_set_image_key
Set Microsoft Foundry API Keyfoundry_set_key
Set Microsoft Foundry project endpointfoundry_set_project_endpoint
Choose the endpoint for APIs that run on a resource or a projectfoundry_set_route
Set Microsoft Foundry Speech endpointfoundry_set_speech_endpoint
Set Microsoft Foundry Speech API keyfoundry_set_speech_key
Set Microsoft Foundry Bearer Tokenfoundry_set_token
Set a Microsoft Entra ID token providerfoundry_set_token_provider
Shield Prompt from Injection Attacksfoundry_shield
Compute Cosine Similarity Between Embeddingsfoundry_similarity
Generate speech audio from textfoundry_speak
Check an agent transcript for task adherencefoundry_task_adherence
Create an Azure CLI token providerfoundry_token_azure_cli
Create a Microsoft Entra ID token provider using AzureAuthfoundry_token_azure_identity
Define an R function as a Responses API toolfoundry_tool
Create a file-search tool definitionfoundry_tool_file_search
Transcribe an audio file with Microsoft Foundryfoundry_transcribe
Translate an audio file with Microsoft Foundryfoundry_translate_audio
Summarise token usage for foundryR resultsfoundry_usage
Manage Azure OpenAI vector storesfoundry_vector_search foundry_vector_stores foundry_vector_store_create foundry_vector_store_delete foundry_vector_store_files foundry_vector_store_file_add foundry_vector_store_file_batch foundry_vector_store_file_remove foundry_vector_store_get foundry_vector_store_modify
Search the web with the Responses APIfoundry_web_search
Prepare the Foundry embedding stepprep.step_foundry_embed
Print method for step_foundry_embedprint.step_foundry_embed
Required packages for step_foundry_embedrequired_pkgs.step_foundry_embed
Schema constructors for structured outputsschema_array schema_boolean schema_constructors schema_enum schema_integer schema_number schema_object schema_string
Foundry Embedding Recipe Stepstep_foundry_embed tidy.step_foundry_embed