Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Agents Laravel Package

llm-agents/agents

A Laravel package for building LLM-powered agents with tool calling, prompt management, and structured multi-step workflows. Integrates AI agents into PHP apps through a clean, framework-native API for automating tasks and composing agent pipelines.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Prototyping agentic features without a Python service: lets a PHP/Laravel team validate autonomous-agent workflows (tool use, multi-step reasoning, prompt orchestration) inside the existing stack rather than standing up a separate Python/Node service — useful evidence for the build-vs-buy and build-where decisions.
  • Roadmap scoping for AI features: a low-cost way to demo what "agentic" looks like in the product (support triage, content drafting, internal research assistants, structured data extraction) so stakeholders can react to a working prototype instead of a slide. The new response formatting capability (1.7.0) directly supports the structured-extraction and JSON-output use cases that come up most often in roadmap conversations, and prompt context values make per-tenant / per-user / per-request prompt variants cheap to prototype — the shape most internal-tool and personalization ideas take.
  • Build vs. buy input: if the prototype proves the use case, this package's abstractions become a reference for an internal agent layer; if it stalls, you've learned that cheaply and can evaluate managed platforms (cloud LLM agent APIs) with clearer requirements.
  • Architecture decision on LLM provider coupling: the SDK's provider abstraction is worth evaluating as a hedge against picking one vendor's SDK directly — relevant if procurement or cost modelling requires multi-provider flexibility.
  • Observability and cost-control decisions: the new MetadataAwareInterface (1.7.0) is a small but pointed signal that the library expects to be instrumented — metadata can carry trace IDs, tenant IDs, or cost tags through an agent run. Good hook for the cost/latency dashboards you'll need to justify AI spend; not a substitute for real tracing.
  • Use cases that fit the current maturity: internal tools, back-office automation, prototypes, hackathon/MVP work, and low-traffic assistant features. Poor fit for customer-facing, high-volume, or compliance-sensitive paths at this stage.
  • Team capability decision: adopting it forces the team to own prompt versioning, retries, cost controls, and evaluation — decisions that surface early and inform hiring/training plans.

When to Consider This Package

Consider it when all of the following hold:

  • The team is PHP/Laravel-native and does not want to operate a second runtime for an early-stage AI experiment.
  • The work is a spike, internal tool, or MVP, where a small dependency footprint and fast iteration matter more than long-term support guarantees.
  • You need basic agent primitives (prompt orchestration, tool/function calling, multi-step loops, structured/format-constrained responses) and are willing to wrap them behind your own interface so the dependency stays replaceable.
  • Someone on the team can read the source and vendor/patch it if needed — MIT license makes that legally simple.
  • You have explicit budget/observability controls for LLM spend from day one.

Look elsewhere (or build a thin in-house layer) when:

  • Production SLAs or long-lived support matter. The picture improved slightly with 1.7.0 — the first release since September 2024 — which suggests the project is not abandoned. But the rest of the profile is unchanged: 169 stars, 0 dependents, low overall score, and one small feature release is a resumption, not a track record. Treat it as maintenance-risk-tolerant tooling, not a platform bet.
  • The feature is customer-facing, regulated, or high-volume — you need mature tracing, evals, guardrails, and rate-limit handling that a young SDK is unlikely to provide. Note that 1.7.0's formatting feature produces shape, not validation; guardrails and schema enforcement remain your responsibility.
  • The ecosystem has moved on: evaluate actively maintained PHP options (LLPhant, Prism, Symfony AI components, official provider SDKs) and managed agent platforms alongside it before committing.
  • You need framework integration guarantees (Laravel service providers, queues, testing fakes) — verify these exist rather than assume them. 1.7.0 adds no Laravel-specific surface.

Adoption gate: run a two-week timeboxed spike, pin the version (1.7.0 or later), wrap every call behind an internal AgentClient interface, and require a written exit plan (how to swap providers or replace the SDK). If the spike needs more than a day of workarounds, stop. Re-check release cadence before any decision to extend beyond the spike — one release does not change the support posture.

How to Pitch It (Stakeholders)

For executives (one paragraph): This is a small, MIT-licensed PHP library that lets our Laravel team prototype AI "agent" features — software that can take multi-step actions with a language model — without adding a new language or service to our stack. The strategic value is cheap learning: it lets us test agentic use cases in weeks rather than quarters and gives us real evidence for build-vs-buy decisions on AI. The latest release (1.7.0) shows the project is still moving, adding structured-response formatting, prompt context management, and metadata hooks for instrumentation — incremental, but on the axes that matter for prototyping. The risk is maturity: adoption remains modest and the project had a long gap in releases before this one, so the recommendation is a timeboxed, internally-scoped pilot only, with the library isolated behind our own interface so it can be replaced without rework. No customer-facing exposure and no long-term commitment at this stage.

For engineering (summary): Use it as a scaffold, not a foundation. 1.7.0 adds prompt context values, response formatting, and MetadataAwareInterface; none are breaking, all are useful for internal-tool work — treat formatting as presentation, not validation, and validate every structured response against your own schema. Pin the version, wrap it behind an internal abstraction, instrument token cost and latency from the first commit (metadata is a convenient carrier for trace/tenant IDs), and keep prompts in version control. Treat the dependency as disposable; the value we capture is the validated use case and the interface design, both of which survive if we later move to a maintained library or a managed platform. Success criteria for the pilot: a working internal demo, a measured cost-per-task, and a documented path to replace the SDK in under a sprint.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names