Table of Contents

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

callContext IOrchestrationContext

The IOrchestrationContext call context of the request being handled.

oneDriveWorkSchoolService IOneDriveWorkSchoolService

Exceptions

ResourceProviderException

Methods

Connect(string)

Connects to user's OneDrive work or school account.

[HttpPost("connect")]
public Task<IActionResult> Connect(string instanceId)

Parameters

instanceId string

The FoundationaLLM instance identifier.

Returns

Task<IActionResult>

Disconnect(string)

Disconnect from user's OneDrive work or school account.

[HttpPost("disconnect")]
public Task<IActionResult> Disconnect(string instanceId)

Parameters

instanceId string

The FoundationaLLM instance identifier.

Returns

Task<IActionResult>

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

instanceId string

The FoundationaLLM instance identifier.

sessionId string

The session ID from which the file is uploaded.

agentName string

The agent name.

oneDriveWorkSchool OneDriveWorkSchoolItem

The OneDrive work or school item.

Returns

Task<IActionResult>