Download the PHP package multek/laravel-agno-os without Composer

On this page you can find all versions of the php package multek/laravel-agno-os. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-agno-os

Laravel Agno OS

A focused Laravel client for the Agno AgentOS 3 REST API. It generates scoped JWTs, supports AgentOS service-account/security-key tokens, and wraps the run lifecycle without coupling your application to a concrete User model.

Installation

Configure asymmetric signing. Laravel receives the private key; AgentOS receives only the matching public key:

HS256 remains available for local or legacy installations, but shares token-minting authority with AgentOS. For machine-to-machine calls, prefer a revocable agno_pat_... service-account token using AGNO_OS_AUTH_DRIVER=token and AGNO_OS_TOKEN.

On AgentOS 3, configure validation, scope enforcement, claim injection, audience verification, and user isolation together:

Usage

Run a workflow with the same options (background: true returns 202 with the run id):

Follow workflow runs the same way as agent runs: getWorkflowRun(), workflowRuns(), cancelWorkflowRun(), continueWorkflowRun() (pass step_requirements in $options) and resumeWorkflowRun().

Attach files you already hold in memory without writing them to disk:

Generate a token without making a request when a frontend or another service needs the credential:

AgentRunOptions models the AgentOS 3 runtime fields. Its extra argument accepts newly introduced form fields without waiting for a package release, but cannot override fields owned by the typed method. The client always requests non-streaming JSON in runAgent(), runWorkflow(), and continueRun().

AgentOS answers failed runs with HTTP 200 and status: "ERROR" or "CANCELLED", putting the raw provider error in content. runAgent(), runWorkflow(), continueRun(), continueWorkflowRun() and resumeWorkflowRun() throw Multek\AgnoOS\Exceptions\AgentRunFailed in that case, so the error text never reaches end users as a reply. The exception exposes uri, runId, status, content (for logs only) and response. HTTP-level failures still throw RequestException as before.

Streaming runs with resume (queued jobs)

runAgent() blocks until the run ends. If your HTTP timeout or the job's own timeout fires first, AgentOS keeps running the agent, but you never learn its run_id. A retry can then only post the message again, which starts a second run on the same session: duplicated side effects, and the turn is paid twice.

streamAgentRun() starts the run with stream=true and background=true. In that mode the run lives in a detached AgentOS task that survives a dropped connection. The run_id arrives in the first event, usually about 1 s in, and onRunStarted receives it once. Store it, and on a retry reattach with resumeAgentRun() instead of starting over:

Both methods return the final run as a Response shaped like runAgent()'s (run_id, session_id, status, content, metrics, ...), and both apply the same status check: a run that ends as ERROR or CANCELLED throws AgentRunFailed, while a PAUSED run is returned.

With more than one AgentOS instance, each instance buffers run events in its own memory by default. A resume that lands on another instance then returns at once with 0 events, and this client throws AgentRunStreamFailed. Share the buffer through Redis in AgentOS:

Extensibility

Use withTimeout(90) (or withTimeout(90, connectTimeout: 5)) to override agno-os.http.timeout for one call, e.g. to stay under a queued job's own timeout.

The package has three layers. Use typed methods for normal application code, extra for future run fields, and rawRequest() when complete HTTP control is required:

rawRequest() passes Laravel HTTP client / Guzzle options through unchanged, including query, json, form_params, multipart, body, headers, certificates, and transport settings. withHeader(), withHeaders(), withToken(), withTimeout(), and withHttpOptions() return cloned clients, so request-specific customization does not mutate the singleton used by later calls.

The regular convenience API also exposes:

JWT sub is emitted as a string and becomes the trusted AgentOS user identity when user isolation is enabled. User tokens have no default scopes; grant resource scopes such as agents:support:run explicitly. Profile claims such as email and name are opt-in through agno-os.auth.identity_claims because JWT payloads are readable by their holder.

Values supplied in AgentRunOptions are client-controlled runtime context. Do not use dependencies, knowledge_filters, metadata, or factory_input for authorization or tenant isolation. Put identifiers and roles in signed claims, extract them with AuthMiddleware, and use ctx.trusted.claims / ctx.trusted.scopes inside AgentOS factories and tools.

Admin token issuance is disabled by default. If an explicitly authorized server-side flow needs it, set AGNO_OS_ALLOW_ADMIN_TOKENS=true and call forAdmin() only after enforcing the application's own policy. Audience validation is required by this package unless AGNO_OS_JWT_REQUIRE_AUDIENCE=false is set deliberately.

Testing

Agent runs stream through streamAgentRun() and resumeAgentRun() (see above). For workflows, resumeWorkflowRun() still buffers the event stream until the run ends. To consume other event streams live, use the escape hatch with Guzzle's stream option and read the body line by line:


All versions of laravel-agno-os with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
firebase/php-jwt Version ^7.1
illuminate/contracts Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package multek/laravel-agno-os contains the following files

Loading the files please wait ...