From 8cfd313bf9b1593d94ed17ae95259e8b5046a994 Mon Sep 17 00:00:00 2001 From: Umer Ali Date: Thu, 23 Jul 2026 00:57:05 +0500 Subject: [PATCH] docs: escape {country} template variable in agent instruction examples across 5 languages --- docs/agents/llm-agents.md | 6 +++--- examples/go/snippets/agents/llm-agents/snippets/main.go | 2 +- examples/kotlin/snippets/agents/llm-agent/CapitalAgent.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/agents/llm-agents.md b/docs/agents/llm-agents.md index 799cd09c5c..fe9c7251a3 100644 --- a/docs/agents/llm-agents.md +++ b/docs/agents/llm-agents.md @@ -141,7 +141,7 @@ tells the agent: 1. Identify the country name from the user's query. 2. Use the `get_capital_city` tool to find the capital. 3. Respond clearly to the user, stating the capital city. - Example Query: "What's the capital of {country}?" + Example Query: "What's the capital of {{country}}?" Example Response: "The capital of France is Paris." """, # tools will be added next @@ -161,7 +161,7 @@ tells the agent: 1. Identify the country name from the user's query. 2. Use the \`getCapitalCity\` tool to find the capital. 3. Respond clearly to the user, stating the capital city. - Example Query: "What's the capital of {country}?" + Example Query: "What's the capital of {{country}}?" Example Response: "The capital of France is Paris." `, // tools will be added next @@ -190,7 +190,7 @@ tells the agent: 1. Identify the country name from the user's query. 2. Use the `get_capital_city` tool to find the capital. 3. Respond clearly to the user, stating the capital city. - Example Query: "What's the capital of {country}?" + Example Query: "What's the capital of {{country}}?" Example Response: "The capital of France is Paris." """) // tools will be added next diff --git a/examples/go/snippets/agents/llm-agents/snippets/main.go b/examples/go/snippets/agents/llm-agents/snippets/main.go index 0d53acfd2f..b7d3e14f46 100644 --- a/examples/go/snippets/agents/llm-agents/snippets/main.go +++ b/examples/go/snippets/agents/llm-agents/snippets/main.go @@ -64,7 +64,7 @@ When a user asks for the capital of a country: 1. Identify the country name from the user's query. 2. Use the 'get_capital_city' tool to find the capital. 3. Respond clearly to the user, stating the capital city. -Example Query: "What's the capital of {country}?" +Example Query: "What's the capital of {{country}}?" Example Response: "The capital of France is Paris."`, // tools will be added next }) diff --git a/examples/kotlin/snippets/agents/llm-agent/CapitalAgent.kt b/examples/kotlin/snippets/agents/llm-agent/CapitalAgent.kt index 468c64073b..77be30a9ed 100644 --- a/examples/kotlin/snippets/agents/llm-agent/CapitalAgent.kt +++ b/examples/kotlin/snippets/agents/llm-agent/CapitalAgent.kt @@ -51,7 +51,7 @@ fun main() = 1. Identify the country name from the user's query. 2. Use the `getCapitalCity` tool to find the capital. 3. Respond clearly to the user, stating the capital city. - Example Query: "What's the capital of {country}?" + Example Query: "What's the capital of {{country}}?" Example Response: "The capital of France is Paris." """.trimIndent(), ),