simile 0.2.2__tar.gz → 0.2.4__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.
Potentially problematic release.
This version of simile might be problematic. Click here for more details.
- {simile-0.2.2 → simile-0.2.4}/PKG-INFO +2 -2
- {simile-0.2.2 → simile-0.2.4}/pyproject.toml +2 -2
- {simile-0.2.2 → simile-0.2.4}/simile/client.py +7 -0
- {simile-0.2.2 → simile-0.2.4}/simile.egg-info/PKG-INFO +2 -2
- {simile-0.2.2 → simile-0.2.4}/LICENSE +0 -0
- {simile-0.2.2 → simile-0.2.4}/README.md +0 -0
- {simile-0.2.2 → simile-0.2.4}/setup.cfg +0 -0
- {simile-0.2.2 → simile-0.2.4}/setup.py +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile/__init__.py +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile/exceptions.py +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile/models.py +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile/resources.py +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile.egg-info/SOURCES.txt +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile.egg-info/dependency_links.txt +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile.egg-info/requires.txt +0 -0
- {simile-0.2.2 → simile-0.2.4}/simile.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simile
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Package for interfacing with Simile AI agents for simulation
|
|
5
5
|
Author-email: Simile AI <cqz@simile.ai>
|
|
6
|
-
License
|
|
6
|
+
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/simile-team/simile-sdk
|
|
8
8
|
Keywords: api,sdk,simile,ai-agent,simulation
|
|
9
9
|
Classifier: Development Status :: 3 - Alpha
|
|
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "simile"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.4"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Simile AI", email="cqz@simile.ai" },
|
|
10
10
|
]
|
|
11
11
|
description = "Package for interfacing with Simile AI agents for simulation"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
requires-python = ">=3.8"
|
|
14
|
-
license = "MIT"
|
|
14
|
+
license = { text = "MIT" }
|
|
15
15
|
keywords = ["api", "sdk", "simile", "ai-agent", "simulation"]
|
|
16
16
|
classifiers = [
|
|
17
17
|
"Development Status :: 3 - Alpha",
|
|
@@ -101,6 +101,13 @@ class Simile:
|
|
|
101
101
|
response_data = await self._request("DELETE", f"populations/delete/{str(population_id)}", response_model=DeletionResponse)
|
|
102
102
|
return response_data
|
|
103
103
|
|
|
104
|
+
async def get_agents_in_population(self, population_id: Union[str, uuid.UUID]) -> List[AgentModel]:
|
|
105
|
+
"""Retrieves all agents belonging to a specific population."""
|
|
106
|
+
endpoint = f"populations/{str(population_id)}/agents"
|
|
107
|
+
raw_response = await self._request("GET", endpoint)
|
|
108
|
+
agents_data_list = raw_response.json()
|
|
109
|
+
return [AgentModel(**data) for data in agents_data_list]
|
|
110
|
+
|
|
104
111
|
async def create_agent(self, name: str, population_id: Optional[Union[str, uuid.UUID]] = None, agent_data: Optional[List[Dict[str, Any]]] = None) -> AgentModel:
|
|
105
112
|
"""Creates a new agent, optionally within a population and with initial data items."""
|
|
106
113
|
pop_id_uuid: Optional[uuid.UUID] = None
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simile
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Package for interfacing with Simile AI agents for simulation
|
|
5
5
|
Author-email: Simile AI <cqz@simile.ai>
|
|
6
|
-
License
|
|
6
|
+
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/simile-team/simile-sdk
|
|
8
8
|
Keywords: api,sdk,simile,ai-agent,simulation
|
|
9
9
|
Classifier: Development Status :: 3 - Alpha
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|