Skip to content

Commit

Permalink
Added cli run script.
Browse files Browse the repository at this point in the history
  • Loading branch information
yghokim committed Mar 14, 2024
1 parent 6aa5120 commit 36cb8c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions libs/py_core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
"command": "poetry run pytest tests/",
"cwd": "libs/py_core"
}
},
"cli": {
"executor": "@nxlv/python:run-commands",
"options": {
"command": "poetry run python test_cli.py",
"cwd": "libs/py_core"
}
}
},
"tags": []
Expand Down
2 changes: 1 addition & 1 deletion libs/py_core/py_core/system/task/stringify.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def convert_dialogue_to_str(dialogue: Dialogue, params) -> str:
script = "\n".join([
f"\t<msg>{'Parent' if message.speaker == DialogueRole.Parent else 'Child'}: {message.content if isinstance(message.content, str) else ', '.join([card.simple_str() for card in message.content])}</msg>"
f"\t<msg>{'Parent' if message.speaker == DialogueRole.Parent else 'Child'}: {message.content if isinstance(message.content, str) else ', '.join([card.text for card in message.content])}</msg>"
for message in dialogue])

result = f"""
Expand Down

0 comments on commit 36cb8c4

Please sign in to comment.