Spaces:
Sleeping
Sleeping
File size: 1,049 Bytes
b484b4d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | """
Launch Desk — Agent Definition
==============================
Creates the "Launch Planner" agent using the OpenAI Agents SDK and
wires up four function tools from tools.py.
"""
from __future__ import annotations
from agents import Agent
from server.tools import (
extract_tasks,
check_readiness,
generate_checklist,
draft_copy,
)
# Agent instructions — the system prompt that guides the Launch Planner.
INSTRUCTIONS = (
"You are a launch planning expert. Given a product brief, audience, "
"launch date, constraints, and available assets, create a prioritized "
"launch plan. Use your tools to extract tasks, check readiness, "
"generate checklists, and draft copy. If key details are missing, "
"ask follow-up questions."
)
# The agent definition. Model gpt-4.1 is specified by the task.
agent = Agent(
name="Launch Planner",
instructions=INSTRUCTIONS,
model="gpt-4.1",
tools=[
extract_tasks,
check_readiness,
generate_checklist,
draft_copy,
],
)
|