Built a simple AI assistant with Gemini Function Calling in Python
Posted by pknerd@reddit | Python | View on Reddit | 7 comments
Hey everyone,
I was exploring Gemini’s function-calling feature and built a small Python project in which an AI assistant can actually perform actions rather than just chat.
It can:
- Check disk usage
- Verify internet connectivity
- show system uptime
- search files
The interesting part was seeing how the model decides which function to call based on the prompt, and then uses the result to generate a proper response.
I wrote a short step-by-step guide explaining how it works and how to implement it:
👉 Check the tutorial here.
Would love to hear your thoughts or suggestions 👍
Python-ModTeam@reddit
Hello from the r/Python moderation team,
We appreciate your contribution but have noticed a high volume of similar projects (e.g. AI/ML wrappers, YouTube scrapers, etc.) or submissions that do not meet our quality criteria. To maintain the diversity and quality of content on our subreddit, your post has been removed.
All showcase, code review, project, and AI generated projects should go into the pinned monthly Showcase Thread.
You can also try reposting in one of daily threads instead.
Thank you for understanding, and we encourage you to continue engaging with our community!
Best, The r/Python moderation team
AstroPhysician@reddit
I don’t understand why you recreated a shitty version of an agent when every LLM already has agents?
G4ndalf1@reddit
Do you remember when machine learning was predominantly deep learning based on gradient descent, and people would still code gradient descent from scratch? Despite tensorflow or pytorch already doing it for you?
It's good to have a rough understanding of what's happening under the hood, and these projects are good for that.
Similarly, agents / tool calling is worth understanding.
pknerd@reddit (OP)
So that you can build such programs and sell them to less technical business owners who may not fully understand how they work.
PS: LLMs do not provide connectors for every system on earth.
pknerd@reddit (OP)
So that you can build such programs and sell them to less technical business owners who may not fully understand how they work.
PS: LLMs do not provide connectors for every system on earth.
wRAR_@reddit
Writing different
utmparams for posts to different subreddits is cute.pknerd@reddit (OP)
😉