How to parse tool calls from OpenAI, Anthropic and Google
How to turn tool calls from different LLM providers into one common interface without losing the identifiers that correlate each result.
Personal assistant for the terminal, for all operating systems and languages
Ask questions directly from the command line
Uses OpenAI models for intelligent responses
Compatible with Linux, macOS and Windows
Ask and get answers in any language
System requirements:
InputBashsudo apt updatesudo apt install -y python3 python3-pip gitCopied
If you have a Debian-based system, download and install alfred.deb
Install Python dependencies:
InputBashpip install halopip install --upgrade openaiCopied
Clone the repository:
InputBashsudo rm -r /usr/src/alfredcd /usr/srcgit clone -b branch_v1.3 https://github.com/maximofn/alfred.gitcd /usr/src/alfredsudo find . -depth -not -name '*.py' -deleteCopied
Create an alias and restart the terminal:
InputBashecho 'alias alfred="/usr/src/alfred/alfred.py"' >> ~/.bashrcsource ~/.bashrcCopied
Type alfred followed by your question.
Type alfred, press Enter and keep asking questions. Type exit to quit.
If you like it consider giving the repository a star ⭐, but if you really like it consider buying me a coffee ☕.
How to turn tool calls from different LLM providers into one common interface without losing the identifiers that correlate each result.
A practical guide to designing tools an LLM can discover, adapting them to any LLM provider, executing them safely, and ...
How the Gymnasia AI agent is built: a BYOK conversational coach with local tools and a food estimator that reads macros ...
Let's talk.
maximofn@gmail.com
Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.
AI agents, powered by LLMs, promise to transform applications. But are they simple executors today or future intelligent collaborators? To reach their...
Learn to create an IA system to execute efficiently on a device
Hugging Face spaces allow us to run models with very simple demos, but what if the demo breaks? Or if the user deletes it? That's why I've created docker containers with some interesting spaces, to be able to use them locally, whatever happens. In fact, if you click on any project view button, it may take you to a space that doesn't work.
Let's talk.
maximofn@gmail.com
Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.
Dataset with jokes in English
Use: Fine-tuning text generation models for humor
Dataset with translations from English to Spanish
Use: Training English-Spanish translation models
Dataset with Netflix movies and series
Use: Netflix catalog analysis and recommendation systems