MCPcopy Create free account
hub / github.com/xerrors/Yuxi / getAgentConfigOptionLabel

Function getAgentConfigOptionLabel

web/src/utils/agentConfigUtils.js:36–39  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

34}
35
36export const getAgentConfigOptionLabel = (option) => {
37 if (typeof option !== 'object' || option === null) return option
38 return option.name || option.label || getAgentConfigOptionValue(option)
39}
40
41export const getAgentConfigOptionDescription = (option) =>
42 typeof option === 'object' && option !== null ? option.description || '' : ''

Callers 1

normalizeMentionResourceFunction · 0.90

Calls 1

Tested by

no test coverage detected