- Merge request !1104feat: #3567673 Accept input and output as typed interfaces in the AI request events → (Open) created by murz
[Tracker]
Update Summary: [One-line status update for stakeholders]
Short Description: [One-line issue summary for stakeholders]
Check-in Date: MM/DD/YYYY
Metadata is used by the AI Tracker. Docs and additional fields here.
[/Tracker]
Now the AI Event constructors accept the $input argument as mixed type in the class Drupal\ai\Event\AiProviderRequestBaseEvent, and the same for $output in the Drupal\ai\Event\AiProviderResponseBaseEvent.
There should be always typed data, as I understand:
- input: Drupal\ai\OperationType\InputInterface
- output: Drupal\ai\OperationType\OutputInterface
Keeping this as mixed requires adding additional checks on each function that works with input and output data, and producing questions on how to process data that doesn't implement those interfaces.
Set types for the input and output attributes:
- input: Drupal\ai\OperationType\InputInterface
- output: Drupal\ai\OperationType\OutputInterface
Active
2.0
AI Core module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.