ai_agents_test-1.0.0-alpha1/examples/drupal_cms/test_drupal_cms_test__2___custom_address_field_not_installed.yaml
examples/drupal_cms/test_drupal_cms_test__2___custom_address_field_not_installed.yaml
label: 'Drupal CMS Test #2 - Custom Address Field Not Installed'
description: 'These tests should run without the Address module installed - it will see if the system can recognize that the Address field is missing.'
approval_percentage: 100
config_reset: '0'
tests:
-
id:
-
value: '11'
uuid:
-
value: 390a8e7b-fad8-4338-b15d-71cea8455530
label:
-
value: 'Drupal CMS #2.1 - Check for address field'
status:
-
value: '1'
description:
-
value: "Starts a conversation by checking if the address field type exists when it doesn't exist. Success criteria is that it says it doesn't exists OR that it recommends the Address module OR that is says that you can build it using Drupal text fields."
uid:
-
target_id: '1'
created:
-
value: '1748269425'
changed:
-
value: '1748330994'
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: 'Does there exist a field type that can create address fields?'
triggering_instructions:
-
value: 'Does there exist a field type that can create address fields?'
ai_agent:
-
target_id: drupal_cms_assistant
rules:
-
value: |
rule_1:
tool: 'ai_agents::ai_agent::field_agent_triage'
label: 'Should check if the is a field type for address 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 check if there is a field type for addresses.'
files:
type_of_check: empty
value: ''
rule_2:
tool: 'ai_agents::ai_agent::taxonomy_agent_config'
label: 'Taxonomy Agent should not run'
tool_rules: should_not_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: empty
value: ''
files:
type_of_check: empty
value: ''
rule_3:
tool: 'ai_agents::ai_agent::content_type_agent_triage'
label: 'Content Type Agent should not run'
tool_rules: should_not_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: empty
value: ''
files:
type_of_check: empty
value: ''
add_rule: null
response_rule: "The answer should tell you one of the following to be a success:\r\n* That no address field exists \r\n* That the Address module exists and could be installed\r\n* That you can use normal text fields to create and address field."
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '2'
-
id:
-
value: '12'
uuid:
-
value: 7b039464-df88-4d4a-8f4d-46eb9def8acd
label:
-
value: 'Drupal CMS #2.2 - Verify against the address field against the system'
status:
-
value: '1'
description:
-
value: 'This follows the general question about address fields, with a follow up that it should check on the system if it exists.'
uid:
-
target_id: '1'
created:
-
value: '1748269713'
changed:
-
value: '1748330994'
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: 'Does there exist a field type that can create address fields?'
-
role: assistant
content: '**Address Field Availability**: - Drupal core does not come with a built-in address field type for storing structured addresses (like country, city, and postcode). **How to Add Address Fields**: - You can add this feature by installing the contributed Address module. This module gives you a dedicated Address field you can use on content types or other entities, designed specifically for storing full addresses with international support. Would you like me to help you set up the Address module on your site, or would you prefer step-by-step instructions?'
-
role: user
content: 'Can you check on the system if it exist?'
triggering_instructions:
-
value: 'Can you check on the system if it exist?'
ai_agent:
-
target_id: drupal_cms_assistant
rules:
-
value: |
rule_1:
tool: 'ai_agents::ai_agent::field_agent_triage'
label: 'Should check if the is a field type for address 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 check if there is a field type for addresses.'
files:
type_of_check: empty
value: ''
rule_2:
tool: 'ai_agents::ai_agent::taxonomy_agent_config'
label: 'Taxonomy Agent should not run'
tool_rules: should_not_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: empty
value: ''
files:
type_of_check: empty
value: ''
rule_3:
tool: 'ai_agents::ai_agent::content_type_agent_triage'
label: 'Content Type Agent should not run'
tool_rules: should_not_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: empty
value: ''
files:
type_of_check: empty
value: ''
add_rule: null
response_rule: "The answer should tell you one of the following to be a success:\r\n* That no address field exists \r\n* That the Address module exists and could be installed\r\n* That you can use normal text fields to create and address field."
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '2'
