2.3 KiB
vibn-agent-runner Project Documentation
What it does
The vibn-agent-runner is a service responsible for executing tasks or "agents" within the Vibn ecosystem. It likely receives requests to run specific agents, manages their execution, and reports back their status or results. This service acts as a crucial component for extending Vibn's capabilities through custom or predefined agents.
API Endpoints
(Note: These are example endpoints. Please refer to the source code or API documentation for exact details.)
POST /run-agent
Initiates the execution of an agent.
- Method:
POST - URL:
/run-agent - Request Body Example:
{ "agentId": "your-agent-id", "payload": { "param1": "value1", "param2": "value2" } } - Response Body Example (Success):
{ "status": "success", "runId": "unique-run-id", "message": "Agent execution started." } - Response Body Example (Error):
{ "status": "error", "message": "Failed to start agent execution.", "details": "Error message details" }
GET /agent-status/{runId}
Retrieves the status of a running or completed agent.
- Method:
GET - URL:
/agent-status/{runId} - Response Body Example:
{ "runId": "unique-run-id", "status": "running", // or "completed", "failed" "progress": "50%", "results": {} // or actual results if completed }
How to run locally
To run the vibn-agent-runner locally, follow these steps:
-
Clone the repository:
git clone <repository-url> cd vibn-agent-runner -
Install dependencies:
npm installor
yarn install -
Configure environment variables: Copy the
.env.examplefile to.envand update the values as needed.cp .env.example .env -
Build the project (if TypeScript):
npm run buildor
yarn build -
Start the application:
npm startor
yarn start
The application should now be running, typically accessible at http://localhost:3000 (or another port specified in your environment configuration).