Update documentation to clarify instructions are appended by chahn · Pull Request #1709 · huggingface/smolagents (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

View all resources

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

huggingface / smolagents Public

Additional navigation options

Merged

albertvillanova merged 2 commits intohuggingface:mainfrom

chahn:doc-improvements

Sep 18, 2025

ConversationCommits (2)ChecksFiles changed

Merged

Update documentation to clarify instructions are appended#1709

albertvillanova merged 2 commits intohuggingface:mainfrom

chahn:doc-improvements

Conversation

@chahn

Copy link Copy Markdown

Contributor

@chahn chahn commented

Aug 22, 2025

Added a note in docs/source/en/tutorials/building_good_agents.md explaining that the instructions parameter is appended to the system prompt, rather than replacing it.

@chahn

[Update documentation to clarify that instructions are appended to t…](/huggingface/smolagents/pull/1709/commits/9c0c2eef6570ade7cf2d32338ed5353313957039 "Update documentation to clarify that `instructions` are appended to the system prompt in CodeAgent initialization.")

[9c0c2ee](/huggingface/smolagents/pull/1709/commits/9c0c2eef6570ade7cf2d32338ed5353313957039)

…he system prompt in CodeAgent initialization.

@chahn chahn force-pushed the doc-improvements branch fromb2d7a54 to9c0c2ee Compare

August 22, 2025 15:05

@chahn

[Clarify documentation regarding the instructions argument in agent …](/huggingface/smolagents/pull/1709/commits/f6ff4904e88bbb0cc9ae367350447d6cc8c22ca3 "Clarify documentation regarding the `instructions` argument in agent initialization, specifying that instructions are appended to the system prompt.")

[f6ff490](/huggingface/smolagents/pull/1709/commits/f6ff4904e88bbb0cc9ae367350447d6cc8c22ca3)

…initialization, specifying that instructions are appended to the system prompt.

albertvillanova

albertvillanova approved these changes Sep 18, 2025

View reviewed changes

Copy link Copy Markdown

Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification.

chahn reacted with heart emoji

@HuggingFaceDocBuilderDev

Copy link Copy Markdown

HuggingFaceDocBuilderDev commented

Sep 18, 2025

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@chahn

Copy link Copy Markdown

Contributor Author

chahn commented

Sep 18, 2025

edited

Loading

@albertvillanova many thanks for reviewing!

@albertvillanova albertvillanova merged commit 914c718 into huggingface:main

Sep 18, 2025

4 checks passed

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Sign up for free to join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@albertvillanova albertvillanova albertvillanova approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@chahn @HuggingFaceDocBuilderDev @albertvillanova