fyodorov-llm-agents 0.4.29__py3-none-any.whl → 0.4.31__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.
@@ -28,7 +28,7 @@ class InstanceModel(BaseModel):
28
28
 
29
29
  def to_dict(self) -> dict:
30
30
  data = {
31
- 'agent_id': str(self.agent_id),
31
+ 'agent_id': self.agent_id,
32
32
  'title': self.title,
33
33
  'chat_history': self.chat_history,
34
34
  }
@@ -69,8 +69,6 @@ class Instance(InstanceModel):
69
69
  raise ValueError('Error creating instance in DB')
70
70
  print(f"Result of creating instance in DB: {result}")
71
71
  instance_dict = result.data[0]
72
- instance_dict["id"] = str(instance_dict["id"])
73
- instance_dict["agent_id"] = str(instance_dict["agent_id"])
74
72
  return instance_dict
75
73
  except Exception as e:
76
74
  print(f"An error occurred while creating instance: {e}")
@@ -90,7 +88,6 @@ class Instance(InstanceModel):
90
88
  result = supabase.table('instances').update(instance).eq('id', id).execute()
91
89
  print(f"Result of update: {result}")
92
90
  instance_dict = result.data[0]
93
- instance_dict["id"] = str(instance_dict["id"])
94
91
  return instance_dict
95
92
  except Exception as e:
96
93
  print('An error occurred while updating instance:', id, str(e))
@@ -124,8 +121,6 @@ class Instance(InstanceModel):
124
121
  print(f"No instance found with the given title {title} and agent ID {agent_id}: {result}")
125
122
  return None
126
123
  instance_dict = result.data[0]
127
- instance_dict["agent_id"] = str(instance_dict["agent_id"])
128
- instance_dict["id"] = str(instance_dict["id"])
129
124
  print(f"Fetched instance: {instance_dict}")
130
125
  return instance_dict
131
126
  except Exception as e:
@@ -139,8 +134,6 @@ class Instance(InstanceModel):
139
134
  try:
140
135
  result = supabase.table('instances').select('*').eq('id', id).limit(1).execute()
141
136
  instance_dict = result.data[0]
142
- instance_dict["agent_id"] = str(instance_dict["agent_id"])
143
- instance_dict["id"] = str(instance_dict["id"])
144
137
  print(f"Fetched instance: {instance_dict}")
145
138
  instance = InstanceModel(**instance_dict)
146
139
  return instance
@@ -172,7 +165,7 @@ class Instance(InstanceModel):
172
165
  .execute()
173
166
  if not result.data:
174
167
  continue
175
- instance_models = [InstanceModel(**{k: str(v) if not isinstance(v, list) else v for k, v in instance.items()}) for instance in result.data]
168
+ instance_models = [InstanceModel(**instance) for instance in result.data]
176
169
  instances.extend(instance_models)
177
170
  return instances
178
171
  except Exception as e:
@@ -4,7 +4,7 @@ from fyodorov_llm_agents.providers.provider_model import Provider as ProviderTyp
4
4
  class LLMModel(BaseModel):
5
5
  id: int | None = None
6
6
  name: str
7
- provider: int | None = None
7
+ provider: str | None = None
8
8
  params: dict | None = None
9
9
  mode: str = 'chat'
10
10
  base_model: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fyodorov_llm_agents
3
- Version: 0.4.29
3
+ Version: 0.4.31
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
@@ -2,16 +2,16 @@ fyodorov_llm_agents/base_model.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
2
2
  fyodorov_llm_agents/agents/agent_model.py,sha256=EA3SiUSUGn1kBmUE4wgwds3CI-ghYSoR8N0J0oCUCpk,7052
3
3
  fyodorov_llm_agents/agents/agent_service.py,sha256=qm3oGtgrbTV3LfmVYTIrZDs4GwmghdRAxxb3gkrS2i4,6553
4
4
  fyodorov_llm_agents/agents/openai.py,sha256=FA5RS7yn3JwvFA8PXju60XSYC_2oUZFNgBUzeIYtGv0,1154
5
- fyodorov_llm_agents/instances/instance_model.py,sha256=1EVDWnisecXasfsqzFIyRnzBq8agG-itrMfIfkVNFfo,1373
6
- fyodorov_llm_agents/instances/instance_service.py,sha256=7R11sYwi6tAD87vGViRc_4LpbaeZpjvjGwS6XM3Rlbg,9201
7
- fyodorov_llm_agents/models/llm_model.py,sha256=Cwtyka37EHJRyp6Noj8vY39ERTa7UvlQATC7iz5EEjg,1883
5
+ fyodorov_llm_agents/instances/instance_model.py,sha256=swRzCXeUk2FFKzGMEjeToklBJRK7GdAJl1ZIoQALuxs,1368
6
+ fyodorov_llm_agents/instances/instance_service.py,sha256=pn2nEjFc2WnFKhLLUJNlbu9h5UxPI0il-DlNS04pkmo,8686
7
+ fyodorov_llm_agents/models/llm_model.py,sha256=G0mbJKaD11qoHmt7lFuVZrOGdqdDnfKSXr9vypHAds4,1883
8
8
  fyodorov_llm_agents/models/llm_service.py,sha256=L_YxZIotlPea0ymUfYXY24rdnCuZdOZEMTDrh8J_BAM,4562
9
9
  fyodorov_llm_agents/providers/provider_model.py,sha256=LaNdMr6x8QRNWO38CiSMJ3Q9OxRjoc9pjOuPIiua09M,1080
10
10
  fyodorov_llm_agents/providers/provider_service.py,sha256=pvb43ZdF8zFzgP2GELCSE8rDxjjsYe-s0RlcTa8vWIE,6588
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=miE-wKqNjbgOdxhRjdJ4-UuQDSozMp-bHgRy3moT4Cg,7679
13
13
  fyodorov_llm_agents/tools/tool.py,sha256=HyOk0X_3XE23sa8J-8UZx657tJ0sxwZWMbA4OPxXU6E,7940
14
- fyodorov_llm_agents-0.4.29.dist-info/METADATA,sha256=Ik8Q4blpuHxk1uGzN3r9jfHx5FoZC-t6FolQ_ad4Pqc,551
15
- fyodorov_llm_agents-0.4.29.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
16
- fyodorov_llm_agents-0.4.29.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
17
- fyodorov_llm_agents-0.4.29.dist-info/RECORD,,
14
+ fyodorov_llm_agents-0.4.31.dist-info/METADATA,sha256=CLyUaslqAd_9jZyKHiE_QPwL0lF1-xtb4-2R9-G6gMM,551
15
+ fyodorov_llm_agents-0.4.31.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
16
+ fyodorov_llm_agents-0.4.31.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
17
+ fyodorov_llm_agents-0.4.31.dist-info/RECORD,,