Skip to content

Interface: CreateScenarioRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CreateScenarioRequest

Defined in: src/types/scenarios.ts:95

Request body for scenario creation (generate + materialize).

optional agentName?: string | null

Defined in: src/types/scenarios.ts:97

Optional custom agent name.


optional answers?: object | null

Defined in: src/types/scenarios.ts:99

Answers to clarification questions (2nd call in multi-turn flow).


optional createAgent?: boolean

Defined in: src/types/scenarios.ts:101

Whether to create a cognitive agent from the scenario.


optional enableCurriculum?: boolean

Defined in: src/types/scenarios.ts:103

Whether to generate curriculum stages.


optional enableGrounding?: boolean

Defined in: src/types/scenarios.ts:105

Whether to apply concept grounding after materialization.


optional prefixes?: Record<string, string>

Defined in: src/types/scenarios.ts:113

Prefix bindings (prefix → namespace IRI, '' = the default prefix) the generated scenario’s CURIE names use. Same contract as BulkCreateSortsRequest.prefixes: bound on the tenant with the scenario’s sorts, and released again when the scenario is refused. The keys go out verbatim.


prompt: string

Defined in: src/types/scenarios.ts:115

Natural language task description (e.g., “organize a conference”).


optional runInitialCycle?: boolean

Defined in: src/types/scenarios.ts:117

Whether to run an initial cognitive cycle after materialization. Requires create_agent to be true.


optional sessionId?: string | null

Defined in: src/types/scenarios.ts:119

Session ID for multi-turn clarification continuity.