skills - method of organizing blocks of agent instructions - automatic pre-load/inclusion #8572
Replies: 2 comments 1 reply
|
Yes—reusable instruction modules don't have to be dynamically discovered. For the subset you already know every run needs, compose their trusted instruction text into the agent's instructions, or inject it from a context provider before the model call. Keep dynamic discovery for optional skills. For Python, the current context-provider example shows context.extend_instructions(self.source_id, instruction_text)That hook can assemble a deterministic list of required modules using the same versioned source you use for your skills; it avoids a model → load-skill → model round trip. The SkillsProvider implementation currently builds the skills catalogue and registers loading/resource tools, so caching discovery alone is not the same thing as eagerly including each skill's full body. Two details I'd preserve in an |
|
Hi Oisin Haken (@VaclavK), I ran into the same question while looking at the current skills implementation. Based on what I found , for C#, your custom I found the skills design notes useful here: Hope this helps. If this solved your issue, please mark this comment, or another relevant one, as the solution so that other users can see what worked. It would be highly appreciated. |
Uh oh!
There was an error while loading. Please reload this page.
hi,
we use skills for two reasons. The first is the normal dynamic skill discovery depending on intent. The second is to essentially provide some order in specialized parts of agents logic so that it is a) reusable across agents ( and not copy paste) and b) easier to modify, view etc instead of having large agent instruction block.
However of course there is the roundtrip penalty.
I was thinking that it could be possible as a feature to configure context provider to "always include" defined skills and then essentially just slap them into instructions?
I don't think this would be unclean etc. and I also believe this seems like a no brainer (but not available atm).
What other strategies do you use to somewhat logically organize your instruction "functions"?
All reactions