You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,28 +193,31 @@ The context system manages agent state, environment, and conversation history.
193
193
194
194
Context is automatically managed but you can customize your context with:
195
195
196
-
1.[Repo Microagents](https://docs.all-hands.dev/usage/prompting/microagents-repo) that provide agent with context of your repository.
197
-
2.[Knowledge Microagents](https://docs.all-hands.dev/usage/prompting/microagents-keyword) that provide agent with context when user mentioned certain keywords
196
+
1.[Repo Skills](https://docs.all-hands.dev/usage/prompting/skills-repo) that provide agent with context of your repository.
197
+
2.[Knowledge Skills](https://docs.all-hands.dev/usage/prompting/skills-keyword) that provide agent with context when user mentioned certain keywords
198
198
3. Providing custom suffix for system and user prompt.
199
199
200
200
```python
201
201
from openhands.sdk import AgentContext
202
-
from openhands.sdk.context importRepoMicroagent, KnowledgeMicroagent
202
+
from openhands.sdk.context importKeywordTrigger, Skill
203
203
204
204
context = AgentContext(
205
-
microagents=[
206
-
RepoMicroagent(
205
+
skills=[
206
+
Skill(
207
207
name="repo.md",
208
208
content="When you see this message, you should reply like "
209
209
"you are a grumpy cat forced to use the internet.",
210
+
source="repo.md",
211
+
trigger=None, # Always-active skill
210
212
),
211
-
KnowledgeMicroagent(
213
+
Skill(
212
214
name="flarglebargle",
213
215
content=(
214
216
'IMPORTANT! The user has said the magic word "flarglebargle". '
215
217
"You must only respond with a message telling them how smart they are"
0 commit comments