cookbook/PC/Agent-Granite/Python-Binding-Example/README.md
This demo showcases a function tool implementation using NexaAI Python binding.
| Platform | Required Python |
|---|---|
| Windows (ARM64, Snapdragon X Elite) | 3.11 – 3.13 (arm64) |
| macOS / Windows (x64) | 3.10 (x64) |
For python install, you can check our interactive Jupyter notebooks. Choose the appropriate notebook for your platform:
# Navigate to the example directory
cd Python-Binding-Example
# Create a Python virtual environment
python -m venv .venv
# Activate the virtual environment
.\.venv\Scripts\activate # windows
source .venv/bin/activate # macOS
# Install all required dependencies
pip install gradio
pip install -r requirements.txt
# Run the CLI version which provides an interactive terminal interface
# This version allows direct interaction with the agent through command line
python agent_nexa.py
# Run the Gradio UI version
# This starts a local web server with a chat interface at http://localhost:7860
python gradio_ui.py