Skip to main content

ActorModel

Represents a single versioned actor. All actor models are represented using this type, regardless of the meta type (that is, agent, user and domain are all represented by this common model type).

Properties

  • id (required): Unique identifier. Includes the agent ID and the version. Refer to #/$defs/EntityId.
  • description (string or null): Default: null.
  • skills: Refer to #/$defs/ActorSkillsModel. Default: {"skills": [], "skillsets": [], "canLock": false, "lock": {}, "observanceLock": {}}.

Definitions

  • EntityId (string)
  • ActorSkillsModel (object): Common interface for defining skills implemented and called by an actor.
    • skills (array): Default: [].
    • skillsets (array): Default: [].
    • canLock (boolean): Default: true.
    • lock (object): Skill calls created by an actor. Can contain additional properties. Default: {}.
    • observanceLock (object): Can contain additional properties. Default: {}.
    • upgrades (object or null): Can contain additional properties.
      • Additional properties (string)
  • SubjectModel (object)
  • ActionModel (object)
    • action (string, required)
    • description (string or null): Default: null.
    • params: Default: null.
    • constraints: Default: null.
    • input: input corresponds to the data model for the initial request PNCP message. Request. Default: null.
    • inputForm: Default: null.
    • inputDisplay: Default: null.
    • output: output Corresponds to the data model for the response PNCP message. Response. Default: null.
    • outputDisplay: Default: null.
    • requesterQuestions (array): Multiple possible question/answer pairs are allowed for a given action. These are organized as pairs - a question of a particular type expects an answer of a corresponding type.
      This question set contains questions that can be asked by the original requester as a "follow up" question to the fulfiller. Default: [].
    • fulfillerQuestions (array): This question set contains questions that can be asked by the skill fulfiller to the requester (e.g. asking for "additional information"). Default: [].
    • requesterLabels (object): Requester label constraints. These constraints are required for a requester to be eligible to execute this action. Can contain additional properties. Default: {}.
    • fulfillerLabels (object): Fulfiller label constraints. These constraints are required for a fulfiller to be eligible to fulfill this action. Can contain additional properties. Default: {}.
  • SkillDataModel: Represents all the different ways data can be defined as an input or output from an actor. An input can be exactly one reference to an object, a list of references, or a mapping of named references to objects.
  • SchemaRefWrapper: Wrapper for backwards compatibility with old schema ref format which was only a string.
  • SchemaRef (object): Can contain additional properties.
    • name (string, required)
    • optional (boolean, required)
    • redacted (boolean, required): Indicates that the field should be redacted from the ledger as well as observers.
  • SkillQuestionAnswerModel (object)
    • id (string, required)
    • name (string, required)
    • description (string or null): Default: null.
    • params: Default: null.
    • question
    • questionForm: Default: null.
    • questionDisplay: Default: null.
    • answer
    • answerForm: Default: null.
    • answerDisplay: Default: null.
  • SkillLabelModel (object)
    • label (string, required)
    • constraints (array, required)
  • SkillRefModel (object): Model used by Actor implementations to reference a skill that they implement.
  • EntityReq (string)
  • SkillSetLock (object): A skill lock represents a set of skills which are used by an actor. These skills and optional target actors include specific versions to "lock" the use of these skill requests to these particular versions. Note that this list is not considered exhaustive. That is, an actor which defines a SkillLock is permitted to use skill requests not listed in the lock, however, they will follow standard skill matching rules when called instead of using the locked versions.
    • subject (string, required)
    • action (string, required)
    • version: Skillset ID and version associated with it.
    • actor
  • SkillObservanceLock (object)
  • SkillObservanceLockKey (object)
  • Id (string)
  • ObservationMessageFilter (object)
  • ObservationMessageType (string): Must be one of: "Skill" or "Pncp".
  • PncpMessageKind (string): Must be one of: "Question", "Answer", "Status", "Cancel", "Response", or "Error".
  • SkillObservanceLockValue (object)