# Code error in AI Agents Unit 3

**URL:** <https://discuss.huggingface.co/t/code-error-in-ai-agents-unit-3/172543>\
**Category:** Course\
**Created:** [January 18, 2026, 5:46am UTC](https://discuss.huggingface.co/t/code-error-in-ai-agents-unit-3/172543 "2026-01-18T05:46:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RjtDaga](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@RjtDaga](https://discuss.huggingface.co/u/RjtDaga)\
**Post date:** [January 18, 2026, 5:46am UTC](https://discuss.huggingface.co/t/code-error-in-ai-agents-unit-3/172543/1 "2026-01-18T05:46:37Z")

</div>

In Unit 3, “ **Building and Integrating Tools for Your Agent”** in the AI Agents course, the LangGraph code block under section “Integrating Tools with Alfred” has an issue with given model. .bind\_tools() does not work very well with Qwen resulting in compilation error. Simply changing the model to “deepseek-ai/DeepSeek-R1-0528” resolves the issues, with the tools now being utilizing by the agent.
