Skip to content

Commit cc2e6f2

Browse files
authored
feat: improve warning log if llm-sfn not return anything (#841)
1 parent d255f49 commit cc2e6f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sfn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,6 @@ func checkLLMFunctionCall(logger *slog.Logger, serverlessCtx yserverless.Context
281281
return
282282
}
283283
if !fc.IsOK {
284-
logger.Warn("The function is not returning anything, please check if `WriteLLMResult()` has been called")
284+
logger.Warn("The function return nothing to LLM, please ensure ctx.ReadLLMArguments() and ctx.WriteLLMResult() has been called in Handler func.")
285285
}
286286
}

0 commit comments

Comments
 (0)