fyodorov-llm-agents 0.4.47__py3-none-any.whl → 0.4.49__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.
@@ -72,7 +72,7 @@ class Agent(AgentModel):
72
72
  agent_dict = result.data[0]
73
73
  print(f"Fetched agent: {agent_dict}")
74
74
  agent_dict["modelid"] = str(agent_dict["model_id"])
75
- model = await LLM.get_model(access_token=access_token, id = agent_dict["modelid"])
75
+ model = await LLM.get_model(id = agent_dict["modelid"])
76
76
  agent_dict['model'] = model.name
77
77
  agent = AgentModel(**agent_dict)
78
78
  return agent
@@ -114,7 +114,7 @@ class Agent(AgentModel):
114
114
  agent = AgentModel.from_dict(data)
115
115
  agent_dict = agent.to_dict()
116
116
  model_name = data['model']
117
- model = await LLM.get_model(access_token, user_id, model_name)
117
+ model = await LLM.get_model(user_id, model_name)
118
118
  if model:
119
119
  agent_dict['model_id'] = model.id
120
120
  del agent_dict['model']
@@ -175,9 +175,9 @@ class Agent(AgentModel):
175
175
  model = self.model
176
176
  # Set environmental variable
177
177
  if self.model_id:
178
- model_instance = await LLM.get_model(self.access_token, user_id, id = self.model_id)
178
+ model_instance = await LLM.get_model(user_id, id = self.model_id)
179
179
  model = model_instance.base_model
180
- provider = await Provider.get_provider_by_id(model.provider_id)
180
+ provider = await Provider.get_provider_by_id(model_instance.provider_id)
181
181
  print(f"Provider fetched via Provider.get_provider_by_id in call_with_fn_calling: {provider}")
182
182
  else:
183
183
  print(f"Model ID not set on Agent {self.id}, using assumptions")
@@ -19,7 +19,7 @@ class Instance(InstanceModel):
19
19
 
20
20
  async def chat_w_fn_calls(self, input: str = "", access_token: str = JWT, user_id: str = "") -> str:
21
21
  agent: AgentModel = await Agent.get_in_db(access_token=access_token, id = self.agent_id)
22
- model: LLMModel = await LLM.get_model(access_token, user_id, id = agent.model_id)
22
+ model: LLMModel = await LLM.get_model(user_id, id = agent.model_id)
23
23
  print(f"Model fetched via LLM.get_model in chat_w_fn_calls: {model}")
24
24
  provider: Provider = await Provider.get_provider_by_id(access_token, id = model.provider)
25
25
  agent.prompt = f"{agent.prompt}\n\n{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}\n\n"
@@ -54,9 +54,9 @@ class LLM(LLMModel):
54
54
  raise e
55
55
 
56
56
  @staticmethod
57
- async def get_model(access_token: str, user_id: str = None, name: str = None, id: str = None) -> LLMModel:
57
+ async def get_model(user_id: str = None, name: str = None, id: str = None) -> LLMModel:
58
58
  try:
59
- supabase = get_supabase(access_token)
59
+ supabase = get_supabase()
60
60
  if id:
61
61
  print(f"Getting model with id: {id}")
62
62
  result = supabase.table('models').select('*').eq('id', id).execute()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fyodorov_llm_agents
3
- Version: 0.4.47
3
+ Version: 0.4.49
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,17 +1,17 @@
1
1
  fyodorov_llm_agents/base_model.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  fyodorov_llm_agents/agents/agent_model.py,sha256=OpsnLenPfro_nTvp_oatey8BPsb5kGX1K-ctdGkGqwU,3805
3
- fyodorov_llm_agents/agents/agent_service.py,sha256=86pbLYGQXQWN4ZRo_ofz_NB1FlEMwtlKs1CFXtV-Pgc,10791
3
+ fyodorov_llm_agents/agents/agent_service.py,sha256=NdSbJXznW21-vPdI1sQUYvNR7GafuGBvRYRMWwbBE3E,10740
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
- fyodorov_llm_agents/instances/instance_service.py,sha256=A6SE64OZDYNCJRI73kzNBjPBrN0dICa0gTCfuADbPd4,8981
6
+ fyodorov_llm_agents/instances/instance_service.py,sha256=vHzHX7-tivJvqy5ZU5JL51zAOAuw4YZT7TXLHvKm42A,8967
7
7
  fyodorov_llm_agents/models/llm_model.py,sha256=9sAM2QbVp62yFxhETii1x4VhZCn3HNwut4wqA9RUABM,1918
8
- fyodorov_llm_agents/models/llm_service.py,sha256=AYP4UqgVOYR9LAvRhmCq7N_iccrWTARnKrX6qA4cT7Q,4863
8
+ fyodorov_llm_agents/models/llm_service.py,sha256=invzXJLv5K1LsFZ2hMD1IRWoXi26_-44vYxyTWQeuhw,4832
9
9
  fyodorov_llm_agents/providers/provider_model.py,sha256=7G0WSPJYGcLIFgyQF0Y-Rv4f37-TMGg7fyeZxrC3fNE,1100
10
10
  fyodorov_llm_agents/providers/provider_service.py,sha256=iYpcyBUh4MZK9cKl2O-B7GSvSKmTUMgDjkzsTOw9Qyw,6761
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.47.dist-info/METADATA,sha256=RfUU6mKQ61kEYG4jag2vb_MbZLTXYN_7qBCorPdwhfY,551
15
- fyodorov_llm_agents-0.4.47.dist-info/WHEEL,sha256=7ciDxtlje1X8OhobNuGgi1t-ACdFSelPnSmDPrtlobY,91
16
- fyodorov_llm_agents-0.4.47.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
17
- fyodorov_llm_agents-0.4.47.dist-info/RECORD,,
14
+ fyodorov_llm_agents-0.4.49.dist-info/METADATA,sha256=EQJLxojwsmmbeJNAq3-Envo_IGNlIXdnVWzVkchOlVI,551
15
+ fyodorov_llm_agents-0.4.49.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
16
+ fyodorov_llm_agents-0.4.49.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
17
+ fyodorov_llm_agents-0.4.49.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.2.0)
2
+ Generator: setuptools (80.3.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5