fyodorov-llm-agents 0.4.24__tar.gz → 0.4.26__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.24 → fyodorov_llm_agents-0.4.26}/PKG-INFO +1 -1
  2. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/pyproject.toml +1 -1
  3. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/instances/instance_service.py +6 -6
  4. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents.egg-info/PKG-INFO +1 -1
  5. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/README.md +0 -0
  6. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/setup.cfg +0 -0
  7. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/agents/agent_model.py +0 -0
  8. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/agents/agent_service.py +0 -0
  9. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/agents/openai.py +0 -0
  10. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/base_model.py +0 -0
  11. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/instances/instance_model.py +0 -0
  12. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/models/llm_model.py +0 -0
  13. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/models/llm_service.py +0 -0
  14. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/providers/provider_model.py +0 -0
  15. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/providers/provider_service.py +0 -0
  16. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/tools/mcp_tool_model.py +0 -0
  17. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/tools/mcp_tool_service.py +0 -0
  18. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents/tools/tool.py +0 -0
  19. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents.egg-info/SOURCES.txt +0 -0
  20. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/src/fyodorov_llm_agents.egg-info/dependency_links.txt +0 -0
  21. {fyodorov_llm_agents-0.4.24 → fyodorov_llm_agents-0.4.26}/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.24
3
+ Version: 0.4.26
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.24"
7
+ version = "0.4.26"
8
8
  authors = [
9
9
  { name="Daniel Ransom", email="02masseur.alibis@icloud.com" },
10
10
  ]
@@ -47,7 +47,7 @@ class Instance(InstanceModel):
47
47
  @staticmethod
48
48
  async def create_in_db(instance: InstanceModel) -> dict:
49
49
  try:
50
- existing_instance = Instance.get_by_title_and_agent(instance.title, instance.agent_id)
50
+ existing_instance = await Instance.get_by_title_and_agent(instance.title, instance.agent_id)
51
51
  if existing_instance:
52
52
  needs_update = False
53
53
  for key, value in instance.to_dict().items():
@@ -112,7 +112,7 @@ class Instance(InstanceModel):
112
112
  raise e
113
113
 
114
114
  @staticmethod
115
- def get_by_title_and_agent(title: str, agent_id: str) -> dict:
115
+ async def get_by_title_and_agent(title: str, agent_id: str) -> dict:
116
116
  if not title:
117
117
  raise ValueError('Instance title is required')
118
118
  if not agent_id:
@@ -133,7 +133,7 @@ class Instance(InstanceModel):
133
133
  raise e
134
134
 
135
135
  @staticmethod
136
- def get_in_db(id: str) -> InstanceModel:
136
+ async def get_in_db(id: str) -> InstanceModel:
137
137
  if not id:
138
138
  raise ValueError('Instance ID is required')
139
139
  try:
@@ -149,10 +149,10 @@ class Instance(InstanceModel):
149
149
  raise e
150
150
 
151
151
  @staticmethod
152
- def get_all_in_db(limit: int = 10, created_at_lt: datetime = datetime.now(), user_id: str = None) -> list[InstanceModel]:
152
+ async def get_all_in_db(limit: int = 10, created_at_lt: datetime = datetime.now(), user_id: str = None) -> list[InstanceModel]:
153
153
  try:
154
154
  supabase = get_supabase()
155
- agents = Agent.get_all_in_db(limit=limit, created_at_lt=created_at_lt, user_id=user_id)
155
+ agents = await Agent.get_all_in_db(limit=limit, created_at_lt=created_at_lt, user_id=user_id)
156
156
  if not agents:
157
157
  print("No agents found")
158
158
  return []
@@ -173,7 +173,7 @@ class Instance(InstanceModel):
173
173
  if not result.data:
174
174
  continue
175
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]
176
- instances.append(instance_models)
176
+ instances.extend(instance_models)
177
177
  return instances
178
178
  except Exception as e:
179
179
  print('[Instance.get_all_in_db] Error fetching instances', str(e))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fyodorov_llm_agents
3
- Version: 0.4.24
3
+ Version: 0.4.26
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