fyodorov-llm-agents 0.4.54__py3-none-any.whl → 0.4.56__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 +11 -13
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.56.dist-info}/METADATA +1 -1
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.56.dist-info}/RECORD +5 -5
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.56.dist-info}/WHEEL +0 -0
- {fyodorov_llm_agents-0.4.54.dist-info → fyodorov_llm_agents-0.4.56.dist-info}/top_level.txt +0 -0
@@ -171,32 +171,30 @@ 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
|
175
|
+
print(f"[call_with_fn_calling] self.model: {self.model}")
|
176
176
|
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}")
|
177
|
+
self.provider = await Provider.get_provider_by_id(self.model.provider_id)
|
178
|
+
print(f"Provider fetched via Provider.get_provider_by_id in call_with_fn_calling: {self.provider}")
|
181
179
|
else:
|
182
180
|
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
|
181
|
+
if self.provider:
|
182
|
+
self.api_key = self.provider.api_key
|
183
|
+
self.api_url = self.provider.api_url
|
184
|
+
if self.provider.name == "gemini":
|
185
|
+
model = 'gemini/'+self.model.name
|
188
186
|
os.environ["GEMINI_API_KEY"] = self.api_key
|
189
187
|
elif self.api_key.startswith('sk-'):
|
190
|
-
model = 'openai/'+self.model
|
188
|
+
model = 'openai/'+self.model.name
|
191
189
|
os.environ["OPENAI_API_KEY"] = self.api_key
|
192
190
|
self.api_url = "https://api.openai.com/v1"
|
193
191
|
elif self.api_key and self.api_key != '':
|
194
|
-
model = 'mistral/'+self.model
|
192
|
+
model = 'mistral/'+self.model.name
|
195
193
|
os.environ["MISTRAL_API_KEY"] = self.api_key
|
196
194
|
self.api_url = "https://api.mistral.ai/v1"
|
197
195
|
else:
|
198
196
|
print("Provider Ollama")
|
199
|
-
model = 'ollama/'+self.model
|
197
|
+
model = 'ollama/'+self.model.name
|
200
198
|
if self.api_url is None:
|
201
199
|
self.api_url = "https://api.ollama.ai/v1"
|
202
200
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fyodorov_llm_agents
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.56
|
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=JU2z3pTnTjvfNYJZn_UfJlAJFCQ0dioHBAV_wsXKMho,10640
|
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.56.dist-info/METADATA,sha256=eym1t50VslAgFrVF_o4vRSXp9WGayaaORkcBVejkn-A,551
|
15
|
+
fyodorov_llm_agents-0.4.56.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
16
|
+
fyodorov_llm_agents-0.4.56.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
|
17
|
+
fyodorov_llm_agents-0.4.56.dist-info/RECORD,,
|
File without changes
|
File without changes
|