Filters the complete system prompt before the skills summary is appended.
Tool extensions can append instructions for their own tools without coupling those instructions to AI Assistant core.
add_filter( 'ai_assistant_system_prompt', function( string $prompt, string[] $enabled_tools, array $wp_info, Settings $settings ) { // Your code here. return $prompt; }, 10, 4 );
string
$prompt
string[]
$enabled_tools
array
$wp_info
Settings
$settings
apply_filters('ai_assistant_system_prompt', $prompt, $enabled_tools, $wp_info, $this)
← All Hooks
There was an error while loading. Please reload this page.