@elyracode/stack-laravel-ai 0.9.23 → 0.9.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyracode/stack-laravel-ai",
3
- "version": "0.9.23",
3
+ "version": "0.9.25",
4
4
  "description": "Elyra extension for Laravel AI SDK -- agents, sub-agents, tools, structured output, embeddings, and more",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -290,6 +290,13 @@ $response = (new ImageAnalyzer)->prompt(
290
290
  $request->file('photo'),
291
291
  ]
292
292
  );
293
+
294
+ // Bedrock: reference S3-hosted files by URI -- Bedrock fetches them
295
+ // directly, keeping large payloads out of application memory
296
+ use Laravel\Ai\Files\S3Document;
297
+
298
+ $document = new S3Document('s3://my-bucket/reports/q1.pdf', mimeType: 'application/pdf');
299
+ ai('bedrock')->text('Summarize this report.', [$document]);
293
300
  ```
294
301
 
295
302
  ## Streaming
@@ -393,6 +400,32 @@ class RandomNumberGenerator implements Tool
393
400
  }
394
401
  ```
395
402
 
403
+ ### MCP Tools
404
+
405
+ Agents can use MCP tools directly in `tools()` -- both from remote MCP servers over HTTP and from local MCP server tool classes. The framework handles schema translation, wrapping, and invocation:
406
+
407
+ ```php
408
+ use Laravel\Mcp\Client;
409
+
410
+ // Tools from a remote MCP server (spread into the array)
411
+ public function tools(): array
412
+ {
413
+ return [
414
+ ...Client::web('https://mcp.example.com')->withToken($token)->tools(),
415
+ new MyOwnTool,
416
+ ];
417
+ }
418
+
419
+ // Reuse a local MCP server tool class as an agent tool
420
+ public function tools(): array
421
+ {
422
+ return [
423
+ new CurrentWeatherTool,
424
+ new MyOwnTool,
425
+ ];
426
+ }
427
+ ```
428
+
396
429
  ### SimilaritySearch Tool
397
430
 
398
431
  For RAG -- agents search vector embeddings stored in the database:
@@ -700,6 +733,10 @@ class SalesCoach implements Agent, HasProviderOptions
700
733
 
701
734
  The method receives the current provider, useful with failover to return different options per provider.
702
735
 
736
+ ### OpenAI Zero Data Retention
737
+
738
+ Organizations with ZDR enabled on OpenAI cannot use `previous_response_id` across tool turns. Set `OPENAI_ENCRYPTED_REASONING=true` and Laravel AI switches to a fully stateless path: reasoning state travels via OpenAI's encrypted content blobs and the full conversation is sent inline on every request. No agent code changes needed.
739
+
703
740
  ## Images
704
741
 
705
742
  ```php