Fix variable handling in actHandler

Merged
MI
8mo ago
+7-2

Variable values were only being replaced if the LLM replied with the percentage sign wrapped values %key%. This PR addresses that and replaces just key suggested values


Summary by cubic

Fix variable replacement in actHandler so plain keys are substituted, not only %key% tokens. This ensures suggested values populate element arguments reliably.

  • Bug Fixes
    • Replace f"%{key}%" matching with f"{key}" when mapping variables into element_to_act_on.arguments.