Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolk committed Aug 13, 2024
1 parent 8a4364a commit 5253ff9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,13 @@ class ConversationHandlerTestProject extends TestProjectBase {
defaultConversationHandlerFunction,
apolloClient
);
// Assert that tool was used. I.e. that LLM used value returned by the tool.
assert.match(response.content, /Seattle/);
// Assert that tool use content blocks are emitted in case LLM selects client tool.
// The content blocks are string serialized, but not as a proper JSON,
// hence string matching is employed below to detect some signals that tool use blocks kinds were emitted.
assert.match(response.content, /toolUse/);
assert.match(response.content, /toolUseId/);
// Assert that LLM attempts to pass parameter when asking for tool use.
assert.match(response.content, /city=Seattle/);
};

private assertCustomConversationHandlerCanExecuteTurn = async (
Expand Down

0 comments on commit 5253ff9

Please sign in to comment.