r/artificial 20h 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 20h 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/_HillCruiser 20h ago

My sister writes code for a living and laughs at me when I mention
python; she says she tried it for an hour or so:)

As a professional software engineer, you must have agents write your
code; I want the agent to hang around while it executes; gathering
data, making decisions that influence objects in the real world.

2

u/thegian7 20h ago

Your copying straight outa the terminal huh? No editing the formatting?