India
Account created on 8 January 2018, almost 8 years ago
  • Drupal and Mautic Engineer at Dropsolid  …
#

Merge Requests

More

Recent comments

🇮🇳India abhisekmazumdar India

Locally tested, adding the mentioned MR changes eliminates the warning log and resolves the issue.

🇮🇳India abhisekmazumdar India

This can be reviewed now.

🇮🇳India abhisekmazumdar India

I tried to resolve the test locally but didn't work for me. Trying it here

🇮🇳India abhisekmazumdar India

Still a WIP MR.
I need to add tests and doc.
However, most of the new form element work is complete. Some cleanup and refinement yet needed to be done. I will move it for review after that.
I just wanted to share my progress.

🇮🇳India abhisekmazumdar India

Tests are green now and I have addressed some of the feedback. This is up for review once again.

🇮🇳India abhisekmazumdar India

I'm attempting to resolve the tests.

🇮🇳India abhisekmazumdar India

Sorry it got changed. Now sure how

🇮🇳India abhisekmazumdar India

I see the mistakes in format I was doing. I was following Example: title: "[node:title]". And didn't added '{}' to it.
I realized that after seeing the code using `yamlParser`

Thank you for the prompt response.

🇮🇳India abhisekmazumdar India

abhisekmazumdar → created an issue.

🇮🇳India abhisekmazumdar India

Added @jurgenhaas in credit as it was managed by them in the 📌 No extra event required, simplify overall code and execution Needs review issue

🇮🇳India abhisekmazumdar India

Thank you for reporting this issue. This is resolved now, and a new release has been created.

🇮🇳India abhisekmazumdar India

abhisekmazumdar → made their first commit to this issue’s fork.

🇮🇳India abhisekmazumdar India

abhisekmazumdar → made their first commit to this issue’s fork.

🇮🇳India abhisekmazumdar India

Thank You @jurgenhaas this fix.

🇮🇳India abhisekmazumdar India

Reviewed this locally needed a small changes which I updated in the MR.

🇮🇳India abhisekmazumdar India

Closing this in favor of: 📌 No extra event required, simplify overall code and execution Needs review

🇮🇳India abhisekmazumdar India

Thank You for reporting the issue. I'm working on creating the fix.

🇮🇳India abhisekmazumdar India

I followed the steps and was able start Chunking the content.
I took a quick glance at the code. Everything appears good, except for a single inline comment.

🇮🇳India abhisekmazumdar India

Here sharing some progress for the concept of a custom module "AI Experience Wizard"

Created a concept of AI Provider Registry(a single source of truth for all supporting AI Providers):

This makes it easy to adopt a new AI provider.

One page which list all the supported AI Providers

Batch process which pull the module and installs it

Final form which create a key and setup the AI provider

This is the same form which any AI provider shows to setup / select the key.
The key_select type field get replaced with input text field which on one click create the key and set it with the selected AI provider.

Next step is to apply any AI recipe with the selection of AI Provider.

Please Note: This is still a concept and any suggestion and inputs are always welcome.

🇮🇳India abhisekmazumdar India

As a sub-module maintainer of AI Validations I lean toward following the core deprecation policy with additions:

  • Release 1.3.0 with deprecation notices + composer suggestions
  • Update hooks to assist migration
  • Keep a transition period where both old and new work
  • Clear documentation with step-by-step migration guides

Also creating specific issue for migration tooling/documentation that applies to all sub-modules.

🇮🇳India abhisekmazumdar India

Nicee  ðŸŽ‰

Thank you for resolving the mystery. I can take care of the rest changes.

🇮🇳India abhisekmazumdar India

Thank You for the review. This is merged now.

🇮🇳India abhisekmazumdar India

abhisekmazumdar → created an issue.

🇮🇳India abhisekmazumdar India

Functionally, it resolves the issue. Code changes are also good.

🇮🇳India abhisekmazumdar India

This is back for review now.

🇮🇳India abhisekmazumdar India

@nikro
I just review the https://git.drupalcode.org/project/ai_provider_dropsolidai/-/commit/38ae... changes.

The code changes look good, and they work fine locally. I see the LangFuse module not installed warring message, and if it’s not configured, it ask to configure it.
So a RTBC for me.

🇮🇳India abhisekmazumdar India

Thank You @jurgenhaas for the quick feedback.
I missed the ai_integration_eca_install hook I reverted those suggested changes and made some improvement.

🇮🇳India abhisekmazumdar India

I followed the steps mentioned in comment #13 by @littlepixiez (thanks for the steps, that saved a lot of time to figure out the issue)

I feel we should keeping the plugin ID as eca_ai_trigger_agent rather than changing it to follow the ai_integration_eca_* pattern.

I made come changes and added a commit to it.
The changes basically add support for migrating ai_eca_agents submodule too

I realized we were only handling the main ai_eca submodule and I feel that we need need to do that for
ai_eca_agents. So added migration support for that submodule as well.

Also cleaned up the code a bit, instead of having separate loops for each
submodule, I made it use an array so it's easier to maintain.

The eca_ai_trigger_agent plugin stays the same since it doesn't start with
"ai_eca_" so it won't get touched by the migration anyway.

🇮🇳India abhisekmazumdar India

I will try to test this now.

🇮🇳India abhisekmazumdar India

I see that no release was made which covers these changes. I'm making on right now 3.0.0-beta6

🇮🇳India abhisekmazumdar India

I see this was merged. Marking this as Fixed.

🇮🇳India abhisekmazumdar India

I made some updates for the phpcs and phpstan issues. Created a deprecation take care issue as well: www.drupal.org/project/mautic_eca/issues/3550474

🇮🇳India abhisekmazumdar India

@nikro Thank You for the inputs.

Here what I'm thinking and have started working on a POC as per the suggestion you gave:

- A contrib module 'AI Experience Wizard' sounds good to me.
- But yes we need to write a single install task to hook into the installer so that this custom module is the next thing a user sees after a site is installed or a form for the selection of the providers.
- After the installer does it job of getting the provider name this custom module can kick in and use package manager to pull the required module and set it up.

I will work on this concept and let you know what is possible and what is not. I currently have some confusion, but it will be resolved as I begin working on this.

🇮🇳India abhisekmazumdar India

The code changes looks good to me.

🇮🇳India abhisekmazumdar India

Also unassigned the issue from @arisha so that anyone else can pick this up for review.

🇮🇳India abhisekmazumdar India

This shouldn't be marked as fixed. It should be marked as needing review so that the maintainer and others are aware that it requires attention before the MR can be merged.

🇮🇳India abhisekmazumdar India

I will try to move this forward.

🇮🇳India abhisekmazumdar India

Just one phpstan error. I don't see any issues with the code.

I'm not sure what I'm missing here:

 ------ -------------------------------------------------------------------- 
  Line   modules/field_widget_actions/src/Hook/FieldWidgetAction.php         
 ------ -------------------------------------------------------------------- 
  38     Attribute class Drupal\field_widget_actions\Hook\Autowire does not  
         exist.                                                              
         🪪  attribute.notFound                                              
 ------ -------------------------------------------------------------------- 
🇮🇳India abhisekmazumdar India

Working on the suggestions.

🇮🇳India abhisekmazumdar India

Working on the comments.

🇮🇳India abhisekmazumdar India

The new changes done by @a.dmitriiev is good and something we should have in this action.
Thank You for the improvements. I hope this get merged soon :-)

🇮🇳India abhisekmazumdar India

Thank You for the inputs I have merged this and created a new release.

🇮🇳India abhisekmazumdar India

Nice, made me so excited to test this.

I needed to pull the "drupal/modeler_api": "1.0.x-dev" as ai_agents needs that.

Rest I see that I was able to Overrides a existing AI agent by following the mentioned steps:

🇮🇳India abhisekmazumdar India

I have few question:

We add a new Config setting page for this ?
Or keep it under the existing config page: https://git.drupalcode.org/project/chromium_tool/-/blob/1.0.x/chromium_t...

That form will have a selection option for different image styles available in the site.

image style on installation that scales on height or width to <1500px on the largest one.

This will be a default config for this module

🇮🇳India abhisekmazumdar India

Current Industry Standards after comparing few providers

OpenAI

  • auto (default): The model decides whether to call functions and which ones to use
  • none: Disables function calling, ensuring text-only responses
  • required: Forces the model to call at least one function
  • function: Forces the model to call a specific function by name

Then there is Parallel tool calls. Not sure how can do / or will do this ?

Groq

  • auto: Model decides tool usage autonomously
  • none: Text-only responses, no tool calls
  • required: Mandates tool usage

Anthropic

  • auto: Equivalent to OpenAI's auto mode
  • any: Similar to OpenAI's required mode
  • tool: Forces specific tool usage

OpenRouter

  • auto: Let model decide (default)
  • none: Disable tool usage
  • function: Force specific tool

LiteLLM

  • It has something similer to OpenAI itself: auto, none, required
  • It also can do Parallel tool calls
🇮🇳India abhisekmazumdar India

I have updated the MR. Please review.

I'm also unsure about the #9 from @murz. I'll leave it to @marcus_johansson to decide if we still need a library here.

🇮🇳India abhisekmazumdar India

I see that the comment #18 was addressed in the latest commit. I see everything else has already been reviewed and approved, so I'm moving this to RTBC.

🇮🇳India abhisekmazumdar India

I will put something up for this.

🇮🇳India abhisekmazumdar India

This is reviewed and merged. Thank you.

🇮🇳India abhisekmazumdar India

This is up for review now.

🇮🇳India abhisekmazumdar India

Yes, I like the new approach. Both make the summer preview in a Slack link more useful and readable.

🇮🇳India abhisekmazumdar India

I will try to get this merged next week. Cleaning the linting issues is good to have.

🇮🇳India abhisekmazumdar India

Thank you all for moving this forward. I have created a new release: field_validation 3.0.0-beta5.

🇮🇳India abhisekmazumdar India

Thank You

🇮🇳India abhisekmazumdar India

With some AI assistant coding, I tried to find the possible cases that needed to be tested. Please review.

🇮🇳India abhisekmazumdar India

abhisekmazumdar → made their first commit to this issue’s fork.

🇮🇳India abhisekmazumdar India

I can take care of that. Yes, I agree the test cases should be more broader.

🇮🇳India abhisekmazumdar India

Can someone review this.

🇮🇳India abhisekmazumdar India

Thank You for clearing my confusion. I tested it again and it looks good to me.

🇮🇳India abhisekmazumdar India

I merged these changes on top of 📌 Use a different model for LLM evaluation Active

Here what I see when running the drush command:

Command: ddev drush agetes --group_id=1 --uid=1 --eval_provider=openai --eval_model=o3 --detailed

 [notice] Running tests as user: admin
 [notice] Running test group: Basic Pages Test Group
 [notice] Overriding LLM evaluation model: openai/o3
 [notice] Running test 1 of 3: Test ID 1 (nomic-embed-text:latest)
 [error]  Error invoking model response: "nomic-embed-text:latest" does not support chat 
 [notice] Running test 2 of 3: Test ID 2 (nomic-embed-text:latest)
 [error]  Error invoking model response: "nomic-embed-text:latest" does not support chat 
 [notice] Running test 3 of 3: Test ID 3 (nomic-embed-text:latest)
 [error]  Error invoking model response: "nomic-embed-text:latest" does not support chat 
 [notice] Test group completed. Results available at: /admin/content/ai-agents-test/group/result/9
 ------------- --------- ---------------------- -------------------------------------------------------------------------- 
  Id            Result    Label                  Message                                                                   
 ------------- --------- ---------------------- -------------------------------------------------------------------------- 
  test_1        Error     Is Basic Page          Error: Error invoking model response: "nomic-embed-text:latest" does not  
                          content type sticky    support chat, Line: 309, File:                                            
                          by default             /var/www/html/web/modules/contrib/ai/src/Plugin/ProviderProxy.php         
  test_2        Error     Is Basic Page          Error: Error invoking model response: "nomic-embed-text:latest" does not  
                          content type           support chat, Line: 309, File:                                            
                          promoted by default    /var/www/html/web/modules/contrib/ai/src/Plugin/ProviderProxy.php         
  test_3        Error     Is Basic Page          Error: Error invoking model response: "nomic-embed-text:latest" does not  
                          content type           support chat, Line: 309, File:                                            
                          published by default   /var/www/html/web/modules/contrib/ai/src/Plugin/ProviderProxy.php         
  group_total   Failure   Group: Basic Pages     0/3 tests passed | Duration: 0s | Group Result ID: 9 | Success rate:      
                          Test Group             0.00%                                                                     
 ------------- --------- ---------------------- -------------------------------------------------------------------------- 
🇮🇳India abhisekmazumdar India

Forgot to update the status

🇮🇳India abhisekmazumdar India

I think I can move this at least with the initial work. Then later on, we can decide about the validator thing.

🇮🇳India abhisekmazumdar India

Added some inline comment over the MR.

Production build 0.71.5 2024