Files
temporal-ai-agent/scripts/end_chat.py
Steve Androulakis eb06cf5c8d Enhance Dev Experience and Code Quality (#41)
* Format codebase to satisfy linters

* fixing pylance and ruff-checked files

* contributing md, and type and formatting fixes

* setup file capitalization

* test fix
2025-06-01 08:54:59 -07:00

22 lines
545 B
Python

import asyncio
from shared.config import get_temporal_client
from workflows.agent_goal_workflow import AgentGoalWorkflow
async def main():
# Create client connected to server at the given address
client = await get_temporal_client()
workflow_id = "agent-workflow"
handle = client.get_workflow_handle_for(AgentGoalWorkflow.run, workflow_id)
# Sends a signal to the workflow
await handle.signal(AgentGoalWorkflow.end_chat)
if __name__ == "__main__":
print("Sending signal to end chat.")
asyncio.run(main())