ADK for TypeScript: API Reference
    Preparing search index...

    Function renameReservedKeywords

    • Prefixes a Python keyword, the way adk-python's rename_python_keywords does. Mirrors the reference exactly: the set is Python's, not TypeScript's.

      Parameters

      • s: string

        The candidate identifier.

      • prefix: string = DEFAULT_RESERVED_WORD_PREFIX

        The prefix to add when s is reserved.

      Returns string

      prefix + s when s is reserved, otherwise s unchanged.

      renameReservedKeywords('in'); // 'param_in'
      renameReservedKeywords('total'); // 'total'