@artinet/create-quick-agent
Version:
A tool to create a Quick-Agent project via the CLI.
28 lines (25 loc) • 525 B
JavaScript
import { testDeployment } from "@artinet/sdk";
import { deployment } from "./lib/deployment.js";
const testTask = {
method: "tasks/send",
params: {
id: `task-${Date.now()}`,
message: {
role: "user",
parts: [
{
type: "text",
text: "Hello, how are you?",
},
],
},
},
};
for await (const result of testDeployment(deployment, [testTask])) {
console.log(
"testDeployment",
"Received result:",
JSON.stringify(result, null, 2),
"\n"
);
}