UNPKG

nestjs-a2a

Version:

NestJS module for creating Google Agent to Agent Server

21 lines (20 loc) 822 B
import { InjectionToken } from '@nestjs/common'; import { OnApplicationBootstrap } from '@nestjs/common'; import { DiscoveryService, MetadataScanner } from '@nestjs/core'; import { AgentSkill } from '../interfaces/a2a.types'; export interface DiscoveredSkill { providerClass: InjectionToken; methodName: string; skill: AgentSkill; } export declare class A2ARegistry implements OnApplicationBootstrap { private readonly discovery; private readonly metadataScanner; private readonly discoveredSkills; constructor(discovery: DiscoveryService, metadataScanner: MetadataScanner); onApplicationBootstrap(): void; private discoverSkills; getAvailableSkills(): DiscoveredSkill[]; getSkill(id: string): DiscoveredSkill | undefined; getFallbackSkill(): DiscoveredSkill | undefined; }