Skip to content

Commit

Permalink
fix: Force reflections tool usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Oct 25, 2024
1 parent 81eca24 commit ee8786b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/agent/reflection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export const reflect = async (
const model = new ChatAnthropic({
model: "claude-3-5-sonnet-20240620",
temperature: 0,
}).bindTools([generateReflectionTool]);
}).bindTools([generateReflectionTool], {
tool_choice: "generate_reflections",
});

const currentArtifactContent = state.artifact
? getArtifactContent(state.artifact)
Expand Down

0 comments on commit ee8786b

Please sign in to comment.