aps-agent/providers/aps/index.ts

15 lines
609 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* APS Provider(架构设计第 6 节):把 APS 的能力翻译成平台契约。
*
* 只做适配:参数校验、调用 APS、结果归一化。不判断权限、不碰模型上下文。
* APS 本身是独立系统(Python),以现有代码搬迁适配——见决策 D8 与任务 B1~B7。
*/
import type { CapabilityProvider, ProviderManifest } from '@aps/provider-sdk';
export const APS_PROVIDER_ID = 'aps';
export function manifest(): ProviderManifest {
return { id: APS_PROVIDER_ID, capabilities: [] };
}
export const provider: Pick<CapabilityProvider, 'manifest'> = { manifest };