.. _examples.extensions.huggingface.huggingface_agent: Run Transformers Agents ======================= .. admonition:: Python 3.12 support :class: warning The huggingface extension (:bash:`pip install 'ibm-generative-ai[huggingface]'`) is not supported in python 3.12 yet due to the lack of pytorch support for 3.12. Follow the `pytorch issue <https://github.com/pytorch/pytorch/issues/110436>`_ for more information. .. literalinclude:: ../../../examples/extensions/huggingface/huggingface_agent.py :language: python :caption: See `huggingface_agent.py <https://github.com/IBM/ibm-generative-ai/blob/v2.3.0/examples/extensions/huggingface/huggingface_agent.py>`_ on GitHub. :lines: 12-