# Agent Server for lavague
## Setup LaVague Driver Server
Uses WebSockets to provide LaVague features to Agents.
```shell
pip install lavague-core lavague-server
```
```python
from lavague.core import WorldModel, ActionEngine
from lavague.core.agents import WebAgent
from lavague.server.driver import DriverServer
from lavague.server import AgentServer, AgentSession
def create_agent(session: AgentSession):
world_model = WorldModel()
driver = DriverServer(session)
action_engine = ActionEngine(driver)
return WebAgent(world_model, action_engine)
server = AgentServer(create_agent)
server.serve()
```
Raw data
{
"_id": null,
"home_page": "https://lavague.ai",
"name": "lavague-server",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0.0,>=3.10.0",
"maintainer_email": null,
"keywords": "LAM, action, automation, LLM, NLP, RAG, selenium, selenium",
"author": "lavague-ai",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/91/5d/17be31ada1b89e07cd98269b35bba0d62872958c6af1ce89f9a78a68d1a0/lavague_server-0.0.4.tar.gz",
"platform": null,
"description": "# Agent Server for lavague\n\n## Setup LaVague Driver Server\n\nUses WebSockets to provide LaVague features to Agents.\n\n```shell\npip install lavague-core lavague-server\n```\n\n```python\nfrom lavague.core import WorldModel, ActionEngine\nfrom lavague.core.agents import WebAgent\nfrom lavague.server.driver import DriverServer\nfrom lavague.server import AgentServer, AgentSession\n\ndef create_agent(session: AgentSession):\n world_model = WorldModel()\n driver = DriverServer(session)\n action_engine = ActionEngine(driver)\n return WebAgent(world_model, action_engine)\n\nserver = AgentServer(create_agent)\nserver.serve()\n```",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Server for Lavague agents",
"version": "0.0.4",
"project_urls": {
"Documentation": "https://docs.lavague.ai/en/latest/",
"Homepage": "https://lavague.ai",
"Repository": "https://github.com/lavague-ai/LaVague/"
},
"split_keywords": [
"lam",
" action",
" automation",
" llm",
" nlp",
" rag",
" selenium",
" selenium"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c0f80d143d531764365299b69b6fa022eb8e484e752f3ef5ad8370893c075d64",
"md5": "efca673cea859830b367f2cda16adc60",
"sha256": "aa8e099cb244224621954ecfd805db9207333efbbcc33edb67b76e6b60376cfb"
},
"downloads": -1,
"filename": "lavague_server-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "efca673cea859830b367f2cda16adc60",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0.0,>=3.10.0",
"size": 11091,
"upload_time": "2024-08-05T06:38:25",
"upload_time_iso_8601": "2024-08-05T06:38:25.530339Z",
"url": "https://files.pythonhosted.org/packages/c0/f8/0d143d531764365299b69b6fa022eb8e484e752f3ef5ad8370893c075d64/lavague_server-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "915d17be31ada1b89e07cd98269b35bba0d62872958c6af1ce89f9a78a68d1a0",
"md5": "0dbe4f6b7170286f309089cb7590f6fe",
"sha256": "2c24360bcd192f1e1c09f16bdbbb50f139424fa71533a2911b4b6bdae76c4fef"
},
"downloads": -1,
"filename": "lavague_server-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "0dbe4f6b7170286f309089cb7590f6fe",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0.0,>=3.10.0",
"size": 9347,
"upload_time": "2024-08-05T06:38:27",
"upload_time_iso_8601": "2024-08-05T06:38:27.209000Z",
"url": "https://files.pythonhosted.org/packages/91/5d/17be31ada1b89e07cd98269b35bba0d62872958c6af1ce89f9a78a68d1a0/lavague_server-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-05 06:38:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lavague-ai",
"github_project": "LaVague",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "lavague-server"
}