syntaxmatrix 2.5.5.2__py3-none-any.whl → 2.5.5.3__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.
- syntaxmatrix/agentic/agents.py +4 -13
- {syntaxmatrix-2.5.5.2.dist-info → syntaxmatrix-2.5.5.3.dist-info}/METADATA +1 -1
- {syntaxmatrix-2.5.5.2.dist-info → syntaxmatrix-2.5.5.3.dist-info}/RECORD +6 -6
- {syntaxmatrix-2.5.5.2.dist-info → syntaxmatrix-2.5.5.3.dist-info}/WHEEL +0 -0
- {syntaxmatrix-2.5.5.2.dist-info → syntaxmatrix-2.5.5.3.dist-info}/licenses/LICENSE.txt +0 -0
- {syntaxmatrix-2.5.5.2.dist-info → syntaxmatrix-2.5.5.3.dist-info}/top_level.txt +0 -0
syntaxmatrix/agentic/agents.py
CHANGED
|
@@ -114,21 +114,12 @@ def mlearning_agent(user_prompt, system_prompt, coding_profile, temperature=0.1,
|
|
|
114
114
|
contents=[user_prompt],
|
|
115
115
|
config=config,
|
|
116
116
|
)
|
|
117
|
-
|
|
118
|
-
print("\n888888888888888888888888888888\n")
|
|
119
|
-
print("RESPONSE:\n", resp)
|
|
120
|
-
print("\n888888888888888888888888888888\n")
|
|
121
|
-
|
|
122
|
-
print("\n888888888888888888888888888888\n")
|
|
123
|
-
print("USAGEMETADATA:\n", resp.usage)
|
|
124
|
-
print("\n888888888888888888888888888888\n")
|
|
125
117
|
|
|
126
118
|
# 3. Token Usage Capture and Context Overhead Calculation
|
|
127
|
-
um =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
usage["total_tokens"] = _get_usage_val(um, ["total_token_count", "totalTokenCount", "total_tokens"])
|
|
119
|
+
um = resp.usage_metadata
|
|
120
|
+
usage["input_tokens"] = um.prompt_token_count
|
|
121
|
+
usage["output_tokens"] = um.thoughts_token_count
|
|
122
|
+
usage["total_tokens"] = um.total_token_count
|
|
132
123
|
|
|
133
124
|
# 4. Response Extraction (same robust logic as before)
|
|
134
125
|
text = getattr(resp, "text", None)
|
|
@@ -28,7 +28,7 @@ syntaxmatrix/vector_db.py,sha256=ozvOcMHt52xFAvcp-vAqT69kECPq9BwL8Rzgq3AJaMs,582
|
|
|
28
28
|
syntaxmatrix/vectorizer.py,sha256=5w_UQiUIirm_W-Q9TcaEI8LTcTYIuDBdKfz79T1aZ8g,1366
|
|
29
29
|
syntaxmatrix/workspace_db.py,sha256=Xu9OlW8wo3iaH5Y88ZMdLOf-fiZxF1NBb5rAw3KcbfY,4715
|
|
30
30
|
syntaxmatrix/agentic/agent_tools.py,sha256=yQwavONP23ziMxNQf3j2Y4TVo_LxEsiAWecKuBK8WDg,866
|
|
31
|
-
syntaxmatrix/agentic/agents.py,sha256
|
|
31
|
+
syntaxmatrix/agentic/agents.py,sha256=gy3XDzydAQdpp-GQyRL8TjIhAAO_ruPnmo4tvJQyARE,30588
|
|
32
32
|
syntaxmatrix/agentic/code_tools_registry.py,sha256=Wp4-KHtp0BUVciqSbmionBsQMVFOnvJPruBJeNiuwkk,1564
|
|
33
33
|
syntaxmatrix/agentic/model_templates.py,sha256=A3ROE3BHkvnU9cxqSGjlCBIw9U15zRaTKgK-WxcZtUI,76033
|
|
34
34
|
syntaxmatrix/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -60,8 +60,8 @@ syntaxmatrix/vectordb/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
60
60
|
syntaxmatrix/vectordb/adapters/milvus_adapter.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
61
|
syntaxmatrix/vectordb/adapters/pgvector_adapter.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
syntaxmatrix/vectordb/adapters/sqlite_adapter.py,sha256=L8M2qHfwZRAFVxWeurUVdHaJXz6F5xTUSWh3uy6TSUs,6035
|
|
63
|
-
syntaxmatrix-2.5.5.
|
|
64
|
-
syntaxmatrix-2.5.5.
|
|
65
|
-
syntaxmatrix-2.5.5.
|
|
66
|
-
syntaxmatrix-2.5.5.
|
|
67
|
-
syntaxmatrix-2.5.5.
|
|
63
|
+
syntaxmatrix-2.5.5.3.dist-info/licenses/LICENSE.txt,sha256=j1P8naTdy1JMxTC80XYQjbyAQnuOlpDusCUhncrvpy8,1083
|
|
64
|
+
syntaxmatrix-2.5.5.3.dist-info/METADATA,sha256=5BwuHEI4qrnajrBhNgs6KFenTIBhbtFoKMOyaEsi-kA,18092
|
|
65
|
+
syntaxmatrix-2.5.5.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
66
|
+
syntaxmatrix-2.5.5.3.dist-info/top_level.txt,sha256=HKP_zkl4V_nt7osC15DlacoBZktHrbZYOqf_pPkF3T8,13
|
|
67
|
+
syntaxmatrix-2.5.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|