[wp-trac] [WordPress Trac] #64483: Core Abilities getting error when execution
WordPress Trac
noreply at wordpress.org
Tue Jan 20 04:40:32 UTC 2026
#64483: Core Abilities getting error when execution
-------------------------------------------------+-------------------------
Reporter: arkenon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: AI | Version: 6.9
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by hbhalodia):
Hey @jason_the_adams, Thanks for the details, Yes below is the info. The
exact code I used to replicate the issue.
{{{#!php
$text = 'prompt';
$builder = AI_Client::prompt();
$builder->with_text( $text );
$builder->using_model_preference( array( 'google', 'gemini-3-pro-preview'
) )
->using_temperature( 0.2 );
// Get and attach abilities
$abilities = wp_get_abilities();
if ( ! empty( $abilities ) ) {
$builder->using_ability( ...$abilities );
}
$result = $builder->generate_result();
$candidates = $result->getCandidates();
$candidate = $candidates[0];
$message = $candidate->getMessage();
$function_response_message = Ability_Function_Resolver::execute_abilities(
$message ); // This is doing an issue here, as rightly said because of
$message.
}}}
Let me know if this helps?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64483#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list