ai_agents_test-1.0.0-alpha1/examples/drupal_cms/test_drupal_cms___field_agent.yaml
examples/drupal_cms/test_drupal_cms___field_agent.yaml
label: 'Drupal CMS - Field Agent'
description: 'These will have loads of tests to create, remove, edit and other things that we want to test against the field agent.'
approval_percentage: 100
config_reset: '0'
tests:
-
id:
-
value: '65'
uuid:
-
value: 00f3d8d2-59a3-40c3-8352-65f1364d0439
label:
-
value: 'Drupal CMS Field Agent #1 - Create a text field'
status:
-
value: '1'
description:
-
value: 'This test will try to create one of the text fields field called Thoughts to the Basic Page.'
uid:
-
target_id: '1'
created:
-
value: '1748428696'
changed:
-
value: '1748432739'
messages:
-
value: |
-
role: user
content: "Add a field to the Basic Page content type where users can enter and format their thoughts using a rich text editor. The field should be called 'Thoughts'."
triggering_instructions:
-
value: "Add a field to the Basic Page content type where users can enter and format their thoughts using a rich text editor. The field should be called 'Thoughts'."
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_1:
tool: 'ai_agent:get_field_storage_form'
label: 'Get Field Storage Form should run'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
field_type:
type_of_check: one_of
value: 'text_long,text_with_summary,text'
rule_2:
tool: 'ai_agent:create_field_storage_config'
label: 'Creating Field Storage Config should run'
tool_rules: should_be_run
tool_order: sometime_after_tool
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_field_storage_form'
parameters:
entity_type:
type_of_check: empty
value: ''
field_name:
type_of_check: empty
value: ''
field_type:
type_of_check: one_of
value: 'text_long,text_with_summary,text'
cardinality:
type_of_check: empty
value: ''
translatable:
type_of_check: empty
value: ''
settings:
type_of_check: empty
value: ''
rule_3:
tool: 'ai_agent:manipulate_field_config'
label: 'Manipulate Field Config should run'
tool_rules: should_be_run
tool_order: sometime_after_tool
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:create_field_storage_config'
parameters:
type_of_operation:
type_of_check: equals
value: create
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: empty
value: ''
field_type:
type_of_check: one_of
value: 'text_long,text_with_summary,text'
label:
type_of_check: equals
value: Thoughts
description:
type_of_check: empty
value: ''
required:
type_of_check: empty
value: ''
translatable:
type_of_check: empty
value: ''
settings:
type_of_check: empty
value: ''
add_rule: null
response_rule: ''
config_reset:
-
value: '1'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '66'
uuid:
-
value: 7371a29e-4747-4b3b-8629-662bd37ca39c
label:
-
value: 'Drupal CMS Field Agent #2 - Move Content field up on the form display'
status:
-
value: '1'
description:
-
value: 'This will check the form view and make sure that the Content field is moved up one step.'
uid:
-
target_id: '1'
created:
-
value: '1748429355'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'Move the Content field up one step (higher) in the order on the form view for the Basic Page content type.'
triggering_instructions:
-
value: 'Move the Content field up one step (higher) in the order on the form view for the Basic Page content type.'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_1:
tool: 'ai_agent:get_field_display_form'
label: 'Get the current form display for Basic Page'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
type_of_display:
type_of_check: equals
value: form
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: empty
value: ''
wanted_widget:
type_of_check: empty
value: ''
get_current_values:
type_of_check: empty
value: ''
get_full_display:
type_of_check: empty
value: ''
rule_2:
tool: 'ai_agent:manipulate_field_display_form'
label: 'Change the Content field display form values'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
type_of_display:
type_of_check: equals
value: form
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: equals
value: field_content
label:
type_of_check: empty
value: ''
type:
type_of_check: empty
value: ''
weight:
type_of_check: isset
value: ''
settings:
type_of_check: empty
value: ''
add_rule: null
response_rule: ''
config_reset:
-
value: '1'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '67'
uuid:
-
value: be12558d-2018-4020-b0d1-0fd46f5cadc8
label:
-
value: 'Drupal CMS Field Agent #3 - Move Content field to specific place on the form display'
status:
-
value: '1'
description:
-
value: 'This will check the form view and make sure that the Content field is moved to be after the Featured Image.'
uid:
-
target_id: '1'
created:
-
value: '1748429548'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: "Move the 'Content' field to appear directly after the Featured image on the Basic Page (page) content type's form."
triggering_instructions:
-
value: "Move the 'Content' field to appear directly after the Featured image on the Basic Page (page) content type's form."
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_1:
tool: 'ai_agent:get_field_display_form'
label: 'Get the current form display for Basic Page'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
type_of_display:
type_of_check: equals
value: form
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: empty
value: ''
wanted_widget:
type_of_check: empty
value: ''
get_current_values:
type_of_check: empty
value: ''
get_full_display:
type_of_check: empty
value: ''
rule_2:
tool: 'ai_agent:manipulate_field_display_form'
label: 'Change the Content field display form values'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
type_of_display:
type_of_check: equals
value: form
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: equals
value: field_content
label:
type_of_check: empty
value: ''
type:
type_of_check: empty
value: ''
weight:
type_of_check: isset
value: ''
settings:
type_of_check: empty
value: ''
add_rule: null
response_rule: ''
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '68'
uuid:
-
value: 3a606a4d-daaa-4b01-acb4-28fe9a1065da
label:
-
value: 'Drupal CMS Field Agent #4 - What custom fields exists'
status:
-
value: '1'
description:
-
value: 'This will ask for what custom field exists on the Basic Page content type. Success is that it lists known ones.'
uid:
-
target_id: '1'
created:
-
value: '1748429708'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'List all custom fields that exist on the Basic Page content type.'
triggering_instructions:
-
value: 'List all custom fields that exist on the Basic Page content type.'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_1:
tool: 'ai_agent:get_entity_field_information'
label: 'Runs Get Entity Field Information'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: empty
value: ''
add_rule: null
response_rule: 'The response should mention at least the Content or field_content, Description or field_description to be successful.'
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '69'
uuid:
-
value: a68ab44e-840c-458d-84d6-528d44c781de
label:
-
value: 'Drupal CMS Field Agent #5 - What type is Content'
status:
-
value: '1'
description:
-
value: 'This will ask for what field type the Content field on Basic Page is. It should answer Text Formatted Long.'
uid:
-
target_id: '1'
created:
-
value: '1748429887'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'What field type is the Content field on the Basic Page content type?'
triggering_instructions:
-
value: 'What field type is the Content field on the Basic Page content type?'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_1:
tool: 'ai_agent:get_entity_field_information'
label: 'Runs Get Entity Field Information'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: equals
value: field_content
add_rule: null
response_rule: 'The response should mention Text Formatted Long is some way somewhere in the answer.'
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '70'
uuid:
-
value: e9e5bd9c-7888-42ff-a6ca-6c77d10ed6c9
label:
-
value: 'Drupal CMS Field Agent #6 - Does an address field exist'
status:
-
value: '1'
description:
-
value: 'This will check if the address field exists on the system. It should give a clear answer if the field type exists or not.'
uid:
-
target_id: '1'
created:
-
value: '1748429997'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'Is there a field type available that allows users to add address information (like street, city, country, postal code) to content?'
triggering_instructions:
-
value: 'Is there a field type available that allows users to add address information (like street, city, country, postal code) to content?'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: 'The answer should give an answer if the field type address exists or not.'
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '71'
uuid:
-
value: 35f48581-c29f-4004-92bb-abddd01980f8
label:
-
value: 'Drupal CMS Field Agent #7 - Try to remove the Tags field'
status:
-
value: '1'
description:
-
value: 'This will try to remove the Tags field. The agent should be aware that this is not possible.'
uid:
-
target_id: '1'
created:
-
value: '1748430077'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: "Remove the field named 'Tags' from the Basic Page content type."
triggering_instructions:
-
value: "Remove the field named 'Tags' from the Basic Page content type."
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: 'The answer should give an answer that it can not remove fields.'
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '72'
uuid:
-
value: d060aa0e-8c7f-45b5-b236-c4654142af0a
label:
-
value: 'Drupal CMS Field Agent #8 - Check what fields exists on the vocabulary Tags'
status:
-
value: '1'
description:
-
value: 'This will check what fields exists on the vocabulary Tags'
uid:
-
target_id: '1'
created:
-
value: '1748430205'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'List all fields that currently exist on the Tags vocabulary, including any custom or default fields.'
triggering_instructions:
-
value: 'List all fields that currently exist on the Tags vocabulary, including any custom or default fields.'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: 'The answer should give an answer that the field that exists on Tags'
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '73'
uuid:
-
value: c7a16143-978f-4653-8e9f-ab5e70eef402
label:
-
value: 'Drupal CMS Field Agent #9 - Check what fields uses the Vocabulary Tags'
status:
-
value: '1'
description:
-
value: 'This will check what fields uses the vocabulary Tags'
uid:
-
target_id: '1'
created:
-
value: '1748430339'
changed:
-
value: '1748433504'
messages:
-
value: |
-
role: user
content: 'List all fields on any entity type that are taxonomy fields and that are using the Tags taxonomy'
triggering_instructions:
-
value: 'List all fields on any entity type that are taxonomy fields and that are using the Tags taxonomy'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_2:
tool: 'ai_agent:get_entity_field_information'
label: 'Should check the page for information'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: empty
value: ''
field_name:
type_of_check: empty
value: ''
add_rule: null
response_rule: ''
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '82'
uuid:
-
value: 859c0281-a8b5-428a-b7ae-b2a67b2e228a
label:
-
value: 'Drupal CMS Field Agent #10 - Check which filter formats exists'
status:
-
value: '1'
description:
-
value: 'This will check what filter formats you have on the Content field on the Basic Page content type.'
uid:
-
target_id: '1'
created:
-
value: '1748433240'
changed:
-
value: '1748433263'
messages:
-
value: |
-
role: user
content: 'What kind of filter format can you add to the Content field on the Basic Page content type?'
triggering_instructions:
-
value: 'What kind of filter format can you add to the Content field on the Basic Page content type?'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: 'The response should say that the Content format is the format you can set on the Content field.'
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '75'
uuid:
-
value: 828d76e9-721c-4b96-a1f5-04b8c375d910
label:
-
value: 'Drupal CMS Field Agent #11 - Try to change the field type'
status:
-
value: '1'
description:
-
value: 'This will try to change field type. Success means that you were told that you can not'
uid:
-
target_id: '1'
created:
-
value: '1748430714'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'Change the Description field on the Basic Page content type to allow formatted text (with basic HTML support), similar to the Content field.'
triggering_instructions:
-
value: 'Change the Description field on the Basic Page content type to allow formatted text (with basic HTML support), similar to the Content field.'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: 'The answer should say that its not allowed to change the field type.'
config_reset:
-
value: '1'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '76'
uuid:
-
value: 4f15c9c0-603d-4277-b863-08bae0ba884a
label:
-
value: 'Drupal CMS Field Agent #12 - Try to move in a field group'
status:
-
value: '1'
description:
-
value: 'This will try to move the field inside a field group. That should not be possible via the Field Agent.'
uid:
-
target_id: '1'
created:
-
value: '1748430830'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'Could you add the field Content it to the Contact tab Field Group on the Basic Page Content?'
triggering_instructions:
-
value: 'Could you add the field Content it to the Contact tab Field Group on the Basic Page Content?'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: 'The answer should say that its not allowed to change field groups.'
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '77'
uuid:
-
value: 71ed74d0-858b-4392-98b8-c5336d13efdb
label:
-
value: 'Drupal CMS Field Agent #13 - Try to change on a non-existing field in a non-existing content type'
status:
-
value: '1'
description:
-
value: 'This will try to move the field. This should not be possible, since neither the field or the content type exists.'
uid:
-
target_id: '1'
created:
-
value: '1748430939'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'Can you change the moderation state on the Alibot Content content type?'
triggering_instructions:
-
value: 'Can you change the moderation state on the Alibot Content content type?'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: "The answer should inform that the content type doesn't exist"
config_reset:
-
value: '0'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '78'
uuid:
-
value: c4238370-22d3-4b19-8768-4ee291d6fa4f
label:
-
value: 'Drupal CMS Field Agent #14 - Create a media field'
status:
-
value: '1'
description:
-
value: 'This test will try to create a media field called Product Image to the Basic Page.'
uid:
-
target_id: '1'
created:
-
value: '1748431118'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'On the Basic Page, could you add an image field called Product Image?'
triggering_instructions:
-
value: 'On the Basic Page, could you add an image field called Product Image?'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_1:
tool: 'ai_agent:get_field_storage_form'
label: 'Get Field Storage Form should run'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
field_type:
type_of_check: one_of
value: entity_reference
rule_2:
tool: 'ai_agent:create_field_storage_config'
label: 'Creating Field Storage Config should run'
tool_rules: should_be_run
tool_order: sometime_after_tool
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_field_storage_form'
parameters:
entity_type:
type_of_check: empty
value: ''
field_name:
type_of_check: empty
value: ''
field_type:
type_of_check: one_of
value: entity_reference
cardinality:
type_of_check: empty
value: ''
translatable:
type_of_check: empty
value: ''
settings:
type_of_check: empty
value: ''
rule_3:
tool: 'ai_agent:manipulate_field_config'
label: 'Manipulate Field Config should run'
tool_rules: should_be_run
tool_order: sometime_after_tool
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:create_field_storage_config'
parameters:
type_of_operation:
type_of_check: equals
value: create
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: empty
value: ''
field_type:
type_of_check: one_of
value: entity_reference
label:
type_of_check: equals
value: 'Product Image'
description:
type_of_check: empty
value: ''
required:
type_of_check: empty
value: ''
translatable:
type_of_check: empty
value: ''
settings:
type_of_check: empty
value: ''
add_rule: null
response_rule: ''
config_reset:
-
value: '1'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '79'
uuid:
-
value: 6e40baa0-d603-4b5d-accf-3366108f1a35
label:
-
value: 'Drupal CMS Field Agent #15 - Explicitly create image field'
status:
-
value: '1'
description:
-
value: 'This test will try to create a image field called Vendor Logo to the Basic Page.'
uid:
-
target_id: '1'
created:
-
value: '1748431234'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'Could you also create the Vendor Logo field, but explicitly set that to an image field, not a media field? It should be on Basic Page.'
triggering_instructions:
-
value: 'Could you also create the Vendor Logo field, but explicitly set that to an image field, not a media field? It should be on Basic Page.'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
rule_1:
tool: 'ai_agent:get_field_storage_form'
label: 'Get Field Storage Form should run'
tool_rules: should_be_run
tool_order: any
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_config_schema'
parameters:
field_type:
type_of_check: one_of
value: image
rule_2:
tool: 'ai_agent:create_field_storage_config'
label: 'Creating Field Storage Config should run'
tool_rules: should_be_run
tool_order: sometime_after_tool
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:get_field_storage_form'
parameters:
entity_type:
type_of_check: empty
value: ''
field_name:
type_of_check: empty
value: ''
field_type:
type_of_check: one_of
value: image
cardinality:
type_of_check: empty
value: ''
translatable:
type_of_check: empty
value: ''
settings:
type_of_check: empty
value: ''
rule_3:
tool: 'ai_agent:manipulate_field_config'
label: 'Manipulate Field Config should run'
tool_rules: should_be_run
tool_order: sometime_after_tool
tool_loop_order: ''
tool_other_tool_order: 'ai_agent:create_field_storage_config'
parameters:
type_of_operation:
type_of_check: equals
value: create
entity_type:
type_of_check: equals
value: node
bundle:
type_of_check: equals
value: page
field_name:
type_of_check: empty
value: ''
field_type:
type_of_check: one_of
value: image
label:
type_of_check: equals
value: 'Vendor Logo'
description:
type_of_check: empty
value: ''
required:
type_of_check: empty
value: ''
translatable:
type_of_check: empty
value: ''
settings:
type_of_check: empty
value: ''
add_rule: null
response_rule: ''
config_reset:
-
value: '1'
ai_agents_test_group:
-
target_id: '11'
-
id:
-
value: '80'
uuid:
-
value: e21bd580-3061-4871-8eb2-8d71e2638e54
label:
-
value: 'Drupal CMS Field Agent #16 - Try to create field without enough information'
status:
-
value: '1'
description:
-
value: 'This will try to create a text field called Magoo, without stating the entity type or bundle.'
uid:
-
target_id: '1'
created:
-
value: '1748431399'
changed:
-
value: '1748431630'
messages:
-
value: |
-
role: user
content: 'Could you create a string_long field called Magoo?'
triggering_instructions:
-
value: 'Could you create a string_long field called Magoo?'
ai_agent:
-
target_id: field_agent_triage
rules:
-
value: |
add_rule: null
response_rule: 'The answer should be that it needs to know the entity type.'
config_reset:
-
value: '1'
ai_agents_test_group:
-
target_id: '11'
