jaf-py 2.6.6__py3-none-any.whl → 2.6.8__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.
jaf/__init__.py CHANGED
@@ -201,7 +201,7 @@ def generate_run_id() -> RunId:
201
201
  return create_run_id(str(uuid.uuid4()))
202
202
 
203
203
 
204
- __version__ = "2.6.6"
204
+ __version__ = "2.6.8"
205
205
  __all__ = [
206
206
  # Core types and functions
207
207
  "TraceId",
jaf/core/tracing.py CHANGED
@@ -469,7 +469,7 @@ class LangfuseTraceCollector:
469
469
  public_key=public_key,
470
470
  secret_key=secret_key,
471
471
  host=host,
472
- release="jaf-py-v2.6.6",
472
+ release="jaf-py-v2.6.8",
473
473
  httpx_client=client,
474
474
  )
475
475
  self._httpx_client = client
jaf/providers/model.py CHANGED
@@ -378,6 +378,10 @@ def make_litellm_provider(
378
378
  # Prepare request parameters
379
379
  request_params = {"model": model_name, "messages": messages, "stream": False}
380
380
 
381
+ # Add session_id from conversation_id for LiteLLM tracking
382
+ if config.conversation_id:
383
+ request_params["extra_body"] = {"litellm_session_id": config.conversation_id}
384
+
381
385
  # Add optional parameters
382
386
  if agent.model_config:
383
387
  if agent.model_config.temperature is not None:
@@ -620,6 +624,10 @@ def make_litellm_provider(
620
624
  "messages": messages,
621
625
  }
622
626
 
627
+ # Add session_id from conversation_id for LiteLLM tracking
628
+ if config.conversation_id:
629
+ request_params["extra_body"] = {"litellm_session_id": config.conversation_id}
630
+
623
631
  # Add optional parameters
624
632
  if agent.model_config:
625
633
  if agent.model_config.temperature is not None:
@@ -827,6 +835,10 @@ def make_litellm_sdk_provider(
827
835
  # Prepare request parameters for LiteLLM
828
836
  request_params = {"model": model_name, "messages": messages, **self.litellm_kwargs}
829
837
 
838
+ # Add session_id from conversation_id for LiteLLM tracking
839
+ if config.conversation_id:
840
+ request_params["litellm_session_id"] = config.conversation_id
841
+
830
842
  # Add API key if provided
831
843
  if self.api_key:
832
844
  request_params["api_key"] = self.api_key
@@ -1007,6 +1019,10 @@ def make_litellm_sdk_provider(
1007
1019
  **self.litellm_kwargs,
1008
1020
  }
1009
1021
 
1022
+ # Add session_id from conversation_id for LiteLLM tracking
1023
+ if config.conversation_id:
1024
+ request_params["litellm_session_id"] = config.conversation_id
1025
+
1010
1026
  # Add API key if provided
1011
1027
  if self.api_key:
1012
1028
  request_params["api_key"] = self.api_key
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jaf-py
3
- Version: 2.6.6
3
+ Version: 2.6.8
4
4
  Summary: A purely functional agent framework with immutable state and composable tools - Python implementation
5
5
  Author: JAF Contributors
6
6
  Maintainer: JAF Contributors
@@ -82,7 +82,7 @@ Dynamic: license-file
82
82
 
83
83
  <!-- ![JAF Banner](docs/cover.png) -->
84
84
 
85
- [![Version](https://img.shields.io/badge/version-2.6.6-blue.svg)](https://github.com/xynehq/jaf-py)
85
+ [![Version](https://img.shields.io/badge/version-2.6.8-blue.svg)](https://github.com/xynehq/jaf-py)
86
86
  [![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
87
87
  [![Docs](https://img.shields.io/badge/Docs-Live-brightgreen)](https://xynehq.github.io/jaf-py/)
88
88
 
@@ -1,4 +1,4 @@
1
- jaf/__init__.py,sha256=Yp2e6CZnUrLUDne2ApyDuVd7MpKYAtJUbjMHw5HOoDE,8652
1
+ jaf/__init__.py,sha256=T9a82vb7F70_3ign9p_pVR_FYYrHxpanYK2gbgI0lZY,8652
2
2
  jaf/cli.py,sha256=EDMMA5uX0e3TUIedLdyP3p4Qy-aXADvpht3VgJPJagU,8299
3
3
  jaf/exceptions.py,sha256=FdLIw7bdCNtBYfqRyJBkRT4Z1vWuvkzrMqFiMAzjL8Y,9158
4
4
  jaf/a2a/__init__.py,sha256=r4W-WHZNjoxR8EQ0x41_rY3fl12OH5qcSn0KycXaKKU,7752
@@ -56,7 +56,7 @@ jaf/core/state.py,sha256=fdWDc2DQ-o_g_8E4ibg2QM0Vad_XUique3a5iYBwGZo,9516
56
56
  jaf/core/streaming.py,sha256=5ntOtJrZVCHuGsygquyCLG2J5yuSxE6DN5OM-BrQiGw,16818
57
57
  jaf/core/tool_results.py,sha256=L9U3JDQAjAH5YR7iMpSxfVky2Nxo6FYQs4WE05RATaQ,11283
58
58
  jaf/core/tools.py,sha256=rHxzAfGVGpYk3YJKmrq3AQLW0oE3ACkiJBOwle2bLdc,15146
59
- jaf/core/tracing.py,sha256=4paoKeW7YV0DwRWVanP7oInAV2pMYmCKNiwALXioslg,59360
59
+ jaf/core/tracing.py,sha256=m2PK2xabLXqLpqw5pTPc1OZFn_bPAtRnVXs9tCB2Ysk,59360
60
60
  jaf/core/types.py,sha256=u93jroIe1fFbRBNpOTBrc3exWrjjvetxsjTtu3jTtVA,37605
61
61
  jaf/core/workflows.py,sha256=0825AoD1QwEiGAs5IRlWHmaKrjurx6xF7oDJR6POBsg,25651
62
62
  jaf/memory/__init__.py,sha256=YfANOg5vUFSPVG7gpBE4_lYkV5X3_U6Yj9v1_QexfN0,1396
@@ -75,7 +75,7 @@ jaf/policies/handoff.py,sha256=3lPegkSV_2LUf6jEZnj68_g3XUGFB_Fsj1C_6Svr2Kg,8128
75
75
  jaf/policies/validation.py,sha256=-zhB5ysH0Y4JnstHzo3I8tt-PFB9FSHBwSUALITBxw4,11016
76
76
  jaf/providers/__init__.py,sha256=PfIQkCtXb_yiTEjqs5msGv5-a6De2ujFCEaDGJEe_TQ,2100
77
77
  jaf/providers/mcp.py,sha256=fGfrlYx5g7ZX1fBUkPmAYSePKrCc4pG_HKngV_QCdRU,13148
78
- jaf/providers/model.py,sha256=FCnenKOLwh5JJ8hcXy7pemJb32EO0uvoww5ZTqd4mlE,58619
78
+ jaf/providers/model.py,sha256=psVpZWyuTRAX2wq4Za3-JRrcW9x2KzsvcCzJFw0rRmY,59419
79
79
  jaf/server/__init__.py,sha256=cYqdruJCJ3W1AMmmxMjAnDlj9gh3XbHhtegjq4nYRNY,391
80
80
  jaf/server/main.py,sha256=usdCRZfDP3GWQchh1o2tHd4KqTTFyQQCD9w4khd9rSo,2113
81
81
  jaf/server/server.py,sha256=ZhZ2gmY10eQNaKUlE7ecMkrwMkYkAh-QgKdUJ2q7ktM,51532
@@ -89,9 +89,9 @@ jaf/visualization/functional_core.py,sha256=0Xs2R8ELADKNIgokcbjuxmWwxEyCH1yXIEdG
89
89
  jaf/visualization/graphviz.py,sha256=EwWVIRv8Z7gTiO5Spvcm-z_UUQ1oWNPRgdE33ZzFwx8,11569
90
90
  jaf/visualization/imperative_shell.py,sha256=N5lWzOLMIU_iCoy3n5WCg49eec8VxV8f7JIG6_wNtVw,2506
91
91
  jaf/visualization/types.py,sha256=90G8oClsFa_APqTuMrTW6KjD0oG9I4kVur773dXNW0E,1393
92
- jaf_py-2.6.6.dist-info/licenses/LICENSE,sha256=LXUQBJxdyr-7C4bk9cQBwvsF_xwA-UVstDTKabpcjlI,1063
93
- jaf_py-2.6.6.dist-info/METADATA,sha256=sZkx2V9NP-2eOPn_43Ff0HWoLSA9KY2XT3gR5nIpg18,27743
94
- jaf_py-2.6.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
95
- jaf_py-2.6.6.dist-info/entry_points.txt,sha256=OtIJeNJpb24kgGrqRx9szGgDx1vL9ayq8uHErmu7U5w,41
96
- jaf_py-2.6.6.dist-info/top_level.txt,sha256=Xu1RZbGaM4_yQX7bpalo881hg7N_dybaOW282F15ruE,4
97
- jaf_py-2.6.6.dist-info/RECORD,,
92
+ jaf_py-2.6.8.dist-info/licenses/LICENSE,sha256=LXUQBJxdyr-7C4bk9cQBwvsF_xwA-UVstDTKabpcjlI,1063
93
+ jaf_py-2.6.8.dist-info/METADATA,sha256=PcG40pWi8-3ldfudWH5IakRw5zEvl-lml7kZ9XBHalU,27743
94
+ jaf_py-2.6.8.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
95
+ jaf_py-2.6.8.dist-info/entry_points.txt,sha256=OtIJeNJpb24kgGrqRx9szGgDx1vL9ayq8uHErmu7U5w,41
96
+ jaf_py-2.6.8.dist-info/top_level.txt,sha256=Xu1RZbGaM4_yQX7bpalo881hg7N_dybaOW282F15ruE,4
97
+ jaf_py-2.6.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5