Download the PHP package wiserwebsolutions/laravel-lobbyist-ai without Composer

On this page you can find all versions of the php package wiserwebsolutions/laravel-lobbyist-ai. 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-lobbyist-ai

Laravel Lobbyist — AI

An optional AI layer for wiserwebsolutions/laravel-lobbyist, built on the first-party Laravel AI SDK (laravel/ai). It summarizes and classifies bills, answers natural-language questions with a tool-using agent, and provides semantic search over an indexed bill corpus — all on top of the existing Lobbyist::state(...) driver surface.

It is a consumer of the Lobbyist drivers (not a driver itself), so core stays dependency-free.

Installation

Requires Laravel 13 (for laravel/ai) and at least one Lobbyist driver (laravel-lobbyist-legiscan and/or laravel-palegis).

Configuration

By default this package defers entirely to your laravel/ai configuration (config/ai.php) — text (summaries, classification, Q&A) uses ai.default, embeddings use ai.default_for_embeddings, and each uses that provider's own default model. Set up laravel/ai as normal and this package follows suit.

To point this package at a different provider than the rest of your app (without changing your ai.default), override it here:

See config/lobbyist-ai.php for cache and RAG options.

Usage

Semantic search / RAG

Index a state's bills (incremental — unchanged bills are skipped):

Embeddings are stored via a pluggable EmbeddingStore. The default database store keeps vectors in your default database connection and scores cosine similarity in PHP — no Postgres/pgvector required. For large corpora, bind a vector-native implementation of WiserWebSolutions\Lobbyist\Ai\Contracts\EmbeddingStore instead.

Capabilities & the driver contract

The Q&A agent's tools guard every call with the driver's supports(Capability) check, so it degrades honestly: if a state's driver can't list votes or look up a bill by id, the tool says so rather than inventing an answer.

Testing

Tests use the Laravel AI SDK's fakes (Ai::fakeAgent, Ai::fakeEmbeddings) and a fake Lobbyist driver, so they never hit the network:

License

MIT © Daniel Wiser


All versions of laravel-lobbyist-ai with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/support Version ^13.0
illuminate/database Version ^13.0
laravel/ai Version *
spatie/laravel-data Version ^4.20
wiserwebsolutions/laravel-lobbyist Version *
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 wiserwebsolutions/laravel-lobbyist-ai contains the following files

Loading the files please wait ...