Task Execution Module
Key Components:
Task Execution Module in Action
import { BrowserAgent } from '@nasdaiq/browser-agent';
async function main() {
const agent = new Agent({
key: process.env.BROWSER_AGENT_KEY,
task: 'Find a one-way flight from Paris to Tokyo on 25 February 2025 on Google Flights. Return me the cheapest option.',
llm: 'gpt-4o',
});
const result = await agent.run();
console.log(await result.data());
}
main().catch((error) => {
console.error(error);
});
Last updated