quantalogic 0.2.18__py3-none-any.whl → 0.2.19__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.
quantalogic/agent.py CHANGED
@@ -422,7 +422,7 @@ class Agent(BaseModel):
422
422
  answer=None,
423
423
  )
424
424
 
425
- def _handle_repeated_tool_call(self, tool_name: str, arguments_with_values: dict) -> ObserveResponseResult:
425
+ def _handle_repeated_tool_call(self, tool_name: str, arguments_with_values: dict) -> (str,str):
426
426
  """Handle the case where a tool call is repeated."""
427
427
  repeat_count = self.last_tool_call.get("count", 0)
428
428
  error_message = (
@@ -436,11 +436,7 @@ class Agent(BaseModel):
436
436
  "3. Use a different tool or modify the arguments\n"
437
437
  "4. Ensure you're making progress towards the goal"
438
438
  )
439
- return ObserveResponseResult(
440
- next_prompt=error_message,
441
- executed_tool="",
442
- answer=None,
443
- )
439
+ return tool_name, error_message
444
440
 
445
441
  def _handle_tool_execution_failure(self, response: str) -> ObserveResponseResult:
446
442
  """Handle the case where tool execution fails."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantalogic
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Summary: QuantaLogic ReAct Agents
5
5
  Author: Raphaël MANSUY
6
6
  Author-email: raphael.mansuy@gmail.com
@@ -53,6 +53,7 @@ Description-Content-Type: text/markdown
53
53
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
54
54
  [![Python](https://img.shields.io/badge/Python-3.12+-blue.svg)](https://www.python.org/downloads/)
55
55
  [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://quantalogic.github.io/quantalogic/)
56
+ [HowTo Guide](./docs/howto/howto.md)
56
57
 
57
58
  QuantaLogic is a ReAct (Reasoning & Action) framework for building advanced AI agents.
58
59
 
@@ -62,6 +63,7 @@ The `cli` version include coding capabilities comparable to Aider.
62
63
 
63
64
  [📖 Documentation](https://quantalogic.github.io/quantalogic/)
64
65
 
66
+ ![Video](./examples/generated_tutorials/python/quantalogic_8s.gif)
65
67
 
66
68
  ## Why QuantaLogic?
67
69
 
@@ -270,6 +272,12 @@ print(result)
270
272
 
271
273
  ## 📖 Examples
272
274
 
275
+ Watch how QuantaLogic can generate complete tutorials from simple prompts:
276
+
277
+ [![Tutorial Generation Demo](./examples/generated_tutorials/python/quantalogic_long.mp4)](./examples/generated_tutorials/python/quantalogic_long.mp4)
278
+
279
+ Example prompt: [04-write-a-tutorial.md](./examples/tasks/04-write-a-tutorial.md)
280
+
273
281
  Here are some practical examples to help you get started:
274
282
 
275
283
  Here is the markdown table based on the provided directory listing:
@@ -1,5 +1,5 @@
1
1
  quantalogic/__init__.py,sha256=kX0c_xmD9OslWnAE92YHMGuD7xZcTo8ZOF_5R64HKps,784
2
- quantalogic/agent.py,sha256=KiONndkTQ_xTjlmwA2NcFwt4VGlBxSt40yHrL8Xrlms,29997
2
+ quantalogic/agent.py,sha256=XP25233hpGDKp-1y90wyDOREPEdS3OvTR-5WxEzXElU,29883
3
3
  quantalogic/agent_config.py,sha256=H-YkaNkVglBlnN00Htrs3bPPoD2hirBfGBpoSbKgdMU,7232
4
4
  quantalogic/coding_agent.py,sha256=viKePGtDbD3tzbc6RIPslINeRqOkLYwDWXDsw4TF18Y,4328
5
5
  quantalogic/console_print_events.py,sha256=KB-DGi52As8M96eUs1N_vgNqKIFtqv_H8NTOd3TLTgQ,2163
@@ -70,8 +70,8 @@ quantalogic/utils/read_http_text_content.py,sha256=n3IayT5KcqctIVVF2gOQQAMf3Ow6e
70
70
  quantalogic/version.py,sha256=ea_cRutaQk5_lwlLbUUvPFuOT7Of7-gAsDl7wdveS-g,107
71
71
  quantalogic/xml_parser.py,sha256=uMLQNHTRCg116FwcjRoquZmSwVtE4LEH-6V2E3RD-dA,11466
72
72
  quantalogic/xml_tool_parser.py,sha256=lsVzClZBrZan7wjCuCKnGHWzksXI3VMy_vWthxu2_bo,3738
73
- quantalogic-0.2.18.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
74
- quantalogic-0.2.18.dist-info/METADATA,sha256=W9clERsCPJHiuK25qx_dhiS3eitzGjzNHl8eA99kN2s,40514
75
- quantalogic-0.2.18.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
76
- quantalogic-0.2.18.dist-info/entry_points.txt,sha256=h74O_Q3qBRCrDR99qvwB4BpBGzASPUIjCfxHq6Qnups,183
77
- quantalogic-0.2.18.dist-info/RECORD,,
73
+ quantalogic-0.2.19.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
74
+ quantalogic-0.2.19.dist-info/METADATA,sha256=K9NDiW2H5B6atGvvB7y7znTwxs-aYqv30uOXCUmZh1U,40928
75
+ quantalogic-0.2.19.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
76
+ quantalogic-0.2.19.dist-info/entry_points.txt,sha256=h74O_Q3qBRCrDR99qvwB4BpBGzASPUIjCfxHq6Qnups,183
77
+ quantalogic-0.2.19.dist-info/RECORD,,