Class OneDriveWorkSchoolController
- Namespace
 - FoundationaLLM.Core.API.Controllers
 
- Assembly
 - FoundationaLLM.Core.API.dll
 
Provides methods for OneDrive integration.
[Authorize(AuthenticationSchemes = "Bearer", Policy = "MicrosoftEntraIDStandard")]
[ApiController]
[Route("instances/{instanceId}/[controller]")]
public class OneDriveWorkSchoolController : ControllerBase
  - Inheritance
 - 
      
      
      OneDriveWorkSchoolController
 
- Inherited Members
 
- Extension Methods
 
Constructors
OneDriveWorkSchoolController(IOrchestrationContext, IOneDriveWorkSchoolService)
The controller for OneDrive integration.
public OneDriveWorkSchoolController(IOrchestrationContext callContext, IOneDriveWorkSchoolService oneDriveWorkSchoolService)
  Parameters
callContextIOrchestrationContextThe IOrchestrationContext call context of the request being handled.
oneDriveWorkSchoolServiceIOneDriveWorkSchoolServiceThe IOneDriveWorkSchoolService OneDrive service.
Exceptions
Methods
Connect(string)
Connects to user's OneDrive work or school account.
[HttpPost("connect")]
public Task<IActionResult> Connect(string instanceId)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
Returns
Disconnect(string)
Disconnect from user's OneDrive work or school account.
[HttpPost("disconnect")]
public Task<IActionResult> Disconnect(string instanceId)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
Returns
Download(string, string, string, OneDriveWorkSchoolItem)
Downloads a file from the user's connected OneDrive work or school account.
[HttpPost("download")]
public Task<IActionResult> Download(string instanceId, string sessionId, string agentName, OneDriveWorkSchoolItem oneDriveWorkSchool)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
sessionIdstringThe session ID from which the file is uploaded.
agentNamestringThe agent name.
oneDriveWorkSchoolOneDriveWorkSchoolItemThe OneDrive work or school item.