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.
Files changed (31) hide show
  1. webagents/__init__.py +9 -0
  2. webagents/agents/core/base_agent.py +865 -69
  3. webagents/agents/core/handoffs.py +14 -6
  4. webagents/agents/skills/base.py +33 -2
  5. webagents/agents/skills/core/llm/litellm/skill.py +906 -27
  6. webagents/agents/skills/core/memory/vector_memory/skill.py +8 -16
  7. webagents/agents/skills/ecosystem/openai/__init__.py +6 -0
  8. webagents/agents/skills/ecosystem/openai/skill.py +867 -0
  9. webagents/agents/skills/ecosystem/replicate/README.md +440 -0
  10. webagents/agents/skills/ecosystem/replicate/__init__.py +10 -0
  11. webagents/agents/skills/ecosystem/replicate/skill.py +517 -0
  12. webagents/agents/skills/examples/__init__.py +6 -0
  13. webagents/agents/skills/examples/music_player.py +329 -0
  14. webagents/agents/skills/robutler/handoff/__init__.py +6 -0
  15. webagents/agents/skills/robutler/handoff/skill.py +191 -0
  16. webagents/agents/skills/robutler/nli/skill.py +180 -24
  17. webagents/agents/skills/robutler/payments/exceptions.py +27 -7
  18. webagents/agents/skills/robutler/payments/skill.py +64 -14
  19. webagents/agents/skills/robutler/storage/files/skill.py +2 -2
  20. webagents/agents/tools/decorators.py +243 -47
  21. webagents/agents/widgets/__init__.py +6 -0
  22. webagents/agents/widgets/renderer.py +150 -0
  23. webagents/server/core/app.py +130 -15
  24. webagents/server/core/models.py +1 -1
  25. webagents/utils/logging.py +13 -1
  26. {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/METADATA +8 -25
  27. {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/RECORD +30 -20
  28. webagents/agents/skills/ecosystem/openai_agents/__init__.py +0 -0
  29. {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/WHEEL +0 -0
  30. {webagents-0.2.2.dist-info → webagents-0.2.3.dist-info}/entry_points.txt +0 -0
  31. {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 access to a vector memory of instructions (common and agent-specific).\n"
414
- "- You MAY call fetch_instructions_tool ONCE per conversation for domain-specific guidance.\n"
415
- "- If the returned instructions are relevant, incorporate them into your reasoning.\n"
416
- "- If the returned instructions are irrelevant or generic, ignore them and proceed without them.\n"
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 relevant instruction documents from memory\n"
425
- "Use fetch_instructions_tool ONLY ONCE per conversation and only if you need specific domain guidance.\n"
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
 
@@ -0,0 +1,6 @@
1
+ """OpenAI Agent Builder Skill - Run OpenAI hosted agents/workflows"""
2
+
3
+ from .skill import OpenAIAgentBuilderSkill
4
+
5
+ __all__ = ['OpenAIAgentBuilderSkill']
6
+