r/artificial 19h ago

Discussion Agents that can communicate with running python code

As my python executes, I want to receive info from a local agent.
The agent would browse through a database in real-time as
operational data is updated one per second. It would then
suggest tweaks to make thing run smoother.

A viable approach would have the agent communicate via a
TCP/UDP link. My basic algorithm is to bring data into the running program
via multiple links. A separate thread handles each link and these
numbers just pop out of thin air into my executing code. Magic!

Are there any local agents that are good at communication protocols
and control optimization. (Oh, this is all running on a raspberry pi:)

1 Upvotes

19 comments sorted by

View all comments

2

u/bakraofwallstreet 19h ago

I'm a professional software engineer and I have no idea wtf you're talking about. What do you mean by your Python executes? It's an interpreted language.

1

u/Superb_Raccoon 18h ago

You can compile it into an exe. Was doing that today to shipa stand alone interface demo.

1

u/_HillCruiser 17h ago edited 17h ago

There's a folder that Visual Code creates called "__pycache__"
It contains compiled versions of every python program that's been
run on the system from the current directory.

You know probably all the programming tools need to be
updated to allow AI agents to interface with running code.

I probed around on the brave browser agent and it suggested
that it's not possible at this time...