feat(core): sync skills from SKILL.md into memFS blocks (#9718)
This commit is contained in:
committed by
Caren Thomas
parent
a11ba9710c
commit
a50482e6d3
@@ -54,7 +54,14 @@ class TestLogContextMiddleware:
|
||||
return {
|
||||
"system/human.md": "---\ndescription: human\n---\nname: sarah",
|
||||
"system/persona.md": "---\ndescription: persona\n---\nbe helpful",
|
||||
"skills/research-helper/SKILL.md": "---\ndescription: helper\n---\n# Research Helper",
|
||||
"skills/research-helper/SKILL.md": (
|
||||
"---\n"
|
||||
"name: research-helper\n"
|
||||
"description: Search the web and summarize findings.\n"
|
||||
"---\n"
|
||||
"# Research Helper\n\n"
|
||||
"Use this skill to do deep web research and summarize results.\n"
|
||||
),
|
||||
"skills/research-helper/references/details.md": "---\ndescription: nested\n---\nShould not be synced",
|
||||
}
|
||||
|
||||
@@ -97,9 +104,13 @@ class TestLogContextMiddleware:
|
||||
labels = {call["label"] for call in synced_calls}
|
||||
assert "system/human" in labels
|
||||
assert "system/persona" in labels
|
||||
assert "skills/research-helper/SKILL" not in labels
|
||||
assert "skills/research-helper" in labels
|
||||
assert "skills/research-helper/references/details" not in labels
|
||||
|
||||
by_label = {call["label"]: call for call in synced_calls}
|
||||
assert by_label["skills/research-helper"]["description"] == "Search the web and summarize findings."
|
||||
assert by_label["skills/research-helper"]["value"].startswith("# Research Helper")
|
||||
|
||||
def test_extracts_actor_id_from_headers(self, client):
|
||||
response = client.get("/v1/agents/agent-123e4567-e89b-42d3-8456-426614174000", headers={"user_id": "user-abc123"})
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user