{% extends 'Actor/main.jinja2' %}

{% block instructions %}
Determine if a tool will help an actor complete its task by evaluating:

✅ Answer YES if the tool output:
- Provides information directly relevant to the task
- Adds context that helps understand or solve the problem
- Delivers specific data values the actor needs
- Can retrieve information that answers the user's question

❌ Answer NO if the tool output:
- Is unrelated to the actor's current task
- Provides information that doesn't align with needs
- Contains potentially misleading or irrelevant data
{% endblock %}

{%- block examples %}
# Examples

❌ NOT RELEVANT:
Task: "Find users who joined this month"
Actor: AnalystAgent
Tool: WeatherAPI
Output: "72F and sunny in San Francisco"
-> NO (weather data irrelevant to user analysis task)

✅ RELEVANT:
Task: "What is the mrr"
Actor: Planner | Purpose: "Develops plan to solve user query step-by-step"
Tool: DbtslLookup | Purpose: "Looks up dbt semantic layer metrics"
-> YES (provides metric information directly related to the query)
{% endblock %}

{% block context %}
Task: {{ actor_task }}
Actor: {{ actor_name }} | Purpose: {{ actor_purpose }}
Tool: {{ tool_name }} | Purpose: {{ tool_purpose }}
{% if tool_output %}
Output: """{{ tool_output }}"""
{%- endif -%}
{%- endblock %}
