vision-agent 0.2.16__py3-none-any.whl → 0.2.17__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.
- vision_agent/tools/tool_utils.py +4 -0
- {vision_agent-0.2.16.dist-info → vision_agent-0.2.17.dist-info}/METADATA +1 -1
- {vision_agent-0.2.16.dist-info → vision_agent-0.2.17.dist-info}/RECORD +5 -5
- {vision_agent-0.2.16.dist-info → vision_agent-0.2.17.dist-info}/LICENSE +0 -0
- {vision_agent-0.2.16.dist-info → vision_agent-0.2.17.dist-info}/WHEEL +0 -0
vision_agent/tools/tool_utils.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import logging
|
2
|
+
import os
|
2
3
|
from typing import Any, Dict
|
3
4
|
|
4
5
|
import requests
|
@@ -13,11 +14,14 @@ _LND_API_URL = "https://api.dev.landing.ai/v1/agent"
|
|
13
14
|
def _send_inference_request(
|
14
15
|
payload: Dict[str, Any], endpoint_name: str
|
15
16
|
) -> Dict[str, Any]:
|
17
|
+
# runtime_tag is used to differentiate different internal callers
|
18
|
+
runtime_tag = os.environ.get("RUNTIME_TAG", "")
|
16
19
|
res = requests.post(
|
17
20
|
f"{_LND_API_URL}/model/{endpoint_name}",
|
18
21
|
headers={
|
19
22
|
"Content-Type": "application/json",
|
20
23
|
"apikey": _LND_API_KEY,
|
24
|
+
"runtime-tag": runtime_tag,
|
21
25
|
},
|
22
26
|
json=payload,
|
23
27
|
)
|
@@ -19,7 +19,7 @@ vision_agent/lmm/__init__.py,sha256=nnNeKD1k7q_4vLb1x51O_EUTYaBgGfeiCx5F433gr3M,
|
|
19
19
|
vision_agent/lmm/lmm.py,sha256=gK90vMxh0OcGSuIZQikBkDXm4pfkdFk1R2y7rtWDl84,10539
|
20
20
|
vision_agent/tools/__init__.py,sha256=p5SM0YhThSVO_jRF9O-OjH2fYDPv-iMjexDX9xPPb7M,452
|
21
21
|
vision_agent/tools/prompts.py,sha256=V1z4YJLXZuUl_iZ5rY0M5hHc_2tmMEUKr0WocXKGt4E,1430
|
22
|
-
vision_agent/tools/tool_utils.py,sha256=
|
22
|
+
vision_agent/tools/tool_utils.py,sha256=1m24PE4Psb96Q51NFx3w3XctTgSyRSWCX7YG6YcJy9E,925
|
23
23
|
vision_agent/tools/tools.py,sha256=sVxN7SpDkz_XTc_SKwkoRF4EwaMTuHvTsCHwtR942Fc,47373
|
24
24
|
vision_agent/tools/tools_v2.py,sha256=1Y_ZbYJyuo2eZZkq7jY3YfuKWC82C-GFCZMLYH-I5ew,13800
|
25
25
|
vision_agent/utils/__init__.py,sha256=AKXf1QVOpO6MnqU8RSaFLQ_4us4DcKf8ibgEbhuHjvI,95
|
@@ -28,7 +28,7 @@ vision_agent/utils/image_utils.py,sha256=1dggPBhW8_hUXDItCRLa23h-hdBwS50cjL4v1hs
|
|
28
28
|
vision_agent/utils/sim.py,sha256=FaD16kKL1-JR2aSCmznF9KkJux9u3_Nr9tF4smBeoK0,2327
|
29
29
|
vision_agent/utils/type_defs.py,sha256=4LTnTL4HNsfYqCrDn9Ppjg9bSG2ZGcoKSSd9YeQf4Bw,1792
|
30
30
|
vision_agent/utils/video.py,sha256=xTElFSFp1Jw4ulOMnk81Vxsh-9dTxcWUO6P9fzEi3AM,7653
|
31
|
-
vision_agent-0.2.
|
32
|
-
vision_agent-0.2.
|
33
|
-
vision_agent-0.2.
|
34
|
-
vision_agent-0.2.
|
31
|
+
vision_agent-0.2.17.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
32
|
+
vision_agent-0.2.17.dist-info/METADATA,sha256=NGE3lE7Aaa4uLZtdShMzowT8bINPKn2saBMihFSWVAA,9121
|
33
|
+
vision_agent-0.2.17.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
34
|
+
vision_agent-0.2.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|