Represents a single capability of an agent
const capability = new Capability({ keyphrases: ['weather', 'forecast', 'temperature'], descriptions: ['Provides weather information and forecasts'], languages: ['en-US', 'en-GB'], supportedLayers: { input: ['text'], output: ['text', 'ssml'] }}); Copy
const capability = new Capability({ keyphrases: ['weather', 'forecast', 'temperature'], descriptions: ['Provides weather information and forecasts'], languages: ['en-US', 'en-GB'], supportedLayers: { input: ['text'], output: ['text', 'ssml'] }});
Creates a new Capability instance
Capability configuration options
Error if required fields are missing
Readonly
Optional
Convert to JSON string
Convert to plain object
Static
Represents a single capability of an agent
Example