infernod/core/model/agent.ts

27 lines
460 B
TypeScript
Raw Normal View History

import s from "@sharkitek/core";
/**
* An **Agent** is a generic node object, which can carry out assigned tasks.
*/
export class Agent {
/**
* Unique agent UUID.
*/
id!: string;
/**
* The name of the agent must be unique.
* It is a human-understandable identifier.
*/
name!: string;
}
export const AgentModel = s.defineModel({
Class: Agent,
identifier: "id",
properties: {
id: s.property.string(),
name: s.property.string(),
},
});