pygeai 0.2.7b38__py3-none-any.whl → 0.2.7b40__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.
- pygeai/cli/commands/configuration.py +3 -5
- pygeai/core/files/managers.py +31 -12
- pygeai/core/handlers.py +10 -1
- pygeai/lab/agents/clients.py +35 -19
- pygeai/lab/agents/mappers.py +2 -0
- pygeai/lab/managers.py +2 -0
- pygeai/lab/models.py +10 -0
- pygeai/lab/processes/clients.py +15 -14
- pygeai/lab/tools/clients.py +4 -6
- pygeai/tests/integration/lab/agents/test_create_agent.py +1 -3
- pygeai/tests/snippets/files/delete_file.py +1 -4
- pygeai/tests/snippets/files/get_file_content.py +2 -4
- pygeai/tests/snippets/files/get_file_data.py +1 -4
- pygeai/tests/snippets/files/get_file_list.py +1 -6
- pygeai/tests/snippets/files/upload_file.py +1 -5
- pygeai/tests/snippets/lab/agentic_flow_example_1.py +25 -23
- pygeai/tests/snippets/lab/agents/create_agent.py +4 -3
- {pygeai-0.2.7b38.dist-info → pygeai-0.2.7b40.dist-info}/METADATA +1 -1
- {pygeai-0.2.7b38.dist-info → pygeai-0.2.7b40.dist-info}/RECORD +23 -23
- {pygeai-0.2.7b38.dist-info → pygeai-0.2.7b40.dist-info}/WHEEL +0 -0
- {pygeai-0.2.7b38.dist-info → pygeai-0.2.7b40.dist-info}/entry_points.txt +0 -0
- {pygeai-0.2.7b38.dist-info → pygeai-0.2.7b40.dist-info}/licenses/LICENSE +0 -0
- {pygeai-0.2.7b38.dist-info → pygeai-0.2.7b40.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
|
|
3
1
|
from pygeai.cli.commands import Option
|
|
4
2
|
from pygeai.core.common.config import get_settings
|
|
5
3
|
from pygeai.core.utils.console import Console
|
|
@@ -34,7 +32,7 @@ def configure(option_list: list[str, str] = None):
|
|
|
34
32
|
for option_flag, option_arg in option_list:
|
|
35
33
|
if option_flag.name == "list":
|
|
36
34
|
list_alias = True
|
|
37
|
-
if option_flag.name == "
|
|
35
|
+
if option_flag.name == "profile_alias":
|
|
38
36
|
alias = option_arg
|
|
39
37
|
if option_flag.name == "api_key":
|
|
40
38
|
api_key = option_arg
|
|
@@ -98,8 +96,8 @@ configuration_options = (
|
|
|
98
96
|
True
|
|
99
97
|
),
|
|
100
98
|
Option(
|
|
101
|
-
"
|
|
102
|
-
["--alias", "
|
|
99
|
+
"profile_alias",
|
|
100
|
+
["--profile-alias", "--pa"],
|
|
103
101
|
"Set alias for settings section",
|
|
104
102
|
True
|
|
105
103
|
),
|
pygeai/core/files/managers.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from pygeai import logger
|
|
2
|
+
from pygeai.admin.clients import AdminClient
|
|
2
3
|
from pygeai.core.base.mappers import ErrorMapper, ResponseMapper
|
|
3
4
|
from pygeai.core.base.responses import EmptyResponse
|
|
4
5
|
from pygeai.core.files.clients import FileClient
|
|
@@ -28,8 +29,26 @@ class FileManager:
|
|
|
28
29
|
base_url,
|
|
29
30
|
alias
|
|
30
31
|
)
|
|
31
|
-
self.
|
|
32
|
-
self.
|
|
32
|
+
self.organization_id = self.__get_organization_id() if not organization_id else organization_id
|
|
33
|
+
self.project_id = self.__get_project_id() if not project_id else project_id
|
|
34
|
+
|
|
35
|
+
def __get_organization_id(self):
|
|
36
|
+
response = None
|
|
37
|
+
try:
|
|
38
|
+
response = AdminClient().validate_api_token()
|
|
39
|
+
return response.get("organizationId")
|
|
40
|
+
except Exception as e:
|
|
41
|
+
logger.error(f"Error retrieving organization_id from GEAI. Response: {response}: {e}")
|
|
42
|
+
raise APIError(f"Error retrieving organization_id from GEAI: {e}")
|
|
43
|
+
|
|
44
|
+
def __get_project_id(self):
|
|
45
|
+
response = None
|
|
46
|
+
try:
|
|
47
|
+
response = AdminClient().validate_api_token()
|
|
48
|
+
return response.get("projectId")
|
|
49
|
+
except Exception as e:
|
|
50
|
+
logger.error(f"Error retrieving project_id from GEAI. Response: {response}: {e}")
|
|
51
|
+
raise APIError(f"Error retrieving project_id from GEAI: {e}")
|
|
33
52
|
|
|
34
53
|
def upload_file(
|
|
35
54
|
self,
|
|
@@ -47,8 +66,8 @@ class FileManager:
|
|
|
47
66
|
"""
|
|
48
67
|
response_data = self.__client.upload_file(
|
|
49
68
|
file_path=file.path,
|
|
50
|
-
organization_id=self.
|
|
51
|
-
project_id=self.
|
|
69
|
+
organization_id=self.organization_id,
|
|
70
|
+
project_id=self.project_id,
|
|
52
71
|
folder=file.folder,
|
|
53
72
|
file_name=file.name,
|
|
54
73
|
)
|
|
@@ -75,8 +94,8 @@ class FileManager:
|
|
|
75
94
|
:raises APIError: If the API returns errors.
|
|
76
95
|
"""
|
|
77
96
|
response_data = self.__client.get_file(
|
|
78
|
-
organization=self.
|
|
79
|
-
project=self.
|
|
97
|
+
organization=self.organization_id,
|
|
98
|
+
project=self.project_id,
|
|
80
99
|
file_id=file_id
|
|
81
100
|
)
|
|
82
101
|
if ErrorHandler.has_errors(response_data):
|
|
@@ -101,8 +120,8 @@ class FileManager:
|
|
|
101
120
|
:raises APIError: If the API returns errors.
|
|
102
121
|
"""
|
|
103
122
|
response_data = self.__client.delete_file(
|
|
104
|
-
organization=self.
|
|
105
|
-
project=self.
|
|
123
|
+
organization=self.organization_id,
|
|
124
|
+
project=self.project_id,
|
|
106
125
|
file_id=file_id
|
|
107
126
|
)
|
|
108
127
|
if ErrorHandler.has_errors(response_data):
|
|
@@ -128,8 +147,8 @@ class FileManager:
|
|
|
128
147
|
:raises APIError: If the API returns errors.
|
|
129
148
|
"""
|
|
130
149
|
response_data = self.__client.get_file_content(
|
|
131
|
-
organization=self.
|
|
132
|
-
project=self.
|
|
150
|
+
organization=self.organization_id,
|
|
151
|
+
project=self.project_id,
|
|
133
152
|
file_id=file_id
|
|
134
153
|
)
|
|
135
154
|
if isinstance(response_data, dict) and "errors" in response_data:
|
|
@@ -151,8 +170,8 @@ class FileManager:
|
|
|
151
170
|
:raises APIError: If the API returns errors.
|
|
152
171
|
"""
|
|
153
172
|
response_data = self.__client.get_file_list(
|
|
154
|
-
organization=self.
|
|
155
|
-
project=self.
|
|
173
|
+
organization=self.organization_id,
|
|
174
|
+
project=self.project_id
|
|
156
175
|
)
|
|
157
176
|
if ErrorHandler.has_errors(response_data):
|
|
158
177
|
error = ErrorHandler.extract_error(response_data)
|
pygeai/core/handlers.py
CHANGED
|
@@ -6,7 +6,16 @@ class ErrorHandler:
|
|
|
6
6
|
@classmethod
|
|
7
7
|
def has_errors(cls, response):
|
|
8
8
|
error_found = False
|
|
9
|
-
if
|
|
9
|
+
if (
|
|
10
|
+
"errors" in response or
|
|
11
|
+
"error" in response or
|
|
12
|
+
(
|
|
13
|
+
"message" in response and
|
|
14
|
+
isinstance(response.get("message"), list) and
|
|
15
|
+
len(response.get("message")) > 0 and
|
|
16
|
+
response.get("message")[0].get("type") == "error"
|
|
17
|
+
)
|
|
18
|
+
):
|
|
10
19
|
error_found = True
|
|
11
20
|
|
|
12
21
|
return error_found
|
pygeai/lab/agents/clients.py
CHANGED
|
@@ -73,6 +73,7 @@ class AgentClient(BaseClient):
|
|
|
73
73
|
description: str,
|
|
74
74
|
agent_data_prompt: dict,
|
|
75
75
|
agent_data_llm_config: dict,
|
|
76
|
+
agent_data_strategy_name: str,
|
|
76
77
|
agent_data_models: list,
|
|
77
78
|
agent_data_resource_pools: Optional[List[Dict]] = None,
|
|
78
79
|
automatic_publish: bool = False
|
|
@@ -89,6 +90,7 @@ class AgentClient(BaseClient):
|
|
|
89
90
|
:param description: str - Detailed description of the agent’s purpose (optional).
|
|
90
91
|
:param agent_data_prompt: dict - Prompt configuration, including 'context', 'instructions', and optional 'examples' (e.g., {'context': str, 'instructions': str, 'examples': [{'inputData': str, 'output': str}]}).
|
|
91
92
|
:param agent_data_llm_config: dict - LLM configuration (e.g., {'maxTokens': int, 'timeout': int, 'sampling': {'temperature': float}}).
|
|
93
|
+
:param agent_data_strategy_name: str - Strategy name to be used.
|
|
92
94
|
:param agent_data_models: list - List of models the agent can use (e.g., [{'name': 'gpt-4o', 'llmConfig': dict}]).
|
|
93
95
|
:param agent_data_resource_pools: Optional[List[Dict]] - Resource pools for tools and helper agents (e.g., [{'name': str, 'tools': [{'name': str, 'revision': int}], 'agents': [{'name': str, 'revision': int}]}]).
|
|
94
96
|
:param automatic_publish: bool - Automatically publish the agent after creation (default: False).
|
|
@@ -107,17 +109,23 @@ class AgentClient(BaseClient):
|
|
|
107
109
|
"jobDescription": job_description,
|
|
108
110
|
"avatarImage": avatar_image,
|
|
109
111
|
"description": description,
|
|
110
|
-
"agentData": {
|
|
111
|
-
"prompt": agent_data_prompt,
|
|
112
|
-
"llmConfig": agent_data_llm_config,
|
|
113
|
-
"models": agent_data_models
|
|
114
|
-
}
|
|
115
112
|
}
|
|
116
113
|
}
|
|
117
|
-
|
|
114
|
+
if (
|
|
115
|
+
agent_data_prompt or agent_data_strategy_name or agent_data_prompt or agent_data_resource_pools or
|
|
116
|
+
agent_data_llm_config or agent_data_models
|
|
117
|
+
):
|
|
118
|
+
data["agentDefinition"]["agentData"] = {}
|
|
118
119
|
if agent_data_resource_pools is not None:
|
|
119
120
|
data["agentDefinition"]["agentData"]["resourcePools"] = agent_data_resource_pools
|
|
120
|
-
|
|
121
|
+
if agent_data_prompt is not None:
|
|
122
|
+
data["agentDefinition"]["agentData"]["prompt"] = agent_data_prompt
|
|
123
|
+
if agent_data_llm_config is not None:
|
|
124
|
+
data["agentDefinition"]["agentData"]["llmConfig"] = agent_data_llm_config
|
|
125
|
+
if agent_data_strategy_name is not None:
|
|
126
|
+
data["agentDefinition"]["agentData"]["strategyName"] = agent_data_strategy_name
|
|
127
|
+
if agent_data_models is not None:
|
|
128
|
+
data["agentDefinition"]["agentData"]["models"] = agent_data_models
|
|
121
129
|
logger.debug(f"Creating agent with data: {data}")
|
|
122
130
|
|
|
123
131
|
endpoint = CREATE_AGENT_V2
|
|
@@ -300,13 +308,11 @@ class AgentClient(BaseClient):
|
|
|
300
308
|
headers=headers,
|
|
301
309
|
data={}
|
|
302
310
|
)
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
except JSONDecodeError as e:
|
|
306
|
-
logger.error(f"Unable to delete agent {agent_id} from project {project_id}: JSON parsing error (status {response.status_code}): {e}. Response: {response.text}")
|
|
311
|
+
if response.status_code != 204:
|
|
312
|
+
logger.error(f"Unable to delete agent {agent_id} from project {project_id}: JSON parsing error (status {response.status_code}). Response: {response.text}")
|
|
307
313
|
raise InvalidAPIResponseException(f"Unable to delete agent {agent_id} from project {project_id}: {response.text}")
|
|
308
|
-
|
|
309
|
-
|
|
314
|
+
else:
|
|
315
|
+
return {}
|
|
310
316
|
|
|
311
317
|
def update_agent(
|
|
312
318
|
self,
|
|
@@ -320,6 +326,7 @@ class AgentClient(BaseClient):
|
|
|
320
326
|
description: str,
|
|
321
327
|
agent_data_prompt: dict,
|
|
322
328
|
agent_data_llm_config: dict,
|
|
329
|
+
agent_data_strategy_name: dict,
|
|
323
330
|
agent_data_models: list,
|
|
324
331
|
agent_data_resource_pools: Optional[List[Dict]] = None,
|
|
325
332
|
automatic_publish: bool = False,
|
|
@@ -338,6 +345,7 @@ class AgentClient(BaseClient):
|
|
|
338
345
|
:param description: str - Updated purpose description (optional).
|
|
339
346
|
:param agent_data_prompt: dict - Updated prompt configuration (e.g., {'context': str, 'instructions': str, 'examples': [{'inputData': str, 'output': str}]}).
|
|
340
347
|
:param agent_data_llm_config: dict - Updated LLM configuration (e.g., {'maxTokens': int, 'timeout': int, 'sampling': {'temperature': float}}).
|
|
348
|
+
:param agent_data_strategy_name: str - Updated StrategyName configuration.
|
|
341
349
|
:param agent_data_models: list - Updated model list (e.g., [{'name': 'gpt-4o', 'llmConfig': dict}]).
|
|
342
350
|
:param agent_data_resource_pools: Optional[List[Dict]] - Updated resource pools (e.g., [{'name': str, 'tools': [{'name': str, 'revision': int}], 'agents': [{'name': str, 'revision': int}]}]).
|
|
343
351
|
:param automatic_publish: bool - Automatically publish the agent after updating (default: False).
|
|
@@ -357,15 +365,23 @@ class AgentClient(BaseClient):
|
|
|
357
365
|
"jobDescription": job_description,
|
|
358
366
|
"avatarImage": avatar_image,
|
|
359
367
|
"description": description,
|
|
360
|
-
"agentData": {
|
|
361
|
-
"prompt": agent_data_prompt,
|
|
362
|
-
"llmConfig": agent_data_llm_config,
|
|
363
|
-
"models": agent_data_models
|
|
364
|
-
}
|
|
365
368
|
}
|
|
366
369
|
}
|
|
370
|
+
if (
|
|
371
|
+
agent_data_prompt or agent_data_strategy_name or agent_data_prompt or agent_data_resource_pools or
|
|
372
|
+
agent_data_llm_config or agent_data_models
|
|
373
|
+
):
|
|
374
|
+
data["agentDefinition"]["agentData"] = {}
|
|
367
375
|
if agent_data_resource_pools is not None:
|
|
368
376
|
data["agentDefinition"]["agentData"]["resourcePools"] = agent_data_resource_pools
|
|
377
|
+
if agent_data_prompt is not None:
|
|
378
|
+
data["agentDefinition"]["agentData"]["prompt"] = agent_data_prompt
|
|
379
|
+
if agent_data_llm_config is not None:
|
|
380
|
+
data["agentDefinition"]["agentData"]["llmConfig"] = agent_data_llm_config
|
|
381
|
+
if agent_data_strategy_name is not None:
|
|
382
|
+
data["agentDefinition"]["agentData"]["strategyName"] = agent_data_strategy_name
|
|
383
|
+
if agent_data_models is not None:
|
|
384
|
+
data["agentDefinition"]["agentData"]["models"] = agent_data_models
|
|
369
385
|
|
|
370
386
|
logger.debug(f"Updating agent with ID {agent_id} with data: {data}")
|
|
371
387
|
|
|
@@ -392,4 +408,4 @@ class AgentClient(BaseClient):
|
|
|
392
408
|
logger.error(f"Unable to update agent {agent_id} in project {project_id}: JSON parsing error (status {response.status_code}): {e}. Response: {response.text}")
|
|
393
409
|
raise InvalidAPIResponseException(f"Unable to update agent {agent_id} in project {project_id}: {response.text}")
|
|
394
410
|
|
|
395
|
-
return result
|
|
411
|
+
return result
|
pygeai/lab/agents/mappers.py
CHANGED
|
@@ -65,10 +65,12 @@ class AgentMapper:
|
|
|
65
65
|
prompt_data = data.get("prompt")
|
|
66
66
|
llm_config_data = data.get("llmConfig")
|
|
67
67
|
models_list = data.get("models")
|
|
68
|
+
strategy_name = data.get("strategyName")
|
|
68
69
|
resource_pool_list = data.get("resourcePools")
|
|
69
70
|
return AgentData(
|
|
70
71
|
prompt=cls._map_to_prompt(prompt_data) if prompt_data else None,
|
|
71
72
|
llm_config=cls._map_to_llm_config(llm_config_data) if llm_config_data else None,
|
|
73
|
+
strategy_name=strategy_name,
|
|
72
74
|
models=cls._map_to_model_list(models_list) if models_list else None,
|
|
73
75
|
resource_pools=cls._map_to_resource_pool_list(resource_pool_list) if resource_pool_list else None
|
|
74
76
|
)
|
pygeai/lab/managers.py
CHANGED
|
@@ -101,6 +101,7 @@ class AILabManager:
|
|
|
101
101
|
avatar_image=agent.avatar_image,
|
|
102
102
|
description=agent.description,
|
|
103
103
|
agent_data_prompt=agent.agent_data.prompt.to_dict() if agent.agent_data is not None else None,
|
|
104
|
+
agent_data_strategy_name=agent.agent_data.strategy_name if agent.agent_data is not None else None,
|
|
104
105
|
agent_data_llm_config=agent.agent_data.llm_config.to_dict() if agent.agent_data is not None else None,
|
|
105
106
|
agent_data_models=agent.agent_data.models.to_dict() if agent.agent_data is not None else None,
|
|
106
107
|
agent_data_resource_pools=agent.agent_data.resource_pools.to_dict() if agent.agent_data and agent.agent_data.resource_pools else None,
|
|
@@ -149,6 +150,7 @@ class AILabManager:
|
|
|
149
150
|
description=agent.description,
|
|
150
151
|
agent_data_prompt=agent.agent_data.prompt.to_dict() if agent.agent_data is not None else None,
|
|
151
152
|
agent_data_llm_config=agent.agent_data.llm_config.to_dict() if agent.agent_data is not None else None,
|
|
153
|
+
agent_data_strategy_name=agent.agent_data.strategy_name if agent.agent_data is not None else None,
|
|
152
154
|
agent_data_models=agent.agent_data.models.to_dict() if agent.agent_data is not None else None,
|
|
153
155
|
automatic_publish=automatic_publish,
|
|
154
156
|
upsert=upsert
|
pygeai/lab/models.py
CHANGED
|
@@ -166,6 +166,14 @@ class Prompt(CustomBaseModel):
|
|
|
166
166
|
context: Optional[str] = Field(None, alias="context", description="Background context for the agent")
|
|
167
167
|
examples: Optional[List[PromptExample]] = Field(None, alias="examples")
|
|
168
168
|
|
|
169
|
+
@field_validator("instructions")
|
|
170
|
+
@classmethod
|
|
171
|
+
def validate_instructions(cls, value: str) -> str:
|
|
172
|
+
if not value.strip():
|
|
173
|
+
raise ValueError("instructions cannot be blank")
|
|
174
|
+
|
|
175
|
+
return value
|
|
176
|
+
|
|
169
177
|
@field_validator("outputs", mode="before")
|
|
170
178
|
@classmethod
|
|
171
179
|
def normalize_outputs(cls, value):
|
|
@@ -380,11 +388,13 @@ class AgentData(CustomBaseModel):
|
|
|
380
388
|
|
|
381
389
|
:param prompt: dict - Prompt instructions, inputs, outputs, and examples for the agent.
|
|
382
390
|
:param llm_config: dict - Configuration parameters for the LLM (e.g., max tokens, timeout, temperature).
|
|
391
|
+
:param strategy_name: str - Strategy name used for the agent (e.g., Dynamic Prompting, Chain of Thought, Question Refinement, etc)
|
|
383
392
|
:param models: ModelList - List of models available for the agent.
|
|
384
393
|
:param resource_pools: Optional[List[ResourcePool]] - List of resource pools organizing tools and helper agents.
|
|
385
394
|
"""
|
|
386
395
|
prompt: Prompt = Field(..., alias="prompt")
|
|
387
396
|
llm_config: LlmConfig = Field(..., alias="llmConfig")
|
|
397
|
+
strategy_name: Optional[str] = Field("Dynamic Prompting", alias="strategyName")
|
|
388
398
|
models: Optional[Union[ModelList, List[Model]]] = Field(None, alias="models")
|
|
389
399
|
resource_pools: Optional[ResourcePoolList] = Field(None, alias="resourcePools", description="List of resource pools organizing tools and helper agents")
|
|
390
400
|
|
pygeai/lab/processes/clients.py
CHANGED
|
@@ -399,13 +399,12 @@ class AgenticProcessClient(BaseClient):
|
|
|
399
399
|
endpoint=endpoint,
|
|
400
400
|
headers=headers
|
|
401
401
|
)
|
|
402
|
-
try:
|
|
403
|
-
result = response.json()
|
|
404
|
-
except JSONDecodeError as e:
|
|
405
|
-
logger.error(f"Unable to delete process {process_id or process_name} from project {project_id}: JSON parsing error (status {response.status_code}): {e}. Response: {response.text}")
|
|
406
|
-
raise InvalidAPIResponseException(f"Unable to delete process {process_id or process_name} from project {project_id}: {response.text}")
|
|
407
402
|
|
|
408
|
-
|
|
403
|
+
if response.status_code != 204:
|
|
404
|
+
logger.error(f"Unable to delete process {process_id or process_name} from project {project_id}: JSON parsing error (status {response.status_code}). Response: {response.text}")
|
|
405
|
+
raise InvalidAPIResponseException(f"Unable to delete process {process_id or process_name} from project {project_id}: {response.text}")
|
|
406
|
+
else:
|
|
407
|
+
return {}
|
|
409
408
|
|
|
410
409
|
def publish_process_revision(
|
|
411
410
|
self,
|
|
@@ -699,11 +698,12 @@ class AgenticProcessClient(BaseClient):
|
|
|
699
698
|
logger.debug(f"Deleting task with name {task_name}")
|
|
700
699
|
|
|
701
700
|
response = self.api_service.delete(endpoint=endpoint, headers=headers)
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
logger.error(f"Unable to delete task {task_id or task_name} from project {project_id}: JSON parsing error (status {response.status_code}): {e}. Response: {response.text}")
|
|
701
|
+
|
|
702
|
+
if response.status_code != 204:
|
|
703
|
+
logger.error(f"Unable to delete task {task_id or task_name} from project {project_id}: JSON parsing error (status {response.status_code}). Response: {response.text}")
|
|
706
704
|
raise InvalidAPIResponseException(f"Unable to delete task {task_id or task_name} from project {project_id}: {response.text}")
|
|
705
|
+
else:
|
|
706
|
+
return {}
|
|
707
707
|
|
|
708
708
|
def publish_task_revision(
|
|
709
709
|
self,
|
|
@@ -1121,11 +1121,12 @@ class AgenticProcessClient(BaseClient):
|
|
|
1121
1121
|
logger.debug(f"Deleting KB with name {kb_name}")
|
|
1122
1122
|
|
|
1123
1123
|
response = self.api_service.delete(endpoint=endpoint, headers=headers)
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
logger.error(f"Unable to delete knowledge base {kb_id or kb_name} from project {project_id}: JSONDecodeError parsing error (status {response.status_code}): {e}. Response: {response.text}")
|
|
1124
|
+
|
|
1125
|
+
if response.status_code != 204:
|
|
1126
|
+
logger.error(f"Unable to delete knowledge base {kb_id or kb_name} from project {project_id}: JSONDecodeError parsing error (status {response.status_code}). Response: {response.text}")
|
|
1128
1127
|
raise InvalidAPIResponseException(f"Unable to delete knowledge base {kb_id or kb_name} from project {project_id}: {response.text}")
|
|
1128
|
+
else:
|
|
1129
|
+
return {}
|
|
1129
1130
|
|
|
1130
1131
|
def list_jobs(
|
|
1131
1132
|
self,
|
pygeai/lab/tools/clients.py
CHANGED
|
@@ -256,13 +256,11 @@ class ToolClient(BaseClient):
|
|
|
256
256
|
headers=headers
|
|
257
257
|
)
|
|
258
258
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
except JSONDecodeError as e:
|
|
262
|
-
logger.error(f"Unable to delete tool {tool_id or tool_name} from project {project_id}: JSON parsing error (status {response.status_code}): {e}. Response: {response.text}")
|
|
259
|
+
if response.status_code != 204:
|
|
260
|
+
logger.error(f"Unable to delete tool {tool_id or tool_name} from project {project_id}: JSON parsing error (status {response.status_code}). Response: {response.text}")
|
|
263
261
|
raise InvalidAPIResponseException(f"Unable to delete tool {tool_id or tool_name} from project {project_id}: {response.text}")
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
else:
|
|
263
|
+
return {}
|
|
266
264
|
|
|
267
265
|
def update_tool(
|
|
268
266
|
self,
|
|
@@ -13,7 +13,6 @@ class TestAILabCreateAgentIntegration(TestCase):
|
|
|
13
13
|
Set up the test environment.
|
|
14
14
|
"""
|
|
15
15
|
self.ai_lab_manager = AILabManager(alias="beta")
|
|
16
|
-
self.project_id = "be4889df-cacc-4e6f-b3bb-153c4ac0d168"
|
|
17
16
|
self.new_agent = self.__load_agent()
|
|
18
17
|
self.created_agent: Agent = None
|
|
19
18
|
|
|
@@ -26,7 +25,7 @@ class TestAILabCreateAgentIntegration(TestCase):
|
|
|
26
25
|
if isinstance(self.created_agent, Agent):
|
|
27
26
|
#TODO: Remove exception catch when delete_agent stop returning an unexpected error
|
|
28
27
|
with self.assertRaises(InvalidAPIResponseException) as e:
|
|
29
|
-
self.ai_lab_manager.delete_agent(self.
|
|
28
|
+
self.ai_lab_manager.delete_agent(self.created_agent.id)
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
def __load_agent(self):
|
|
@@ -66,7 +65,6 @@ class TestAILabCreateAgentIntegration(TestCase):
|
|
|
66
65
|
If automatic_publish is None, do not pass it (useful for tests that omit it).
|
|
67
66
|
"""
|
|
68
67
|
return self.ai_lab_manager.create_agent(
|
|
69
|
-
project_id=self.project_id,
|
|
70
68
|
agent=self.new_agent if agent is None else agent,
|
|
71
69
|
automatic_publish=automatic_publish
|
|
72
70
|
)
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
from pygeai.core.models import Organization, Project
|
|
2
1
|
from pygeai.core.files.managers import FileManager
|
|
3
2
|
from pygeai.core.files.models import File
|
|
4
3
|
|
|
5
|
-
organization = Organization(id="4aa15b61-d3c7-4a5c-99b8-052d18a04ff2")
|
|
6
|
-
project = Project(id="1956c032-3c66-4435-acb8-6a06e52f819f")
|
|
7
4
|
file = File(id="7fe2393d-8f86-4020-a51f-bc14ab957e1e")
|
|
8
5
|
|
|
9
|
-
file_manager = FileManager(
|
|
6
|
+
file_manager = FileManager()
|
|
10
7
|
|
|
11
8
|
response = file_manager.delete_file(file_id=file.id)
|
|
12
9
|
print(response)
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
from pygeai.core.models import Organization, Project
|
|
2
1
|
from pygeai.core.files.managers import FileManager
|
|
3
2
|
from pygeai.core.files.models import File
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
project = Project(id="1956c032-3c66-4435-acb8-6a06e52f819f")
|
|
4
|
+
|
|
7
5
|
file = File(id="7fe2393d-8f86-4020-a51f-bc14ab957e1e")
|
|
8
6
|
|
|
9
|
-
file_manager = FileManager(
|
|
7
|
+
file_manager = FileManager()
|
|
10
8
|
|
|
11
9
|
response = file_manager.get_file_content(file_id=file.id)
|
|
12
10
|
print(response)
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
from pygeai.core.models import Organization, Project
|
|
2
1
|
from pygeai.core.files.managers import FileManager
|
|
3
2
|
from pygeai.core.files.models import File
|
|
4
3
|
|
|
5
|
-
organization = Organization(id="4aa15b61-d3c7-4a5c-99b8-052d18a04ff2")
|
|
6
|
-
project = Project(id="1956c032-3c66-4435-acb8-6a06e52f819f")
|
|
7
4
|
file = File(id="9984b837-fe88-4014-ad14-91e1596c8ead")
|
|
8
5
|
|
|
9
|
-
file_manager = FileManager(
|
|
6
|
+
file_manager = FileManager()
|
|
10
7
|
|
|
11
8
|
response = file_manager.get_file_data(file_id=file.id)
|
|
12
9
|
print(response)
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
from pygeai.core.models import Organization, Project
|
|
2
1
|
from pygeai.core.files.managers import FileManager
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
project = Project(id="1956c032-3c66-4435-acb8-6a06e52f819f")
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
file_manager = FileManager(organization_id=organization.id, project_id=project.id)
|
|
3
|
+
file_manager = FileManager()
|
|
9
4
|
|
|
10
5
|
response = file_manager.get_file_list()
|
|
11
6
|
print(response)
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
from pygeai.core.models import Organization, Project
|
|
2
1
|
from pygeai.core.files.managers import FileManager
|
|
3
2
|
from pygeai.core.files.models import UploadFile
|
|
4
3
|
|
|
5
|
-
organization = Organization(id="4aa15b61-d3c7-4a5c-99b8-052d18a04ff2")
|
|
6
|
-
project = Project(id="1956c032-3c66-4435-acb8-6a06e52f819f")
|
|
7
|
-
|
|
8
4
|
file = UploadFile(
|
|
9
5
|
path="test.txt",
|
|
10
6
|
name="TestyFile",
|
|
11
7
|
folder="TestyTestTemp"
|
|
12
8
|
)
|
|
13
9
|
|
|
14
|
-
file_manager = FileManager(
|
|
10
|
+
file_manager = FileManager()
|
|
15
11
|
|
|
16
12
|
response = file_manager.upload_file(file)
|
|
17
13
|
print(response)
|
|
@@ -24,23 +24,23 @@ def rollback():
|
|
|
24
24
|
print("\n=== Initiating Rollback ===")
|
|
25
25
|
if created_entities["instance_id"]:
|
|
26
26
|
print(f"Deleting instance {created_entities['instance_id']}...")
|
|
27
|
-
result = manager.abort_instance(
|
|
27
|
+
result = manager.abort_instance(instance_id=created_entities["instance_id"])
|
|
28
28
|
print(f"Rollback: {result}")
|
|
29
29
|
if created_entities["process_id"]:
|
|
30
30
|
print(f"Deleting process {created_entities['process_id']}...")
|
|
31
|
-
result = manager.delete_process(
|
|
31
|
+
result = manager.delete_process(process_id=created_entities["process_id"])
|
|
32
32
|
print(f"Rollback: {result}")
|
|
33
33
|
if created_entities["task_id"]:
|
|
34
34
|
print(f"Deleting task {created_entities['task_id']}...")
|
|
35
|
-
result = manager.delete_task(
|
|
35
|
+
result = manager.delete_task(task_id=created_entities["task_id"])
|
|
36
36
|
print(f"Rollback: {result}")
|
|
37
37
|
if created_entities["tool_id"]:
|
|
38
38
|
print(f"Deleting tool {created_entities['tool_id']}...")
|
|
39
|
-
result = manager.delete_tool(
|
|
39
|
+
result = manager.delete_tool(tool_id=created_entities["tool_id"])
|
|
40
40
|
print(f"Rollback: {result}")
|
|
41
41
|
if created_entities["agent_id"]:
|
|
42
42
|
print(f"Deleting agent {created_entities['agent_id']}...")
|
|
43
|
-
result = manager.delete_agent(
|
|
43
|
+
result = manager.delete_agent(agent_id=created_entities["agent_id"])
|
|
44
44
|
print(f"Rollback: {result}")
|
|
45
45
|
print("Rollback complete.")
|
|
46
46
|
|
|
@@ -67,13 +67,14 @@ def main():
|
|
|
67
67
|
timeout=30,
|
|
68
68
|
sampling=Sampling(temperature=0.7, top_k=40, top_p=0.9)
|
|
69
69
|
),
|
|
70
|
+
strategy_name="Dynamic Prompting",
|
|
70
71
|
models=ModelList(models=[
|
|
71
72
|
Model(name="gpt-4"),
|
|
72
73
|
Model(name="gpt-3.5-turbo")
|
|
73
74
|
])
|
|
74
75
|
)
|
|
75
76
|
)
|
|
76
|
-
create_agent_result = manager.create_agent(
|
|
77
|
+
create_agent_result = manager.create_agent(agent=agent, automatic_publish=False)
|
|
77
78
|
if isinstance(create_agent_result, Agent):
|
|
78
79
|
print(f"Success: Created Agent: {create_agent_result.name}, ID: {create_agent_result.id}")
|
|
79
80
|
created_entities["agent_id"] = create_agent_result.id
|
|
@@ -84,7 +85,7 @@ def main():
|
|
|
84
85
|
|
|
85
86
|
print("Updating agent description...")
|
|
86
87
|
agent.description = "Updated agent for testing workflows with enhanced capabilities"
|
|
87
|
-
update_agent_result = manager.update_agent(
|
|
88
|
+
update_agent_result = manager.update_agent(agent=agent, automatic_publish=False)
|
|
88
89
|
if isinstance(update_agent_result, Agent):
|
|
89
90
|
print(f"Success: Updated Agent: {update_agent_result.description}")
|
|
90
91
|
else:
|
|
@@ -93,7 +94,7 @@ def main():
|
|
|
93
94
|
exit()
|
|
94
95
|
|
|
95
96
|
print("Publishing agent revision '1'...")
|
|
96
|
-
publish_agent_result = manager.publish_agent_revision(
|
|
97
|
+
publish_agent_result = manager.publish_agent_revision(agent_id=created_entities["agent_id"], revision="1")
|
|
97
98
|
if isinstance(publish_agent_result, Agent):
|
|
98
99
|
print(f"Success: Published Agent Revision: {publish_agent_result.name}")
|
|
99
100
|
else:
|
|
@@ -102,7 +103,7 @@ def main():
|
|
|
102
103
|
exit()
|
|
103
104
|
|
|
104
105
|
print("Retrieving latest agent version...")
|
|
105
|
-
latest_agent = manager.get_agent(
|
|
106
|
+
latest_agent = manager.get_agent(agent_id=created_entities["agent_id"])
|
|
106
107
|
if isinstance(latest_agent, Agent):
|
|
107
108
|
print(f"Success: Latest Agent: {latest_agent.name}, Description: {latest_agent.description}")
|
|
108
109
|
else:
|
|
@@ -121,7 +122,7 @@ def main():
|
|
|
121
122
|
ToolParameter(key="max_length", data_type="Integer", description="Maximum length of output", is_required=False, value="100")
|
|
122
123
|
]
|
|
123
124
|
)
|
|
124
|
-
create_tool_result = manager.create_tool(
|
|
125
|
+
create_tool_result = manager.create_tool(tool=tool, automatic_publish=False)
|
|
125
126
|
if isinstance(create_tool_result, Tool):
|
|
126
127
|
print(f"Success: Created Tool: {create_tool_result.name}, ID: {create_tool_result.id}")
|
|
127
128
|
created_entities["tool_id"] = create_tool_result.id
|
|
@@ -132,7 +133,7 @@ def main():
|
|
|
132
133
|
|
|
133
134
|
print("Updating tool description...")
|
|
134
135
|
tool.description = "Updated tool for enhanced text processing"
|
|
135
|
-
update_tool_result = manager.update_tool(
|
|
136
|
+
update_tool_result = manager.update_tool(tool=tool, automatic_publish=False)
|
|
136
137
|
if isinstance(update_tool_result, Tool):
|
|
137
138
|
print(f"Success: Updated Tool: {update_tool_result.description}")
|
|
138
139
|
else:
|
|
@@ -141,7 +142,7 @@ def main():
|
|
|
141
142
|
exit()
|
|
142
143
|
|
|
143
144
|
print("Publishing tool revision '1'...")
|
|
144
|
-
publish_tool_result = manager.publish_tool_revision(
|
|
145
|
+
publish_tool_result = manager.publish_tool_revision(tool_id=created_entities["tool_id"], revision="1")
|
|
145
146
|
if isinstance(publish_tool_result, Tool):
|
|
146
147
|
print(f"Success: Published Tool Revision: {publish_tool_result.name}")
|
|
147
148
|
else:
|
|
@@ -150,7 +151,7 @@ def main():
|
|
|
150
151
|
exit()
|
|
151
152
|
|
|
152
153
|
print("Retrieving latest tool version...")
|
|
153
|
-
latest_tool = manager.get_tool(
|
|
154
|
+
latest_tool = manager.get_tool(tool_id=created_entities["tool_id"])
|
|
154
155
|
if isinstance(latest_tool, Tool):
|
|
155
156
|
print(f"Success: Latest Tool: {latest_tool.name}, Description: {latest_tool.description}")
|
|
156
157
|
else:
|
|
@@ -166,7 +167,7 @@ def main():
|
|
|
166
167
|
description="Processes text data using an agent",
|
|
167
168
|
title_template="Text Processing Task #{{id}}"
|
|
168
169
|
)
|
|
169
|
-
create_task_result = manager.create_task(
|
|
170
|
+
create_task_result = manager.create_task(task=task, automatic_publish=False)
|
|
170
171
|
if isinstance(create_task_result, Task):
|
|
171
172
|
print(f"Success: Created Task: {create_task_result.name}, ID: {create_task_result.id}")
|
|
172
173
|
created_entities["task_id"] = create_task_result.id
|
|
@@ -180,7 +181,7 @@ def main():
|
|
|
180
181
|
|
|
181
182
|
print("Updating task description...")
|
|
182
183
|
task.description = "Updated task for text processing with agent collaboration"
|
|
183
|
-
update_task_result = manager.update_task(
|
|
184
|
+
update_task_result = manager.update_task(task=task, automatic_publish=False)
|
|
184
185
|
if isinstance(update_task_result, Task):
|
|
185
186
|
print(f"Success: Updated Task: {update_task_result.description}")
|
|
186
187
|
else:
|
|
@@ -189,7 +190,7 @@ def main():
|
|
|
189
190
|
exit()
|
|
190
191
|
|
|
191
192
|
print("Publishing task revision '1'...")
|
|
192
|
-
publish_task_result = manager.publish_task_revision(
|
|
193
|
+
publish_task_result = manager.publish_task_revision(task_id=created_entities["task_id"], revision="1")
|
|
193
194
|
if isinstance(publish_task_result, Task):
|
|
194
195
|
print(f"Success: Published Task Revision: {publish_task_result.name}")
|
|
195
196
|
else:
|
|
@@ -198,7 +199,7 @@ def main():
|
|
|
198
199
|
exit()
|
|
199
200
|
|
|
200
201
|
print("Retrieving latest task version...")
|
|
201
|
-
latest_task = manager.get_task(
|
|
202
|
+
latest_task = manager.get_task(task_id=created_entities["task_id"])
|
|
202
203
|
if isinstance(latest_task, Task):
|
|
203
204
|
print(f"Success: Latest Task: {latest_task.name}, Description: {latest_task.description}")
|
|
204
205
|
else:
|
|
@@ -238,7 +239,7 @@ def main():
|
|
|
238
239
|
SequenceFlow(key="flow4", source_key="analysis_complete", target_key="end")
|
|
239
240
|
]
|
|
240
241
|
)
|
|
241
|
-
create_process_result = manager.create_process(
|
|
242
|
+
create_process_result = manager.create_process(process=process, automatic_publish=False)
|
|
242
243
|
if isinstance(create_process_result, AgenticProcess):
|
|
243
244
|
print(f"Success: Created Process: {create_process_result.name}, ID: {create_process_result.id}")
|
|
244
245
|
created_entities["process_id"] = create_process_result.id
|
|
@@ -249,7 +250,7 @@ def main():
|
|
|
249
250
|
|
|
250
251
|
print("Updating process description...")
|
|
251
252
|
process.description = "Updated process for advanced text analysis"
|
|
252
|
-
update_process_result = manager.update_process(
|
|
253
|
+
update_process_result = manager.update_process(process=process, automatic_publish=False)
|
|
253
254
|
if isinstance(update_process_result, AgenticProcess):
|
|
254
255
|
print(f"Success: Updated Process: {update_process_result.description}")
|
|
255
256
|
else:
|
|
@@ -258,7 +259,7 @@ def main():
|
|
|
258
259
|
exit()
|
|
259
260
|
|
|
260
261
|
print("Publishing process revision '1'...")
|
|
261
|
-
publish_process_result = manager.publish_process_revision(
|
|
262
|
+
publish_process_result = manager.publish_process_revision(process_id=created_entities["process_id"], revision="1")
|
|
262
263
|
if isinstance(publish_process_result, AgenticProcess):
|
|
263
264
|
print(f"Success: Published Process Revision: {publish_process_result.name}")
|
|
264
265
|
else:
|
|
@@ -267,7 +268,7 @@ def main():
|
|
|
267
268
|
exit()
|
|
268
269
|
|
|
269
270
|
print("Retrieving latest process version...")
|
|
270
|
-
latest_process = manager.get_process(
|
|
271
|
+
latest_process = manager.get_process(process_id=created_entities["process_id"])
|
|
271
272
|
if isinstance(latest_process, AgenticProcess):
|
|
272
273
|
print(f"Success: Latest Process: {latest_process.name}, Description: {latest_process.description}")
|
|
273
274
|
else:
|
|
@@ -296,7 +297,7 @@ def main():
|
|
|
296
297
|
exit()
|
|
297
298
|
|
|
298
299
|
print("Retrieving instance information...")
|
|
299
|
-
instance_info = manager.get_instance(
|
|
300
|
+
instance_info = manager.get_instance(instance_id=created_entities["instance_id"])
|
|
300
301
|
if isinstance(instance_info, ProcessInstance):
|
|
301
302
|
print(f"Success: Instance Info: Process: {instance_info.process.name}, Subject: {instance_info.subject}")
|
|
302
303
|
else:
|
|
@@ -305,7 +306,7 @@ def main():
|
|
|
305
306
|
exit()
|
|
306
307
|
|
|
307
308
|
print("Retrieving instance history...")
|
|
308
|
-
history = manager.get_instance_history(
|
|
309
|
+
history = manager.get_instance_history(instance_id=created_entities["instance_id"])
|
|
309
310
|
if isinstance(history, dict):
|
|
310
311
|
print(f"Success: Instance History: {history}")
|
|
311
312
|
else:
|
|
@@ -320,5 +321,6 @@ if __name__ == "__main__":
|
|
|
320
321
|
try:
|
|
321
322
|
main()
|
|
322
323
|
except Exception as e:
|
|
324
|
+
breakpoint()
|
|
323
325
|
rollback()
|
|
324
326
|
print(f"\n# Critical error: {e}")
|
|
@@ -3,9 +3,9 @@ from pygeai.lab.models import Agent, AgentData, Prompt, LlmConfig, Model, Sampli
|
|
|
3
3
|
|
|
4
4
|
agent = Agent(
|
|
5
5
|
status="active",
|
|
6
|
-
name="
|
|
7
|
-
access_scope="
|
|
8
|
-
public_name="com.genexus.geai.public_translator_24",
|
|
6
|
+
name="Private Translator V6",
|
|
7
|
+
access_scope="private",
|
|
8
|
+
# public_name="com.genexus.geai.public_translator_24",
|
|
9
9
|
job_description="Translates",
|
|
10
10
|
avatar_image="https://www.shareicon.net/data/128x128/2016/11/09/851442_logo_512x512.png",
|
|
11
11
|
description="Agent that translates from any language to english.",
|
|
@@ -26,6 +26,7 @@ agent = Agent(
|
|
|
26
26
|
PromptExample(input_data="esto es una prueba pincheguey [keep-slang]", output='{"translated_text":"this is a test pal","summary":"prueba"}')
|
|
27
27
|
]
|
|
28
28
|
),
|
|
29
|
+
strategy_name="Dynamic Prompting",
|
|
29
30
|
llm_config=LlmConfig(
|
|
30
31
|
max_tokens=5000,
|
|
31
32
|
timeout=0,
|
|
@@ -39,7 +39,7 @@ pygeai/cli/commands/base.py,sha256=kkJEObpT2xSiObWAliJfGV73JS3LjLTMq7FEd4SpxkE,6
|
|
|
39
39
|
pygeai/cli/commands/builders.py,sha256=xXk1F4phSQxHN3NiQltl_KEZdCwwJiKLmVqQsft2OC4,1130
|
|
40
40
|
pygeai/cli/commands/chat.py,sha256=kVpHK_o7yArbZBstJNzi0NJOAAOrnxYaZTh3hgFknr4,22617
|
|
41
41
|
pygeai/cli/commands/common.py,sha256=zL1cWKMTqzqMsHBDFfVzbZe0i2l0hgJNpzjSRgvloY8,16568
|
|
42
|
-
pygeai/cli/commands/configuration.py,sha256=
|
|
42
|
+
pygeai/cli/commands/configuration.py,sha256=j4C_xaIRbxnA-psYGt-CAzWgGMoxOUsDGfFiTCaNZ24,3354
|
|
43
43
|
pygeai/cli/commands/embeddings.py,sha256=om_RR3CHgfmHcTN43F6TzP71n-BS8Lf589wyBMVZJ3g,4220
|
|
44
44
|
pygeai/cli/commands/evaluation.py,sha256=7fgqihWtJ1h7dGXdTR3AbanNAIjeAI5qY7TAaTSi6WI,63828
|
|
45
45
|
pygeai/cli/commands/feedback.py,sha256=nJdrI974N_3IsloJMqe7GRay5_ijOSkeZ9MIdGeQZa0,2442
|
|
@@ -63,7 +63,7 @@ pygeai/cli/commands/lab/spec.py,sha256=YX-u67PbKWOVyODCjK1CaGc3D1gsF7d41EeruzELz
|
|
|
63
63
|
pygeai/cli/texts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
64
64
|
pygeai/cli/texts/help.py,sha256=IgifNjO22kbRB5bsuckFrzRvg7Q14y96IfxRnlJAUcw,15516
|
|
65
65
|
pygeai/core/__init__.py,sha256=bbNktFp7t2dOBIvWto-uGVBW8acaKIe8EKcfuLV-HmA,189
|
|
66
|
-
pygeai/core/handlers.py,sha256=
|
|
66
|
+
pygeai/core/handlers.py,sha256=la1QcQbLwfiNd-xDQ3jtWRHmeEm6E93Rfx5c-5bkLmw,934
|
|
67
67
|
pygeai/core/models.py,sha256=uIwrmlB6yuulScUcYIBSH3Sxm5YyzaicV7Dz2bYLi2I,24229
|
|
68
68
|
pygeai/core/responses.py,sha256=wxlikhw1UAAB6Mib97xjq2eCFyZPWoosPwn9UhpKi7Y,2825
|
|
69
69
|
pygeai/core/singleton.py,sha256=-U5kywQOBvbTtkWCczLZD_aoHBjDLRj07Q-UqQJpww0,242
|
|
@@ -91,7 +91,7 @@ pygeai/core/feedback/models.py,sha256=VdeVVWTQ8qc4TEPbL2XbYI4-UP2m2eh1pkBptw_do1
|
|
|
91
91
|
pygeai/core/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
92
92
|
pygeai/core/files/clients.py,sha256=gjmm5H_BOEK_QRNb55s4CBGMA_IRV-xvkwf9YCjdEAY,6564
|
|
93
93
|
pygeai/core/files/endpoints.py,sha256=hAUC28hYVcHyEyEfoLaLae76TpuVSLexPVjLJYjSWYQ,337
|
|
94
|
-
pygeai/core/files/managers.py,sha256=
|
|
94
|
+
pygeai/core/files/managers.py,sha256=Hzq-XMEJnnNrh3pG5PViQqSt1WrbO-z5wHXsoGrSQxA,7158
|
|
95
95
|
pygeai/core/files/mappers.py,sha256=8PXXsQJZEH45yLISn_xsOZmcRUEe_F6ELkUeR1lzc-M,1462
|
|
96
96
|
pygeai/core/files/models.py,sha256=QOLV5kUrHOvhJXzkoFqNQX4qmVPLy6KKBk6u7oE5ttU,438
|
|
97
97
|
pygeai/core/files/responses.py,sha256=fnNLK-stnXGnB9d38szWrZMu7JLTtXghAoRZnFTFJCE,356
|
|
@@ -143,15 +143,15 @@ pygeai/health/clients.py,sha256=U2eb1tkXt1Rf_KdV0ZFQS2k4wGnJTXHHd9-Er0eWQuw,1011
|
|
|
143
143
|
pygeai/health/endpoints.py,sha256=UAzMcqSXZtMj4r8M8B7a_a5LT6X_jMFNsCTvcsjNTYA,71
|
|
144
144
|
pygeai/lab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
145
145
|
pygeai/lab/constants.py,sha256=ddgDnXP4GD0woi-FUJaJXzaWS3H6zmDN0B-v8utM95Q,170
|
|
146
|
-
pygeai/lab/managers.py,sha256=
|
|
147
|
-
pygeai/lab/models.py,sha256=
|
|
146
|
+
pygeai/lab/managers.py,sha256=9wV6SipzsIwFP9SXsKqZ0X5x6KbUuo6iCxPZF4zNGj4,72714
|
|
147
|
+
pygeai/lab/models.py,sha256=rvt6JOOHLoFhhAcNnV2Xqlc155XTQDeeQ97Ta0r3h_w,71175
|
|
148
148
|
pygeai/lab/runners.py,sha256=-uaCPHpFyiKtVOxlEjPjAc9h-onSdGAcYJ5IAZPqlb0,4147
|
|
149
149
|
pygeai/lab/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
150
|
-
pygeai/lab/agents/clients.py,sha256=
|
|
150
|
+
pygeai/lab/agents/clients.py,sha256=Mi1RPwRwtTcFMzv-bdTTYZo6v56HLg_iL1OXCxEmmhE,19421
|
|
151
151
|
pygeai/lab/agents/endpoints.py,sha256=39dJOrjXvQ7Fo7_e75H0MQ6h4bciyvg265QlJCPkMlI,565
|
|
152
|
-
pygeai/lab/agents/mappers.py,sha256=
|
|
152
|
+
pygeai/lab/agents/mappers.py,sha256=K6rxsO2Nq6GglmCUmyDKUNmzTG8HRbCelap6qaVKXQw,10583
|
|
153
153
|
pygeai/lab/processes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
154
|
-
pygeai/lab/processes/clients.py,sha256=
|
|
154
|
+
pygeai/lab/processes/clients.py,sha256=C1YYJE7c5qJSZUIDKzo5kK-LOZP6jbdrG01aE8zoEYg,51403
|
|
155
155
|
pygeai/lab/processes/endpoints.py,sha256=nFIEcNP22xe4j6URI6KcwTh7h-xgYjYYuHT6PDPiO3I,2100
|
|
156
156
|
pygeai/lab/processes/mappers.py,sha256=QBpDT3wlyRNNUMa_vDP2vhQ4pD0vwnjXc1ahckfRVX0,15807
|
|
157
157
|
pygeai/lab/spec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -162,7 +162,7 @@ pygeai/lab/strategies/clients.py,sha256=UZV21W-F7CHmi53oDWDloEQ4vf9DW8G_DNpB3nWD
|
|
|
162
162
|
pygeai/lab/strategies/endpoints.py,sha256=LgEvUgeeN-X6VMl-tpl9_N12GRppLPScQmiMRk7Ri28,541
|
|
163
163
|
pygeai/lab/strategies/mappers.py,sha256=6C_jubAVXMKLGQy5NUD0OX7SlrU2mLe2QsgzeJ1-WKw,2437
|
|
164
164
|
pygeai/lab/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
165
|
-
pygeai/lab/tools/clients.py,sha256=
|
|
165
|
+
pygeai/lab/tools/clients.py,sha256=a-7Gk_cHxwMZny7X7EkHJjZ7wFVV1Avu2bzgiJfrbBo,25760
|
|
166
166
|
pygeai/lab/tools/endpoints.py,sha256=VPd2jBSDW4rpCa4h3kBPWJ9JA2G2ecBYQop-lffTSbI,633
|
|
167
167
|
pygeai/lab/tools/mappers.py,sha256=6xcR7lIOYrvUG8SERQIx_bsK-_To316BUql8UPLHWco,4978
|
|
168
168
|
pygeai/man/__init__.py,sha256=gqGI92vUPt6RPweoWX3mTUYPWNDlm6aGUjQOnYXqthk,53
|
|
@@ -271,7 +271,7 @@ pygeai/tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
271
271
|
pygeai/tests/integration/lab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
272
272
|
pygeai/tests/integration/lab/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
273
273
|
pygeai/tests/integration/lab/agents/test_agents_list.py,sha256=XVcHi4V9oc90nSCkN5Q6R6YvCwpHg_LKMDoZmeEchoA,4286
|
|
274
|
-
pygeai/tests/integration/lab/agents/test_create_agent.py,sha256=
|
|
274
|
+
pygeai/tests/integration/lab/agents/test_create_agent.py,sha256=DI6sK4H4A5x_APnvumxrC-gIvq7xLC33Ms-ef8H4p70,14463
|
|
275
275
|
pygeai/tests/integration/lab/agents/test_create_sharing_link.py,sha256=z33RA5WHujXZMTAT2qf2GNMnGA0U3hdOE6NDZOssMcE,3826
|
|
276
276
|
pygeai/tests/integration/lab/agents/test_delete_agent.py,sha256=O5mQ2DaphLdRvdBdUae6HOt9S9M4K1m5tR_ly9hSiso,3508
|
|
277
277
|
pygeai/tests/integration/lab/agents/test_get_agent.py,sha256=IM61b1jJG0M1fa1iffcQmaMmaq9syJr3fIjUYDEh2lE,4188
|
|
@@ -343,15 +343,15 @@ pygeai/tests/snippets/embeddings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
343
343
|
pygeai/tests/snippets/embeddings/generate_embeddings.py,sha256=IyIlO6UDGMjT-E9uK91NdYsuWI4fCRGwqlaFr0iUzSc,785
|
|
344
344
|
pygeai/tests/snippets/evaluation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
345
345
|
pygeai/tests/snippets/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
346
|
-
pygeai/tests/snippets/files/delete_file.py,sha256=
|
|
347
|
-
pygeai/tests/snippets/files/get_file_content.py,sha256=
|
|
348
|
-
pygeai/tests/snippets/files/get_file_data.py,sha256=
|
|
349
|
-
pygeai/tests/snippets/files/get_file_list.py,sha256=
|
|
350
|
-
pygeai/tests/snippets/files/upload_file.py,sha256=
|
|
346
|
+
pygeai/tests/snippets/files/delete_file.py,sha256=ORpPkrL9FllDonCHfoqf6LJUGyPHBoTdm1zpopzqbqU,249
|
|
347
|
+
pygeai/tests/snippets/files/get_file_content.py,sha256=LM8DEmtE4MebEptcR_SUrbMfKuR9zfKfxsY9JspLVvc,255
|
|
348
|
+
pygeai/tests/snippets/files/get_file_data.py,sha256=DGxbH155IcquE0t2uOifJRI6o5JQ8-DT5zQJ9MubIG4,251
|
|
349
|
+
pygeai/tests/snippets/files/get_file_list.py,sha256=NItZBEqzHsS8HQEpAI2yoI5URhZB0F5eAys5Okbled8,138
|
|
350
|
+
pygeai/tests/snippets/files/upload_file.py,sha256=In6XIvIFSbctrqOD8r_WMmGlXYGju4syNrBAZULjFow,280
|
|
351
351
|
pygeai/tests/snippets/gam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
352
352
|
pygeai/tests/snippets/gam/gam_access_token.py,sha256=168cZwF3IcAZ3neCdvh1jRxi1acpIDXHuyBZnuWwHQY,3122
|
|
353
353
|
pygeai/tests/snippets/lab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
354
|
-
pygeai/tests/snippets/lab/agentic_flow_example_1.py,sha256=
|
|
354
|
+
pygeai/tests/snippets/lab/agentic_flow_example_1.py,sha256=ihbGdb5ayvmrO1LPQXIHJe0T3xFesFzam9nSNK5aXt0,13461
|
|
355
355
|
pygeai/tests/snippets/lab/agentic_flow_example_2.py,sha256=uUnl1bpyLje1ArY1B7NzA6iIgMc2VYL1OffCTeZnuws,8251
|
|
356
356
|
pygeai/tests/snippets/lab/agentic_flow_example_3.py,sha256=mnDbSZixOlLoG0OFsMDQLdwQYFCL-HeL35WrOxoHuto,19134
|
|
357
357
|
pygeai/tests/snippets/lab/agentic_flow_example_4.py,sha256=M9STkCuWcfpnfEagji3SgyhTn29hrO5P_eAmbup-AAo,17963
|
|
@@ -359,7 +359,7 @@ pygeai/tests/snippets/lab/assistant_to_agent.py,sha256=RHzGV1uHH4BQNHLDtH1XJyzJW
|
|
|
359
359
|
pygeai/tests/snippets/lab/crud_ui.py,sha256=3ehUGUyAJSJI820GyEcmT7rTC8KRno_zaLd56qlTSPU,23404
|
|
360
360
|
pygeai/tests/snippets/lab/runner_1.py,sha256=QD92MvC22wpWj6YyrSgpp46EcL0ciac2x1zalS7-GkI,7960
|
|
361
361
|
pygeai/tests/snippets/lab/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
362
|
-
pygeai/tests/snippets/lab/agents/create_agent.py,sha256=
|
|
362
|
+
pygeai/tests/snippets/lab/agents/create_agent.py,sha256=EVyfQzDST9A9KaM0ToZJKlJ7yCbfhpSVkVK_MaUVQPw,1875
|
|
363
363
|
pygeai/tests/snippets/lab/agents/create_agent_2.py,sha256=jd7HKhle_c0S0vI80AejOyLaNqBWkILlRF_znzyCGcQ,1879
|
|
364
364
|
pygeai/tests/snippets/lab/agents/delete_agent.py,sha256=GfDX667_V3tZMz3vjsbrxoFZggzpwjZYH_PVO2Qjw5s,269
|
|
365
365
|
pygeai/tests/snippets/lab/agents/get_agent.py,sha256=bcqloJHwmNsFjEfri6QIRaTuHzwLtfEqIQPIC5pdkWQ,516
|
|
@@ -475,9 +475,9 @@ pygeai/vendor/a2a/utils/helpers.py,sha256=6Tbd8SVfXvdNEk6WYmLOjrAxkzFf1aIg8dkFfB
|
|
|
475
475
|
pygeai/vendor/a2a/utils/message.py,sha256=gc_EKO69CJ4HkR76IFgsy-kENJz1dn7CfSgWJWvt-gs,2197
|
|
476
476
|
pygeai/vendor/a2a/utils/task.py,sha256=BYRA_L1HpoUGJAVlyHML0lCM9Awhf2Ovjj7oPFXKbh0,1647
|
|
477
477
|
pygeai/vendor/a2a/utils/telemetry.py,sha256=VvSp1Ztqaobkmq9-3sNhhPEilJS32-JTSfKzegkj6FU,10861
|
|
478
|
-
pygeai-0.2.
|
|
479
|
-
pygeai-0.2.
|
|
480
|
-
pygeai-0.2.
|
|
481
|
-
pygeai-0.2.
|
|
482
|
-
pygeai-0.2.
|
|
483
|
-
pygeai-0.2.
|
|
478
|
+
pygeai-0.2.7b40.dist-info/licenses/LICENSE,sha256=eHfqo7-AWS8cMq0cg03lq7owsLeCmZA-xS5L0kuHnl8,1474
|
|
479
|
+
pygeai-0.2.7b40.dist-info/METADATA,sha256=UhHBh-lpk6ZKG13kD2atfFs23HasjoRhq9WOohDF8fU,6883
|
|
480
|
+
pygeai-0.2.7b40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
481
|
+
pygeai-0.2.7b40.dist-info/entry_points.txt,sha256=OAmwuXVCQBTCE3HeVegVd37hbhCcp9TPahvdrCuMYWw,178
|
|
482
|
+
pygeai-0.2.7b40.dist-info/top_level.txt,sha256=bJFwp2tURmCfB94yXDF7ylvdSJXFDDJsyUOb-7PJgwc,7
|
|
483
|
+
pygeai-0.2.7b40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|