How to get/reuse code which was generated by Smolagent? #834
Unanswered
aleksadvaisly
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unfortunately, I haven’t found any answer anywhere; maybe you can help. This concerns a situation where I provide a prompt, smolagent generates code and executes a task, and although an error occurs at some step, the overall sequence of calls ends successfully. My question is: is there a method to retrieve just the executed sequence of code, but omitting the steps that turned out to be unsuccessful (i.e., ended in failure)?
My second question is: can smolagent reuse the same code if it determines that the next prompt is essentially the same, just with different parameters?
And the third question is: can the action that was just executed and delivered by smolagent be somehow saved under a specific name for later retrieval, or even used later as a tool? For example, let’s say I had an action like “retrieve metadata from the database for table XYZ and save it to a file as YAML.” Now I would like such an action to be named “retrieve metadata to YAML.”
I hope that my flood of questions hasn’t overwhelmed you; they come from someone who is new to your ecosystem, so they might seem a bit clumsy in the context of smolagent, but not from an IT standpoint.
Beta Was this translation helpful? Give feedback.
All reactions