mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
get tool data query script
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user