fyodorov-llm-agents 0.4.54__py3-none-any.whl → 0.4.55__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_service.py +10 -13
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.55.dist-info}/METADATA +1 -1
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.55.dist-info}/RECORD +5 -5
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.55.dist-info}/WHEEL +0 -0
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.55.dist-info}/top_level.txt +0 -0
@@ -171,32 +171,29 @@ class Agent(AgentModel):
|
|
171
171
|
async def call_with_fn_calling(self, input: str = "", history = [], user_id: str = "") -> dict:
|
172
172
|
print('call_with_fn_calling')
|
173
173
|
litellm.set_verbose = True
|
174
|
-
model = self.model
|
175
174
|
# Set environmental variable
|
176
175
|
if self.model and self.model.id:
|
177
|
-
|
178
|
-
|
179
|
-
provider = await Provider.get_provider_by_id(model_instance.provider_id)
|
180
|
-
print(f"Provider fetched via Provider.get_provider_by_id in call_with_fn_calling: {provider}")
|
176
|
+
self.provider = await Provider.get_provider_by_id(self.model.provider_id)
|
177
|
+
print(f"Provider fetched via Provider.get_provider_by_id in call_with_fn_calling: {self.provider}")
|
181
178
|
else:
|
182
179
|
print(f"Model ID not set on Agent {self.id}, using assumptions")
|
183
|
-
if provider:
|
184
|
-
self.api_key = provider.api_key
|
185
|
-
self.api_url = provider.api_url
|
186
|
-
if provider.name == "gemini":
|
187
|
-
model = 'gemini/'+self.model
|
180
|
+
if self.provider:
|
181
|
+
self.api_key = self.provider.api_key
|
182
|
+
self.api_url = self.provider.api_url
|
183
|
+
if self.provider.name == "gemini":
|
184
|
+
model = 'gemini/'+self.model.name
|
188
185
|
os.environ["GEMINI_API_KEY"] = self.api_key
|
189
186
|
elif self.api_key.startswith('sk-'):
|
190
|
-
model = 'openai/'+self.model
|
187
|
+
model = 'openai/'+self.model.name
|
191
188
|
os.environ["OPENAI_API_KEY"] = self.api_key
|
192
189
|
self.api_url = "https://api.openai.com/v1"
|
193
190
|
elif self.api_key and self.api_key != '':
|
194
|
-
model = 'mistral/'+self.model
|
191
|
+
model = 'mistral/'+self.model.name
|
195
192
|
os.environ["MISTRAL_API_KEY"] = self.api_key
|
196
193
|
self.api_url = "https://api.mistral.ai/v1"
|
197
194
|
else:
|
198
195
|
print("Provider Ollama")
|
199
|
-
model = 'ollama/'+self.model
|
196
|
+
model = 'ollama/'+self.model.name
|
200
197
|
if self.api_url is None:
|
201
198
|
self.api_url = "https://api.ollama.ai/v1"
|
202
199
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fyodorov_llm_agents
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.55
|
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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
fyodorov_llm_agents/base_model.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
fyodorov_llm_agents/agents/agent_model.py,sha256=JNbRBWtErHnFqlP_ONd0B8Vf3o_AyigHKchsd3COZrk,3899
|
3
|
-
fyodorov_llm_agents/agents/agent_service.py,sha256=
|
3
|
+
fyodorov_llm_agents/agents/agent_service.py,sha256=C4y-BwTqyoBZoLhsR9qTek-3HI38B8gZU0LkNEPUTpE,10574
|
4
4
|
fyodorov_llm_agents/agents/openai.py,sha256=FA5RS7yn3JwvFA8PXju60XSYC_2oUZFNgBUzeIYtGv0,1154
|
5
5
|
fyodorov_llm_agents/instances/instance_model.py,sha256=swRzCXeUk2FFKzGMEjeToklBJRK7GdAJl1ZIoQALuxs,1368
|
6
6
|
fyodorov_llm_agents/instances/instance_service.py,sha256=XUHznbUhSwDrxs1R9w5zKe15hzEbw2YhNvgDCSWw07M,8764
|
@@ -11,7 +11,7 @@ fyodorov_llm_agents/providers/provider_service.py,sha256=i_xKqC-fuL33Jsdo9h0jtjH
|
|
11
11
|
fyodorov_llm_agents/tools/mcp_tool_model.py,sha256=aCJGW1WZoeTX5UVD8K-ljUTf0dxPLpPZphIKZTIuipM,5278
|
12
12
|
fyodorov_llm_agents/tools/mcp_tool_service.py,sha256=ijgR74pLcH9Bk-b-yAo9I8ZcXHJcrZOrgoWYGljxGhA,7697
|
13
13
|
fyodorov_llm_agents/tools/tool.py,sha256=HyOk0X_3XE23sa8J-8UZx657tJ0sxwZWMbA4OPxXU6E,7940
|
14
|
-
fyodorov_llm_agents-0.4.
|
15
|
-
fyodorov_llm_agents-0.4.
|
16
|
-
fyodorov_llm_agents-0.4.
|
17
|
-
fyodorov_llm_agents-0.4.
|
14
|
+
fyodorov_llm_agents-0.4.55.dist-info/METADATA,sha256=vLjFP1ZHFmmi-nwXIFq6z292b9kSnve7qiOiIZOYIFQ,551
|
15
|
+
fyodorov_llm_agents-0.4.55.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
16
|
+
fyodorov_llm_agents-0.4.55.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
|
17
|
+
fyodorov_llm_agents-0.4.55.dist-info/RECORD,,
|
File without changes
|
File without changes
|