Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
agent-protocol
Advanced tools
This was developed with the following dependencies:
During development, you should be able to simply import the Agent from src/index.ts
and run using ts-node
.
The minimal example is below. This creates a simple agent which performs no tasks itself, but does create the agent API.
import Agent from "@e2b/agent-sdk";
import { StepResult, StepHandler } from "@e2b/agent-sdk";
const taskHandler = async (taskInput: any | null): Promise<StepHandler> => {
console.log(`task: ${taskInput}`);
const stepHandler = async (stepInput: any | null): Promise<StepResult> => {
console.log(`step: ${stepInput}`);
return {
output: stepInput,
};
};
return stepHandler;
};
const agent = new Agent(taskHandler).start();
Run ts-node
on the example above and you should see the following:
Agent listening at http://localhost:8000
You can then experiment with the SDK via CURL, as the examples below:
$ curl -X POST -H "Content-Type: application/json" -d '{ "input": "This is a test of the emergency broadcast system." }' http://localhost:8000/agent/tasks # Create a new Task for the agent
$ curl -X GET -H "Content-Type: application/json" http://localhost:8000/agent/tasks # Get tasks
Feel free to ask questions on our Discord, or sign up for the newsletter for updates!
FAQs
API for interacting with Agent
The npm package agent-protocol receives a total of 69 weekly downloads. As such, agent-protocol popularity was classified as not popular.
We found that agent-protocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.