fyodorov-llm-agents 0.0.43__py3-none-any.whl → 0.0.45__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.
@@ -30,7 +30,7 @@ class AbstractAgent(ABC):
30
30
  if tool_called:
31
31
  print("tool called in llm response:", res)
32
32
  prompt += new_prompt
33
- # return self.invoke(prompt, input)
33
+ return self.invoke(prompt, input)
34
34
  return res
35
35
 
36
36
  def add_tool(self, tool: Tool):
@@ -57,7 +57,7 @@ class AbstractAgent(ABC):
57
57
  if re.search("Action: requests_get", prompt):
58
58
  print("[check_res_for_calls] tool called found")
59
59
  tool_called = True
60
- reqs = re.findall(r"Action Input: (.*?)", prompt)
60
+ reqs = re.findall(r"Action Input: (https?:\/\/.*?)$(?:|\n)", prompt, re.MULTILINE)
61
61
  print("[check_res_for_calls] reqs:", reqs)
62
62
  for url_string in reqs:
63
63
  print("[check_res_for_calls] calling url:", url_string)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fyodorov_llm_agents
3
- Version: 0.0.43
3
+ Version: 0.0.45
4
4
  Summary: Library for creating LLM-based agents with tools and RAG
5
5
  Author-email: Daniel Ransom <02masseur.alibis@icloud.com>
6
6
  Project-URL: Homepage, https://github.com/FyodorovAI/fyodorov-llm-agents
@@ -1,10 +1,10 @@
1
1
  fyodorov_llm_agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  fyodorov_llm_agents/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- fyodorov_llm_agents/agents/base_agent.py,sha256=UEMRNcejDPS8UKIl0Sr1KOPeJOIHolPMdo1VvpizJDo,3866
3
+ fyodorov_llm_agents/agents/base_agent.py,sha256=sF0d6Mv-ky361VQE1eAKNCnTvBFY4q8R9bRG0_Gf0LI,3897
4
4
  fyodorov_llm_agents/agents/openai.py,sha256=7cJZpQBuhPW91jLFaeKhHEJ55h0Zo0KFzzl8umQAjEM,1067
5
5
  fyodorov_llm_agents/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  fyodorov_llm_agents/tools/tool.py,sha256=Z7JkNUElmB9dnz0zyKLU7nTPa2vwHuaSWwQcS4TKpkI,6408
7
- fyodorov_llm_agents-0.0.43.dist-info/METADATA,sha256=O8QZtGQWbgQtTzsiyu25l59sGBdWiCCZhKuB7MKJTaM,2001
8
- fyodorov_llm_agents-0.0.43.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
9
- fyodorov_llm_agents-0.0.43.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
10
- fyodorov_llm_agents-0.0.43.dist-info/RECORD,,
7
+ fyodorov_llm_agents-0.0.45.dist-info/METADATA,sha256=DNZubW_TZYTAHj9aQhLH4qinF46b7ezw5GzKyh4HnDQ,2001
8
+ fyodorov_llm_agents-0.0.45.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
9
+ fyodorov_llm_agents-0.0.45.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
10
+ fyodorov_llm_agents-0.0.45.dist-info/RECORD,,