@microsoft/agents-a365-runtime package
Klassen
| AgenticAuthenticationService |
Service voor het verwerken van agentische gebruikersverificatie. |
| DefaultConfigurationProvider |
Standaardprovider die een configuratie op basis van een omgeving retourneert.
Overwegingen voor meerdere tenants: Deze provider maakt één configuratie-exemplaar tijdens de bouw, gedeeld over alle aanvragen in een proces. De standaardproviders op moduleniveau (bijvoorbeeld Voor scenario's met meerdere tenants worden twee benaderingen ondersteund:
|
| OperationError |
Een fout van een bewerking inkapselen. |
| OperationResult |
Vertegenwoordigt het resultaat van een bewerking. |
| PowerPlatformApiDiscovery | |
| RuntimeConfiguration |
Basisconfiguratieklasse voor Agent365 SDK. Andere pakketten breiden dit uit om hun eigen instellingen toe te voegen. Onderdrukkingsfuncties worden aangeroepen voor elke toegang tot eigenschappen, waardoor dynamische resolutie vanuit asynchrone context (bijvoorbeeld OpenTelemetry-bagage) per aanvraag wordt ingeschakeld. |
| Utility |
Hulpprogrammaklasse die helpermethoden biedt voor agentruntimebewerkingen. |
Interfaces
| IConfigurationProvider |
Algemene interface voor het bieden van configuratie. Elk pakket definieert een eigen configuratietype T. |
Type-aliassen
| RuntimeConfigurationOptions |
Runtime-configuratieopties: alle optionele functies. Functies worden aangeroepen voor elke toegang tot eigenschappen, waardoor dynamische resolutie mogelijk is. Niet-instelwaarden vallen terug op omgevingsvariabelen. |
Enums
| ClusterCategory |
Clustercategorieën voor Power Platform API-detectie. String enum biedt zowel de veiligheid van het type compileertijd als runtimevalidatie. |
Functies
| get |
Haalt de clustercategorie op uit omgevingsvariabelen. Voorbeeld
|
| get |
Hiermee haalt u het verificatiebereik van het MCP-platform op. Voorbeeld
|
| get |
Retourneert het bereik voor verificatie bij de waarneembaarheidsservice. Voorbeeld
|
| is |
Retourneert waar als de huidige omgeving een ontwikkelomgeving is. Voorbeeld
|
Variabelen
| DEVELOPMENT_ENVIRONMENT_NAME | |
| PRODUCTION_ENVIRONMENT_NAME | |
| PROD_MCP_PLATFORM_AUTHENTICATION_SCOPE | Bereik voor mcp-platformverificatie voor productie. |
| PROD_OBSERVABILITY_CLUSTER_CATEGORY | Standaardclustercategorie voor productieomgevingen. |
| PROD_OBSERVABILITY_SCOPE | Verificatiebereik productieobserveerbaarheid. |
| default |
Gedeelde standaardprovider voor RuntimeConfiguration. Maakt gebruik van omgevingsvariabelen zonder onderdrukkingen- geschikt voor implementaties met één tenant of bij het gebruik van dynamische onderdrukkingsfuncties voor multitenancy. |
Functiedetails
getClusterCategory(IConfigurationProvider<RuntimeConfiguration>)
Waarschuwing
Deze API is nu afgeschaft.
Use RuntimeConfiguration.clusterCategory instead.
Haalt de clustercategorie op uit omgevingsvariabelen.
Voorbeeld
// Before:
import { getClusterCategory } from '@microsoft/agents-a365-runtime';
const cluster = getClusterCategory();
// After:
import { defaultRuntimeConfigurationProvider } from '@microsoft/agents-a365-runtime';
const cluster = defaultRuntimeConfigurationProvider.getConfiguration().clusterCategory;
function getClusterCategory(configProvider?: IConfigurationProvider<RuntimeConfiguration>): string
Parameters
- configProvider
Optionele configuratieprovider. Standaard ingesteld op defaultRuntimeConfigurationProvider als deze niet is opgegeven.
Retouren
string
De clustercategorie van CLUSTER_CATEGORY env var, wordt standaard ingesteld op 'prod'.
getMcpPlatformAuthenticationScope()
Waarschuwing
Deze API is nu afgeschaft.
Use ToolingConfiguration.mcpPlatformAuthenticationScope instead.
Hiermee haalt u het verificatiebereik van het MCP-platform op.
Voorbeeld
// Before:
import { getMcpPlatformAuthenticationScope } from '@microsoft/agents-a365-runtime';
const scope = getMcpPlatformAuthenticationScope();
// After:
import { defaultToolingConfigurationProvider } from '@microsoft/agents-a365-tooling';
const scope = defaultToolingConfigurationProvider.getConfiguration().mcpPlatformAuthenticationScope;
function getMcpPlatformAuthenticationScope(): string
Retouren
string
Het MCP-platformverificatiebereik.
getObservabilityAuthenticationScope()
Waarschuwing
Deze API is nu afgeschaft.
Use ObservabilityConfiguration.observabilityAuthenticationScopes instead.
Retourneert het bereik voor verificatie bij de waarneembaarheidsservice.
Voorbeeld
// Before:
import { getObservabilityAuthenticationScope } from '@microsoft/agents-a365-runtime';
const scopes = getObservabilityAuthenticationScope();
// After:
import { defaultObservabilityConfigurationProvider } from '@microsoft/agents-a365-observability';
const scopes = [...defaultObservabilityConfigurationProvider.getConfiguration().observabilityAuthenticationScopes];
function getObservabilityAuthenticationScope(): string[]
Retouren
string[]
De verificatiebereiken voor de huidige omgeving.
isDevelopmentEnvironment(IConfigurationProvider<RuntimeConfiguration>)
Waarschuwing
Deze API is nu afgeschaft.
Use RuntimeConfiguration.isDevelopmentEnvironment instead.
Retourneert waar als de huidige omgeving een ontwikkelomgeving is.
Voorbeeld
// Before:
import { isDevelopmentEnvironment } from '@microsoft/agents-a365-runtime';
if (isDevelopmentEnvironment()) { ... }
// After:
import { defaultRuntimeConfigurationProvider } from '@microsoft/agents-a365-runtime';
if (defaultRuntimeConfigurationProvider.getConfiguration().isDevelopmentEnvironment) { ... }
function isDevelopmentEnvironment(configProvider?: IConfigurationProvider<RuntimeConfiguration>): boolean
Parameters
- configProvider
Optionele configuratieprovider. Standaard ingesteld op defaultRuntimeConfigurationProvider als deze niet is opgegeven.
Retouren
boolean
Waar als de huidige omgeving wordt ontwikkeld, anders onwaar.
Variabele details
DEVELOPMENT_ENVIRONMENT_NAME
DEVELOPMENT_ENVIRONMENT_NAME: "Development"
Type
"Development"
PRODUCTION_ENVIRONMENT_NAME
PRODUCTION_ENVIRONMENT_NAME: "production"
Type
"production"
PROD_MCP_PLATFORM_AUTHENTICATION_SCOPE
Waarschuwing
Deze API is nu afgeschaft.
This constant is exported for backward compatibility only.
For new code, use ToolingConfiguration.mcpPlatformAuthenticationScope instead.
Bereik voor mcp-platformverificatie voor productie.
PROD_MCP_PLATFORM_AUTHENTICATION_SCOPE: "ea9ffc3e-8a23-4a7d-836d-234d7c7565c1/.default"
Type
string
PROD_OBSERVABILITY_CLUSTER_CATEGORY
Waarschuwing
Deze API is nu afgeschaft.
This constant is exported for backward compatibility only.
For new code, use RuntimeConfiguration.clusterCategory instead.
Standaardclustercategorie voor productieomgevingen.
PROD_OBSERVABILITY_CLUSTER_CATEGORY: "prod"
Type
"prod"
PROD_OBSERVABILITY_SCOPE
Waarschuwing
Deze API is nu afgeschaft.
This constant is exported for backward compatibility only.
For new code, use ObservabilityConfiguration.observabilityAuthenticationScopes instead.
Verificatiebereik productieobserveerbaarheid.
PROD_OBSERVABILITY_SCOPE: "api://9b975845-388f-4429-889e-eab1ef63949c/.default"
Type
string
defaultRuntimeConfigurationProvider
Gedeelde standaardprovider voor RuntimeConfiguration. Maakt gebruik van omgevingsvariabelen zonder onderdrukkingen- geschikt voor implementaties met één tenant of bij het gebruik van dynamische onderdrukkingsfuncties voor multitenancy.
defaultRuntimeConfigurationProvider: DefaultConfigurationProvider<RuntimeConfiguration>