get tool data query script

This commit is contained in:
Steve Androulakis
2025-01-02 11:10:16 -08:00
parent 2a6cc6e025
commit 745877db69
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ From the /scripts directory:
Example: `poetry run python send_message.py 'I want to fly from San Francisco'` Example: `poetry run python send_message.py 'I want to fly from San Francisco'`
NOTE: The workflow will pause on the 'confirm' step until the user sends a 'confirm' signal. Use the 'get_tool_data' query to see the current state of the workflow. NOTE: The workflow will pause on the 'confirm' step until the user sends a 'confirm' signal. Use `poetry run python get_tool_data.py` query to see the current state of the workflow.
You can send a 'confirm' signal using `poetry run python send_confirm.py` You can send a 'confirm' signal using `poetry run python send_confirm.py`
5. Get the conversation history summary by querying the workflow. 5. Get the conversation history summary by querying the workflow.

View File

@@ -210,7 +210,7 @@ class ToolWorkflow:
return self.conversation_summary return self.conversation_summary
@workflow.query @workflow.query
def get_tool_data(self) -> Optional[str]: def get_tool_data(self) -> Optional[dict]:
return self.tool_data return self.tool_data
# Helper: generate text of the entire conversation so far # Helper: generate text of the entire conversation so far