Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/llm/llms/Anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class Anthropic extends BaseLLM {
): AsyncGenerator<ChatMessage> {
if (!this.apiKey || this.apiKey === "") {
throw new Error(
"Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.",
"Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.",
);
}

Expand Down
2 changes: 1 addition & 1 deletion core/llm/llms/Anthropic.vitest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ describe("Anthropic", () => {
},
}),
).rejects.toThrow(
"Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.",
"Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.",
);
});
});
Expand Down
15 changes: 15 additions & 0 deletions packages/config-yaml/src/load/unroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,21 @@ export async function resolveBlock(
secrets: extractFQSNMap(rawYaml, [id]),
});

// Check for unresolved input template variables (missing required inputs)
const unresolvedInputs = getTemplateVariables(templatedYaml).filter((v) =>
v.startsWith("inputs."),
);
if (unresolvedInputs.length > 0) {
const missingInputNames = unresolvedInputs.map((v) =>
v.replace("inputs.", ""),
);
const blockName = packageIdentifierToShorthandSlug(id);
throw new Error(
`Missing required input(s) for block "${blockName}": ${missingInputNames.join(", ")}. ` +
`Please provide these values in the "with" block.`,
);
}

// Add source slug for mcp servers
const parsed = parseMarkdownRuleOrAssistantUnrolled(templatedYaml, id);
if (
Expand Down
Loading