UNPKG

genaiscript

Version:

A CLI for GenAIScript, a generative AI scripting framework.

25 lines (22 loc) 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", ], } ) }