Skip to content

Commit

Permalink
feat(instrumentation): move condition order
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Gallas <[email protected]>
  • Loading branch information
Milan Gallas authored and Milan Gallas committed Dec 12, 2024
1 parent f1398e9 commit 3021031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/instrumentation/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export function assertLLMWithMessagesToPromptFn(instance: object): instance is B
messagesToPrompt: BAMChatLLMInputConfig["messagesToPrompt"];
} {
return Boolean(
"messagesToPrompt" in instance &&
isFunction(instance.messagesToPrompt) &&
instance instanceof BaseLLM,
instance instanceof BaseLLM &&
"messagesToPrompt" in instance &&
isFunction(instance.messagesToPrompt),
);
}

0 comments on commit 3021031

Please sign in to comment.