You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,9 +154,9 @@ echo $response->text();
154
154
155
155
## Why Atlas?
156
156
157
-
**The problem:** Prompts scattered across controllers, duplicated configurations, businesses logic tightly coupled with tools, and no consistent way to add logging, validation or even proper error handling.
157
+
**The problem:** Prompts scattered across controllers, duplicated configurations, business logic tightly coupled with tools, and no consistent way to add logging, validation or even proper error handling.
158
158
159
-
**Atlas decouples your businesses logic:**
159
+
**Atlas decouples your business logic:**
160
160
161
161
-**Agents** - AI configurations live in dedicated classes, not inline across your codebase.
162
162
-**Tools** - Business logic stays in tool classes with typed parameters. Agents call tools; tools call your services.
Copy file name to clipboardExpand all lines: docs/core-concepts/agents.md
+145-1Lines changed: 145 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -965,6 +965,148 @@ $registry->decoratorCount(); // number of registered decorators
965
965
$registry->clearDecorators(); // remove all decorators
966
966
```
967
967
968
+
## Runtime Middleware
969
+
970
+
Attach per-request middleware to agent executions without global registration. This is useful for request-specific validation, logging, or error recovery.
Runtime middleware merges with global handlers by priority. Global handlers run first (sorted by their registered priority), followed by runtime handlers (in registration order).
1021
+
1022
+
See [Runtime Middleware](/core-concepts/pipelines#runtime-middleware) for complete documentation including available events, execution order, and examples.
1023
+
1024
+
## Queue Processing
1025
+
1026
+
AgentContext supports serialization for queue-based async processing. This enables dispatching agent jobs to Laravel queues while Atlas handles only the context serialization—consumers manage all persistence.
1027
+
1028
+
### Dispatching to Queue
1029
+
1030
+
```php
1031
+
// Build context and serialize for queue transport
1032
+
$context = new AgentContext(
1033
+
variables: [
1034
+
'user_name' => $user->name
1035
+
],
1036
+
metadata: [
1037
+
'task_id' => $task->id,
1038
+
'user_id' => $user->id
1039
+
],
1040
+
);
1041
+
1042
+
// You create a job that accepts AgentContext as a constructor argument
0 commit comments