use Cognesy\Agents\Template\Data\AgentDefinition;
use Cognesy\Agents\Data\AgentBudget;
$definition = new AgentDefinition(
name: 'researcher',
description: 'Searches for information on a topic',
systemPrompt: 'You are a research assistant. Find and summarize information.',
label: 'Research Agent', // optional display name
llmConfig: 'anthropic', // optional LLM preset or LLMConfig
budget: new AgentBudget(maxSteps: 10, maxTokens: 8000),
tools: new NameList(['bash', 'file.read']), // optional tool allow-list
toolsDeny: new NameList(['file.write']), // optional tool deny-list
capabilities: new NameList(['use_bash']), // capability names to install
);
// @doctest id="f6eb"