AgentPrismEndpointRouteBuilderExtensions
AgentPrism.AspNetCore.dllExtensions that connect AgentPrism’s HTTP surface to the application.
public static class AgentPrismEndpointRouteBuilderExtensionsInheritance
Section titled “Inheritance”object ← AgentPrismEndpointRouteBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Fields
Section titled “Fields”DefaultPrefix
Section titled “ DefaultPrefix”Default path prefix.
public const string DefaultPrefix = "/agentprism"Field Value
Section titled “Field Value”Methods
Section titled “Methods”MapAgentPrism(IEndpointRouteBuilder, string, Action<AgentPrismEndpointOptions>?)
Section titled “ MapAgentPrism(IEndpointRouteBuilder, string, Action<AgentPrismEndpointOptions>?)”Connects the AgentPrism management API and the OpenAI-compatible run endpoints.
public static IEndpointConventionBuilder MapAgentPrism(this IEndpointRouteBuilder endpoints, string prefix = "/agentprism", Action<AgentPrismEndpointOptions>? configure = null)Parameters
Section titled “Parameters”endpoints IEndpointRouteBuilder
The application’s routing builder.
prefix string
Path prefix. Default is /agentprism.
configure Action<AgentPrismEndpointOptions>?
Hook that mutates access and streaming settings.
Returns
Section titled “Returns”The convention builder for the protected endpoints. Every convention added only applies to the protected endpoints.
Remarks
Section titled “Remarks”Endpoints fall into two groups. {prefix}/api/meta is reachable
without authentication; it is needed for the UI to learn which
authentication method to use and returns no sensitive data. Every other
endpoint passes through the three-layer protection.
The returned builder represents only the protected group.
This is deliberate: if the meta endpoint were also locked when the
caller writes MapAgentPrism(...).RequireAuthorization, the UI
could never learn the authentication method and could never open a
session.
app.MapAgentPrism("/agentprism", options =>{ options.RequireAuthorization("AgentPrismAdmin");});Exceptions
Section titled “Exceptions”endpoints is null.
prefix is empty.
AddAgentPrism has not been called.