Download the PHP package odiseoteam/ai-conversational-agent-bundle without Composer

On this page you can find all versions of the php package odiseoteam/ai-conversational-agent-bundle. 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 ai-conversational-agent-bundle

AI Conversational Agent Bundle

Version Downloads Build status Symfony versions PHP version


A vertical-agnostic core for conversational agents in Symfony: the turn loop, tool execution, gates, sessions, streaming, memory, budgets and evals. Verticals (a shopping assistant, an institutional assistant) are built on top of it as capabilities.

It ports the commerce_common layer of Anthropic's commerce-agents reference to PHP; nothing in it knows about commerce.

What you get

Concepts

Installation

Register Odiseo\AiConversationalAgentBundle\Bridge\Symfony\OdiseoAiConversationalAgentBundle and configure odiseo_ai_conversational_agent (bin/console config:dump-reference odiseo_ai_conversational_agent): identity, models, budgets, memory, fence, sessions, conversations, skills and evals directories.

For Claude, install symfony/ai-bundle and symfony/ai-anthropic-platform, register Symfony\AI\AiBundle\AiBundle (Flex does it) and configure the platform; the bundle wraps its ai.platform.anthropic service:

Storage

Sessions, transcripts, memory facts and the spend ledger persist through Doctrine ORM, on any platform it supports. The stores work against the four interfaces in Bridge\Doctrine\Model (ConversationInterface, MessageInterface, MemoryFactInterface, SpendEntryInterface) and never name a concrete class. Beside each one is a mapped superclass implementing it, with its XML mapping; the host extends that, names the table and adds whatever it relates to, and points the bundle at its classes:

A conversation the core creates carries the session id, the principal and the state document. Anything else the host's schema relates it to it sets through a ConversationInitializer, called on the new entity before it is persisted, while the request still knows who is asking:

Point the ConversationInitializer alias at it and the core will call it; unset, nothing happens.

Services

Every service is registered as odiseo_ai_conversational_agent.* with explicit arguments. The classes and ports a host uses are aliases, and a host replaces a port by redefining its alias: ModelProvider, ContextProvider, PrincipalResolver, TurnHook, ConsoleEnvironment, ConversationInitializer, SessionStore, MemoryStore and SpendLedger. The Anthropic adapter is registered only when symfony/ai-anthropic-platform is installed, and it needs the AI bundle's ai.platform.anthropic; without them, alias ModelProvider to your own provider. Capabilities are collected by the odiseo_ai_conversational_agent.capability tag.

doctrine:migrations:diff then produces the schema: the mappings ship here, the migration belongs to the application that runs them. Without doctrine/orm (or with orm.enabled: false) the stores are in memory and nothing outlives the process.

Retention

Two clocks. sessions.retention_days (30) is how long a session is served after its last activity; past it the widget starts a new one, but the conversation stays for the host to read. conversations.retention_days (180) is how long it is kept; memory.retention_days (null) does the same for memory facts. Null keeps them. bin/console agent:prune applies both, dropping the conversations with their messages and spend; --dry-run only counts. Run it from a daily cron.

Compatibility

Bundle PHP Symfony Database Model
0.x 8.2 · 8.3 · 8.4 7.3 · 7.4 · 8.x Any Doctrine ORM platform; CI covers SQLite, MySQL and PostgreSQL Claude, through Symfony AI; or your own ModelProvider

The bundle is in 0.x: minor versions may break the API until 1.0.

Development

Deptrac keeps the agent free of Symfony and Doctrine: they are reached only through Bridge/ and Provider/Anthropic/.

The suite runs on SQLite in memory and needs no server. AGENT_TEST_DATABASE_URL points the ORM tests at a real one, which is what CI does for MySQL and PostgreSQL:

Demo

Want a live walkthrough of this bundle? Get in touch, or see what else we build at odiseo.io.

Credits

This bundle is maintained by Odiseo. Want us to help you build an agent on it, or with any Symfony or Sylius project? Get in touch.

License

MIT.


All versions of ai-conversational-agent-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-intl Version *
ext-mbstring Version *
psr/log Version ^3.0
symfony/ai-platform Version ^0.13
symfony/config Version ^7.3|^8.0
symfony/console Version ^7.3|^8.0
symfony/dependency-injection Version ^7.3|^8.0
symfony/event-dispatcher Version ^7.3|^8.0
symfony/http-foundation Version ^7.3|^8.0
symfony/http-kernel Version ^7.3|^8.0
symfony/rate-limiter Version ^7.3|^8.0
symfony/yaml Version ^7.3|^8.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 odiseoteam/ai-conversational-agent-bundle contains the following files

Loading the files please wait ...