googleapis / googleapis/python-aiplatform
ReasoningEngineSpec missing effectiveIdentity field causes ParseError when creating Agent Engines
- Ngôn ngữ chính
- Python
- Star
- 905
- Fork
- 465
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 44
Mô tả
## Environment
- **google-cloud-aiplatform version:** 1.136.0
- **google-adk version:** 1.24.0
- **Python version:** 3.12
- **OS:** Ubuntu Linux (GCE VM)
## Description
When creating a new Reasoning Engine using `vertexai.agent_engines.create()`, the API returns a response containing an `effectiveIdentity` field that is not defined in the local protobuf definitions, causing a `ParseError`.
The `effectiveIdentity` field is documented in the [REST API reference](https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/projects.locations.reasoningEngines#ReasoningEngineSpec) as an output-only field, but the Python SDK's proto definitions don't include it.
## Steps to Reproduce
```python
import vertexai
from vertexai import agent_engines
vertexai.init(project="my-project", location="us-central1")
# This triggers the error when parsing the API response
engine = agent_engines.create(display_name="test_engine")
```
## Error Message
```
Failed to parse spec field: Message type "google.cloud.aiplatform.v1.ReasoningEngineSpec" has no field named "effectiveIdentity" at "Operation.response.spec".
Available Fields(except extensions): "['sourceCodeSpec', 'serviceAccount', 'packageSpec', 'deploymentSpec', 'classMethods', 'agentFramework']".
```
## Expected Behavior
The SDK should be able to parse the API response without errors. The `effectiveIdentity` field should be added to the `ReasoningEngineSpec` proto definition.
## Additional Context
This is similar to:
- #5176 - `SpeechConfig` missing `languageCode`
- #4995 - `GenerationConfig` missing `responseModalities`
The pattern is the same: the API returns fields that the SDK's protobuf definitions don't yet support.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định định nghĩa protobuf Python cho ReasoningEngineSpec và tái hiện lỗi phân tích cú pháp với ví dụ vertexai.agent_engines.create(). So sánh các trường của nó với tài liệu tham chiếu REST API, sau đó xác minh rằng một phản hồi chứa effectiveIdentity được phân tích cú pháp thành công và các bài kiểm thử liên quan đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 65/100