Agent
interfaceA declared agent, as returned by agent.
Import
import { Agent } from '@modular/sdk';Members6
- description
stringWhat this agent is good for. Shown to the user and read by the model when routing.
- kind
'agent'- modeloptional
stringPin a model, for example `claude-agent-sdk/claude-sonnet-4-6`. Inherits the session's model when omitted.
- name
stringShort identifier. The callable agent id is `<extensionId>/<name>`.
- prompt
string | PromptThe system prompt, either inline text or a Prompt shared with the composer.
- toolsoptional
readonly string[]Leave this off. Declared tool allowlists are not executable yet, and even an empty array throws at activation.
Notes
- category
- Authoring