flowcept 0.9.5__py3-none-any.whl → 0.9.6__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.
@@ -176,6 +176,9 @@ QUERY_GUIDELINES = """
176
176
  -To select the first (or earliest) N workflow executions, use or adapt the following: `df.groupby('workflow_id', as_index=False).agg({{"started_at": 'min'}}).sort_values(by='started_at', ascending=True).head(N)['workflow_id']` - utilize `started_at` to sort!
177
177
  -To select the last (or latest or most recent) N workflow executions, use or adapt the following: `df.groupby('workflow_id', as_index=False).agg({{"ended_at": 'max'}}).sort_values(by='ended_at', ascending=False).head(N)['workflow_id']` - utilize `ended_at` to sort!
178
178
 
179
+ -To select the first or earliest or initial tasks, use or adapt the following: `df.sort_values(by='started_at', ascending=True)`
180
+ -To select the last or final or most recent tasks, use or adapt the following: `df.sort_values(by='ended_at', ascending=False)`
181
+
179
182
  -WHEN the user requests a "summary" of activities, you must incorporate relevant summary statistics such as min, max, and mean, into the code you generate.
180
183
  -Do NOT use df[0] or df[integer value] or df[df[<field name>].idxmax()] or df[df[<field name>].idxmin()] because these are obviously not valid Pandas Code!
181
184
  -**Do NOT use any of those: df[df['started_at'].idxmax()], df[df['started_at'].idxmin()], df[df['ended_at'].idxmin()], df[df['ended_at'].idxmax()]. Those are not valid Pandas Code.**
@@ -93,7 +93,6 @@ def prompt_handler(message: str) -> ToolResult:
93
93
  if "@record" in message:
94
94
  return record_guidance(message)
95
95
 
96
-
97
96
  llm = build_llm_model()
98
97
 
99
98
  prompt = ROUTING_PROMPT + message
@@ -142,7 +142,7 @@ def format_result_df(result_df) -> str:
142
142
  """
143
143
  if isinstance(result_df, pd.DataFrame):
144
144
  if not len(result_df):
145
- raise Exception("Empty DataFrame")
145
+ return "Empty Results"
146
146
  if len(result_df) > 100:
147
147
  print("Result set is too long. We are only going to send the head.") # TODO log
148
148
  # TODO deal with very long results later
flowcept/version.py CHANGED
@@ -4,4 +4,4 @@
4
4
  # The expected format is: <Major>.<Minor>.<Patch>
5
5
  # This file is supposed to be automatically modified by the CI Bot.
6
6
  # See .github/workflows/version_bumper.py
7
- __version__ = "0.9.5"
7
+ __version__ = "0.9.6"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flowcept
3
- Version: 0.9.5
3
+ Version: 0.9.6
4
4
  Summary: Capture and query workflow provenance data using data observability
5
5
  Author: Oak Ridge National Laboratory
6
6
  License-Expression: MIT
@@ -1,7 +1,7 @@
1
1
  flowcept/__init__.py,sha256=urpwIEJeikV0P6ORXKsM5Lq4o6wCwhySS9A487BYGy4,2241
2
2
  flowcept/cli.py,sha256=eVnUrmZtVhZ1ldRMGB1QsqBzNC1Pf2CX33efnlaZ4gs,22842
3
3
  flowcept/configs.py,sha256=xw9cdk-bDkR4_bV2jBkDCe9__na9LKJW5tUG32by-m4,8216
4
- flowcept/version.py,sha256=2hRBMWlo4SA_Q4Cz31nromGvo87s639Hs8UicIe7bF0,306
4
+ flowcept/version.py,sha256=52f8jJknjzSRjyruDcKgGzkV7OsLh2SvZl5sAIsExvU,306
5
5
  flowcept/agents/__init__.py,sha256=8eeD2CiKBtHiDsWdrHK_UreIkKlTq4dUbhHDyzw372o,175
6
6
  flowcept/agents/agent_client.py,sha256=UiBQkC9WE2weLZR2OTkEOEQt9-zqQOkPwRA17HfI-jk,2027
7
7
  flowcept/agents/agents_utils.py,sha256=Az5lvWTsBHs_3sWWwy7jSdDjNn-PvZ7KmYd79wxvdyU,6666
@@ -16,12 +16,12 @@ flowcept/agents/llms/claude_gcp.py,sha256=fzz7235DgzVueuFj5odsr93jWtYHpYlXkSGW1k
16
16
  flowcept/agents/llms/gemini25.py,sha256=VARrjb3tITIh3_Wppmocp_ocSKVZNon0o0GeFEwTnTI,4229
17
17
  flowcept/agents/prompts/__init__.py,sha256=7ICsNhLYzvPS1esG3Vg519s51b1c4yN0WegJUb6Qvww,26
18
18
  flowcept/agents/prompts/general_prompts.py,sha256=OWVyToJL3w16zjycA0U0oRIx3XQRuklg0wqiUOny_1U,3892
19
- flowcept/agents/prompts/in_memory_query_prompts.py,sha256=sVoZJEfNjPpqU8ruDhRoVFIAKTnlA7btkw5n9R2mYBw,19358
19
+ flowcept/agents/prompts/in_memory_query_prompts.py,sha256=70f4u3iFP9u1-CBM8yZR2cBu4qvxBe6FiKXLhRK8RCs,19634
20
20
  flowcept/agents/tools/__init__.py,sha256=Xqz2E4-LL_7DDcm1XYJFx2f5RdAsjeTpOJb_DPC7xyc,27
21
- flowcept/agents/tools/general_tools.py,sha256=xoZqNPD_eOnAsbdbo38opG7FEkQzzWq_7BoLGw055-Q,3207
21
+ flowcept/agents/tools/general_tools.py,sha256=_c8NCMU32u2HOvEDMTSDptmHZYMMh48WRkZWBayZGaY,3206
22
22
  flowcept/agents/tools/in_memory_queries/__init__.py,sha256=K8-JI_lXUgquKkgga8Nef8AntGg_logQtjjQjaEE7yI,39
23
23
  flowcept/agents/tools/in_memory_queries/in_memory_queries_tools.py,sha256=2kDmjz2cTN7q3eMjoTo4iruoyRTS0i370hSBYq2FZgA,25978
24
- flowcept/agents/tools/in_memory_queries/pandas_agent_utils.py,sha256=147Yly6p9sU6kKCbfoyNMBm9zV-ptxGWjBaRV2s8OPo,9030
24
+ flowcept/agents/tools/in_memory_queries/pandas_agent_utils.py,sha256=xyrZupR86qoUptnnQ7PeF0LTzSOquEK2cjc0ghT1KBs,9018
25
25
  flowcept/analytics/__init__.py,sha256=46q-7vsHq_ddPNrzNnDgEOiRgvlx-5Ggu2ocyROMV0w,641
26
26
  flowcept/analytics/analytics_utils.py,sha256=FRJdBtQa7Hrk2oR_FFhmhmMf3X6YyZ4nbH5RIYh7KL4,8753
27
27
  flowcept/analytics/data_augmentation.py,sha256=Dyr5x316Zf-k1e8rVoQMCpFOrklYVHjfejRPrtoycmc,1641
@@ -93,9 +93,9 @@ flowcept/instrumentation/flowcept_loop.py,sha256=jea_hYPuXg5_nOWf-nNb4vx8A__OBM4
93
93
  flowcept/instrumentation/flowcept_task.py,sha256=EmKODpjl8usNklKSVmsKYyCa6gC_QMqKhAr3DKaw44s,8199
94
94
  flowcept/instrumentation/flowcept_torch.py,sha256=kkZQRYq6cDBpdBU6J39_4oKRVkhyF3ODlz8ydV5WGKw,23455
95
95
  flowcept/instrumentation/task_capture.py,sha256=1g9EtLdqsTB0RHsF-eRmA2Xh9l_YqTd953d4v89IC24,8287
96
- resources/sample_settings.yaml,sha256=AtbnYFEWPsdBQup6dkO54frw-xT-JE5hTZqBJlXR_ms,6756
97
- flowcept-0.9.5.dist-info/METADATA,sha256=E13hEQUuwl--OL1n4tNVArw_HIxp1pHEC51lksiqetI,31581
98
- flowcept-0.9.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
99
- flowcept-0.9.5.dist-info/entry_points.txt,sha256=i8q67WE0201rVxYI2lyBtS52shvgl93x2Szp4q8zMlw,47
100
- flowcept-0.9.5.dist-info/licenses/LICENSE,sha256=r5-2P6tFTuRGWT5TiX32s1y0tnp4cIqBEC1QjTaXe2k,1086
101
- flowcept-0.9.5.dist-info/RECORD,,
96
+ resources/sample_settings.yaml,sha256=WSwpz8vmyx3oEsO6skV1KbFkYMDz-yIVQC6xlbUMDXs,6756
97
+ flowcept-0.9.6.dist-info/METADATA,sha256=Bv9ZnCip57dtrn0Hv0GaT_i8CX3DfEGn6Ngclb7P-9Y,31581
98
+ flowcept-0.9.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
99
+ flowcept-0.9.6.dist-info/entry_points.txt,sha256=i8q67WE0201rVxYI2lyBtS52shvgl93x2Szp4q8zMlw,47
100
+ flowcept-0.9.6.dist-info/licenses/LICENSE,sha256=r5-2P6tFTuRGWT5TiX32s1y0tnp4cIqBEC1QjTaXe2k,1086
101
+ flowcept-0.9.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
- flowcept_version: 0.9.5 # Version of the Flowcept package. This setting file is compatible with this version.
1
+ flowcept_version: 0.9.6 # Version of the Flowcept package. This setting file is compatible with this version.
2
2
 
3
3
  project:
4
4
  debug: true # Toggle debug mode. This will add a property `debug: true` to all saved data, making it easier to retrieve/delete them later.