webagents 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- webagents/__init__.py +9 -0
- webagents/agents/core/base_agent.py +865 -69
- webagents/agents/core/handoffs.py +14 -6
- webagents/agents/skills/base.py +33 -2
- webagents/agents/skills/core/llm/litellm/skill.py +906 -27
- webagents/agents/skills/core/memory/vector_memory/skill.py +8 -16
- webagents/agents/skills/ecosystem/openai/__init__.py +6 -0
- webagents/agents/skills/ecosystem/openai/skill.py +867 -0
- webagents/agents/skills/ecosystem/replicate/README.md +440 -0
- webagents/agents/skills/ecosystem/replicate/__init__.py +10 -0
- webagents/agents/skills/ecosystem/replicate/skill.py +517 -0
- webagents/agents/skills/examples/__init__.py +6 -0
- webagents/agents/skills/examples/music_player.py +329 -0
- webagents/agents/skills/robutler/handoff/__init__.py +6 -0
- webagents/agents/skills/robutler/handoff/skill.py +191 -0
- webagents/agents/skills/robutler/nli/skill.py +180 -24
- webagents/agents/skills/robutler/payments/exceptions.py +27 -7
- webagents/agents/skills/robutler/payments/skill.py +64 -14
- webagents/agents/skills/robutler/storage/files/skill.py +2 -2
- webagents/agents/tools/decorators.py +243 -47
- webagents/agents/widgets/__init__.py +6 -0
- webagents/agents/widgets/renderer.py +150 -0
- webagents/server/core/app.py +130 -15
- webagents/server/core/models.py +1 -1
- webagents/utils/logging.py +13 -1
- {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/METADATA +8 -25
- {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/RECORD +30 -20
- webagents/agents/skills/ecosystem/openai_agents/__init__.py +0 -0
- {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/WHEEL +0 -0
- {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/entry_points.txt +0 -0
- {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/licenses/LICENSE +0 -0
@@ -410,19 +410,17 @@ class VectorMemorySkill(Skill):
|
|
410
410
|
|
411
411
|
def get_guidance_prompt(self) -> str:
|
412
412
|
return (
|
413
|
-
"You have
|
414
|
-
"-
|
415
|
-
"-
|
416
|
-
"-
|
417
|
-
"- If you are the agent owner or an admin and need to curate knowledge, use the tools\n"
|
418
|
-
" upload_instruction / remove_instruction (owner) or create/update/delete_common_instruction (admin).\n"
|
413
|
+
"You have vector memory (common & agent-specific).\n"
|
414
|
+
"- MAY call fetch_instructions_tool ONCE per conversation for domain guidance.\n"
|
415
|
+
"- Use relevant instructions; ignore generic ones.\n"
|
416
|
+
"- Owner/admin: use upload_instruction/remove_instruction or create/update/delete_common_instruction.\n"
|
419
417
|
)
|
420
418
|
|
421
419
|
def get_tool_prompt(self) -> str:
|
422
420
|
"""Detailed prompt block that can be injected into the system prompt."""
|
423
421
|
return (
|
424
|
-
"- fetch_instructions_tool(problem, top_k=1): retrieve
|
425
|
-
"Use
|
422
|
+
"- fetch_instructions_tool(problem, top_k=1): retrieve instruction documents\n"
|
423
|
+
"Use ONCE per conversation if needed.\n"
|
426
424
|
)
|
427
425
|
|
428
426
|
# @prompt blocks to auto-inject scoped guidance
|
@@ -432,16 +430,10 @@ class VectorMemorySkill(Skill):
|
|
432
430
|
|
433
431
|
@prompt(priority=25, scope="owner")
|
434
432
|
def vector_memory_owner_prompt(self, context: Any = None) -> str:
|
435
|
-
return (
|
436
|
-
"OWNER: You may curate agent-specific instructions using upload_instruction(title, content, agent_specific=True)\n"
|
437
|
-
"and remove_instruction(doc_id). Use these to improve the agent's guidance over time.\n"
|
438
|
-
)
|
433
|
+
return "OWNER: Curate using upload_instruction(title, content, agent_specific=True) / remove_instruction(doc_id).\n"
|
439
434
|
|
440
435
|
@prompt(priority=25, scope="admin")
|
441
436
|
def vector_memory_admin_prompt(self, context: Any = None) -> str:
|
442
|
-
return
|
443
|
-
"ADMIN: You can manage common instructions using list/create/update/delete_common_instruction tools.\n"
|
444
|
-
"Use these to maintain global guidance shared across agents.\n"
|
445
|
-
)
|
437
|
+
return "ADMIN: Manage using list/create/update/delete_common_instruction tools.\n"
|
446
438
|
|
447
439
|
|