fyodorov-llm-agents 0.0.85__py3-none-any.whl → 0.0.87__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.
- fyodorov_llm_agents/agents/base_agent.py +5 -1
- {fyodorov_llm_agents-0.0.85.dist-info → fyodorov_llm_agents-0.0.87.dist-info}/METADATA +1 -1
- {fyodorov_llm_agents-0.0.85.dist-info → fyodorov_llm_agents-0.0.87.dist-info}/RECORD +5 -5
- {fyodorov_llm_agents-0.0.85.dist-info → fyodorov_llm_agents-0.0.87.dist-info}/WHEEL +0 -0
- {fyodorov_llm_agents-0.0.85.dist-info → fyodorov_llm_agents-0.0.87.dist-info}/top_level.txt +0 -0
@@ -132,7 +132,8 @@ class BaseAgent():
|
|
132
132
|
result = result_queue.get()
|
133
133
|
try:
|
134
134
|
result = json.loads(result)
|
135
|
-
except
|
135
|
+
except Exception as e:
|
136
|
+
print("Error parsing result to json:", str(e))
|
136
137
|
continue
|
137
138
|
if result is None: # End of stream
|
138
139
|
print("End of stream")
|
@@ -145,6 +146,9 @@ class BaseAgent():
|
|
145
146
|
res = tool.call(result["function_args"])
|
146
147
|
print(f"Result from tool: {res}")
|
147
148
|
yield res.encode()
|
149
|
+
else:
|
150
|
+
print(f"Tool not found: {result['function_name']}")
|
151
|
+
yield result.encode()
|
148
152
|
else:
|
149
153
|
print(f"Result from stream: {result}")
|
150
154
|
print(f"type of result: {type(result)}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fyodorov_llm_agents
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.87
|
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,12 +1,12 @@
|
|
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=
|
3
|
+
fyodorov_llm_agents/agents/base_agent.py,sha256=uEgjX95kQcImDCs_epTUuprmB0sjWMEODX2DOFtzUgc,11142
|
4
4
|
fyodorov_llm_agents/agents/openai.py,sha256=yAGV3pcFcKfwHR1zuIiv1hmmWOUjDfrJloUGECciOlw,1167
|
5
5
|
fyodorov_llm_agents/prompts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
fyodorov_llm_agents/prompts/prompt.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
fyodorov_llm_agents/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
fyodorov_llm_agents/tools/tool.py,sha256=bGZJe9stwILc4jcYsbY7-moAwy4dG6tBXg96lGqn75o,6410
|
9
|
-
fyodorov_llm_agents-0.0.
|
10
|
-
fyodorov_llm_agents-0.0.
|
11
|
-
fyodorov_llm_agents-0.0.
|
12
|
-
fyodorov_llm_agents-0.0.
|
9
|
+
fyodorov_llm_agents-0.0.87.dist-info/METADATA,sha256=z9aSdz8fs_1tNWeb2j7BNQ_gU8-7g-283bygCad1QhY,2001
|
10
|
+
fyodorov_llm_agents-0.0.87.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
11
|
+
fyodorov_llm_agents-0.0.87.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
|
12
|
+
fyodorov_llm_agents-0.0.87.dist-info/RECORD,,
|
File without changes
|
File without changes
|