generate_scenario_from_prompt
Convert natural language descriptions into executable AFSIM scenarios using keyword matching to configure platforms, sensors, and weapons.
Instructions
Generate an AFSIM scenario from a natural language description.
The generator uses keyword matching and heuristics to parse the prompt and build a scenario with platforms, movers, sensors, and weapons.
Examples: "Create a scenario with 2 fighters and a ship over 2 hours" "Simulate 3 UAVs with radar sensors patrolling for 30 minutes" "Air defense scenario: 1 SAM site and 4 attack aircraft, 1 hour"
Parameters
prompt: Natural language description of the desired scenario.
Returns
JSON with scenario_id, name, platform list, warnings, and AFSIM preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |