visualagents 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.
@@ -0,0 +1,20 @@
1
+ """VisualAgents - a live map of which agent in a multi-agent AI system is doing what."""
2
+
3
+ __version__ = "0.1.0"
4
+
5
+ from .sdk import ( # noqa: E402,F401
6
+ agent,
7
+ agent_end,
8
+ agent_start,
9
+ emit,
10
+ flush,
11
+ handoff,
12
+ instrument,
13
+ langchain_handler,
14
+ log,
15
+ openai_agents_processor,
16
+ thought,
17
+ tool_call,
18
+ tool_result,
19
+ track,
20
+ )
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ raise SystemExit(main())
File without changes
@@ -0,0 +1,40 @@
1
+ """Loaded automatically by Python because `visualagents run` prepends this folder to PYTHONPATH.
2
+
3
+ Installs VisualAgents' framework hooks, then runs any sitecustomize this one shadows.
4
+ """
5
+
6
+ import os
7
+ import sys
8
+
9
+
10
+ def _visualagents_boot():
11
+ if os.environ.get("VISUALAGENTS_DISABLE") == "1":
12
+ return
13
+ try:
14
+ import visualagents_runtime
15
+
16
+ visualagents_runtime.instrument()
17
+ except Exception:
18
+ pass
19
+
20
+
21
+ def _visualagents_chain():
22
+ here = os.path.dirname(os.path.abspath(__file__))
23
+ for entry in list(sys.path):
24
+ try:
25
+ if not entry or os.path.abspath(entry) == here:
26
+ continue
27
+ candidate = os.path.join(entry, "sitecustomize.py")
28
+ if os.path.isfile(candidate):
29
+ import importlib.util
30
+
31
+ spec = importlib.util.spec_from_file_location("_visualagents_shadowed_sitecustomize", candidate)
32
+ if spec and spec.loader:
33
+ spec.loader.exec_module(importlib.util.module_from_spec(spec))
34
+ return
35
+ except Exception:
36
+ return
37
+
38
+
39
+ _visualagents_boot()
40
+ _visualagents_chain()