fyodorov-llm-agents 0.2.92__py3-none-any.whl → 0.2.94__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/agent.py +7 -3
- {fyodorov_llm_agents-0.2.92.dist-info → fyodorov_llm_agents-0.2.94.dist-info}/METADATA +1 -1
- fyodorov_llm_agents-0.2.94.dist-info/RECORD +7 -0
- fyodorov_llm_agents-0.2.92.dist-info/RECORD +0 -7
- {fyodorov_llm_agents-0.2.92.dist-info → fyodorov_llm_agents-0.2.94.dist-info}/WHEEL +0 -0
- {fyodorov_llm_agents-0.2.92.dist-info → fyodorov_llm_agents-0.2.94.dist-info}/top_level.txt +0 -0
@@ -19,7 +19,7 @@ class Agent(BaseModel):
|
|
19
19
|
tools: [Tool] = []
|
20
20
|
rag: [] = []
|
21
21
|
model: str | None = None
|
22
|
-
|
22
|
+
modelid: str | None = None
|
23
23
|
name: str = "My Agent"
|
24
24
|
description: str = "My Agent Description"
|
25
25
|
prompt: str = "My Prompt"
|
@@ -80,8 +80,12 @@ class Agent(BaseModel):
|
|
80
80
|
{ "content": input, "role": "user"},
|
81
81
|
]
|
82
82
|
tools = [tool.get_function() for tool in self.tools]
|
83
|
-
|
84
|
-
|
83
|
+
if tools:
|
84
|
+
print(f"calling litellm with model {self.model}, messages: {messages}, max_retries: 0, tools: {tools}")
|
85
|
+
response = completion(model=self.model, messages=messages, max_retries=0, tools=tools, tool_choice="auto")
|
86
|
+
else:
|
87
|
+
print(f"calling litellm with model {self.model}, messages: {messages}, max_retries: 0")
|
88
|
+
response = completion(model=self.model, messages=messages, max_retries=0)
|
85
89
|
print(f"Response: {response}")
|
86
90
|
answer = response.choices[0].message.content
|
87
91
|
print(f"Answer: {answer}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fyodorov_llm_agents
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.94
|
4
4
|
Summary: LLM agents for the Fyodorov AI suite
|
5
5
|
Author-email: Daniel Ransom <02masseur.alibis@icloud.com>
|
6
6
|
Project-URL: Homepage, https://github.com/FyodorovAI/fyodorov-llm-agents
|
@@ -0,0 +1,7 @@
|
|
1
|
+
fyodorov_llm_agents/agents/agent.py,sha256=mC59vOECMI2Dp6zjCK4rJXCVHV_Ivx8KkB38L_bh5hw,3815
|
2
|
+
fyodorov_llm_agents/agents/openai.py,sha256=FA5RS7yn3JwvFA8PXju60XSYC_2oUZFNgBUzeIYtGv0,1154
|
3
|
+
fyodorov_llm_agents/tools/tool.py,sha256=ebM6vitucQ5ClH9-vOAMYHvTcUIUhzG1jZWXdtDxzC4,7062
|
4
|
+
fyodorov_llm_agents-0.2.94.dist-info/METADATA,sha256=2dPt_Y-maH1JPu_7Q6Zk_uQRSxsBmQT2pwSKrkIZ9lA,551
|
5
|
+
fyodorov_llm_agents-0.2.94.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
+
fyodorov_llm_agents-0.2.94.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
|
7
|
+
fyodorov_llm_agents-0.2.94.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
fyodorov_llm_agents/agents/agent.py,sha256=CfN2dDoAYDmUFCIDJpXTMZf9iIPOzTl1YWBmcMcfuBM,3590
|
2
|
-
fyodorov_llm_agents/agents/openai.py,sha256=FA5RS7yn3JwvFA8PXju60XSYC_2oUZFNgBUzeIYtGv0,1154
|
3
|
-
fyodorov_llm_agents/tools/tool.py,sha256=ebM6vitucQ5ClH9-vOAMYHvTcUIUhzG1jZWXdtDxzC4,7062
|
4
|
-
fyodorov_llm_agents-0.2.92.dist-info/METADATA,sha256=--jKafHRK64o9Sp75qik1EZBPaijgS60tuzAVf4JPwM,551
|
5
|
-
fyodorov_llm_agents-0.2.92.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
-
fyodorov_llm_agents-0.2.92.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
|
7
|
-
fyodorov_llm_agents-0.2.92.dist-info/RECORD,,
|
File without changes
|
File without changes
|