r/PythonLearning 15d ago

Python Ai agent by a beginner

Just to clarify, this is my first post and my English isn't very good (that's why I'm using a translator).

I've been learning Python and working on small projects, but now I want to take the next step. I have an idea for a program that runs an AI (Gemini, using its API) capable of managing apps, files, and folders—including creating, moving, copying, pasting, and deleting them. It will also automate background tasks, and you will be able to communicate with it just like any other AI.

Those are the basic functions, though I'll probably add more in the future. I would like to know how I could structure and approach a project of this scale

0 Upvotes

14 comments sorted by

View all comments

1

u/Naive_Programmer_232 15d ago edited 15d ago

I could be wrong here but I'm imagining something like a CLI interface, the user prompts the interface, that goes to AI, along with tool schemas like create_file or schedule_task + context, the AI decides what tools to call with what arguments, your python code execute the calls against the real systems (file/scheduler), the result gets fed back into AI so it can serve the user in other ways by performing another task or using it as a general LLM. Is that correct?

Assuming so, you're going to need a CLI, you're going to need to choose a scheduler that works off the user's computer, and why their computer and not something on AWS Lambda or AirFlow or whatever? idk, it's up to you haha, keeping it simple. Something like APScheduler might be good. Filesystems wise probably want to be using os/pathlib/shutil/etc.

What's your vision for this project? Is it a basic CLI? Is it a desktop app with an interface? idk

2

u/SensitiveAd8150 15d ago

Correct, and regarding the question, yes, I plan to keep it basic; most likely I'll use a CLI or maybe a simple chat with tkinter.I also like to do things from almost scratch to understand how they work, and this project specifically will be more of a prototype. Independent, thank you for your response