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
This commit is contained in:
Steve Androulakis
2025-06-01 08:54:59 -07:00
committed by GitHub
parent e35181b5ad
commit eb06cf5c8d
52 changed files with 1282 additions and 1105 deletions

View File

@@ -1,12 +1,12 @@
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 Client.connect("localhost:7233")
client = await get_temporal_client()
workflow_id = "agent-workflow"

View File

@@ -1,6 +1,7 @@
from tools.search_flights import search_flights
import json
from tools.search_flights import search_flights
# Example usage
if __name__ == "__main__":
search_args = {"city": "Sydney", "month": "July"}

View File

@@ -1,6 +1,7 @@
from tools.search_flights import search_flights
import json
from tools.search_flights import search_flights
if __name__ == "__main__":
# Suppose user typed "new" for New York, "lon" for London
flights = search_flights("London", "JFK", "2025-01-15", "2025-01-23")

View File

@@ -1,12 +1,10 @@
import asyncio
import concurrent.futures
from temporalio.worker import Worker
from activities.tool_activities import dynamic_tool_activity
from shared.config import get_temporal_client, TEMPORAL_LEGACY_TASK_QUEUE
from shared.config import TEMPORAL_LEGACY_TASK_QUEUE, get_temporal_client
async def main():
@@ -24,7 +22,9 @@ async def main():
activity_executor=activity_executor,
)
print(f"Starting legacy worker, connecting to task queue: {TEMPORAL_LEGACY_TASK_QUEUE}")
print(
f"Starting legacy worker, connecting to task queue: {TEMPORAL_LEGACY_TASK_QUEUE}"
)
await worker.run()

View File

@@ -1,16 +1,15 @@
import asyncio
import concurrent.futures
import os
from dotenv import load_dotenv
import logging
import os
from dotenv import load_dotenv
from temporalio.worker import Worker
from activities.tool_activities import ToolActivities, dynamic_tool_activity
from shared.config import TEMPORAL_TASK_QUEUE, get_temporal_client
from workflows.agent_goal_workflow import AgentGoalWorkflow
from shared.config import get_temporal_client, TEMPORAL_TASK_QUEUE
async def main():
# Load environment variables

View File

@@ -5,7 +5,6 @@ from shared.config import get_temporal_client
async def main():
# Connect to Temporal and signal the workflow
client = await get_temporal_client()