# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# yaml-language-server: $schema=../../playbooks/playbook.schema.json
name: "Tool Call Test Autonomous"
timeout: 120
tmpdir:
  link_paths:
    - tools/skill-turn-harness/test/fixtures/mock-tool-use-skill
persona:
  initial_user_input: "Hi, please activate the tool-test-skill and create the file as instructed."
  context: |
    You are a user asking the agent to create a file.
    Wait for the agent to confirm the file has been created.
    If the agent asks any questions or says there is an error, repeat your request to create the file.
  max_turns: 5
  success_criteria:
    llm_checks:
      - "The agent confirmed the file was created."
    tool_calls_contain:
      edit_file:
        - "output.txt"
    files_exist:
      - "output.txt"
    files_contain:
      output.txt:
        - "Hello World"
