AashishAIHub commited on
Commit
e10efac
·
1 Parent(s): 9110364

fix: restore syntax by escaping internal backticks in app.js

Browse files
Files changed (1) hide show
  1. GenAI-AgenticAI/app.js +2 -2
GenAI-AgenticAI/app.js CHANGED
@@ -2409,14 +2409,14 @@ Object.assign(MODULE_CONTENT, {
2409
  <h2>💻 Prompting for Agents — Code Examples</h2>
2410
 
2411
  <h3>1. Verbalized Sampling Prompt Template</h3>
2412
- <div class="code-block"><span class="keyword">const</span> system_prompt = <span class="string">`You are a sophisticated AI agent with access to tools.
2413
  When given a task, you MUST use the following format:
2414
 
2415
  Thought: Consider what you need to do, step by step. Which tool is needed?
2416
  Action: The name of the tool to use (e.g. "search_web", "calculate")
2417
  Action Input: The arguments for the tool in valid JSON.
2418
 
2419
- You MUST articulate your Thought before your Action.`</span></div>
2420
 
2421
  <h3>2. Forcing JSON on Open Models</h3>
2422
  <div class="code-block"><span class="keyword">import</span> { pipeline } <span class="keyword">from</span> <span class="string">"@huggingface/transformers"</span>;
 
2409
  <h2>💻 Prompting for Agents — Code Examples</h2>
2410
 
2411
  <h3>1. Verbalized Sampling Prompt Template</h3>
2412
+ <div class="code-block"><span class="keyword">const</span> system_prompt = <span class="string">\`You are a sophisticated AI agent with access to tools.
2413
  When given a task, you MUST use the following format:
2414
 
2415
  Thought: Consider what you need to do, step by step. Which tool is needed?
2416
  Action: The name of the tool to use (e.g. "search_web", "calculate")
2417
  Action Input: The arguments for the tool in valid JSON.
2418
 
2419
+ You MUST articulate your Thought before your Action.\`</span></div>
2420
 
2421
  <h3>2. Forcing JSON on Open Models</h3>
2422
  <div class="code-block"><span class="keyword">import</span> { pipeline } <span class="keyword">from</span> <span class="string">"@huggingface/transformers"</span>;