aip-agents-binary 0.5.4__cp312-cp312-win_amd64.whl → 0.5.5__cp312-cp312-win_amd64.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.
- aip_agents/agent/base_langgraph_agent.pyi +1 -1
- aip_agents/agent/langgraph_react_agent.pyi +2 -1
- aip_agents/utils/__init__.pyi +2 -1
- aip_agents/utils/file_prompt_utils.pyi +21 -0
- aip_agents/utils/pii/__init__.pyi +2 -2
- aip_agents/utils/pii/pii_handler.pyi +10 -0
- aip_agents/utils/pii/pii_helper.pyi +9 -0
- aip_agents/utils/pii/uuid_deanonymizer_mapping.pyi +14 -3
- aip_agents.cp312-win_amd64.pyd +0 -0
- aip_agents.pyi +3 -0
- {aip_agents_binary-0.5.4.dist-info → aip_agents_binary-0.5.5.dist-info}/METADATA +39 -19
- {aip_agents_binary-0.5.4.dist-info → aip_agents_binary-0.5.5.dist-info}/RECORD +14 -13
- {aip_agents_binary-0.5.4.dist-info → aip_agents_binary-0.5.5.dist-info}/WHEEL +0 -0
- {aip_agents_binary-0.5.4.dist-info → aip_agents_binary-0.5.5.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ from aip_agents.schema.agent import StreamMode as StreamMode
|
|
|
11
11
|
from aip_agents.schema.hitl import HitlMetadata as HitlMetadata
|
|
12
12
|
from aip_agents.tools.tool_config_injector import CONFIG_SCHEMA_ATTR as CONFIG_SCHEMA_ATTR, TOOL_CONFIG_SCHEMA_ATTR as TOOL_CONFIG_SCHEMA_ATTR, inject_config_methods_into_tool as inject_config_methods_into_tool
|
|
13
13
|
from aip_agents.types import A2AEvent as A2AEvent, A2AStreamEventType as A2AStreamEventType
|
|
14
|
-
from aip_agents.utils import validate_references as validate_references
|
|
14
|
+
from aip_agents.utils import augment_query_with_file_paths as augment_query_with_file_paths, validate_references as validate_references
|
|
15
15
|
from aip_agents.utils.langgraph.tool_managers.a2a_tool_manager import A2AToolManager as A2AToolManager
|
|
16
16
|
from aip_agents.utils.langgraph.tool_managers.delegation_tool_manager import DelegationToolManager as DelegationToolManager
|
|
17
17
|
from aip_agents.utils.logger import get_logger as get_logger
|
|
@@ -17,7 +17,7 @@ from aip_agents.utils.langgraph.tool_output_management import StoreOutputParams
|
|
|
17
17
|
from aip_agents.utils.logger import get_logger as get_logger
|
|
18
18
|
from aip_agents.utils.metadata.activity_metadata_helper import create_tool_activity_info as create_tool_activity_info
|
|
19
19
|
from aip_agents.utils.metadata_helper import Kind as Kind, MetadataFieldKeys as MetadataFieldKeys, Status as Status
|
|
20
|
-
from aip_agents.utils.pii import ToolPIIHandler as ToolPIIHandler, add_pii_mappings as add_pii_mappings
|
|
20
|
+
from aip_agents.utils.pii import ToolPIIHandler as ToolPIIHandler, add_pii_mappings as add_pii_mappings, normalize_enable_pii as normalize_enable_pii
|
|
21
21
|
from aip_agents.utils.reference_helper import extract_references_from_tool as extract_references_from_tool
|
|
22
22
|
from aip_agents.utils.step_limit_manager import StepLimitManager as StepLimitManager
|
|
23
23
|
from aip_agents.utils.token_usage_helper import TOTAL_USAGE_KEY as TOTAL_USAGE_KEY, USAGE_METADATA_KEY as USAGE_METADATA_KEY, add_usage_metadata as add_usage_metadata, extract_and_update_token_usage_from_ai_message as extract_and_update_token_usage_from_ai_message, extract_token_usage_from_tool_output as extract_token_usage_from_tool_output
|
|
@@ -106,6 +106,7 @@ class LangGraphReactAgent(LangGraphHitLMixin, BaseLangGraphAgent):
|
|
|
106
106
|
Execution order: [TodoListMiddleware (if planning=True),
|
|
107
107
|
...custom middlewares in order provided]
|
|
108
108
|
All middleware hooks execute - this extends capabilities, never replaces them.
|
|
109
|
+
enable_pii: Optional toggle to enable PII handling for tool inputs and outputs.
|
|
109
110
|
step_limit_config: Optional configuration for step limits and delegation depth.
|
|
110
111
|
**kwargs: Additional keyword arguments passed to BaseLangGraphAgent.
|
|
111
112
|
"""
|
aip_agents/utils/__init__.pyi
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from aip_agents.utils.artifact_helpers import create_artifact_command as create_artifact_command, create_artifact_response as create_artifact_response, create_error_response as create_error_response, create_multiple_artifacts_command as create_multiple_artifacts_command, create_text_artifact_response as create_text_artifact_response
|
|
2
|
+
from aip_agents.utils.file_prompt_utils import augment_query_with_file_paths as augment_query_with_file_paths
|
|
2
3
|
from aip_agents.utils.final_response_builder import assemble_final_response as assemble_final_response
|
|
3
4
|
from aip_agents.utils.logger import LoggerManager as LoggerManager, get_logger as get_logger
|
|
4
5
|
from aip_agents.utils.pii.pii_handler import ToolPIIHandler as ToolPIIHandler
|
|
@@ -7,4 +8,4 @@ from aip_agents.utils.reference_helper import add_references_chunks as add_refer
|
|
|
7
8
|
from aip_agents.utils.sse_chunk_transformer import SSEChunkTransformer as SSEChunkTransformer
|
|
8
9
|
from aip_agents.utils.step_limit_manager import StepExecutionContext as StepExecutionContext, StepLimitManager as StepLimitManager, _DELEGATION_CHAIN_CVAR as _DELEGATION_CHAIN_CVAR, _DELEGATION_DEPTH_CVAR as _DELEGATION_DEPTH_CVAR, _REMAINING_STEP_BUDGET_CVAR as _REMAINING_STEP_BUDGET_CVAR, _STEP_LIMIT_CONFIG_CVAR as _STEP_LIMIT_CONFIG_CVAR
|
|
9
10
|
|
|
10
|
-
__all__ = ['get_logger', 'LoggerManager', 'create_artifact_response', 'create_error_response', 'create_artifact_command', 'create_multiple_artifacts_command', 'create_text_artifact_response', 'validate_references', 'serialize_references_for_metadata', 'add_references_chunks', 'assemble_final_response', 'SSEChunkTransformer', 'StepExecutionContext', 'StepLimitManager', '_DELEGATION_CHAIN_CVAR', '_DELEGATION_DEPTH_CVAR', '_REMAINING_STEP_BUDGET_CVAR', '_STEP_LIMIT_CONFIG_CVAR', 'ToolPIIHandler', 'add_pii_mappings', 'extract_pii_mapping_from_agent_response']
|
|
11
|
+
__all__ = ['get_logger', 'LoggerManager', 'create_artifact_response', 'create_error_response', 'create_artifact_command', 'create_multiple_artifacts_command', 'create_text_artifact_response', 'validate_references', 'serialize_references_for_metadata', 'add_references_chunks', 'assemble_final_response', 'augment_query_with_file_paths', 'SSEChunkTransformer', 'StepExecutionContext', 'StepLimitManager', '_DELEGATION_CHAIN_CVAR', '_DELEGATION_DEPTH_CVAR', '_REMAINING_STEP_BUDGET_CVAR', '_STEP_LIMIT_CONFIG_CVAR', 'ToolPIIHandler', 'add_pii_mappings', 'extract_pii_mapping_from_agent_response']
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from aip_agents.utils.logger import get_logger as get_logger
|
|
3
|
+
|
|
4
|
+
logger: Incomplete
|
|
5
|
+
FILE_PATH_SYSTEM_NOTE: str
|
|
6
|
+
FILE_PATH_INACCESSIBLE_NOTE: str
|
|
7
|
+
FILE_URL_SYSTEM_NOTE: str
|
|
8
|
+
|
|
9
|
+
def augment_query_with_file_paths(query: str, files: list[str | dict[str, object]]) -> str:
|
|
10
|
+
"""Augment query with file path system notes.
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
query: The original user query string.
|
|
14
|
+
files: List of local filesystem paths or file metadata dicts to include.
|
|
15
|
+
|
|
16
|
+
Returns:
|
|
17
|
+
The query with system notes appended for each file path.
|
|
18
|
+
|
|
19
|
+
Raises:
|
|
20
|
+
ValueError: If files is not a list of strings or metadata dicts.
|
|
21
|
+
"""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from aip_agents.utils.pii.pii_handler import ToolPIIHandler as ToolPIIHandler
|
|
2
|
-
from aip_agents.utils.pii.pii_helper import add_pii_mappings as add_pii_mappings, anonymize_final_response_content as anonymize_final_response_content, deanonymize_final_response_content as deanonymize_final_response_content, extract_pii_mapping_from_agent_response as extract_pii_mapping_from_agent_response
|
|
2
|
+
from aip_agents.utils.pii.pii_helper import add_pii_mappings as add_pii_mappings, anonymize_final_response_content as anonymize_final_response_content, deanonymize_final_response_content as deanonymize_final_response_content, extract_pii_mapping_from_agent_response as extract_pii_mapping_from_agent_response, normalize_enable_pii as normalize_enable_pii
|
|
3
3
|
from aip_agents.utils.pii.uuid_deanonymizer_mapping import UUIDDeanonymizerMapping as UUIDDeanonymizerMapping
|
|
4
4
|
|
|
5
|
-
__all__ = ['ToolPIIHandler', 'add_pii_mappings', 'anonymize_final_response_content', 'deanonymize_final_response_content', 'extract_pii_mapping_from_agent_response', 'UUIDDeanonymizerMapping']
|
|
5
|
+
__all__ = ['ToolPIIHandler', 'add_pii_mappings', 'anonymize_final_response_content', 'deanonymize_final_response_content', 'extract_pii_mapping_from_agent_response', 'normalize_enable_pii', 'UUIDDeanonymizerMapping']
|
|
@@ -59,6 +59,16 @@ class ToolPIIHandler:
|
|
|
59
59
|
Returns:
|
|
60
60
|
ToolPIIHandler instance when mapping or NER config is available, None otherwise
|
|
61
61
|
"""
|
|
62
|
+
@classmethod
|
|
63
|
+
def create_mapping_only(cls, pii_mapping: dict[str, str] | None = None) -> ToolPIIHandler | None:
|
|
64
|
+
"""Create ToolPIIHandler in mapping-only mode (no NER).
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
pii_mapping: Existing PII mapping from runner service
|
|
68
|
+
|
|
69
|
+
Returns:
|
|
70
|
+
ToolPIIHandler instance when mapping exists, None otherwise
|
|
71
|
+
"""
|
|
62
72
|
def deanonymize_tool_args(self, args: dict[str, Any]) -> dict[str, Any]:
|
|
63
73
|
"""Replace PII tags in tool arguments with real values.
|
|
64
74
|
|
|
@@ -4,6 +4,15 @@ from typing import Any
|
|
|
4
4
|
|
|
5
5
|
logger: Incomplete
|
|
6
6
|
|
|
7
|
+
def normalize_enable_pii(enable_pii: Any) -> bool | None:
|
|
8
|
+
"""Normalize enable_pii value from agent configuration.
|
|
9
|
+
|
|
10
|
+
Args:
|
|
11
|
+
enable_pii: Raw enable_pii value from agent configuration.
|
|
12
|
+
|
|
13
|
+
Returns:
|
|
14
|
+
The normalized enable_pii flag when explicitly set (True/False), otherwise None.
|
|
15
|
+
"""
|
|
7
16
|
def add_pii_mappings(left: dict[str, str] | None, right: dict[str, str] | None) -> dict[str, str]:
|
|
8
17
|
"""Reducer function to merge PII mappings from multiple sources.
|
|
9
18
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
1
2
|
from aip_agents.utils.constants import DEFAULT_PII_TAG_NAMESPACE as DEFAULT_PII_TAG_NAMESPACE
|
|
2
|
-
from dataclasses import dataclass
|
|
3
3
|
from gllm_privacy.pii_detector.utils.deanonymizer_mapping import DeanonymizerMapping, MappingDataType
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
@@ -18,6 +18,8 @@ class DeanonymizerMapping:
|
|
|
18
18
|
ImportError: Always raised because `gllm-privacy` is required.
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
+
logger: Incomplete
|
|
22
|
+
|
|
21
23
|
def format_operator_with_uuid(operator_name: str, uuid_suffix: str) -> str:
|
|
22
24
|
"""Format the operator name with a UUID suffix.
|
|
23
25
|
|
|
@@ -29,7 +31,6 @@ def format_operator_with_uuid(operator_name: str, uuid_suffix: str) -> str:
|
|
|
29
31
|
The formatted operator name with UUID suffix.
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
|
-
@dataclass
|
|
33
34
|
class UUIDDeanonymizerMapping(DeanonymizerMapping):
|
|
34
35
|
"""Class to store the deanonymizer mapping with UUID suffixes.
|
|
35
36
|
|
|
@@ -41,7 +42,17 @@ class UUIDDeanonymizerMapping(DeanonymizerMapping):
|
|
|
41
42
|
skip_format_duplicates: Whether to skip formatting duplicated operators.
|
|
42
43
|
uuid_length: The length of the UUID suffix to use (default: 8).
|
|
43
44
|
"""
|
|
44
|
-
|
|
45
|
+
mapping: Incomplete
|
|
46
|
+
skip_format_duplicates: Incomplete
|
|
47
|
+
uuid_length: Incomplete
|
|
48
|
+
def __init__(self, mapping: MappingDataType | None = None, skip_format_duplicates: bool = False, uuid_length: int = 8) -> None:
|
|
49
|
+
"""Initialize UUIDDeanonymizerMapping.
|
|
50
|
+
|
|
51
|
+
Args:
|
|
52
|
+
mapping: The deanonymizer mapping. If None, creates an empty defaultdict(dict).
|
|
53
|
+
skip_format_duplicates: Whether to skip formatting duplicated operators.
|
|
54
|
+
uuid_length: The length of the UUID suffix to use (default: 8).
|
|
55
|
+
"""
|
|
45
56
|
def update(self, new_mapping: MappingDataType, use_uuid_suffix: bool | None = None) -> None:
|
|
46
57
|
"""Update the deanonymizer mapping with new values using UUID suffixes.
|
|
47
58
|
|
aip_agents.cp312-win_amd64.pyd
CHANGED
|
Binary file
|
aip_agents.pyi
CHANGED
|
@@ -89,6 +89,7 @@ import aip_agents.mcp.client.LangchainMCPClient
|
|
|
89
89
|
import aip_agents.memory.BaseMemory
|
|
90
90
|
import aip_agents.memory.MemoryFactory
|
|
91
91
|
import aip_agents.memory.MemoryMethod
|
|
92
|
+
import aip_agents.utils.augment_query_with_file_paths
|
|
92
93
|
import aip_agents.utils.validate_references
|
|
93
94
|
import aip_agents.utils.pii.deanonymize_final_response_content
|
|
94
95
|
import google
|
|
@@ -121,6 +122,7 @@ import aip_agents.utils.langgraph.convert_langchain_messages_to_gllm_messages
|
|
|
121
122
|
import aip_agents.utils.langgraph.convert_lm_output_to_langchain_message
|
|
122
123
|
import aip_agents.utils.pii.ToolPIIHandler
|
|
123
124
|
import aip_agents.utils.pii.add_pii_mappings
|
|
125
|
+
import aip_agents.utils.pii.normalize_enable_pii
|
|
124
126
|
import aip_agents.utils.datetime.get_timezone_aware_now
|
|
125
127
|
import _frozen_importlib_external
|
|
126
128
|
import langchain_openai
|
|
@@ -228,5 +230,6 @@ import gllm_privacy.pii_detector.anonymizer
|
|
|
228
230
|
import gllm_privacy.pii_detector.constants
|
|
229
231
|
import gllm_privacy.pii_detector.recognizer
|
|
230
232
|
import gllm_privacy.pii_detector.recognizer.gdplabs_ner_api_remote_recognizer
|
|
233
|
+
import collections.defaultdict
|
|
231
234
|
import gllm_privacy.pii_detector.utils
|
|
232
235
|
import gllm_privacy.pii_detector.utils.deanonymizer_mapping
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aip-agents-binary
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.5
|
|
4
4
|
Summary: A library for managing agents in Gen AI applications.
|
|
5
5
|
Author-email: Raymond Christopher <raymond.christopher@gdplabs.id>
|
|
6
6
|
Requires-Python: <3.13,>=3.11
|
|
@@ -38,46 +38,66 @@ Requires-Dist: pre-commit<4.0.0,>=3.7.0; extra == "dev"
|
|
|
38
38
|
Requires-Dist: pytest<9.0.0,>=8.1.1; extra == "dev"
|
|
39
39
|
Requires-Dist: pytest-asyncio<0.24.0,>=0.23.6; extra == "dev"
|
|
40
40
|
Requires-Dist: pytest-cov<6.0.0,>=5.0.0; extra == "dev"
|
|
41
|
+
Requires-Dist: pytest-xdist>=3.8.0; extra == "dev"
|
|
41
42
|
Requires-Dist: ruff<0.7.0,>=0.6.7; extra == "dev"
|
|
42
43
|
Requires-Dist: pillow<12.0.0,>=11.3.0; extra == "dev"
|
|
43
44
|
|
|
44
|
-
#
|
|
45
|
+
# AIP Agents
|
|
45
46
|
|
|
46
47
|
## Description
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
The core agent library for **local execution** in GL AIP (GDP Labs AI Agents Package). `aip-agents` is part of the GL AIP ecosystem:
|
|
50
|
+
|
|
51
|
+
- **`aip-agents`** (this library) — The underlying agent library for local execution
|
|
52
|
+
- **[`ai-agent-platform`](https://github.com/GDP-ADMIN/ai-agent-platform)** — The platform that provides remote server/run capabilities (uses `aip-agents` internally)
|
|
53
|
+
- **[`glaip-sdk`](https://github.com/GDP-ADMIN/glaip-sdk/tree/main/python/glaip-sdk)** — The SDK that end users use to run agents either locally (directly via `aip-agents`) or on the remote server (via `ai-agent-platform`)
|
|
54
|
+
|
|
55
|
+
You can use `aip-agents` directly for local execution, or let `glaip-sdk` manage local vs remote mode for you. See the [GL AIP overview](../glaip-sdk/docs/overview.md) for the full architecture.
|
|
49
56
|
|
|
50
57
|
## Installation
|
|
51
58
|
|
|
52
59
|
### Prerequisites
|
|
53
|
-
- Python 3.
|
|
60
|
+
- Python 3.11 - 3.12 - [Install here](https://www.python.org/downloads/)
|
|
54
61
|
- Pip (if using Pip) - [Install here](https://pip.pypa.io/en/stable/installation/)
|
|
55
62
|
- Poetry 1.8.1+ (if using Poetry) - [Install here](https://python-poetry.org/docs/#installation)
|
|
56
63
|
- Git (if using Git) - [Install here](https://git-scm.com/downloads)
|
|
57
64
|
- For git installation:
|
|
58
|
-
- Access to the [GDP Labs SDK
|
|
65
|
+
- Access to the [GDP Labs SDK repository](https://github.com/GDP-ADMIN/glaip-sdk)
|
|
59
66
|
|
|
60
|
-
### 1. Installation from
|
|
61
|
-
|
|
67
|
+
### 1. Installation from the GDP Labs registry
|
|
68
|
+
This package is published to the internal GDP Labs registry. Ensure your pip/Poetry config includes the registry:
|
|
69
|
+
`https://glsdk.gdplabs.id/gen-ai-internal/simple/`.
|
|
62
70
|
|
|
63
71
|
#### Using pip
|
|
64
72
|
```bash
|
|
65
|
-
pip install aip-agents
|
|
73
|
+
pip install aip-agents
|
|
66
74
|
```
|
|
67
75
|
|
|
68
76
|
#### Using Poetry
|
|
69
77
|
```bash
|
|
70
|
-
poetry add aip-agents
|
|
78
|
+
poetry add aip-agents
|
|
71
79
|
```
|
|
72
80
|
|
|
73
81
|
### 2. Development Installation (Git)
|
|
74
82
|
For development purposes, you can install directly from the Git repository:
|
|
75
83
|
```bash
|
|
76
|
-
poetry add "git+ssh://git@github.com/GDP-ADMIN/
|
|
84
|
+
poetry add "git+ssh://git@github.com/GDP-ADMIN/glaip-sdk.git#subdirectory=python/aip-agents"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### 3. Recommended: install via glaip-sdk for local mode
|
|
88
|
+
If you want local + remote compatibility, install the SDK's local extra instead:
|
|
89
|
+
```bash
|
|
90
|
+
pip install "glaip-sdk[local]"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Optional Extras
|
|
94
|
+
```bash
|
|
95
|
+
pip install "aip-agents[memory]"
|
|
96
|
+
pip install "aip-agents[privacy]"
|
|
77
97
|
```
|
|
78
98
|
|
|
79
99
|
## Managing Dependencies
|
|
80
|
-
1. Go to
|
|
100
|
+
1. Go to the `aip-agents` module root, e.g. `cd python/aip-agents`.
|
|
81
101
|
2. Run `poetry shell` to create a virtual environment.
|
|
82
102
|
3. Run `poetry install` to install the `aip-agents` requirements (Poetry will generate a local lock file for you if needed; the repository ignores it).
|
|
83
103
|
4. Run `poetry update` if you change any dependency versions in `pyproject.toml`.
|
|
@@ -98,11 +118,11 @@ poetry run pytest -s tests/unit_tests/
|
|
|
98
118
|
## Hello World Examples
|
|
99
119
|
|
|
100
120
|
### Prerequisites
|
|
101
|
-
- Python 3.
|
|
102
|
-
- Install the
|
|
121
|
+
- Python 3.11 - 3.12
|
|
122
|
+
- Install the package:
|
|
103
123
|
|
|
104
124
|
```bash
|
|
105
|
-
pip install aip-agents
|
|
125
|
+
pip install aip-agents
|
|
106
126
|
```
|
|
107
127
|
|
|
108
128
|
- For OpenAI: Set your API key in the environment:
|
|
@@ -116,11 +136,11 @@ export GOOGLE_API_KEY=your-google-api-key
|
|
|
116
136
|
|
|
117
137
|
### Run the Hello World Examples
|
|
118
138
|
|
|
119
|
-
The example scripts are located in
|
|
139
|
+
The example scripts are located in `aip_agents/examples` in the source repo. You can run them individually or use the `run_all_examples.py` script.
|
|
120
140
|
|
|
121
141
|
**1. Running Individual Examples:**
|
|
122
142
|
|
|
123
|
-
Navigate to the library's root directory (e.g., `
|
|
143
|
+
Navigate to the library's root directory (e.g., `python/aip-agents` if you cloned the repository).
|
|
124
144
|
|
|
125
145
|
**LangGraph (OpenAI):**
|
|
126
146
|
```bash
|
|
@@ -188,7 +208,7 @@ npx @playwright/mcp@latest --headless --port 8931
|
|
|
188
208
|
|
|
189
209
|
### Local MCP Servers
|
|
190
210
|
|
|
191
|
-
For STDIO, SSE, and HTTP transports using local servers, open a terminal in the library root (`
|
|
211
|
+
For STDIO, SSE, and HTTP transports using local servers, open a terminal in the library root (`python/aip-agents`) and run:
|
|
192
212
|
|
|
193
213
|
- For STDIO:
|
|
194
214
|
|
|
@@ -361,7 +381,7 @@ python hello_world_a2a_langchain_client_stream.py
|
|
|
361
381
|
|
|
362
382
|
## Human-in-the-Loop (HITL) Approval
|
|
363
383
|
|
|
364
|
-
|
|
384
|
+
AIP Agents supports Human-in-the-Loop approval for tool execution, allowing human operators to review and approve high-risk tool calls before they execute.
|
|
365
385
|
|
|
366
386
|
### Features
|
|
367
387
|
|
|
@@ -636,7 +656,7 @@ For detailed documentation, see `docs/deep_agents_guide.md` (coming soon).
|
|
|
636
656
|
|
|
637
657
|
### Agent Interface (`AgentInterface`)
|
|
638
658
|
|
|
639
|
-
The `aip_agents.agent.interface.AgentInterface` class defines a standardized contract for all agent implementations within the
|
|
659
|
+
The `aip_agents.agent.interface.AgentInterface` class defines a standardized contract for all agent implementations within the AIP Agents ecosystem. It ensures that different agent types (e.g., LangGraph-based, Google ADK-based) expose a consistent set of methods for core operations.
|
|
640
660
|
|
|
641
661
|
Key methods defined by `AgentInterface` typically include:
|
|
642
662
|
- `arun()`: For asynchronous execution of the agent that returns a final consolidated response.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
aip_agents.cp312-win_amd64.pyd,sha256=
|
|
2
|
-
aip_agents.pyi,sha256=
|
|
1
|
+
aip_agents.cp312-win_amd64.pyd,sha256=aKNzLqx5jjUPl_Lr7WoxQL_R58Y9Wxfyhw-9DnXYzI4,8397824
|
|
2
|
+
aip_agents.pyi,sha256=l5knEtThJWZUe6A_QoDECr7y4-ugQ7RDPVTJbBu6Aac,7111
|
|
3
3
|
aip_agents/__init__.pyi,sha256=grwc3MrfaBHSIGOsn3Pi1d92fva_d2q4Uyj4-dLxLgU,401
|
|
4
4
|
aip_agents/constants.pyi,sha256=HtiRaUKXUBx7ndII6WryJ69StLcUtui3U2dHmcgXawA,155
|
|
5
5
|
aip_agents/a2a/__init__.pyi,sha256=qZHMMw-GknpnTct_0SZOvy8WnMxVJoxiXlx7FTOFR1Q,312
|
|
@@ -11,14 +11,14 @@ aip_agents/a2a/server/langflow_executor.pyi,sha256=mLFSmEmw2DBhHSXoUjWlHY82PLgVh
|
|
|
11
11
|
aip_agents/a2a/server/langgraph_executor.pyi,sha256=Zo1FX5CItV22r9_t4yeN2-3rfv353vtbs_wryedVwBI,2334
|
|
12
12
|
aip_agents/agent/__init__.pyi,sha256=N-XcIaJOUMl6-ZVEHlZNN6PcahotUSeLRYMWxC2Juj0,864
|
|
13
13
|
aip_agents/agent/base_agent.pyi,sha256=piwAfkyD4Zw1IESdrx4lIrR8oBABrYai88EzabKTtZ0,11339
|
|
14
|
-
aip_agents/agent/base_langgraph_agent.pyi,sha256=
|
|
14
|
+
aip_agents/agent/base_langgraph_agent.pyi,sha256=vfRtRAHT7Hb4Pq2uprmFUgQcsK_Tac2fv1Xoht5GPiU,11801
|
|
15
15
|
aip_agents/agent/google_adk_agent.pyi,sha256=O7DDlLAHLFBLpBKt1wMIqWX9GqI-_x2mGpkIACyXqf4,6389
|
|
16
16
|
aip_agents/agent/google_adk_constants.pyi,sha256=wCGncb4DsT0p34vKIEIpKU9vReYv14vhXSJDWzZfq4Y,57
|
|
17
17
|
aip_agents/agent/interface.pyi,sha256=6_KTHv91SDCGf8QtEk8dj1ywueKgMW0ZNczUytV6Ahk,3203
|
|
18
18
|
aip_agents/agent/interfaces.pyi,sha256=gbqG_UO8IzfmVd6QF2Su47n4WuB8e47pXtrglTNyYzs,1644
|
|
19
19
|
aip_agents/agent/langflow_agent.pyi,sha256=HOzMWIkga8F_ZFrzT62JdX9vhh8JhQVg-ylrr2Tglyo,5800
|
|
20
20
|
aip_agents/agent/langgraph_memory_enhancer_agent.pyi,sha256=6n6cd3udUhSaVTxqulnjCCgR-eUROnBEW2lFkAQCBQ4,2644
|
|
21
|
-
aip_agents/agent/langgraph_react_agent.pyi,sha256=
|
|
21
|
+
aip_agents/agent/langgraph_react_agent.pyi,sha256=Mg41c2nugNnS7OEedQskAfG45gI-itT2USwpAcNW4RI,8021
|
|
22
22
|
aip_agents/agent/system_instruction_context.pyi,sha256=gpYUr_CjWU_qVFobX_sduKDQN_wwtRL9BdnYv0WZ0Mc,424
|
|
23
23
|
aip_agents/agent/hitl/__init__.pyi,sha256=BeUOOtTakORHVW_yPHpv3JkZ7ZGibHx9sLvYvvhuqtI,597
|
|
24
24
|
aip_agents/agent/hitl/config.pyi,sha256=HUfnDmC2Zk6O1-R9E9OhjnStwCNsH74_irE1sxysbwE,510
|
|
@@ -191,12 +191,13 @@ aip_agents/tools/memory_search/mem0.pyi,sha256=5kK1lPjg_IaagyVBy9ZQx69dIZgPXzmeQ
|
|
|
191
191
|
aip_agents/tools/memory_search/schema.pyi,sha256=fmsQ13G7_hb6qrUYl9jj3vIFH8a75EqKPiFCmtbji6U,450
|
|
192
192
|
aip_agents/types/__init__.pyi,sha256=Dx676C_8ki7bfbvRfkCJlEydzF4gcisK5PaJhNoTe4U,1249
|
|
193
193
|
aip_agents/types/a2a_events.pyi,sha256=3b_F6OMiQobvDd1srVUJIcQ6Vu-K8QF22NfdArOQdb8,244
|
|
194
|
-
aip_agents/utils/__init__.pyi,sha256=
|
|
194
|
+
aip_agents/utils/__init__.pyi,sha256=33x-odYrkTAPdMFakEu3rB9vbBrnRFDu711Uj5ZKj5Q,2137
|
|
195
195
|
aip_agents/utils/a2a_connector.pyi,sha256=p4ZwEyGpus1BpVCQzwij9GolGpTfnuTfEaOBGNd8wXg,7695
|
|
196
196
|
aip_agents/utils/artifact_helpers.pyi,sha256=CNE7kbiWWb3u2MjcygMsJ6-VuAyU9TNzVzLM10uVNsk,9799
|
|
197
197
|
aip_agents/utils/constants.pyi,sha256=uIX1j2RszPUTquwRC66bSW6yZybxKfcOwbytEVS8TJ8,266
|
|
198
198
|
aip_agents/utils/env_loader.pyi,sha256=hmAyFugo7-ch4hneljiyUyiHC8gludwfQe5M5G5Im4k,321
|
|
199
199
|
aip_agents/utils/event_handler_registry.pyi,sha256=RYEzqIYNQk7Mj2Vieggu8CEtm6NpcLCWvpOPuxAWz4k,944
|
|
200
|
+
aip_agents/utils/file_prompt_utils.pyi,sha256=rCUyaKM_oH8APc9YGbfaiXN4d5Bo0epHhiQCB7vG_sE,676
|
|
200
201
|
aip_agents/utils/final_response_builder.pyi,sha256=X6M_j6UFKmjI9uhPrDcCT9nFZpZUhrtuzxrJO4u9nNs,1749
|
|
201
202
|
aip_agents/utils/formatter_llm_client.pyi,sha256=mgpeRUGM_9etqJoX0a95Mregt_2WFWPMW3KTo2bztiw,3118
|
|
202
203
|
aip_agents/utils/logger.pyi,sha256=nADDdQRtogPehmSivc98d0F1qkQT6CIMamFjkr3n0XM,1923
|
|
@@ -232,11 +233,11 @@ aip_agents/utils/name_preprocessor/base_name_preprocessor.pyi,sha256=udBKY2e7_AO
|
|
|
232
233
|
aip_agents/utils/name_preprocessor/google_name_preprocessor.pyi,sha256=OXfJaP5-iNb2DruZ39yDFISn4jJwddrEw34yL5VHizI,1520
|
|
233
234
|
aip_agents/utils/name_preprocessor/name_preprocessor.pyi,sha256=mdTC7c_mN2-tty9FY43-KcmK5oguf0hmPN95TZ1G4sQ,1512
|
|
234
235
|
aip_agents/utils/name_preprocessor/openai_name_preprocessor.pyi,sha256=nLwQLHcqfU2g84747jTb21iBDuzG1S30s5uBjeJS4Hg,1269
|
|
235
|
-
aip_agents/utils/pii/__init__.pyi,sha256
|
|
236
|
-
aip_agents/utils/pii/pii_handler.pyi,sha256=
|
|
237
|
-
aip_agents/utils/pii/pii_helper.pyi,sha256=
|
|
238
|
-
aip_agents/utils/pii/uuid_deanonymizer_mapping.pyi,sha256=
|
|
239
|
-
aip_agents_binary-0.5.
|
|
240
|
-
aip_agents_binary-0.5.
|
|
241
|
-
aip_agents_binary-0.5.
|
|
242
|
-
aip_agents_binary-0.5.
|
|
236
|
+
aip_agents/utils/pii/__init__.pyi,sha256=-D_lLkZMnByQeCoijwXKZwIn8J1yAmjrNcZ75DCm8ME,766
|
|
237
|
+
aip_agents/utils/pii/pii_handler.pyi,sha256=E74aN8gMWf4ritfzjOJ8JPZmZkWZL5gwGYrcrPHYvpc,3934
|
|
238
|
+
aip_agents/utils/pii/pii_helper.pyi,sha256=wEgOasJxwKObtQ9Cb1UsiyIaqq2JUYmdRwOZR9PnIjA,3017
|
|
239
|
+
aip_agents/utils/pii/uuid_deanonymizer_mapping.pyi,sha256=6H1xRV2Nr0LpP5K6fbz2uCobehTpM2626v8kiOd9W9Y,3157
|
|
240
|
+
aip_agents_binary-0.5.5.dist-info/METADATA,sha256=SWdfceiTT_xwQoO4vSN49dPvq1WD5AcbKNed_xtiF0w,22207
|
|
241
|
+
aip_agents_binary-0.5.5.dist-info/WHEEL,sha256=mktjIo72eqyqXY-lxdbITmUE47ZU2O9WYzyv0PnFKrU,96
|
|
242
|
+
aip_agents_binary-0.5.5.dist-info/top_level.txt,sha256=PEz8vcwC1bH4UrkhF0LkIYCNfXGWZUHdSklbvkBe25E,11
|
|
243
|
+
aip_agents_binary-0.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|