This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

LlmsTxtServiceExtensions Pennington.LlmsTxt

DI extension methods for the llms.txt feature.

Methods

AddLlmsSubtree

#
public static IServiceCollection AddLlmsSubtree(this IServiceCollection services, LlmsSubtree subtree);

Registers a LlmsSubtree so all leaves under RoutePrefix get split out into a dedicated {RoutePrefix}llms.txt. Multiple registrations are allowed; programmatic registrations override _llms.yaml-discovered subtrees with the same prefix.

Parameters

services IServiceCollection
subtree LlmsSubtree

Returns

IServiceCollection

Pennington.LlmsTxt.LlmsTxtServiceExtensions

namespace Pennington.LlmsTxt;

/// DI extension methods for the llms.txt feature.
public class LlmsTxtServiceExtensions
{
    /// Registers a LlmsSubtree so all leaves under RoutePrefix get split out into a dedicated {RoutePrefix}llms.txt. Multiple registrations are allowed; programmatic registrations override _llms.yaml-discovered subtrees with the same prefix.
    
public static IServiceCollection AddLlmsSubtree(this IServiceCollection services, LlmsSubtree subtree);
}