@salesforce/agents
    Preparing search index...

    Function supportsAiAgentDefinition

    • Whether the org behind the given connection supports retrieving agents as the simplified AiAgentDefinition / AiAgentDefinitionVersion metadata types.

      Note: this keys off the connection's API version only. The server also gates the feature behind a flag; an org at/above the min API version with the flag still off would resolve the new types to nothing.

      Parameters

      • connection: Connection

        the connection whose API version determines the format

      Returns boolean

      true if the new metadata format should be used