fyodorov-llm-agents 0.0.97__py3-none-any.whl → 0.0.99__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 +4 -13
- {fyodorov_llm_agents-0.0.97.dist-info → fyodorov_llm_agents-0.0.99.dist-info}/METADATA +1 -1
- {fyodorov_llm_agents-0.0.97.dist-info → fyodorov_llm_agents-0.0.99.dist-info}/RECORD +5 -5
- {fyodorov_llm_agents-0.0.97.dist-info → fyodorov_llm_agents-0.0.99.dist-info}/WHEEL +0 -0
- {fyodorov_llm_agents-0.0.97.dist-info → fyodorov_llm_agents-0.0.99.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,7 @@ class BaseAgent(BaseModel):
|
|
17
17
|
|
18
18
|
def __init__(
|
19
19
|
self,
|
20
|
-
api_key
|
20
|
+
api_key,
|
21
21
|
tools: [Tool] = [],
|
22
22
|
rag: [] = [],
|
23
23
|
model: str = "gpt-3.5-turbo",
|
@@ -211,22 +211,13 @@ class BaseAgent(BaseModel):
|
|
211
211
|
print(f"type of result: {type(result)}")
|
212
212
|
yield result.encode()
|
213
213
|
|
214
|
-
|
214
|
+
@staticmethod
|
215
|
+
def from_yaml(yaml_str: str):
|
215
216
|
"""Instantiate BaseAgent from YAML."""
|
216
217
|
if not yaml_str:
|
217
218
|
raise ValueError('YAML string is required')
|
218
219
|
agent_dict = yaml.safe_load(yaml_str)
|
219
|
-
agent =
|
220
|
-
api_key=agent_dict["api_key"],
|
221
|
-
model=agent_dict["model"],
|
222
|
-
tools=agent_dict["tools"],
|
223
|
-
rag=agent_dict["rag"],
|
224
|
-
name_for_human=agent_dict["name_for_human"],
|
225
|
-
description_for_human=agent_dict["description_for_human"],
|
226
|
-
prompt=agent_dict["prompt"],
|
227
|
-
temperature=agent_dict["temperature"],
|
228
|
-
prompt_size=agent_dict["prompt_size"],
|
229
|
-
)
|
220
|
+
agent = BaseAgent(**agent_dict)
|
230
221
|
return agent
|
231
222
|
|
232
223
|
def add_tool(self, tool: Tool):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fyodorov_llm_agents
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.99
|
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=sryuJxgijNCJAkT0_INiWMzQQ2bGGZFX8OAiy87OOg4,13519
|
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=7N_v1I0lRkDrT1qTYlEgcxzbrLopH-uegkyybSV8BEk,6976
|
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.99.dist-info/METADATA,sha256=M3FKZl6VgHG3jQbQGnXWunjLIIZEDXCSHL3w778SuOA,2001
|
10
|
+
fyodorov_llm_agents-0.0.99.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
11
|
+
fyodorov_llm_agents-0.0.99.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
|
12
|
+
fyodorov_llm_agents-0.0.99.dist-info/RECORD,,
|
File without changes
|
File without changes
|