ai_agents_test-1.0.0-alpha1/examples/drupal_cms/test_drupal_cms_test__8___media_tests.yaml

examples/drupal_cms/test_drupal_cms_test__8___media_tests.yaml
label: 'Drupal CMS Test #8 - Media tests'
description: 'This check so the creation of Media is done correctly, since its the preferred way in Drupal CMS over Image field. These test will fail on a plain vanilla installation.'
approval_percentage: 100
config_reset: '1'
tests:
  -
    id:
      -
        value: '49'
    uuid:
      -
        value: 146e17c0-3335-432c-9ee9-584c290214bb
    label:
      -
        value: 'Drupal CMS #8.1 - Create media field'
    status:
      -
        value: '1'
    description:
      -
        value: 'This is the start of a conversation - it will ask to create an image field, but the Drupal CMS assistant should now that we want media fields if not explicitly stated. Should create a media field with image as media type.'
    uid:
      -
        target_id: '1'
    created:
      -
        value: '1748339638'
    changed:
      -
        value: '1748340209'
    messages:
      -
        value: |
          -
            role: assistant
            content: 'I am a Drupal AI Assistant, I can help you set up your Drupal site. I can give you instructions and I can also do some functions.'
          -
            role: user
            content: 'On the Basic Page Content, could you add an image field called Product Image?'
    triggering_instructions:
      -
        value: 'On the Alibot Content, could you add an image field called Product Image?'
    ai_agent:
      -
        target_id: drupal_cms_assistant
    rules:
      -
        value: |
          rule_1:
            tool: 'ai_agents::ai_agent::field_agent_triage'
            label: 'Should ask to create the Product Image field with type entity reference or media, with type image.'
            tool_rules: should_be_run
            tool_order: any
            tool_loop_order: ''
            tool_other_tool_order: 'ai_agents::ai_agent::content_type_agent_triage'
            parameters:
              prompt:
                type_of_check: llm
                value: 'This prompt should ask to create the Product Image field with type entity reference or media, with type image.'
              files:
                type_of_check: empty
                value: ''
          add_rule: null
          response_rule: 'The answer should be that it has created an Product Image field that is of type entity reference or media. It might have more information as well.'
    config_reset:
      -
        value: '0'
    ai_agents_test_group:
      -
        target_id: '8'
  -
    id:
      -
        value: '50'
    uuid:
      -
        value: 786e9b01-97e7-49cd-bc72-afec5b70fd5e
    label:
      -
        value: 'Drupal CMS #8.2 - Explicitly create image field'
    status:
      -
        value: '1'
    description:
      -
        value: 'This follows the ask to create an image field that got created as a media field, with explicitly asking it to create an image field. Should create an image field.'
    uid:
      -
        target_id: '1'
    created:
      -
        value: '1748339819'
    changed:
      -
        value: '1748340209'
    messages:
      -
        value: |
          -
            role: assistant
            content: 'I am a Drupal AI Assistant, I can help you set up your Drupal site. I can give you instructions and I can also do some functions.'
          -
            role: user
            content: 'On the Basic Page Content, could you add an image field called Product Image?'
          -
            role: assistant
            content: "The \"Product Image\" field (field_product_image) has been successfully added to the Basic Page content type. It is an media field with Image type as the media type.\r\n\r\nIf you would like this field to be required, translatable, or need specific display or form widget settings, just let me know!"
          -
            role: user
            content: 'Could you also create the Vendor Logo field, but explicitly set that to an image field, not a media field?'
    triggering_instructions:
      -
        value: 'Could you also create the Vendor Logo field, but explicitly set that to an image field, not a media field?'
    ai_agent:
      -
        target_id: drupal_cms_assistant
    rules:
      -
        value: |
          rule_1:
            tool: 'ai_agents::ai_agent::field_agent_triage'
            label: 'Should ask to create the Vendor Logo field as an image field.'
            tool_rules: should_be_run
            tool_order: any
            tool_loop_order: ''
            tool_other_tool_order: 'ai_agents::ai_agent::content_type_agent_triage'
            parameters:
              prompt:
                type_of_check: llm
                value: 'This prompt should ask to create the Vendor Logo field with type image field'
              files:
                type_of_check: empty
                value: ''
          add_rule: null
          response_rule: 'The answer should be that it has created a Vendor Log image field. It might have more information as well.'
    config_reset:
      -
        value: '1'
    ai_agents_test_group:
      -
        target_id: '8'
  -
    id:
      -
        value: '51'
    uuid:
      -
        value: 596918c6-c8b5-489b-9b92-4d72f8924b3b
    label:
      -
        value: 'Drupal CMS #8.3 - Follow up with another media field'
    status:
      -
        value: '1'
    description:
      -
        value: 'This follows the ask to explicitly asking it to create an image field with creating a image field again. Should create an Media field.'
    uid:
      -
        target_id: '1'
    created:
      -
        value: '1748339967'
    changed:
      -
        value: '1748340209'
    messages:
      -
        value: |
          -
            role: assistant
            content: 'I am a Drupal AI Assistant, I can help you set up your Drupal site. I can give you instructions and I can also do some functions.'
          -
            role: user
            content: 'On the Basic Page Content, could you add an image field called Product Image?'
          -
            role: assistant
            content: "The \"Product Image\" field (field_product_image) has been successfully added to the Basic Page content type. It is an media field with Image type as the media type.\r\n\r\nIf you would like this field to be required, translatable, or need specific display or form widget settings, just let me know!"
          -
            role: user
            content: 'Could you also create the Vendor Logo field, but explicitly set that to an image field, not a media field?'
          -
            role: assistant
            content: 'Here’s what I’ve done for you: - **Image Field Added**: I added an image field called "Product Image" to the Basic Page content type. You can now upload images to your Basic Pages using this field. If you’d like this field to be required, translated, or displayed in a specific way, just let me know! You can start adding images by editing any Basic Page: /node/add/page'
          -
            role: user
            content: 'And another image field called Example Images?'
    triggering_instructions:
      -
        value: 'And another image field called Example Images?'
    ai_agent:
      -
        target_id: drupal_cms_assistant
    rules:
      -
        value: |
          rule_1:
            tool: 'ai_agents::ai_agent::field_agent_triage'
            label: 'Should ask to create the Examples Images field as an media or entity reference field.'
            tool_rules: should_be_run
            tool_order: any
            tool_loop_order: ''
            tool_other_tool_order: 'ai_agents::ai_agent::content_type_agent_triage'
            parameters:
              prompt:
                type_of_check: llm
                value: 'This prompt should ask to create the Examples Images field as an media or entity reference field.'
              files:
                type_of_check: empty
                value: ''
          add_rule: null
          response_rule: 'The answer should be that it has created an Examples Images media or entity reference field. It might have more information as well.'
    config_reset:
      -
        value: '1'
    ai_agents_test_group:
      -
        target_id: '8'
  -
    id:
      -
        value: '52'
    uuid:
      -
        value: 0841ab91-1c3e-4cf4-95b6-65f283e57936
    label:
      -
        value: 'Drupal CMS #8.4 - Change view display on image'
    status:
      -
        value: '1'
    description:
      -
        value: 'This follows the ask to to create a image field to change the view display on another image. Should work.'
    uid:
      -
        target_id: '1'
    created:
      -
        value: '1748340087'
    changed:
      -
        value: '1748340209'
    messages:
      -
        value: |
          -
            role: assistant
            content: 'I am a Drupal AI Assistant, I can help you set up your Drupal site. I can give you instructions and I can also do some functions.'
          -
            role: user
            content: 'On the Basic Page Content, could you add an image field called Product Image?'
          -
            role: assistant
            content: "The \"Product Image\" field (field_product_image) has been successfully added to the Basic Page content type. It is an media field with Image type as the media type.\r\n\r\nIf you would like this field to be required, translatable, or need specific display or form widget settings, just let me know!"
          -
            role: user
            content: 'Could you also create the Vendor Logo field, but explicitly set that to an image field, not a media field?'
          -
            role: assistant
            content: 'Here’s what I’ve done for you: - **Image Field Added**: I added an image field called "Product Image" to the Basic Page content type. You can now upload images to your Basic Pages using this field. If you’d like this field to be required, translated, or displayed in a specific way, just let me know! You can start adding images by editing any Basic Page: /node/add/page'
          -
            role: user
            content: 'And another image field called Example Images?'
          -
            role: assistant
            content: 'Here’s a recap of what’s been set up: - **Product Image Field**: Added to Basic Page as an image field (media). - **Vendor Logo Field**: Added to Basic Page as a standard image upload field. - **Example Images Field**: Added to Basic Page as a standard image field that lets users upload multiple images (unlimited). If you want any of these fields to be required, appear differently on the form or page, or need translation options, just let me know! You can view or edit these fields under the Basic Page content type settings: /admin/structure/types/manage/page/fields'
          -
            role: user
            content: 'Can you change the view display of the field called Product Image on the content type Basic Page to Rendered Entity?'
    triggering_instructions:
      -
        value: 'Can you change the view display of the field called Product Image on the content type Basic Page to Rendered Entity?'
    ai_agent:
      -
        target_id: drupal_cms_assistant
    rules:
      -
        value: |
          rule_1:
            tool: 'ai_agents::ai_agent::field_agent_triage'
            label: 'Should ask to change view display for Product Image'
            tool_rules: should_be_run
            tool_order: any
            tool_loop_order: ''
            tool_other_tool_order: 'ai_agents::ai_agent::content_type_agent_triage'
            parameters:
              prompt:
                type_of_check: llm
                value: 'This prompt should ask to change view display for Product Image'
              files:
                type_of_check: empty
                value: ''
          add_rule: null
          response_rule: 'The answer should be that it has change the view display for Product Image. It can hold other information as well.'
    config_reset:
      -
        value: '0'
    ai_agents_test_group:
      -
        target_id: '8'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc