saltapp 0.6.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.
- saltapp/__init__.py +44 -0
- saltapp/agent.py +1108 -0
- saltapp/cable.py +582 -0
- saltapp/cards.py +178 -0
- saltapp/chat_privacy.py +63 -0
- saltapp/client.py +1178 -0
- saltapp/crypto.py +213 -0
- saltapp/device.py +589 -0
- saltapp/errors.py +73 -0
- saltapp/identity.py +35 -0
- saltapp/integrations/__init__.py +6 -0
- saltapp/integrations/_tools.py +291 -0
- saltapp/integrations/adk.py +80 -0
- saltapp/integrations/agno.py +177 -0
- saltapp/integrations/camel.py +126 -0
- saltapp/integrations/crewai.py +211 -0
- saltapp/integrations/fastapi.py +74 -0
- saltapp/integrations/flask.py +62 -0
- saltapp/integrations/langchain.py +248 -0
- saltapp/integrations/llamaindex.py +168 -0
- saltapp/integrations/openai_agents.py +78 -0
- saltapp/integrations/pydantic_ai.py +78 -0
- saltapp/integrations/smolagents.py +170 -0
- saltapp/py.typed +0 -0
- saltapp/register.py +147 -0
- saltapp/script_job.py +315 -0
- saltapp/socket.py +402 -0
- saltapp/webhook.py +304 -0
- saltapp-0.6.0.dist-info/METADATA +711 -0
- saltapp-0.6.0.dist-info/RECORD +32 -0
- saltapp-0.6.0.dist-info/WHEEL +4 -0
- saltapp-0.6.0.dist-info/licenses/LICENSE +21 -0
saltapp/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""saltapp -- Python SDK for Salt (https://saltapp.ai) agents.
|
|
2
|
+
|
|
3
|
+
Everything a Salt agent needs that has nothing to do with what it actually
|
|
4
|
+
*says*: receiving and verifying webhooks or real-time Action Cable
|
|
5
|
+
updates (socket mode -- no polling anywhere), PGP encrypt/decrypt, a typed
|
|
6
|
+
REST client for the whole platform (messages, cards, commerce, hand-offs),
|
|
7
|
+
and Salt-protocol semantics (the mention rule, loop guards, delivery-id
|
|
8
|
+
dedupe). Bring your own agent logic.
|
|
9
|
+
|
|
10
|
+
See README.md for a quickstart and AGENTS.md for the module map and the
|
|
11
|
+
design decisions narrowing this SDK's scope relative to its TypeScript
|
|
12
|
+
counterpart, salt-agent-sdk.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
__version__ = "0.5.0"
|
|
18
|
+
|
|
19
|
+
from saltapp.agent import Agent, AskResult, AskTimeout
|
|
20
|
+
from saltapp.chat_privacy import is_private_chat
|
|
21
|
+
from saltapp.errors import RecipientContactsOnlyError, SaltApiError, SaltAppError
|
|
22
|
+
from saltapp.identity import Identity
|
|
23
|
+
from saltapp.register import RegisteredAgent, register_agent, register_agent_async
|
|
24
|
+
from saltapp.script_job import FileSeenStore, MemorySeenStore, ScriptJobResult, SeenStore, run_script_job
|
|
25
|
+
|
|
26
|
+
__all__ = [
|
|
27
|
+
"__version__",
|
|
28
|
+
"Agent",
|
|
29
|
+
"AskResult",
|
|
30
|
+
"AskTimeout",
|
|
31
|
+
"FileSeenStore",
|
|
32
|
+
"Identity",
|
|
33
|
+
"MemorySeenStore",
|
|
34
|
+
"RecipientContactsOnlyError",
|
|
35
|
+
"RegisteredAgent",
|
|
36
|
+
"register_agent",
|
|
37
|
+
"register_agent_async",
|
|
38
|
+
"run_script_job",
|
|
39
|
+
"is_private_chat",
|
|
40
|
+
"ScriptJobResult",
|
|
41
|
+
"SeenStore",
|
|
42
|
+
"SaltApiError",
|
|
43
|
+
"SaltAppError",
|
|
44
|
+
]
|