From 2539436a79551e10c43045f4862520fc1b672023 Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Thu, 10 Apr 2025 10:26:55 -0400 Subject: [PATCH 1/4] adding testing config --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4ab7bec..00fb129 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,9 +43,16 @@ gtfs-kit = "^10.1.1" [tool.poetry.group.dev.dependencies] pytest = "^7.3" +pytest-asyncio = "^0.18.3" black = "^23.7" isort = "^5.12" [build-system] requires = ["poetry-core>=1.4.0"] -build-backend = "poetry.core.masonry.api" \ No newline at end of file +build-backend = "poetry.core.masonry.api" + +[tool.pytest.ini_options] +asyncio_mode = "auto" +log_cli = true +log_cli_level = "INFO" +log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)" \ No newline at end of file From 812e295f3a7a7f387bcc7e2dae7ec843d8e48a57 Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Mon, 14 Apr 2025 09:27:33 -0400 Subject: [PATCH 2/4] switching to method activity calls --- workflows/agent_goal_workflow.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/workflows/agent_goal_workflow.py b/workflows/agent_goal_workflow.py index 083332b..5f73ddf 100644 --- a/workflows/agent_goal_workflow.py +++ b/workflows/agent_goal_workflow.py @@ -108,7 +108,7 @@ class AgentGoalWorkflow: conversation_history=self.conversation_history, agent_goal=self.goal, ) - validation_result = await workflow.execute_activity( + validation_result = await workflow.execute_activity_method( ToolActivities.agent_validatePrompt, args=[validation_input], schedule_to_close_timeout=LLM_ACTIVITY_SCHEDULE_TO_CLOSE_TIMEOUT, @@ -134,7 +134,7 @@ class AgentGoalWorkflow: prompt_input = ToolPromptInput(prompt=prompt, context_instructions=context_instructions) # connect to LLM and execute to get next steps - tool_data = await workflow.execute_activity( + tool_data = await workflow.execute_activity_method( ToolActivities.agent_toolPlanner, prompt_input, schedule_to_close_timeout=LLM_ACTIVITY_SCHEDULE_TO_CLOSE_TIMEOUT, @@ -316,8 +316,9 @@ class AgentGoalWorkflow: async def lookup_wf_env_settings(self, combined_input: CombinedInput)->None: env_lookup_input = EnvLookupInput( show_confirm_env_var_name = "SHOW_CONFIRM", - show_confirm_default = True) - env_output:EnvLookupOutput = await workflow.execute_activity( + show_confirm_default = True, + ) + env_output:EnvLookupOutput = await workflow.execute_activity_method( ToolActivities.get_wf_env_vars, env_lookup_input, start_to_close_timeout=LLM_ACTIVITY_START_TO_CLOSE_TIMEOUT, From e92e3f43c9693f36f33ea4f92d8d7a8cd3d4efe8 Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Tue, 15 Apr 2025 11:01:18 -0400 Subject: [PATCH 3/4] changes to make the project more python compliant and fix the bug tracker URL --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 00fb129..6f3c4f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "temporal-AI-agent" +name = "temporal_AI_agent" version = "0.1.0" description = "Temporal AI Agent" license = "MIT" @@ -13,7 +13,7 @@ packages = [ ] [tool.poetry.urls] -"Bug Tracker" = "https://github.com/temporalio/samples-python/issues" +"Bug Tracker" = "https://github.com/temporal-community/temporal-ai-agent/issues" [tool.poe.tasks] format = [{cmd = "black ."}, {cmd = "isort ."}] From 7b52b8a817b7ed3f1807f1eab95b02c62fb4331b Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Wed, 16 Apr 2025 16:26:37 -0400 Subject: [PATCH 4/4] adding to todo, gitignore --- .gitignore | 1 + todo.md | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4c8f868..c2d2dde 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ coverage.xml .env *.env +.env* diff --git a/todo.md b/todo.md index f06d42b..af48f52 100644 --- a/todo.md +++ b/todo.md @@ -18,6 +18,7 @@ [ ] new loan/fraud check/update with start
+[ ] for demo simulate failure - add utilities/simulated failures from pipeline demo
[ ] ask the ai agent how it did at the end of the conversation, was it efficient? successful? insert a search attribute to document that before return
- Insight into the agent’s performance