Stevenic / agentm-py

A library of "Micro Agents" that make it easy to add reliable intelligence to any application.
MIT License
8 stars 3 forks source link

[Subtask] Translate composePrompt to Python #9

Closed debuggerone closed 2 months ago

debuggerone commented 2 months ago

Subtask Overview

This subtask focuses on translating the composePrompt.ts utility from JavaScript to Python to enable dynamic prompt generation for the AgentM migration.

Tasks

Acceptance Criteria

Stevenic commented 2 months ago

This was just a super simple string substitution library that swaps {{var}} with a normalized text string. I've built numerous different template expansion engines in the past but honestly this approach covers the 90% case with only 1% of the complexity.