Goals
A goal is the outcome the agent is working toward. Clear goal definition is the first step in the planning process — everything else flows from it.
6 min•By Priygop Team•Updated 2026
Goal Definition
Goal Definition
# Well-defined goal structure for planning
goal = {
# What the agent must achieve
"objective": "Identify the top 3 competitors for our project management SaaS",
# What a successful result looks like
"success_criteria": [
"Three competitor companies identified",
"Each has: product name, key features, pricing tier, target market",
"Information is from the last 6 months",
],
# What the agent should NOT do
"constraints": [
"Only use publicly available information",
"Do not contact any company",
"Do not include companies with fewer than 100 employees",
],
# What the output should look like
"output_format": "Structured JSON with one entry per competitor",
# Who receives the result
"deliver_to": "product_manager@example.com",
# Safety rules
"requires_human_approval": True,
"max_steps": 20,
"deadline_minutes": 30,
}
print("Goal defined.")
print("Success criteria:", len(goal["success_criteria"]))
print("Constraints:", len(goal["constraints"]))
print("Approval required:", goal["requires_human_approval"])