Properly renamed single_shot_entry to single_entry

This commit is contained in:
2024-11-11 13:26:44 +01:00
parent 1a52205804
commit 0e1a0407d0
4 changed files with 26 additions and 26 deletions

View File

@@ -13,7 +13,7 @@ from .parse_error_entry import ParseErrorEntry
from .read_entry import ReadEntry
from .reasoning_entry import ReasoningEntry
from .repeat_entry import RepeatEntry
from .single_shot_entry import SingleShotEntry
from .single_entry import SingleEntry
from .write_entry import WriteEntry
class ResponseParser:
@@ -125,11 +125,11 @@ class ResponseParser:
return ParseErrorEntry(xml, "Repeat entry missing script content", entry_id, timestamp)
return RepeatEntry(content, entry_id, timestamp)
elif root.tag == 'single_shot':
elif root.tag == 'single':
# Create single shot script entry
if not content:
return ParseErrorEntry(xml, "Single shot entry missing script content", entry_id, timestamp)
return SingleShotEntry(content, entry_id, timestamp)
return SingleEntry(content, entry_id, timestamp)
elif root.tag == 'reasoning':
# Create reasoning entry