LarAgent v0.5 Preview: Smarter Streaming, Better Control, and New OpenAI Parameters!

LarAgent keeps evolving to give Laravel developers the most reliable, configurable, and developer-friendly AI agent experience.

In this upcoming release, we're tackling streaming reliability, adding advanced OpenAI tuning parameters, and giving you fine-grained control over tool selection.

Letโ€™s dig in ๐Ÿ‘‡


๐Ÿ”น Reliable Streaming with Usage Tracking

Streaming responses just got smarter.

Weโ€™ve improved how LarAgent handles streamed responses by:

  • โœ… Fixing a bug that duplicated the final chunk of streamed messages
  • โœ… Making sure usage statistics are updated correctly โ€” even during streaming
  • โœ… Ensuring consistency between streamed and non-streamed behavior

This means no more inaccurate token counts and no more broken UI experiences during long responses.


๐Ÿ”น Support for OpenAI Parameters

You now have full access to fine-tuning parameters available in OpenAIโ€™s API:

  • n โ€“ number of completions to generate
  • top_p โ€“ nucleus sampling
  • frequency_penalty โ€“ reduce repetition
  • presence_penalty โ€“ encourage topic diversity

These are now:

  • โœ… Included in the LarAgent config
  • โœ… Passed from provider defaults
  • โœ… Fully overrideable per-agent or per-request

Perfect for developers who want precise control over generation behavior. ๐Ÿ”ฌ


๐Ÿ”น Tool Choice Configuration in Agents

Use tools your way โ€” with precision.

Weโ€™ve added new methods in your Agent to let you control how the LLM selects and uses tools:

$this->toolAuto();      // Default behavior (model decides)
$this->toolNone();      // Disable tool use
$this->toolRequired();  // Only respond with a tool
$this->forceTool('myTool'); // Force a specific tool
$this->getToolChoice(); // Get current setting

This makes your agents more predictable, testable, and production-safe when using tools for function calling, external APIs, or DB access.


๐Ÿงช These features are already merged and will be released in v0.5 very soon.

LarAgent is on a mission to make AI development in Laravel not just possible โ€” but powerful, clean, and fun.

Stay tuned and star the repo if you havenโ€™t already โ€” weโ€™re just getting started.
Happy building! ๐Ÿš€

Read more

LarAgent v1.0 - Production-Ready AI Agents for Laravel

LarAgent v1.0 - Production-Ready AI Agents for Laravel

This major release takes LarAgent to the next level - focused on structured responses, reliable context management, richer tooling, and production-grade agent behavior. Designed for both development teams and business applications where predictability, observability, and scalability matter ๐Ÿ› ๏ธ Structured Outputs with DataModel LarAgent introduces DataModel-based structured responses, moving beyond arrays to

By Revaz Gh.