We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e80495 commit b2ca48fCopy full SHA for b2ca48f
packages/agent-runtime/src/run-agent-step.ts
@@ -553,10 +553,11 @@ export async function loopAgentSteps(
553
554
let agentTemplate = params.agentTemplate
555
if (!agentTemplate) {
556
- agentTemplate = await getAgentTemplate({
557
- ...params,
558
- agentId: agentType,
559
- })
+ agentTemplate =
+ (await getAgentTemplate({
+ ...params,
+ agentId: agentType,
560
+ })) ?? undefined
561
}
562
563
throw new Error(`Agent template not found for type: ${agentType}`)
0 commit comments