launch-desk / server /agent.py
Big Brain Ape
Deploy Launch Desk to HuggingFace Spaces
b484b4d
Raw History Blame Contribute Delete
1.05 kB
"""
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,
],
)