inputKeys array, missing key error message

This commit is contained in:
David Blass
2025-11-14 16:12:32 -05:00
parent 7c724d931b
commit 1b55da51a1
8 changed files with 74 additions and 19 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ async function run(): Promise<void> {
const inputs: Required<Inputs> = {
prompt: core.getInput("prompt", { required: true }),
agent: core.getInput("agent") ? AgentName.assert(core.getInput("agent")) : undefined,
...flatMorph(agents, (_, agent) => [agent.inputKey, core.getInput(agent.inputKey)]),
...flatMorph(agents, (_, agent) =>
agent.inputKeys.map((inputKey) => [inputKey, core.getInput(inputKey)])
),
};
const result = await main(inputs);