Skip to content

Bulk Infer Scene Metadata

POST
/api/writing/outline/nodes/bulk/infer-scene-metadata

Run auto-inference across multiple scenes (e.g., a chapter).

Each scene is inferred independently; a single scene’s failure logs but does not abort the batch — downstream of partial successes the caller sees which scenes produced usable suggestions.

BulkSceneMetadataInferenceRequest

Bulk inference across multiple scenes (e.g., a whole chapter).

object
nodeIds
required
Nodeids
Array<string>
>= 1 items
overwrite
Overwrite
boolean
apply
Apply
boolean

Successful Response

BulkSceneMetadataInferenceResponse

Bulk inference result.

object
inferred
required
Inferred
Array<object>
InferredSceneMetadata

Auto-inferred scene metadata suggestions.

Returned by the inference service so the caller can review + apply. Confidence scores are handler-specific and exposed for UI weighting.

Pending-candidate lists carry entities spaCy detected that don’t (yet) have a Legendry entry. The author resolves them by either adding the entity to the Legendry (which links it on the next inference) or dismissing the suggestion.

object
nodeId
required
Nodeid
string
povType
Any of:
string
Allowed values: first_person second_person third_limited third_omniscient third_objective multiple_first deep_third stream_of_consciousness unreliable
povEntityId
Any of:
string
povConfidence
Povconfidence
number
0
locationEntityId
Any of:
string
locationConfidence
Locationconfidence
number
0
participantEntityIds
Participantentityids
Array<string>
timeMarkerText
Any of:
string
sourceDocumentId
Any of:
string
pendingCharacterCandidates
Pendingcharactercandidates
Array<object>
PendingEntityCandidate

An entity surfaced by spaCy NER that has no Legendry entry yet.

Produced when the typed-NER inference detects, for example, a place name or person not yet in the project’s lore. The frontend renders these inline as “Add to Legendry?” prompts so the author can promote them with one click instead of re-typing the name.

object
name
required
Name
string
spacyLabel
required
Spacylabel
string
occurrences
required
Occurrences
integer
firstOffset
required
Firstoffset
integer
sampleSnippet
required
Samplesnippet
string
pendingLocationCandidates
Pendinglocationcandidates
Array<object>
PendingEntityCandidate

An entity surfaced by spaCy NER that has no Legendry entry yet.

Produced when the typed-NER inference detects, for example, a place name or person not yet in the project’s lore. The frontend renders these inline as “Add to Legendry?” prompts so the author can promote them with one click instead of re-typing the name.

object
name
required
Name
string
spacyLabel
required
Spacylabel
string
occurrences
required
Occurrences
integer
firstOffset
required
Firstoffset
integer
sampleSnippet
required
Samplesnippet
string
pendingEventCandidates
Pendingeventcandidates
Array<object>
PendingEntityCandidate

An entity surfaced by spaCy NER that has no Legendry entry yet.

Produced when the typed-NER inference detects, for example, a place name or person not yet in the project’s lore. The frontend renders these inline as “Add to Legendry?” prompts so the author can promote them with one click instead of re-typing the name.

object
name
required
Name
string
spacyLabel
required
Spacylabel
string
occurrences
required
Occurrences
integer
firstOffset
required
Firstoffset
integer
sampleSnippet
required
Samplesnippet
string
appliedCount
required
Appliedcount
integer

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object