Download the PHP package agent-state-language/asl without Composer
On this page you can find all versions of the php package agent-state-language/asl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download agent-state-language/asl
More information about agent-state-language/asl
Files in agent-state-language/asl
Download agent-state-language/asl
More information about agent-state-language/asl
Files in agent-state-language/asl
Vendor agent-state-language
Package asl
Short Description A JSON-based domain-specific language for defining configurable, composable AI agent workflows
License MIT
Package asl
Short Description A JSON-based domain-specific language for defining configurable, composable AI agent workflows
License MIT
Please rate this library. Is it a good library?
Informations about the package asl
Agent State Language (ASL)
A JSON-based domain-specific language for defining configurable, composable AI agent workflows.
Overview
Agent State Language extends the concepts of AWS Step Functions' Amazon States Language with agent-native primitives for:
- 🧠 Memory & Context - Persistent memory, sliding context windows
- 🔧 Tool Orchestration - Permissions, rate limits, sandboxing
- 👤 Human-in-the-Loop - Approval gates, feedback collection
- 💬 Multi-Agent Communication - Debates, delegation, consensus
- 💰 Cost Management - Token budgets, model fallbacks
- 🛡️ Guardrails - Input/output validation, content moderation
- 📊 Observability - Reasoning traces, execution logs
Quick Start
Installation
Define a Workflow
Create workflow.asl.json:
Run It
State Types
Core States (AWS ASL Compatible)
| State | Description |
|---|---|
Task |
Execute an agent with parameters |
Choice |
Conditional branching |
Map |
Iterate over arrays |
Parallel |
Execute branches concurrently |
Pass |
Transform data |
Wait |
Pause execution |
Succeed |
End successfully |
Fail |
End with failure |
Agent-Native States (ASL Extensions)
| State | Description |
|---|---|
Approval |
Human-in-the-loop gate |
Debate |
Multi-agent deliberation |
Checkpoint |
Save/resume point |
Agent-Native Extensions
Memory Block
Context Block
Tools Block
Budget Block
Approval State
Debate State
Documentation
- 📖 Specification - Complete language specification
- 🚀 Getting Started - First steps guide
- 📚 Tutorials - Step-by-step learning path
- 📘 Guides - Best practices and patterns
- 📋 Reference - API and syntax reference
Examples
| Example | Description |
|---|---|
| Task Breakdown | Recursive task decomposition |
| Code Review | Multi-agent review with approval |
| Research Assistant | Web search and synthesis |
| Customer Support | Intent routing and escalation |
| Content Pipeline | Generation and moderation |
Tutorial Path
Core Tutorials
- Hello World - Your first workflow
- Simple Workflow - Sequential states
- Conditional Logic - Choice states
- Parallel Execution - Concurrent branches
- Recursive Workflows - Map iterations
- Memory & Context - State persistence
- Tool Orchestration - Tool permissions
- Human Approval - Human-in-the-loop
- Multi-Agent Debate - Agent collaboration
- Cost Management - Budget controls
- Error Handling - Retry and catch
- Building Skills - Composition patterns
claude-php-agent Integration
- Integrating Claude PHP Agent - Wrapper pattern for ASL
- Tool-Enabled Agent Workflows - Tools in workflows
- Multi-Agent Orchestration - Parallel agent execution
- Loop Strategies in Workflows - ReAct, Reflection, Plan-Execute
- RAG-Enhanced Workflows - Knowledge-augmented agents
Requirements
- PHP 8.1 or higher
- Composer
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please read our Contributing Guide for details.
Related Projects
- claude-php-agent - PHP agent framework with ReAct, Reflection, and Plan-Execute loops
- Claude PHP SDK - Low-level PHP SDK for Claude API
- AWS Step Functions - Inspiration for ASL
Integration with claude-php-agent
ASL can be combined with claude-php-agent for advanced AI agent workflows:
See Tutorial 13: Integrating Claude PHP Agent for complete integration guide.
All versions of asl with dependencies
PHP Build Version
Package Version
The package agent-state-language/asl contains the following files
Loading the files please wait ...