Spaces:
Paused
Paused
Download server/agent.py from Simzy/launch-desk: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/spaces/Simzy/launch-desk/resolve/main/server/agent.py
- Command line
-
hf download hf://spaces/Simzy/launch-desk/server/agent.py
-
curl -L -o agent.py https://huggingface.co/spaces/Simzy/launch-desk/resolve/main/server/agent.py
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, | |
| ], | |
| ) | |