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.
- sam_link_sdk/__init__.py +67 -0
- sam_link_sdk/_adapter.py +774 -0
- sam_link_sdk/_drift.py +98 -0
- sam_link_sdk/_frameworks.py +30 -0
- sam_link_sdk/_health.py +21 -0
- sam_link_sdk/_model.py +421 -0
- sam_link_sdk/_run.py +490 -0
- sam_link_sdk/_util.py +142 -0
- sam_link_sdk/adk/__init__.py +65 -0
- sam_link_sdk/adk/peer_tools.py +75 -0
- sam_link_sdk/adk/run.py +175 -0
- sam_link_sdk/adk/steps.py +270 -0
- sam_link_sdk/adk/stop.py +39 -0
- sam_link_sdk/adk/tools.py +246 -0
- sam_link_sdk/agent.py +364 -0
- sam_link_sdk/agent_framework/__init__.py +49 -0
- sam_link_sdk/agent_framework/peer_tools.py +33 -0
- sam_link_sdk/agent_framework/run.py +102 -0
- sam_link_sdk/agent_framework/steps.py +505 -0
- sam_link_sdk/agent_framework/stop.py +63 -0
- sam_link_sdk/agent_framework/tools.py +189 -0
- sam_link_sdk/agentcore.py +100 -0
- sam_link_sdk/audit.py +145 -0
- sam_link_sdk/captext.py +44 -0
- sam_link_sdk/cli.py +69 -0
- sam_link_sdk/config.py +135 -0
- sam_link_sdk/context.py +367 -0
- sam_link_sdk/crewai/__init__.py +63 -0
- sam_link_sdk/crewai/peer_tools.py +58 -0
- sam_link_sdk/crewai/run.py +245 -0
- sam_link_sdk/crewai/steps.py +549 -0
- sam_link_sdk/crewai/stop.py +106 -0
- sam_link_sdk/crewai/tools.py +255 -0
- sam_link_sdk/delegation.py +58 -0
- sam_link_sdk/events.py +85 -0
- sam_link_sdk/foundry.py +73 -0
- sam_link_sdk/hermes/__init__.py +24 -0
- sam_link_sdk/hermes/peer_tools.py +93 -0
- sam_link_sdk/hermes/run.py +317 -0
- sam_link_sdk/hermes/steps.py +535 -0
- sam_link_sdk/hermes/stop.py +122 -0
- sam_link_sdk/hermes/tools.py +60 -0
- sam_link_sdk/hosted.py +37 -0
- sam_link_sdk/ids.py +23 -0
- sam_link_sdk/langchain/__init__.py +76 -0
- sam_link_sdk/langchain/peer_tools.py +35 -0
- sam_link_sdk/langchain/run.py +247 -0
- sam_link_sdk/langchain/steps.py +309 -0
- sam_link_sdk/langchain/stop.py +45 -0
- sam_link_sdk/langchain/tools.py +175 -0
- sam_link_sdk/limits.py +57 -0
- sam_link_sdk/link/__init__.py +40 -0
- sam_link_sdk/link/config.py +188 -0
- sam_link_sdk/link/connection.py +724 -0
- sam_link_sdk/link/describer.py +210 -0
- sam_link_sdk/link/giveback.py +37 -0
- sam_link_sdk/link/transport.py +1404 -0
- sam_link_sdk/link/usage_ledger.py +217 -0
- sam_link_sdk/link/v2.py +919 -0
- sam_link_sdk/llm_errors.py +226 -0
- sam_link_sdk/memory.py +104 -0
- sam_link_sdk/metrics.py +150 -0
- sam_link_sdk/openai_agents/__init__.py +78 -0
- sam_link_sdk/openai_agents/peer_tools.py +34 -0
- sam_link_sdk/openai_agents/run.py +141 -0
- sam_link_sdk/openai_agents/steps.py +496 -0
- sam_link_sdk/openai_agents/stop.py +37 -0
- sam_link_sdk/openai_agents/tools.py +159 -0
- sam_link_sdk/otel_steps.py +598 -0
- sam_link_sdk/prompting.py +128 -0
- sam_link_sdk/py.typed +0 -0
- sam_link_sdk/redact.py +466 -0
- sam_link_sdk/request_context.py +35 -0
- sam_link_sdk/serverless.py +134 -0
- sam_link_sdk/stop.py +393 -0
- sam_link_sdk/strands/__init__.py +63 -0
- sam_link_sdk/strands/peer_tools.py +33 -0
- sam_link_sdk/strands/run.py +114 -0
- sam_link_sdk/strands/steps.py +342 -0
- sam_link_sdk/strands/stop.py +38 -0
- sam_link_sdk/strands/tools.py +144 -0
- sam_link_sdk/tasks.py +631 -0
- sam_link_sdk/usage.py +149 -0
- sam_link_sdk-0.1.0.dist-info/METADATA +183 -0
- sam_link_sdk-0.1.0.dist-info/RECORD +88 -0
- sam_link_sdk-0.1.0.dist-info/WHEEL +4 -0
- sam_link_sdk-0.1.0.dist-info/entry_points.txt +2 -0
- sam_link_sdk-0.1.0.dist-info/licenses/LICENSE +202 -0
sam_link_sdk/__init__.py
ADDED
|
@@ -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)
|