Rename project to "open-web-agent-rs" across all files
Updated project name from "web-agent-rs" to "open-web-agent-rs" in configuration files, documentation, and source code. This change ensures consistency across the project and reflects the new naming convention. Removed unused entries from `.gitignore` and adjusted Docker commands accordingly.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,8 +1,6 @@
|
|||||||
/target
|
/target
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/.idea
|
/.idea
|
||||||
prompt.md
|
|
||||||
todo
|
|
||||||
chrome
|
chrome
|
||||||
stream_store
|
stream_store
|
||||||
data/
|
data/
|
||||||
|
54
Cargo.lock
generated
54
Cargo.lock
generated
@@ -624,6 +624,33 @@ version = "1.20.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
|
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "open-web-agent-rs"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"axum",
|
||||||
|
"base64",
|
||||||
|
"bytes",
|
||||||
|
"dotenv",
|
||||||
|
"fips204",
|
||||||
|
"futures",
|
||||||
|
"http",
|
||||||
|
"lazy_static",
|
||||||
|
"rust-embed",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"shell-escape",
|
||||||
|
"sled",
|
||||||
|
"tokio",
|
||||||
|
"tokio-stream",
|
||||||
|
"tokio-util",
|
||||||
|
"tower-http",
|
||||||
|
"tracing",
|
||||||
|
"tracing-subscriber",
|
||||||
|
"uuid",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "overload"
|
name = "overload"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
@@ -1239,33 +1266,6 @@ version = "0.11.0+wasi-snapshot-preview1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "web-agent-rs"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"axum",
|
|
||||||
"base64",
|
|
||||||
"bytes",
|
|
||||||
"dotenv",
|
|
||||||
"fips204",
|
|
||||||
"futures",
|
|
||||||
"http",
|
|
||||||
"lazy_static",
|
|
||||||
"rust-embed",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
"shell-escape",
|
|
||||||
"sled",
|
|
||||||
"tokio",
|
|
||||||
"tokio-stream",
|
|
||||||
"tokio-util",
|
|
||||||
"tower-http",
|
|
||||||
"tracing",
|
|
||||||
"tracing-subscriber",
|
|
||||||
"uuid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "winapi"
|
name = "winapi"
|
||||||
version = "0.3.9"
|
version = "0.3.9"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "web-agent-rs"
|
name = "open-web-agent-rs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Environment Variables
|
## Environment Variables
|
||||||
|
|
||||||
web-agent-rs uses environment variables for configuration. These can be set in a `.env` file in the root directory or directly in your environment.
|
open-web-agent-rs uses environment variables for configuration. These can be set in a `.env` file in the root directory or directly in your environment.
|
||||||
|
|
||||||
### Required Environment Variables
|
### Required Environment Variables
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# web-agent-rs Documentation
|
# open-web-agent-rs Documentation
|
||||||
|
|
||||||
Welcome to the documentation for web-agent-rs, a GenAIScript host for integration into conversational AI applications.
|
Welcome to the documentation for open-web-agent-rs, a GenAIScript host for integration into conversational AI applications.
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ Welcome to the documentation for web-agent-rs, a GenAIScript host for integratio
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
web-agent-rs is a server that hosts GenAIScript agents for integration into conversational AI applications. It provides a simple API for creating and consuming stream resources that execute various agents to perform tasks like web search, news search, image generation, and web scraping.
|
open-web-agent-rs is a server that hosts GenAIScript agents for integration into conversational AI applications. It provides a simple API for creating and consuming stream resources that execute various agents to perform tasks like web search, news search, image generation, and web scraping.
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ The application is built with Rust using the Axum web framework. It uses GenAISc
|
|||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
To get started with web-agent-rs, follow these steps:
|
To get started with open-web-agent-rs, follow these steps:
|
||||||
|
|
||||||
1. Read the [Installation Guide](./installation.md) to set up the project
|
1. Read the [Installation Guide](./installation.md) to set up the project
|
||||||
2. Configure the application using the [Configuration Guide](./configuration.md)
|
2. Configure the application using the [Configuration Guide](./configuration.md)
|
||||||
@@ -42,4 +42,4 @@ Please note that this project has not undergone a formal security assessment. Yo
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Contributions to web-agent-rs are welcome! Please feel free to submit issues and pull requests to improve the project.
|
Contributions to open-web-agent-rs are welcome! Please feel free to submit issues and pull requests to improve the project.
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This document explains how input works for agents in the web-agent-rs project. Understanding how input is processed is essential for creating effective agents and integrating them with client applications.
|
This document explains how input works for agents in the open-web-agent-rs project. Understanding how input is processed is essential for creating effective agents and integrating them with client applications.
|
||||||
|
|
||||||
## Input Flow
|
## Input Flow
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
Before installing web-agent-rs, ensure you have the following prerequisites:
|
Before installing open-open-web-agent-rs, ensure you have the following prerequisites:
|
||||||
|
|
||||||
- [Rust](https://www.rust-lang.org/tools/install) (latest stable version)
|
- [Rust](https://www.rust-lang.org/tools/install) (latest stable version)
|
||||||
- [Node.js](https://nodejs.org/) (for GenAIScript)
|
- [Node.js](https://nodejs.org/) (for GenAIScript)
|
||||||
@@ -52,12 +52,12 @@ You can also run the application using Docker:
|
|||||||
|
|
||||||
1. Build the Docker image:
|
1. Build the Docker image:
|
||||||
```bash
|
```bash
|
||||||
docker build -t web-agent-rs -f Dockerfile .
|
docker build -t open-web-agent-rs -f <Local|Remote>.Dockerfile .
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Run the container:
|
2. Run the container:
|
||||||
```bash
|
```bash
|
||||||
docker run -p 3006:3006 --env-file .env web-agent-rs
|
docker run -p 3006:3006 --env-file .env open-web-agent-rs
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can use Docker Compose:
|
Alternatively, you can use Docker Compose:
|
||||||
|
@@ -4,7 +4,7 @@ This document describes how the stream data is formatted as it comes across the
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
The web-agent-rs uses Server-Sent Events (SSE) to stream data from agents to clients. This allows for real-time updates as the agent processes the request and generates responses.
|
The open-web-agent-rs uses Server-Sent Events (SSE) to stream data from agents to clients. This allows for real-time updates as the agent processes the request and generates responses.
|
||||||
|
|
||||||
## Stream Format
|
## Stream Format
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This document outlines the token-based authentication system used in web-agent-rs. The system uses FIPS204 signatures to
|
This document outlines the token-based authentication system used in open-web-agent-rs. The system uses FIPS204 signatures to
|
||||||
generate secure session tokens containing user data.
|
generate secure session tokens containing user data.
|
||||||
|
|
||||||
## Core Components
|
## Core Components
|
||||||
|
2
fly.toml
2
fly.toml
@@ -1,4 +1,4 @@
|
|||||||
app = "web-agent-rs"
|
app = "open-web-agent-rs"
|
||||||
primary_region = "iad"
|
primary_region = "iad"
|
||||||
|
|
||||||
[deploy]
|
[deploy]
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "web-agent-rs",
|
"name": "open-web-agent-rs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": ["packages/*"],
|
"workspaces": ["packages/*"],
|
||||||
"private": true,
|
"private": true,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@web-agent-rs/genaiscript-rust-shim",
|
"name": "@open-web-agent-rs/genaiscript-rust-shim",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@web-agent-rs/genaiscript",
|
"name": "@open-web-agent-rs/genaiscript",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": ["packages/*"],
|
"workspaces": ["packages/*"],
|
||||||
"private": true,
|
"private": true,
|
||||||
@@ -9,20 +9,13 @@
|
|||||||
"shim:ai:search": "pnpm build && ./dist/shim.js --file=genaisrc/search.genai.mts USER_INPUT=\"Who won the 2024 presidential election?\"\n",
|
"shim:ai:search": "pnpm build && ./dist/shim.js --file=genaisrc/search.genai.mts USER_INPUT=\"Who won the 2024 presidential election?\"\n",
|
||||||
"ai:news": "genaiscript run genaisrc/news-search.genai.mts --vars USER_INPUT='What are the latest updates and developments in the Ukraine war?'",
|
"ai:news": "genaiscript run genaisrc/news-search.genai.mts --vars USER_INPUT='What are the latest updates and developments in the Ukraine war?'",
|
||||||
"ai:url:read": "genaiscript run genaisrc/web-scrape.genai.mts --vars USER_INPUT='{\"url\":\"https://geoff.seemueller.io/about\",\"query\":\"Describe the details of the page.\", \"action\": \"read\"}'",
|
"ai:url:read": "genaiscript run genaisrc/web-scrape.genai.mts --vars USER_INPUT='{\"url\":\"https://geoff.seemueller.io/about\",\"query\":\"Describe the details of the page.\", \"action\": \"read\"}'",
|
||||||
"ai:url:scrape": "npx genaiscript run genaisrc/web-scrape.genai.mts --vars USER_INPUT='{\"url\":\"https://www.time4learning.com/homeschool-curriculum/high-school/eleventh-grade/math.html\",\"query\":\"What is on this page?\", \"action\": \"scrape\"}'",
|
"ai:url:scrape": "npx genaiscript run genaisrc/web-scrape.genai.mts --vars USER_INPUT='{\"url\":\"https://www.time4learning.com/homeschool-curriculum/high-school/eleventh-grade/math.html\",\"query\":\"What is on this page?\", \"action\": \"scrape\"}'"
|
||||||
"crypto:quote": "npx genaiscript run genaisrc/finance-query.genai.mts --vars USER_INPUT='Get a quote for BTC'",
|
|
||||||
"crypto:news": "npx genaiscript run genaisrc/finance-query.genai.mts --vars USER_INPUT='What is the news for Bitcoin?'",
|
|
||||||
"crypto:overview": "npx genaiscript run genaisrc/finance-query.genai.mts --vars USER_INPUT='What are the trending symbols in the market?'"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@agentic/perigon": "^7.2.0",
|
|
||||||
"@agentic/searxng": "7.5.3",
|
"@agentic/searxng": "7.5.3",
|
||||||
"@kevinwatt/mcp-server-searxng": "^0.3.9",
|
|
||||||
"@types/node": "^22.10.2",
|
"@types/node": "^22.10.2",
|
||||||
"genaiscript": "^1.95.1",
|
"genaiscript": "^1.95.1",
|
||||||
"happy-dom": "^16.0.1",
|
"happy-dom": "^16.0.1",
|
||||||
"@web-agent-rs/perigon": "workspace:*",
|
|
||||||
"@web-agent-rs/core": "workspace:*",
|
|
||||||
"ky": "^1.8.0"
|
"ky": "^1.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,7 +18,7 @@ use tokio::sync::Mutex;
|
|||||||
// init sled
|
// init sled
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref DB: Arc<Mutex<sled::Db>> = Arc::new(Mutex::new(
|
static ref DB: Arc<Mutex<sled::Db>> = Arc::new(Mutex::new(
|
||||||
sled::open("./web-agent-rs/db/stream_store").expect("Failed to open sled database")
|
sled::open("./open-web-agent-rs/db/stream_store").expect("Failed to open sled database")
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user