Replies: 4 comments 3 replies
-
thats realy cool |
Beta Was this translation helpful? Give feedback.
-
This is absolutely awesome and super timely for the project I am working on! Will definitely keep an eye on the development of the package. Keep up the great work! |
Beta Was this translation helpful? Give feedback.
-
Great stuff. Would love to see most of this in the prism core. That would really make it the go-to solution for agentic php development. |
Beta Was this translation helpful? Give feedback.
-
Hey @grpaiva, I tried to test your package earlier today, but it doesn’t seem to be available on Packagist. And looking a bit more into your documentation, I agree with @mhphilip that it should be added to Prism core — especially considering how closely agents and tools are related logically, and with the recent opentelemetry release.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, I love Prism. Thank you so much for all the hard work on this amazing package!
TL;DR
I built a small experimental package called prism-agents on top of Prism, inspired by OpenAI's AgentsSDK.
It introduces concepts like Agents, Agent Runners, Handoffs, Guardrails, and Tracing — all designed to feel as fluent and easy to use as native Prism.
It’s still a prototype, but already works for chaining agents, building agent tools, and tracing agent runs into a database.
Would love any feedback, ideas, or if anyone finds it useful!
Long version
I’m familiar with a few libraries for building multi-agent applications in Python, like LangChain, CrewAI, and now OpenAI’s AgentsSDK. However, I’ve felt for a while that something like this was missing in our ecosystem.
So, I built a small package for use in my own projects. It’s heavily inspired by OpenAI’s AgentsSDK and uses Prism under the hood. It implements a few concepts that I find pretty useful:
I tried to design it to feel just like using Prism — using the same builder pattern and even some of the same method names — to provide a fluent and easy-to-use interface.
Usage examples:
Agent as tools
Guardrails
Tracing
I find the tracing part particularly useful. Right now, you can choose a database driver, and traces will be stored in a
prism_agent_traces
table. For convenience (mainly for myself), I’ve also created some views, inspired by OpenAI’s and LangSmith’s tracing panels:Traces table:

Trace view:

This project is still a prototype, although I’m already using it in a couple of personal projects. It’s far from production-ready. I also leveraged a lot of AI to help build it — it almost feels like it was created through "vibe coding." But I’m happy with how it's taking shape.
I’m not entirely sure why I’m sharing all this — maybe some concepts could eventually be implemented into Prism itself, or perhaps others might find it useful or want to contribute. Either way, I thought it would be worth sharing.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions