* fix: node code bugs from docstring audit (#115) - runtime crashes, phantom/duplicate sockets, registry typo aliases, property default mismatches * fix: address PR #122 review - register template scene types on intent_state, StageExit node_state_pop, annotations, shared graph-test helpers, migration round-trip test * docs: correct the circular-import chain named in apply_to_scene's deferral comment * fix: SetScenePhase defaults to the shipped roleplay scene type instead of an empty string that errors on run
3.2 KiB
Editor Agent Nodes
Clean up user input, narration and character messages through the editor agent's revision passes.
4 nodes.
| Node | Registry path |
|---|---|
| Clean Up Character Message | agents/editor/CleanUpCharacterMessage |
| Clean Up Narration | agents/editor/CleanUpNarration |
| Clean Up User Input | agents/editor/CleanUpUserInput |
| Editor Settings | agents/editor/Settings |
Clean Up Character Message
agents/editor/CleanUpCharacterMessage
Cleans up a character's dialogue text via the editor agent: fixes exposition formatting (per the editor's formatting settings), cleans up stray dialogue from other characters, strips partial sentences and balances quotation marks.
Inputs
| Input | Type | Description |
|---|---|---|
text |
str |
The character message text to clean up |
character |
character |
The character the message belongs to |
Outputs
| Output | Type | Description |
|---|---|---|
cleaned_character_message |
str |
The cleaned up character message |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
force |
bool |
False |
Force clean up |
Clean Up Narration
agents/editor/CleanUpNarration
Cleans up narration text via the editor agent, stripping partial sentences and fixing exposition formatting according to the editor's formatting settings (skipped unless the narrator fix-exposition setting is enabled or force is set).
Inputs
| Input | Type | Description |
|---|---|---|
narration |
str |
The narration text to clean up |
Outputs
| Output | Type | Description |
|---|---|---|
cleaned_narration |
str |
The cleaned up narration |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
force |
bool |
False |
Force clean up |
Clean Up User Input
agents/editor/CleanUpUserInput
Cleans up user input via the editor agent, fixing exposition formatting (quotes for speech, asterisks for narration) according to the editor's formatting settings. Input starting with a command prefix (!, @, /) is never edited, and cleanup is skipped entirely when the editor's fix-user-input setting is disabled - unless force is set.
Inputs
| Input | Type | Description |
|---|---|---|
user_input |
str |
The user input text to clean up |
as_narration |
bool |
Whether to treat the input as narration instead of speech |
Outputs
| Output | Type | Description |
|---|---|---|
cleaned_user_input |
str |
The cleaned up user input |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
force |
bool |
False |
Force clean up |
Editor Settings
agents/editor/Settings
Base node to render editor agent settings.
Every setting of the editor agent is exposed as an output socket named after the setting - see the agent's documentation under Agents for what each setting does.