Go to PGM-AUA V1.0 AI Modules

Function Ref. Model I/O Data SubAIMs JSON MData Profiles Ref. Software Conformance Performance

1. Function

The Prompt Creation (PGM‑PRC) AIM constructs a structured prompt suitable for submission to the Basic Knowledge (BKN, an LLM) AIM by analysing the contextual descriptors of the current interaction at the A-User front end, inferring the User’s Intent, resolving referents, contextualising the prompt with scene and Goal constraints, and formatting the result into a PC Prompt that opens a multi-turn MCP session with Basic Knowledge.

Prompt Creation:

  1. Operates on the Context Descriptors produced by Context Description; the Text Object, if any, received from the environment as native text or converted into text by Context Description; the PRC Directive received from A‑User Control; the PRC IH Response resulting from queries made to A‑User Storage; and the BKN-PRC Request received from Basic Knowledge during an active session.
  2. Constructs a multi‑stage prompt, including token analysis, intent and referent analysis, prompt contextualisation, and prompt planning and formatting. It does so without performing deliberative reasoning or final response generation.
  3. Produces
    1. The PC Prompt sent to Basic Knowledge to open the MCP session.
    2. The BKN-PRC Request sent to Basic Knowledge in reply to queries (BKN-PRC Responses) received during the session.
    3. The PRC Status sent to A‑User Control.
    4. The PRC IH Request when querying interaction history from A‑User Storage.

The PC Prompt carries the structured representation of the scene context, User’s intent, resolved referents, goal constraints, and expressive configuration required by Basic Knowledge to generate a response. This is generated through interaction with Domain Access, User State Refinement, and Personality Alignment.

2. Reference Model

Figure 1 depicts the Reference Model of the Prompt Creation (PGM‑PRC) AIM.

Figure 1 – Reference Model of the Prompt Creation (PGM‑PRC) AIM

3. Input/Output Data

Table 1 lists the Input and Output Data of the Prompt Creation (PGM‑PRC) AIM.

Table 1 – Input/Output Data of the Prompt Creation (PGM‑PRC) AIM

Input Description
Context Descriptors Structured descriptors of the current interaction context as produced by Context Description.
PRC Directive Directive from A‑User Control specifying scope, depth, and policy constraints for prompt construction.
PRC IH Response Interaction History response from A‑User Storage providing relevant past interaction context to support prompt construction.
BKN-PRC Request Query received from Basic Knowledge during an active MCP session, requesting additional context or clarification. May be received multiple times within a session.
Output Description
PC Prompt Structured prompt submitted to Basic Knowledge to open the MCP session, carrying scene context, intent, resolved referents, goal constraints, and expressive configuration.
BKN-PRC Response Response to a BKN-PRC Request received from Basic Knowledge during the session. May be sent multiple times within a session.
PRC Status Multiplexed status signals from the Prompt Creation‘s internal Sub-AIMs reporting their results.
PRC IH Request Multiplexed Interaction History requests from the internal Sub-AIMs issued to A‑User Storage.

4. Sub-AIMs (Informative)

This section is informative. The decomposition into Sub-AIMs described below illustrates one conforming architecture for producing the normative outputs of PGM‑PRC. Implementations may adopt alternative internal structures, provided that they satisfy the conformance requirements of Section 8.

4.1 Reference Model

Figure 2 depicts the Reference Model of the Prompt Creation (PGM‑PRC) Composite AIM.

Figure 2 – Reference Model of the Prompt Creation (PGM‑PRC) Composite AIM

4.2 Operation

The Prompt Creation AIM receives Context Descriptors and the PRC Directive and progressively transforms them into a structured PC Prompt through a sequence of specialised Sub-AIMs.

The external inputs and control signals are fed to the appropriate Sub-AIMs:

  1. The Prompt Token Analyser Sub-AIM parses the Text Object and Context Descriptors into a Speech Descriptors Object. It queries A‑User Storage via PRC IH to retrieve relevant past interaction contexts.
  2. The Intent and Referent Analysis Sub-AIM operates on the Speech Descriptors Object to infer the User’s intent, producing an Intent carrying category, action type, spatial anchors, and confidence score. It simultaneously resolves referential expressions to scene Entities, expressing the result as Propositions linking subjects, predicates, and objects with their spatial and temporal context. It queries Basic Knowledge via BKN-PRC and A‑User Storage via PRC IH as needed.
  3. The Prompt Contextualisation Sub-AIM enriches the Intent and Propositions with goal constraint derivation, scene context tagging, and Personality adaptation, producing a Goal carrying objectives, priorities, and trigger conditions, a Personality carrying the User’s expressive configuration (tone, style, pacing, narrative goal), and additional scene Propositions representing contextual tags and timing guidance. It queries Basic Knowledge via BKN-PRC and A‑User Storage via PRC IH as needed.
  4. The Prompt Planning and Formatting Sub-AIM assembles all derived evidence — Intent, Propositions, Goal, and Personality — into a PC Prompt and submits it to Basic Knowledge. It manages the multi-turn MCP session with Basic Knowledge, receiving BKN-PRC Requests and issuing BKN-PRC Responses as needed throughout the session. It also multiplexes the PRC Status and PRC IH Request signals from all Sub-AIMs into the corresponding external output signals.

Each of Intent and Referent Analysis, Prompt Contextualisation, and Prompt Planning and Formatting independently generates a PRC Status and a PRC IH Request, which are multiplexed by Prompt Planning and Formatting into the corresponding external output signals.

4.3 Functions of Sub-AIMs

Table 2 specifies the functions of the Sub-AIMs of the Prompt Creation (PGM‑PRC) Composite AIM.

Table 2 – Functions of the Sub-AIMs of the Prompt Creation (PGM‑PRC) Composite AIM

Name Function
Prompt Token Analysis Parses the Text Object and Context Descriptors into a Text Descriptors Object, the A‑User Storage Request via PRC IH to retrieve relevant past interaction context and PRC Status.
Intent and Referent Analysis Infers the User’s Intent from the Text Descriptors Object, and resolves referential expressions to scene Users, expressing results as Propositions, querying Basic Knowledge via BKN-PRC and A‑User Storage via PRC IH as needed.
Prompt Contextualisation Enriches the Intent and Propositions with goal constraint derivation and scene context tagging producing a Goal, a Personality carrying the expressive configuration, and additional scene Propositions, querying Basic Knowledge via BKN-PRC and A‑User Storage via PRC IH as needed.
Prompt Planning and Formatting Assembles Intent, Propositions, Goal, and Personality into a PC Prompt, manages the multi-turn MCP session with Basic Knowledge, and multiplexes the PRC Status and PRC IH Requests from all Sub-AIMs into the corresponding external outputs.

4.4 Input/Output Data of Sub-AIMs

Table 3 lists the Input and Output Data of the Sub-AIMs of the Prompt Creation (PGM‑PRC) Composite AIM.

Table 3 – Input/Output Data of the Sub-AIMs of the Prompt Creation (PGM‑PRC) Composite AIM

Name Input Data Output Data
Prompt Token Analyser Context Descriptors
PRC Directive
PRC IH Response
BKN-PRC Response
Meaning
PRC Status
PRC IH Request
Intent and Referent Analysis Meaning
PRC Directive
PRC IH Response
BKN-PRC Response
Intent
Proposition
PRC Status
PRC IH Request
BKN-PRC Request
Prompt Contextualisation Intent
Proposition
PRC Directive
PRC IH Response
BKN-PRC Response
Goal
Personality
Proposition
PRC Status
PRC IH Request
BKN-PRC Request
Prompt Planning and Formatting Intent
Proposition
Goal
Personality
PRC Directive
PRC IH Response
BKN-PRC Request
PRC Status (multiplexed from all Sub-AIMs)
PRC IH Request (multiplexed from all Sub-AIMs)
PC Prompt
BKN-PRC Response
PRC Status
PRC IH Request

4.5 AIMs and JSON Metadata

Table 4 gives the Prompt Creation (AIM1) and its Sub-AIMs (AIM2).

Table 4 – Prompt Creation (AIM1) and its Sub-AIMs (AIM2)

AIM1 AIM2 Name JSON
PGM‑PRC Prompt Creation X
PGM‑PTA Prompt Token Analysis X
PGM‑IRA Intent and Referent Analysis X
PGM‑PCX Prompt Contextualisation X
PGM‑PPF Prompt Planning and Formatting X

5. JSON Metadata

https://schemas.mpai.community/PGM1/V1.0/AIMs/PromptCreation.json

6. Profiles

No Profiles.

7. Reference Software

Not part of this specification.

8. Conformance Testing

A PRC implementation conforms with Prompt Creation (PGM‑PRC) if:

  1. The implementation includes all Sub-AIMs listed in Table 2.
  2. All I/O Data listed in Table 1 are present and conform with their respective Data Types.
  3. All Sub-AIM I/O Data listed in Table 3 conform with their respective Data Types.
  4. The implementation produces a PC Prompt that integrates the outputs of Intent and Referent Analysis and Prompt Contextualisation.
  5. The implementation correctly manages the multi-turn BKN-PRC session, issuing a BKN-PRC Response in reply to each BKN-PRC Request received from Basic Knowledge.

9. Performance Assessment

Not part of this specification.

Go to PGM-AUA V1.0 AI Modules