Add strands-agents example #976
Merged
yitianlian merged 7 commits intoTHUDM:mainfrom Dec 1, 2025
Lawhy:strands-slime
Merged
Conversation
yitianlian
reviewed
Dec 1, 2025
Collaborator
yitianlian
left a comment
There was a problem hiding this comment.
I’ve given a few small suggestions.
Comment on lines
+221
to
+224
| sample.payload_text = prompt_text + response_text | ||
| sample.payload_has_system = True | ||
| sample.payload_has_tools = len(agent.tool_names) > 0 | ||
| sample.tool_call_count = [message["role"] == "tool" for message in trajectory].count(True) |
Collaborator
There was a problem hiding this comment.
I believe some of these keys are unnecessary, and the sample class does not support this attribute.
Contributor
Author
There was a problem hiding this comment.
removed; only kept tool_call_count
| raise TypeError("Sample must be an instance of Sample class.") | ||
|
|
||
| # Extract information from sample | ||
| solution_str = sample.payload_text |
Collaborator
There was a problem hiding this comment.
You can use the sample.response.
| ## Install Dependencies | ||
|
|
||
| 1. Pull the `slimerl/slime:latest` image and enter it | ||
| 2. Goes to slime folder: `cd /root/slime` |
Contributor
Author
There was a problem hiding this comment.
I was thinking /root/slime is already there in the image? Do we still need to clone?
Fengzdadi
pushed a commit
to Fengzdadi/slime
that referenced
this pull request
Dec 19, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add slime x strands-agents example to showcase how to connect modern agentic training framework with agentic scaffolding framework. This example is adapted from the
examples/retool.