system.agent_web.genai.mts•728 B
system({
title: "Agent that can search the web.",
})
export default function (ctx: ChatGenerationContext) {
const { defAgent } = ctx
defAgent(
"web",
"search the web to accomplish tasks.",
`Your are a helpful LLM agent that can use web search.
Search the web and answer the question in <QUERY>.
- Expand <QUERY> into an optimized search query for better results.
- Answer exclusively with live information from the web.`,
{
system: [
"system.safety_jailbreak",
"system.safety_harmful_content",
"system.safety_protected_material",
"system.retrieval_web_search",
],
}
)
}