Files
open-web-agent-rs/packages/genaiscript/genaisrc/agent.genai.mts
geoffsee 66d3c06230 init
2025-05-23 09:48:26 -04:00

24 lines
596 B
TypeScript

import {PerigonClient as NewsSearchTool} from "@agentic/perigon";
script({
system: ["system.tools"],
tools: "agent",
maxTokens: 8192
})
const newSearchTool = new NewsSearchTool();
defTool(newSearchTool)
$`You are a chat assistant that uses agent tools to solve problems.
while true:
- ask the user for a question using the agent_user_input
- make a plan to answer the question step by step
- answer the question
end while
## guidance:
- use the agent tools to help you
- do NOT try to ask the user questions directly, use the agent_user_input tool instead.
`