- Issue created by @michaellander
- First commit to issue fork.
- Merge request !545Issue #3512540: Remove previously implemented ContextAwarePluginInterface from... โ (Merged) created by Unnamed author
- ๐ฎ๐ณIndia anjaliprasannan
If someone implements FunctionCallInterface directly (without extending FunctionCallBase), theyโll need to provide their own implementations of normalize() and populateValues(). For example:
<?php class CustomFunctionCall extends PluginBase implements FunctionCallInterface { public function populateValues(ToolsFunctionOutput $output) { // Custom logic without contexts. $this->configuration['values'] = $output->getArguments(); } public function normalize(): ToolsFunctionInput { $function = new ToolsFunctionInput($this->getFunctionName(), []); $function->setDescription($this->pluginDefinition['description']); return $function; } }
Code that interacts with FunctionCallInterface instances and expects context-related methods (e.g., getContextDefinitions()) should check if the plugin implements ContextAwarePluginInterface. For example:
if ($function_call instanceof ContextAwarePluginInterface) { $context_definitions = $function_call->getContextDefinitions(); // Work with contexts... } else { // Handle context-free plugin... }
- Status changed to RTBC
5 days ago 4:35am 1 July 2025 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
RTBC by @mrdalesmith
===
We are doing some issue management housekeeping and adding/removing components.
We are removing the "Code" component and want people to categorize issues with the best module/submodule component.
Moving this issue to "AI Core module".
See ๐ Update AI module project components Active for more details.
-
marcus_johansson โ
committed f97a218a on 1.2.x authored by
anjaliprasannan โ
Issue #3512540: Remove previously implemented...
-
marcus_johansson โ
committed f97a218a on 1.2.x authored by
anjaliprasannan โ