Signature
Prompt tools
PromptToolConfig.options contains static tool options.
PromptToolConfig.env scopes environment values to the invocation.
The deprecated tenvs alias remains available for environment values.
The admin prompt detail response preserves options unchanged.
SubpromptConfig supports includeTextResponse, includeToolCalls, and includeErrors.
Each filter defaults to true.
initUserMessageProperty selects the initial message argument.
initAttachmentsProperty selects attachment arguments.
Persistent subagents
Declare child relationships in an agent side’ssubagents array.
A prompt tool entry cannot configure a subagent relationship.
The runtime injects lifecycle tools for enabled relationships.
The child’s side A prompt schema defines its invocation arguments.
Those arguments persist as ThreadState.arguments.