MCPcopy Create free account
hub / github.com/dot-agent/nextpy / add_variable

Function add_variable

nextpy/ai/engine/_program.py:81–85  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

79# input: prompt template without conversation history variable
80# output: same prompt template with conversation history variable appended to the end of the system prompt
81def add_variable(string):
82 formated_string = string.replace(
83 "{{~/system}}", "{{ ConversationHistory }}{{~/system}}"
84 )
85 return formated_string
86
87
88log = logging.getLogger(__name__)

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected