[General][Question] Why is it using python for scripting and not a typescript? #1434
Replies: 2 comments
|
Basically, even though the underlying infrastructure runs on TypeScript because Node.js is great for web servers and async tasks, they rely on Python for the actual AI scripting because Python completely dominates the machine learning world. Whenever new models or tools drop, the Python libraries and SDKs are almost always the first to get updated and have the most features. Splitting it up this way is a super common pattern—it lets them use TypeScript for the scalable app mechanics while giving developers the familiar, feature-rich Python ecosystem they already know and love for prompt engineering and complex AI logic. |
|
Prime Agent is designed around Recursive Language Models and programmatic tool calling. Instead of only exposing a fixed set of JSON tool schemas, we give the model a persistent IPython kernel where it can retain state, inspect and transform context, call tools, and orchestrate sub-agents using ordinary async code. We started off the project by hard forking pi-mono, hence the harness itself is in Typescript. You can read more about the underlying design in more detail in our blogs: Recursive Language Models and Prime Agent. |
Uh oh!
There was an error while loading. Please reload this page.
Area
Development
Topic
So harness is written in TS, then why is it using python for LLM scripting? Looks like can use node's vuilt in isolates and workesrs to execute js/ts code.
What have you tried or considered?
No response
Additional context
No response
All reactions