Definition
Functional Requirements
Syntax
Semantics
Conformance Testing
Performance Assessment
Definition
Functional Requirements
- Header and Mode: The Data shall have Header “PGM-UCF-V1.0” and Mode equal to RQ for a Request and to RS for a Response; the properties that belong to the other mode shall not be present.
- Identification: The Data shall carry the identifiers of the M‑Instance, of the U‑Environment and of the session, and a unique identifier and a time (AUCAUFID, AUCAUFTime).
- Timeout: A Request may state in Timeout the time, in milliseconds from the time of the Request, within which the Response shall be received; when it elapses without a Response, A‑User Control treats the Request as not answered.
- Correlation: A Response shall carry the identifier (RequestID) of the Request that it answers.
- Formation control: A Request may state, for Speech, Face, Body and Avatar, whether the element is required, optional or not requested, whether the Personal Status modulates the delivery and the spatial output of the Portable Avatar (FormationControl).
- Taking apart the Final Response: A‑User Formation shall take the Final Response apart. It shall give the Process Actions to A‑User Control unchanged. It shall generate Animation Objects from the Actions and feed them to the rendering of the Portable Avatar.
- Communicative Functions: When the Final Response has Communicative Functions, A‑User Formation shall realise them (choosing and timing a Behaviour for each function that carries none, and realising the Behaviour given or saying why not) and the Response shall report, for each FunctionID, Realised, Modified or Not Realised, with the reason when it is not Realised (FunctionStatus).
- Control of the animations: A Request may tell A‑User Formation, for each Action turned into Animation Objects, to proceed or to stop (ActionControl); the Response reports the progress of each animation (ActionStatus).
- No effect outside the A‑User: A‑User Formation shall not send a Process Action to the M‑Instance. The Portable Avatar and the Process Actions are given to A‑User Control, which authorises or stops them.
- Storage: A Request may state what A‑User Formation may read from and write to the Private Storage of the Module, under the rules set by A‑User Control; the Avatar Model and the Speech Model are read from there. The Response reports the outcome of the writes in StorageOutcome.
- Process Action outcome: A Request may convey the outcome of a Process Action performed by A‑User Control, so that A‑User Formation operates knowing the current state of the M‑Instance.
- Outcome and Reason: A Response shall state the Outcome (achieved, achieved_differently or not_achieved); when the Outcome is not achieved, the Response shall carry a Reason. It shall state the RenderState and, for each step (speech synthesis, face description, body description, avatar synthesis), the outcome and, in case of failure, the reason.
- Portable Avatar: A Response that reports a formed Portable Avatar shall carry its identifier (PortableAvatarID).
- Metadata: The Data shall include DataXMData and may include DescrMetadata.
Syntax
https://schemas.mpai.community/PGM1/V1.0/data/AUCAUF.json
Semantics
Table 1 gives the properties common to the two modes, Table 2 those of the Request and Table 3 those of the Response.
Table 1 – Properties common to the Request and the Response of AUC-AUF
| Label | Description |
| Header | Header of the Data Type, with the version. (required) |
| Mode | RQ for a Request (A-User Control to A-User Formation), RS for a Response (A-User Formation to A-User Control). One of: RQ, RS. (required) |
| MInstance | Identifier of the M-Instance. (required) |
| UEnvironment | Identifier of the U-Environment. (required) |
| SessionID | Identifier of the A-User session. (required) |
| AUCAUFID | Identifier of this Request or Response. (required) |
| AUCAUFTime | Time at which the Request or the Response was produced. (required) |
| Timeout | Request only. The time, in milliseconds from the time of the Request, within which the Response shall be received; when it elapses without a Response, A-User Control treats the Request as not answered. |
| DataXMData | Data Exchange Metadata of MPAI-PTF: provenance, authorisation, security and confidence of the Data. |
| DescrMetadata | Descriptive metadata (plain text, at most 2048 characters). |
Table 2 – Properties of the Request (Mode RQ)
| Label | Description |
| Exchange | Phase (new or continuation) and, for a continuation, the identifier of the Response to which the Request follows (ResponseID). |
| FormationControl | What A-User Formation forms and how. |
| – Speech, Face, Body, Avatar | For each element: required, optional or not_requested. |
| – ExpressiveDelivery | enabled or disabled: whether the Personal Status modulates the delivery. |
| – SpatialOutput | Spatial placement and orientation of the Portable Avatar (Spatial Attitude, OSD). |
| ActionControl | For each Action turned into Animation Objects, its Action and Control (proceed or stop). |
| Storage | What A-User Formation may read from and write to the Private Storage of the Module: Write (Category, Readers, Time) and Read (references, typically the Avatar Model and the Speech Model). |
| ProcessActionOutcome | Outcome of a Process Action performed by A-User Control in the M-Instance: PAStatus, Complements, Constraint. |
Table 3 – Properties of the Response (Mode RS)
| Label | Description |
| RequestID | Identifier of the Request this Response answers. |
| Outcome | achieved, achieved_differently or not_achieved. |
| Reason | Code (none, ambiguity_unresolved, partner_unavailable, constraint_conflict, insufficient_context, deadline_exceeded, not_permitted) and Description. Required when the Outcome is not achieved. |
| RenderState | pending, rendering, rendered or not_rendered. |
| ElementOutcomes | Outcome of each formation step. |
| – SpeechSynthesis, FaceDescription, BodyDescription, AvatarSynthesis | For each step: Outcome (success, failure or not_requested) and, in case of failure, Reason (none, model_unavailable, asset_missing, synthesis_error, unsupported_qualifier or input_invalid). |
| ActionStatus | For each Action turned into Animation Objects, its Action and its Status (for instance proceeding, completed, stopped, failed). |
| FunctionStatus | For each Communicative Function of the Final Response, whether A-User Formation realised it (Response only). |
| – FunctionID | Identifier of the function in the Final Response. (required) |
| – Status | Realised: as given. Modified: realised with another Behaviour than the one given. NotRealised: left out. One of: Realised, Modified, NotRealised. (required) |
| – Behaviour | The Behaviour that realised the function. One of: LookAt, TurnTowards, Point, HeadPoint, Nod, HeadShake, HeadTilt, Wave, Bow, Smile, RaiseEyebrows, Frown, Shrug, PalmUp, HoldOut, StopPalm, Stroke, Trace, Frame, LeanForward. |
| – Reason | Why the function was modified or not realised (for instance: the Persona has no such Behaviour). |
| PortableAvatarID | Identifier of the Portable Avatar given to A-User Control. |
| StorageOutcome | Outcome of the writes instructed by the Request: Category and Result (written, not_authorised or not_attempted). |
Conformance Testing
Data conforms with AUC-AUF if it validates against the schema of Section 3 and, if the Mode is RQ, contains the properties required for a Request and none of those of a Response, and vice versa. If a schema contains references to other schemas, conformance of data for the primary schema implies that any data referencing a secondary schema shall also validate against the relevant schema.
Performance Assessment
Not part of this specification.