fyodorov-llm-agents 0.4.30__tar.gz → 0.4.31__tar.gz

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.
Files changed (21) hide show
  1. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/PKG-INFO +1 -1
  2. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/pyproject.toml +1 -1
  3. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/instances/instance_model.py +1 -1
  4. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/instances/instance_service.py +1 -8
  5. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents.egg-info/PKG-INFO +1 -1
  6. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/README.md +0 -0
  7. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/setup.cfg +0 -0
  8. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/agents/agent_model.py +0 -0
  9. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/agents/agent_service.py +0 -0
  10. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/agents/openai.py +0 -0
  11. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/base_model.py +0 -0
  12. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/models/llm_model.py +0 -0
  13. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/models/llm_service.py +0 -0
  14. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/providers/provider_model.py +0 -0
  15. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/providers/provider_service.py +0 -0
  16. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/tools/mcp_tool_model.py +0 -0
  17. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/tools/mcp_tool_service.py +0 -0
  18. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents/tools/tool.py +0 -0
  19. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents.egg-info/SOURCES.txt +0 -0
  20. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents.egg-info/dependency_links.txt +0 -0
  21. {fyodorov_llm_agents-0.4.30 → fyodorov_llm_agents-0.4.31}/src/fyodorov_llm_agents.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fyodorov_llm_agents
3
- Version: 0.4.30
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fyodorov_llm_agents"
7
- version = "0.4.30"
7
+ version = "0.4.31"
8
8
  authors = [
9
9
  { name="Daniel Ransom", email="02masseur.alibis@icloud.com" },
10
10
  ]
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fyodorov_llm_agents
3
- Version: 0.4.30
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