Table of Contents

Class UserProfilesController

Namespace
FoundationaLLM.Core.API.Controllers
Assembly
FoundationaLLM.Core.API.dll

Provides methods for retrieving and managing user profiles.

[Authorize(AuthenticationSchemes = "Bearer", Policy = "MicrosoftEntraIDStandard")]
[ApiController]
[Route("instances/{instanceId}/[controller]")]
public class UserProfilesController : ControllerBase
Inheritance
UserProfilesController
Inherited Members
Extension Methods

Remarks

Constructor for the UserProfiles Controller.

Constructors

UserProfilesController(IUserProfileService)

Provides methods for retrieving and managing user profiles.

public UserProfilesController(IUserProfileService userProfileService)

Parameters

userProfileService IUserProfileService

Service that provides methods for managing the user profile.

Remarks

Constructor for the UserProfiles Controller.

Methods

AddAgentToUserProfile(string, UserProfileUpdateRequest)

Adds an agent to the user's profile.

[HttpPost("add-agent")]
public Task<IActionResult> AddAgentToUserProfile(string instanceId, UserProfileUpdateRequest updateRequest)

Parameters

instanceId string

The FoundationaLLM instance identifier.

updateRequest UserProfileUpdateRequest

The user profile update request.

Returns

Task<IActionResult>

Index(string)

Retrieves user profiles.

[HttpGet(Name = "GetUserProfile")]
public Task<IActionResult> Index(string instanceId)

Parameters

instanceId string

The instance identifier.

Returns

Task<IActionResult>

RemoveAgentFromUserProfile(string, UserProfileUpdateRequest)

Adds an agent to the user's profile.

[HttpPost("remove-agent")]
public Task<IActionResult> RemoveAgentFromUserProfile(string instanceId, UserProfileUpdateRequest updateRequest)

Parameters

instanceId string

The FoundationaLLM instance identifier.

updateRequest UserProfileUpdateRequest

The user profile update request.

Returns

Task<IActionResult>