log less chatgpt stuff and actually change the goal

This commit is contained in:
Joshua Smith
2025-03-11 10:03:45 -04:00
parent 8fafe4b090
commit 6939e3f942
2 changed files with 20 additions and 4 deletions

View File

@@ -237,7 +237,7 @@ class ToolActivities:
)
response_content = chat_completion.choices[0].message.content
print(f"ChatGPT response: {response_content}")
activity.logger.info(f"ChatGPT response: {response_content}")
# Use the new sanitize function
response_content = self.sanitize_json_response(response_content)
@@ -449,6 +449,7 @@ def dynamic_tool_activity(args: Sequence[RawValue]) -> dict:
# Delegate to the relevant function
handler = get_handler(tool_name)
result = handler(tool_args)
print(f"in dynamic tool activity, result: {result}")
# Optionally log or augment the result
activity.logger.info(f"Tool '{tool_name}' result: {result}")