sam-link-sdk 0.1.0__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 (88) hide show
  1. sam_link_sdk/__init__.py +67 -0
  2. sam_link_sdk/_adapter.py +774 -0
  3. sam_link_sdk/_drift.py +98 -0
  4. sam_link_sdk/_frameworks.py +30 -0
  5. sam_link_sdk/_health.py +21 -0
  6. sam_link_sdk/_model.py +421 -0
  7. sam_link_sdk/_run.py +490 -0
  8. sam_link_sdk/_util.py +142 -0
  9. sam_link_sdk/adk/__init__.py +65 -0
  10. sam_link_sdk/adk/peer_tools.py +75 -0
  11. sam_link_sdk/adk/run.py +175 -0
  12. sam_link_sdk/adk/steps.py +270 -0
  13. sam_link_sdk/adk/stop.py +39 -0
  14. sam_link_sdk/adk/tools.py +246 -0
  15. sam_link_sdk/agent.py +364 -0
  16. sam_link_sdk/agent_framework/__init__.py +49 -0
  17. sam_link_sdk/agent_framework/peer_tools.py +33 -0
  18. sam_link_sdk/agent_framework/run.py +102 -0
  19. sam_link_sdk/agent_framework/steps.py +505 -0
  20. sam_link_sdk/agent_framework/stop.py +63 -0
  21. sam_link_sdk/agent_framework/tools.py +189 -0
  22. sam_link_sdk/agentcore.py +100 -0
  23. sam_link_sdk/audit.py +145 -0
  24. sam_link_sdk/captext.py +44 -0
  25. sam_link_sdk/cli.py +69 -0
  26. sam_link_sdk/config.py +135 -0
  27. sam_link_sdk/context.py +367 -0
  28. sam_link_sdk/crewai/__init__.py +63 -0
  29. sam_link_sdk/crewai/peer_tools.py +58 -0
  30. sam_link_sdk/crewai/run.py +245 -0
  31. sam_link_sdk/crewai/steps.py +549 -0
  32. sam_link_sdk/crewai/stop.py +106 -0
  33. sam_link_sdk/crewai/tools.py +255 -0
  34. sam_link_sdk/delegation.py +58 -0
  35. sam_link_sdk/events.py +85 -0
  36. sam_link_sdk/foundry.py +73 -0
  37. sam_link_sdk/hermes/__init__.py +24 -0
  38. sam_link_sdk/hermes/peer_tools.py +93 -0
  39. sam_link_sdk/hermes/run.py +317 -0
  40. sam_link_sdk/hermes/steps.py +535 -0
  41. sam_link_sdk/hermes/stop.py +122 -0
  42. sam_link_sdk/hermes/tools.py +60 -0
  43. sam_link_sdk/hosted.py +37 -0
  44. sam_link_sdk/ids.py +23 -0
  45. sam_link_sdk/langchain/__init__.py +76 -0
  46. sam_link_sdk/langchain/peer_tools.py +35 -0
  47. sam_link_sdk/langchain/run.py +247 -0
  48. sam_link_sdk/langchain/steps.py +309 -0
  49. sam_link_sdk/langchain/stop.py +45 -0
  50. sam_link_sdk/langchain/tools.py +175 -0
  51. sam_link_sdk/limits.py +57 -0
  52. sam_link_sdk/link/__init__.py +40 -0
  53. sam_link_sdk/link/config.py +188 -0
  54. sam_link_sdk/link/connection.py +724 -0
  55. sam_link_sdk/link/describer.py +210 -0
  56. sam_link_sdk/link/giveback.py +37 -0
  57. sam_link_sdk/link/transport.py +1404 -0
  58. sam_link_sdk/link/usage_ledger.py +217 -0
  59. sam_link_sdk/link/v2.py +919 -0
  60. sam_link_sdk/llm_errors.py +226 -0
  61. sam_link_sdk/memory.py +104 -0
  62. sam_link_sdk/metrics.py +150 -0
  63. sam_link_sdk/openai_agents/__init__.py +78 -0
  64. sam_link_sdk/openai_agents/peer_tools.py +34 -0
  65. sam_link_sdk/openai_agents/run.py +141 -0
  66. sam_link_sdk/openai_agents/steps.py +496 -0
  67. sam_link_sdk/openai_agents/stop.py +37 -0
  68. sam_link_sdk/openai_agents/tools.py +159 -0
  69. sam_link_sdk/otel_steps.py +598 -0
  70. sam_link_sdk/prompting.py +128 -0
  71. sam_link_sdk/py.typed +0 -0
  72. sam_link_sdk/redact.py +466 -0
  73. sam_link_sdk/request_context.py +35 -0
  74. sam_link_sdk/serverless.py +134 -0
  75. sam_link_sdk/stop.py +393 -0
  76. sam_link_sdk/strands/__init__.py +63 -0
  77. sam_link_sdk/strands/peer_tools.py +33 -0
  78. sam_link_sdk/strands/run.py +114 -0
  79. sam_link_sdk/strands/steps.py +342 -0
  80. sam_link_sdk/strands/stop.py +38 -0
  81. sam_link_sdk/strands/tools.py +144 -0
  82. sam_link_sdk/tasks.py +631 -0
  83. sam_link_sdk/usage.py +149 -0
  84. sam_link_sdk-0.1.0.dist-info/METADATA +183 -0
  85. sam_link_sdk-0.1.0.dist-info/RECORD +88 -0
  86. sam_link_sdk-0.1.0.dist-info/WHEEL +4 -0
  87. sam_link_sdk-0.1.0.dist-info/entry_points.txt +2 -0
  88. sam_link_sdk-0.1.0.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,67 @@
1
+ """Join a Solace Agent Mesh as a first-class agent.
2
+
3
+ The agent core (``MeshAgent``, ``TaskContext``) reaches SAM through ``sam_link_sdk.link.LinkTransport``, the agent link to
4
+ SAM's entrypoint (SAM's broker sits behind it).
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ from typing import Any
10
+
11
+ from ._adapter import NestedRunRefused, SessionInUse, ToolAccessDenied
12
+ from ._drift import FrameworkDrift
13
+ from .agent import MeshAgent
14
+ from .config import AgentConfig, DataAccess, McpServer, Skill, Suggestion, ToolInfo
15
+ from .context import File, InputFile, TaskContext, TaskHalted, TaskResult, bind_task, current_task
16
+ from .delegation import AgentCard, PeerResult
17
+ from .memory import ConversationMemory
18
+ from .prompting import ApprovalResult, Option, PromptTooLarge, Question, UserAnswer
19
+ from .request_context import RequestContext
20
+ from .stop import AgentStopped
21
+ from .usage import Usage
22
+
23
+ __all__ = [
24
+ "AgentCard",
25
+ "AgentConfig",
26
+ "AgentStopped",
27
+ "ApprovalResult",
28
+ "ConversationMemory",
29
+ "DataAccess",
30
+ "File",
31
+ "FrameworkDrift",
32
+ "InputFile",
33
+ "LinkTransport",
34
+ "McpServer",
35
+ "MeshAgent",
36
+ "NestedRunRefused",
37
+ "Option",
38
+ "PeerResult",
39
+ "PromptTooLarge",
40
+ "Question",
41
+ "RequestContext",
42
+ "SessionInUse",
43
+ "Skill",
44
+ "Suggestion",
45
+ "TaskContext",
46
+ "TaskHalted",
47
+ "TaskResult",
48
+ "ToolAccessDenied",
49
+ "ToolInfo",
50
+ "Usage",
51
+ "UserAnswer",
52
+ "bind_task",
53
+ "current_task",
54
+ ]
55
+
56
+ _LAZY = {
57
+ "LinkTransport": "sam_link_sdk.link",
58
+ }
59
+
60
+
61
+ def __getattr__(name: str) -> Any:
62
+ module = _LAZY.get(name)
63
+ if module is None:
64
+ raise AttributeError(f"module 'sam_link_sdk' has no attribute {name!r}")
65
+ import importlib
66
+
67
+ return getattr(importlib.import_module(module), name)