MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent.Abstractions

MentorTenantRequest record

What an IMentorTenantResolver is asked about: one request, from one surface. More properties may be added.

View as Markdown
On this page

Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.

public sealed record MentorTenantRequest : IEquatable<MentorTenantRequest>

Terminal
dotnet add package Novior.MentorAgent.Abstractions

public MentorTenantRequest()

public required IServiceProvider Services { get; init; }

The services of the request's scope — the circuit, the hub connection, the request, the A2A task; on the MCP server, the request's — for a scoped service of the application, an IHttpContextAccessor say. Never the application's root services.

public required MentorActionSurface Surface { get; init; }

Where the request comes from.

public ClaimsPrincipal? User { get; init; }

The signed-in user, or null when nobody is. On the MCP server, the caller McpCallerPrincipal resolves, else the request's user.