The Evil of Optional Parameters: When Having too Many Options is Self Destructing
You are the main developer of agents.com, an app that lets an organization manage an army of AI agents. You’re designing an admin page where an admin within an org can see each agent and the skills associated with them. You write this beautiful, simple function that takes an orgId and agentId and returns a list of skills: function getAgentSkills(orgId: string, agentId: string): AgentSkill[] { // fetches all of the skills from the server } The skills page needs to show some metadata along with t…